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