Files
openloongarch-uboot-2022.04/arch/loongarch/dts/ls2k300_gongkong_gbkpgk0.dts
T
maoxiaochuan cfb48543be update to 78ecd52843f55c
1. 修复mmc的盘无法安装系统的bug
2. 修复OTG口概率性不识别设备问题
3. 兼容oh41旧传参方式启动的内核
4. 修复部分配置没有加载dtb到内存的问题
5. 添加更多spi flash支持
6. 添加正点原子板卡atk_dl2k0300b 支持
2025-02-24 17:10:21 +08:00

124 lines
2.1 KiB
Devicetree

#include "ls2k300_g2k03z2_core.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ {
sysinfo-smbios {
compatible = "u-boot,sysinfo-smbios";
u-boot,dm-pre-reloc;
smbios {
system {
manufacturer = "Loongson";
product = "LS2K300";
};
baseboard {
manufacturer = "Loongson";
product = "LS2K300-GONGKONG-GBKPGK0";
};
chassis {
manufacturer = "Loongson";
product = "LS2K300-GONGKONG-GBKPGK0";
};
};
};
panel_rgb: panel-rgb {
compatible = "simple-panel";
backlight = <&panel_bkl>;
display-timings {
#if 0 // 4.3' LCD
native-mode = <&atk_md0430r>;
atk_md0430r: 800x480 {
clock-frequency = <27000000>;
hactive = <800>;
vactive = <480>;
hsync-len = <40>;
hfront-porch = <48>;
hback-porch = <40>;
vfront-porch = <13>;
vback-porch = <32>;
vsync-len = <0>;
de-active = <1>;
hsync-active = <0>;
vsync-active = <0>;
pixelclk-active = <0>;
};
#else // 7' LCD
native-mode = <&atk_md0700r>;
atk_md0700r: 1024x600 {
clock-frequency = <51200000>;
hactive = <1024>;
vactive = <600>;
hsync-len = <20>;
hfront-porch = <160>;
hback-porch = <140>;
vfront-porch = <12>;
vback-porch = <20>;
vsync-len = <3>;
de-active = <1>;
hsync-active = <0>;
vsync-active = <0>;
pixelclk-active = <0>;
};
#endif
};
};
panel_bkl: backlight {
compatible = "gpio-backlight";
gpios = <&gpio0 89 GPIO_ACTIVE_HIGH>;
// default-on;
};
};
&gmac0 {
status = "okay";
phy-mode = "rgmii-txid";
phy-handle = <&eth_phy0>;
mdio0: mdio@0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
eth_phy0: ethernet-phy@0 {
reg = <0>;
};
};
};
&gmac1 {
status = "okay";
phy-mode = "rgmii-txid";
phy-handle = <&eth_phy1>;
mdio1: mdio@1 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
eth_phy1: ethernet-phy@1 {
reg = <0>;
};
};
};
&dvo0 {
status = "okay";
connector-type = "panel"; // panel, vga, hdmi
connector = <&panel_rgb>;
pix-fmt = "rgb888";
};
&sdio1 {
status = "okay";
use-sdcard;
};
&otg {
status = "okay";
};