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