Files
openloongarch-uboot-2022.04/arch/loongarch/dts/ls2k300_mini_dp.dts
T
loongson 1d58dfa04b update to cadd162f
1. support update dtb
2. support install rootfs from ramdisk
3. other fixs
2024-07-25 14:11:52 +08:00

115 lines
2.0 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-MINI-DP";
};
chassis {
manufacturer = "Loongson";
product = "LS2K300-MINI-DP";
};
};
};
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 84 GPIO_ACTIVE_HIGH>;
// default-on;
};
};
&gmac0 {
status = "okay";
phy-mode = "rgmii-txid";
// max-speed = <100>;
phy-handle = <&eth_phy0>;
mdio0: mdio@0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
eth_phy0: ethernet-phy@0 {
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";
};