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