ramips: fix LAN LED trigger assignment for Xiaomi Router 3 Pro
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3662_asus_rt-n56u.dts
1 #include "rt3883.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "asus,rt-n56u", "ralink,rt3662-soc", "ralink,rt3883-soc";
8 model = "Asus RT-N56U";
9
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 flash@1c000000 {
18 compatible = "cfi-flash";
19 reg = <0x1c000000 0x800000>;
20 bank-width = <2>;
21
22 partitions {
23 compatible = "fixed-partitions";
24 #address-cells = <1>;
25 #size-cells = <1>;
26
27 partition@0 {
28 reg = <0x0 0x0030000>;
29 label = "u-boot";
30 read-only;
31 };
32
33 partition@30000 {
34 reg = <0x00030000 0x00010000>;
35 label = "u-boot-env";
36 read-only;
37 };
38
39 factory: partition@40000 {
40 reg = <0x00040000 0x00010000>;
41 label = "factory";
42 read-only;
43 };
44
45 partition@50000 {
46 compatible = "denx,uimage";
47 reg = <0x00050000 0x007b0000>;
48 label = "firmware";
49 };
50 };
51 };
52
53 rtl8367 {
54 compatible = "realtek,rtl8367";
55 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
56 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
57 realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
58 };
59
60 keys {
61 compatible = "gpio-keys-polled";
62 poll-interval = <100>;
63
64 reset {
65 label = "reset";
66 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
67 linux,code = <KEY_RESTART>;
68 };
69
70 wps {
71 label = "wps";
72 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
73 linux,code = <KEY_WPS_BUTTON>;
74 };
75 };
76
77 leds {
78 compatible = "gpio-leds";
79
80 led_power: power {
81 label = "blue:power";
82 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
83 };
84
85 lan {
86 label = "blue:lan";
87 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
88 };
89
90 wan {
91 label = "blue:wan";
92 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
93 };
94
95 usb {
96 label = "blue:usb";
97 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
98 };
99 };
100 };
101
102 &gpio1 {
103 status = "okay";
104 };
105
106 &state_default {
107 gpio {
108 groups = "spi", "i2c", "jtag", "uartf";
109 function = "gpio";
110 };
111 };
112
113 &ethernet {
114 mtd-mac-address = <&factory 0x4>;
115
116 port@0 {
117 mediatek,fixed-link = <1000 1 1 1>;
118 };
119 };
120
121 &pci {
122 status = "okay";
123 };
124
125 &pci1 {
126 status = "okay";
127
128 wifi@0,0 {
129 compatible = "pci1814,3091";
130 reg = <0x10000 0 0 0 0>;
131 ralink,mtd-eeprom = <&factory 0x8000>;
132 };
133 };
134
135 &wmac {
136 status = "okay";
137 ralink,2ghz = <0>;
138 ralink,mtd-eeprom = <&factory 0x0>;
139 };
140
141 &ehci {
142 status = "okay";
143 };
144
145 &ohci {
146 status = "okay";
147 };