ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / 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 gpio-keys-polled {
13 compatible = "gpio-keys-polled";
14 poll-interval = <20>;
15
16 touch {
17 label = "touch";
18 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
19 linux,code = <BTN_0>;
20 };
21
22 wps {
23 label = "wps";
24 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
25 linux,code = <BTN_0>;
26 };
27
28 reset {
29 label = "reset";
30 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
31 linux,code = <BTN_0>;
32 };
33
34 audio {
35 label = "audio";
36 gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
37 linux,code = <BTN_1>;
38 };
39 };
40
41 gpio-leds {
42 compatible = "gpio-leds";
43
44 backlight {
45 label = "rp-n53:white:back";
46 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
47 };
48
49 wifi0 {
50 label = "rp-n53:blue:5g3";
51 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
52 };
53
54 wifi1 {
55 label = "rp-n53:blue:5g2";
56 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
57 };
58
59 wifi2 {
60 label = "rp-n53:blue:5g1";
61 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
62 };
63
64 wifi3 {
65 label = "rp-n53:blue:wifi";
66 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
67 };
68
69 wifi4 {
70 label = "rp-n53:blue:2g1";
71 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
72 };
73
74 wifi5 {
75 label = "rp-n53:blue:2g2";
76 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
77 };
78
79 wifi6 {
80 label = "rp-n53:blue:2g3";
81 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
82 };
83 };
84 };
85
86 &gpio1 {
87 status = "okay";
88 };
89
90 &i2c {
91 status = "okay";
92 };
93
94 &i2s {
95 status = "okay";
96 pinctrl-names = "default";
97 pinctrl-0 = <&pcm_i2s_pins>;
98 };
99
100 &spi0 {
101 status = "okay";
102
103 m25p80@0 {
104 #address-cells = <1>;
105 #size-cells = <1>;
106 compatible = "jedec,spi-nor";
107 reg = <0>;
108 spi-max-frequency = <10000000>;
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 label = "firmware";
130 reg = <0x50000 0x7b0000>;
131 };
132 };
133 };
134
135 &pcm {
136 status = "okay";
137 };
138
139 &gdma {
140 status = "okay";
141 };
142
143 &wmac {
144 ralink,mtd-eeprom = <&factory 0>;
145 };
146
147 &pinctrl {
148 state_default: pinctrl0 {
149 gpio {
150 ralink,group = "mdio", "rgmii1";
151 ralink,function = "gpio";
152 };
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 };