ramips: add support for dir810l and asus rp-n53
[openwrt/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 chosen {
10 bootargs = "console=ttyS0,57600";
11 };
12
13 palmbus@10000000 {
14 sysc@0 {
15 ralink,pinmux = "spi", "uartlite", "wled", "ephy", "i2c";
16 ralink,gpiomux = "jtag", "mdio", "rgmii1", "rgmii1";
17 ralink,uartmux = "gpio";
18 ralink,wdtmux = <1>;
19 };
20
21 gpio0: gpio@600 {
22 status = "okay";
23 };
24
25 gpio1: gpio@638 {
26 status = "okay";
27 };
28
29 i2c@900 {
30 status = "okay";
31 };
32
33 spi@b00 {
34 status = "okay";
35
36 m25p80@0 {
37 #address-cells = <1>;
38 #size-cells = <1>;
39 compatible = "mx25l6405d";
40 reg = <0 0>;
41 linux,modalias = "m25p80";
42 spi-max-frequency = <10000000>;
43
44 partition@0 {
45 label = "u-boot";
46 reg = <0x0 0x30000>;
47 read-only;
48 };
49
50 partition@30000 {
51 label = "u-boot-env";
52 reg = <0x30000 0x10000>;
53 read-only;
54 };
55
56 factory: partition@40000 {
57 label = "factory";
58 reg = <0x40000 0x10000>;
59 read-only;
60 };
61
62 partition@50000 {
63 label = "firmware";
64 reg = <0x50000 0x7b0000>;
65 };
66 };
67 };
68 };
69
70 codec {
71 compatible = "ralink,mt7620-audio";
72 };
73
74 ethernet@10100000 {
75 status = "okay";
76 };
77
78 gsw@10110000 {
79 status = "okay";
80 ralink,port4 = "ephy";
81 };
82
83 pcie@10140000 {
84 status = "okay";
85 };
86
87 gpio-keys-polled {
88 compatible = "gpio-keys-polled";
89 #address-cells = <1>;
90 #size-cells = <0>;
91 poll-interval = <20>;
92 touch {
93 label = "touch";
94 gpios = <&gpio1 0 1>;
95 linux,code = <0x100>;
96 };
97 wps {
98 label = "wps";
99 gpios = <&gpio1 1 1>;
100 linux,code = <0x100>;
101 };
102 reset {
103 label = "reset";
104 gpios = <&gpio1 2 1>;
105 linux,code = <0x100>;
106 };
107 audio {
108 label = "audio";
109 gpios = <&gpio1 3 0>;
110 linux,code = <0x101>;
111 };
112 };
113
114 gpio-leds {
115 compatible = "gpio-leds";
116 backlight {
117 label = "asus:white:back";
118 gpios = <&gpio1 4 1>;
119 };
120 wifi0 {
121 label = "asus:blue:5g3";
122 gpios = <&gpio1 5 1>;
123 };
124 wifi1 {
125 label = "asus:blue:5g2";
126 gpios = <&gpio1 6 1>;
127 };
128 wifi2 {
129 label = "asus:blue:5g1";
130 gpios = <&gpio1 7 1>;
131 };
132 wifi3 {
133 label = "asus:blue:wifi";
134 gpios = <&gpio1 8 1>;
135 };
136 wifi4 {
137 label = "asus:blue:2g1";
138 gpios = <&gpio1 9 1>;
139 };
140 wifi5 {
141 label = "asus:blue:2g2";
142 gpios = <&gpio1 10 1>;
143 };
144 wifi6 {
145 label = "asus:blue:2g3";
146 gpios = <&gpio1 11 1>;
147 };
148 };
149 };