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