ramips: fix LAN LED trigger assignment for Xiaomi Router 3 Pro
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_asus_rp-n53.dts
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "asus,rp-n53", "ralink,mt7620a-soc";
8 model = "Asus RP-N53";
9
10 keys {
11 compatible = "gpio-keys";
12
13 touch {
14 label = "touch";
15 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
16 linux,code = <BTN_0>;
17 };
18
19 wps {
20 label = "wps";
21 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
22 linux,code = <BTN_0>;
23 };
24
25 reset {
26 label = "reset";
27 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
28 linux,code = <BTN_0>;
29 };
30
31 audio {
32 label = "audio";
33 gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
34 linux,code = <BTN_1>;
35 };
36 };
37
38 leds {
39 compatible = "gpio-leds";
40
41 backlight {
42 label = "white:back";
43 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
44 };
45
46 wifi0 {
47 label = "blue:5g3";
48 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
49 };
50
51 wifi1 {
52 label = "blue:5g2";
53 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
54 };
55
56 wifi2 {
57 label = "blue:5g1";
58 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
59 };
60
61 wifi3 {
62 label = "blue:wifi";
63 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
64 };
65
66 wifi4 {
67 label = "blue:2g1";
68 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
69 };
70
71 wifi5 {
72 label = "blue:2g2";
73 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
74 };
75
76 wifi6 {
77 label = "blue:2g3";
78 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
79 };
80 };
81 };
82
83 &gpio1 {
84 status = "okay";
85 };
86
87 &i2c {
88 status = "okay";
89 };
90
91 &i2s {
92 status = "okay";
93 pinctrl-names = "default";
94 pinctrl-0 = <&pcm_i2s_pins>;
95 };
96
97 &spi0 {
98 status = "okay";
99
100 flash@0 {
101 compatible = "jedec,spi-nor";
102 reg = <0>;
103 spi-max-frequency = <10000000>;
104
105 partitions {
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
108 #size-cells = <1>;
109
110 partition@0 {
111 label = "u-boot";
112 reg = <0x0 0x30000>;
113 read-only;
114 };
115
116 partition@30000 {
117 label = "u-boot-env";
118 reg = <0x30000 0x10000>;
119 read-only;
120 };
121
122 factory: partition@40000 {
123 label = "factory";
124 reg = <0x40000 0x10000>;
125 read-only;
126 };
127
128 partition@50000 {
129 compatible = "denx,uimage";
130 label = "firmware";
131 reg = <0x50000 0x7b0000>;
132 };
133 };
134 };
135 };
136
137 &pcm {
138 status = "okay";
139 };
140
141 &gdma {
142 status = "okay";
143 };
144
145 &wmac {
146 ralink,mtd-eeprom = <&factory 0x0>;
147 };
148
149 &state_default {
150 gpio {
151 groups = "mdio", "rgmii1";
152 function = "gpio";
153 };
154 };
155
156 &gsw {
157 mediatek,port4 = "ephy";
158 pinctrl-names = "default";
159 pinctrl-0 = <&ephy_pins>;
160 };
161
162 &pcie {
163 status = "okay";
164 };
165
166 &pcie0 {
167 wifi@0,0 {
168 compatible = "pci1814,5592";
169 reg = <0x0000 0 0 0 0>;
170 ralink,2ghz = <0>;
171 ralink,mtd-eeprom = <&factory 0x8000>;
172 };
173 };