mirror of
https://gitee.com/open-loongarch/u-boot.git
synced 2026-10-25 12:57:10 +08:00
1. 修复mmc的盘无法安装系统的bug 2. 修复OTG口概率性不识别设备问题 3. 兼容oh41旧传参方式启动的内核 4. 修复部分配置没有加载dtb到内存的问题 5. 添加更多spi flash支持 6. 添加正点原子板卡atk_dl2k0300b 支持
130 lines
2.2 KiB
Devicetree
130 lines
2.2 KiB
Devicetree
#include "ls2k300_g2k03z0_core_v10.dtsi"
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/power-domain/ls2k500-power-domain.h>
|
|
|
|
/ {
|
|
model = "loongson-2k300";
|
|
|
|
|
|
sysinfo-smbios {
|
|
compatible = "u-boot,sysinfo-smbios";
|
|
u-boot,dm-pre-reloc;
|
|
|
|
smbios {
|
|
system {
|
|
manufacturer = "Loongson";
|
|
product = "LS2K300";
|
|
};
|
|
|
|
baseboard {
|
|
manufacturer = "Loongson";
|
|
product = "LS2K300-ATK-DL2K0300B-V01";
|
|
};
|
|
|
|
chassis {
|
|
manufacturer = "Loongson";
|
|
product = "LS2K300-ATK-DL2K0300B-V01";
|
|
};
|
|
};
|
|
};
|
|
|
|
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 88 GPIO_ACTIVE_HIGH>;
|
|
// default-on;
|
|
};
|
|
};
|
|
|
|
&gmac0 {
|
|
status = "okay";
|
|
phy-mode = "rgmii-txid";
|
|
// max-speed = <100>;
|
|
phy-handle = <ð_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";
|
|
// max-speed = <100>;
|
|
phy-handle = <ð_phy1>;
|
|
mdio1: mdio@1 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
compatible = "snps,dwmac-mdio";
|
|
|
|
eth_phy1: ethernet-phy@1 {
|
|
reg = <1>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&dvo0 {
|
|
status = "okay";
|
|
connector-type = "panel"; // panel, vga, hdmi
|
|
connector = <&panel_rgb>;
|
|
pix-fmt = "rgb888";
|
|
};
|
|
|
|
&sdio1 {
|
|
status = "okay";
|
|
use-sdcard;
|
|
};
|
|
|
|
&otg {
|
|
status = "okay";
|
|
};
|