ramips: fix WHR-600D eeprom dt property
[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 linux,modalias = "m25p80";
110 spi-max-frequency = <10000000>;
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 label = "firmware";
132 reg = <0x50000 0x7b0000>;
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 0>;
147 };
148
149 &pinctrl {
150 state_default: pinctrl0 {
151 gpio {
152 ralink,group = "mdio", "rgmii1";
153 ralink,function = "gpio";
154 };
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 };