ramips: select kmod-rt2800-soc by default (if available)
[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
21                         pinctrl-names = "default";
22                         pinctrl-0 = <&pcm_i2s_pins>;
23                 };
24
25                 spi@b00 {
26                         status = "okay";
27
28                         m25p80@0 {
29                                 #address-cells = <1>;
30                                 #size-cells = <1>;
31                                 compatible = "mx25l6405d";
32                                 reg = <0 0>;
33                                 linux,modalias = "m25p80";
34                                 spi-max-frequency = <10000000>;
35
36                                 partition@0 {
37                                         label = "u-boot";
38                                         reg = <0x0 0x30000>;
39                                         read-only;
40                                 };
41
42                                 partition@30000 {
43                                         label = "u-boot-env";
44                                         reg = <0x30000 0x10000>;
45                                         read-only;
46                                 };
47
48                                 factory: partition@40000 {
49                                         label = "factory";
50                                         reg = <0x40000 0x10000>;
51                                         read-only;
52                                 };
53
54                                 partition@50000 {
55                                         label = "firmware";
56                                         reg = <0x50000 0x7b0000>;
57                                 };
58                         };
59                 };
60
61                 pcm@2000 {
62                         status = "okay";
63                 };
64
65                 gdma@2800 {
66                         status = "okay";
67                 };
68         };
69
70         pinctrl {
71                 state_default: pinctrl0 {
72                         gpio {
73                                 ralink,group = "mdio", "rgmii1";
74                                 ralink,function = "gpio";
75                         };
76                 };
77         };
78
79         gsw@10110000 {
80                 ralink,port4 = "ephy";
81
82                 pinctrl-names = "default";
83                 pinctrl-0 = <&ephy_pins>;
84         };
85
86         pcie@10140000 {
87                 status = "okay";
88         };
89
90         gpio-keys-polled {
91                 compatible = "gpio-keys-polled";
92                 #address-cells = <1>;
93                 #size-cells = <0>;
94                 poll-interval = <20>;
95                 touch {
96                         label = "touch";
97                         gpios = <&gpio1 0 1>;
98                         linux,code = <0x100>;
99                 };
100                 wps {
101                         label = "wps";
102                         gpios = <&gpio1 1 1>;
103                         linux,code = <0x100>;
104                 };
105                 reset {
106                         label = "reset";
107                         gpios = <&gpio1 2 1>;
108                         linux,code = <0x100>;
109                 };
110                 audio {
111                         label = "audio";
112                         gpios = <&gpio1 3 0>;
113                         linux,code = <0x101>;
114                 };
115         };
116
117         gpio-leds {
118                 compatible = "gpio-leds";
119                 backlight {
120                         label = "asus:white:back";
121                         gpios = <&gpio1 4 1>;
122                 };
123                 wifi0 {
124                         label = "asus:blue:5g3";
125                         gpios = <&gpio1 5 1>;
126                 };
127                 wifi1 {
128                         label = "asus:blue:5g2";
129                         gpios = <&gpio1 6 1>;
130                 };
131                 wifi2 {
132                         label = "asus:blue:5g1";
133                         gpios = <&gpio1 7 1>;
134                 };
135                 wifi3 {
136                         label = "asus:blue:wifi";
137                         gpios = <&gpio1 8 1>;
138                 };
139                 wifi4 {
140                         label = "asus:blue:2g1";
141                         gpios = <&gpio1 9 1>;
142                 };
143                 wifi5 {
144                         label = "asus:blue:2g2";
145                         gpios = <&gpio1 10 1>;
146                 };
147                 wifi6 {
148                         label = "asus:blue:2g3";
149                         gpios = <&gpio1 11 1>;
150                 };
151         };
152 };