ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.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 nvmem-layout {
128 compatible = "fixed-layout";
129 #address-cells = <1>;
130 #size-cells = <1>;
131
132 eeprom_factory_0: eeprom@0 {
133 reg = <0x0 0x200>;
134 };
135
136 eeprom_factory_8000: eeprom@8000 {
137 reg = <0x8000 0x200>;
138 };
139 };
140 };
141
142 partition@50000 {
143 compatible = "denx,uimage";
144 label = "firmware";
145 reg = <0x50000 0x7b0000>;
146 };
147 };
148 };
149 };
150
151 &pcm {
152 status = "okay";
153 };
154
155 &gdma {
156 status = "okay";
157 };
158
159 &wmac {
160 nvmem-cells = <&eeprom_factory_0>;
161 nvmem-cell-names = "eeprom";
162 };
163
164 &state_default {
165 gpio {
166 groups = "mdio", "rgmii1";
167 function = "gpio";
168 };
169 };
170
171 &ethernet {
172 pinctrl-names = "default";
173 pinctrl-0 = <&ephy_pins>;
174 };
175
176 &pcie {
177 status = "okay";
178 };
179
180 &pcie0 {
181 wifi@0,0 {
182 compatible = "pci1814,5592";
183 reg = <0x0000 0 0 0 0>;
184 ralink,2ghz = <0>;
185 nvmem-cells = <&eeprom_factory_8000>;
186 nvmem-cell-names = "eeprom";
187 };
188 };