提交 18a87273 编写于 作者: L LEAN-ESX

ramips: fix XiaoYu XY-C5 dts

上级 c46095fd
...@@ -6,44 +6,37 @@ ...@@ -6,44 +6,37 @@
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "XiaoYu-C5", "mediatek,mt7621-soc"; compatible = "xiaoyu,xy-c5", "mediatek,mt7621-soc";
model = "XiaoYu-C5"; model = "XiaoYu XY-C5";
aliases { aliases {
led-boot = &led_system; led-boot = &led_sys;
led-failsafe = &led_system; led-failsafe = &led_sys;
led-running = &led_system; led-running = &led_sys;
led-upgrade = &led_system; led-upgrade = &led_sys;
}; label-mac-device = &ethernet;
memory@0 {
device_type = "memory";
reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
}; };
chosen { chosen {
bootargs = "console=ttyS0,115200"; bootargs = "console=ttyS0,57600";
}; };
gpio-leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
led_system:system {
label = "XiaoYu-C5:green:system";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
work { work {
label = "XiaoYu-C5:green:usb3.0"; label = "xy-c5:green:work";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; };
linux,default-trigger = "usbport";
led_sys: sys {
label = "xy-c5:green:sys";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
}; };
}; };
gpio-keys-polled { keys {
compatible = "gpio-keys-polled"; compatible = "gpio-keys";
poll-interval = <20>;
reset { reset {
label = "reset"; label = "reset";
...@@ -51,17 +44,15 @@ ...@@ -51,17 +44,15 @@
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
}; };
}; };
&spi0 { &spi0 {
status = "okay"; status = "okay";
m25p80@0 { flash@0 {
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
spi-max-frequency = <10000000>; spi-max-frequency = <25000000>;
m25p,chunked-io = <32>;
partitions { partitions {
compatible = "fixed-partitions"; compatible = "fixed-partitions";
...@@ -89,11 +80,7 @@ ...@@ -89,11 +80,7 @@
partition@50000 { partition@50000 {
compatible = "denx,uimage"; compatible = "denx,uimage";
label = "firmware"; label = "firmware";
reg = <0x50000 0x1fa0000>; reg = <0x50000 0x1fb0000>;
};
partition@1ff0000 {
label = "mib0";
reg = <0x1ff0000 0x10000>;
}; };
}; };
}; };
...@@ -110,7 +97,7 @@ ...@@ -110,7 +97,7 @@
&pinctrl { &pinctrl {
state_default: pinctrl0 { state_default: pinctrl0 {
gpio { gpio {
ralink,group = "i2c", "jtag" , "uart2", "uart3"; ralink,group = "uart3", "wdt";
ralink,function = "gpio"; ralink,function = "gpio";
}; };
}; };
......
...@@ -584,8 +584,7 @@ define Device/XiaoYu-C5 ...@@ -584,8 +584,7 @@ define Device/XiaoYu-C5
DTS := XiaoYu-C5 DTS := XiaoYu-C5
IMAGE_SIZE := $(ralink_default_fw_size_32M) IMAGE_SIZE := $(ralink_default_fw_size_32M)
DEVICE_TITLE := XiaoYu-C5 DEVICE_TITLE := XiaoYu-C5
DEVICE_PACKAGES := \ DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-usb3
kmod-ata-core kmod-ata-ahci kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic
endef endef
TARGET_DEVICES += XiaoYu-C5 TARGET_DEVICES += XiaoYu-C5
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册