ramips: fix LAN LED trigger assignment for Xiaomi Router 3 Pro
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620n_asus_rt-n14u.dts
1 #include "mt7620n.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "asus,rt-n14u", "ralink,mt7620n-soc";
8 model = "Asus RT-N14U";
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 leds {
18 compatible = "gpio-leds";
19
20 wan {
21 label = "blue:wan";
22 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
23 };
24
25 lan {
26 label = "blue:lan";
27 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
28 };
29
30 usb {
31 label = "blue:usb";
32 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
33 trigger-sources = <&ohci_port1>, <&ehci_port1>;
34 linux,default-trigger = "usbport";
35 };
36
37 led_power: power {
38 label = "blue:power";
39 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
40 };
41
42 air {
43 label = "blue:air";
44 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
45 };
46 };
47
48 keys {
49 compatible = "gpio-keys";
50
51 reset {
52 label = "reset";
53 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_RESTART>;
55 };
56
57 wps {
58 label = "wps";
59 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_WPS_BUTTON>;
61 };
62 };
63 };
64
65 &gpio2 {
66 status = "okay";
67 };
68
69 &gpio3 {
70 status = "okay";
71 };
72
73 &spi0 {
74 status = "okay";
75
76 flash@0 {
77 compatible = "jedec,spi-nor";
78 reg = <0>;
79 spi-max-frequency = <10000000>;
80
81 partitions {
82 compatible = "fixed-partitions";
83 #address-cells = <1>;
84 #size-cells = <1>;
85
86 partition@0 {
87 label = "u-boot";
88 reg = <0x0 0x30000>;
89 read-only;
90 };
91
92 partition@30000 {
93 label = "u-boot-env";
94 reg = <0x30000 0x10000>;
95 read-only;
96 };
97
98 factory: partition@40000 {
99 label = "factory";
100 reg = <0x40000 0x10000>;
101 read-only;
102 };
103
104 partition@50000 {
105 compatible = "denx,uimage";
106 label = "firmware";
107 reg = <0x50000 0xfb0000>;
108 };
109 };
110 };
111 };
112
113 &ehci {
114 status = "okay";
115 };
116
117 &ohci {
118 status = "okay";
119 };
120
121 &ethernet {
122 mtd-mac-address = <&factory 0x4>;
123
124 mediatek,portmap = "wllll";
125 };
126
127 &wmac {
128 ralink,mtd-eeprom = <&factory 0x0>;
129 };
130
131 &state_default {
132 default {
133 groups = "ephy", "wled", "i2c";
134 function = "gpio";
135 };
136 };