ramips: HLK-RM04 - Enable GPIO14 for WPS button
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / rt2880.dtsi
1 / {
2 #address-cells = <1>;
3 #size-cells = <1>;
4 compatible = "ralink,rt2880-soc";
5
6 cpus {
7 cpu@0 {
8 compatible = "mips,mips24KEc";
9 };
10 };
11
12 chosen {
13 bootargs = "console=ttyS0,57600";
14 };
15
16 cpuintc: cpuintc@0 {
17 #address-cells = <0>;
18 #interrupt-cells = <1>;
19 interrupt-controller;
20 compatible = "mti,cpu-interrupt-controller";
21 };
22
23 palmbus@300000 {
24 compatible = "palmbus";
25 reg = <0x300000 0x200000>;
26 ranges = <0x0 0x300000 0x1FFFFF>;
27
28 #address-cells = <1>;
29 #size-cells = <1>;
30
31 sysc@0 {
32 compatible = "ralink,rt2880-sysc";
33 reg = <0x000 0x100>;
34 };
35
36 timer@100 {
37 compatible = "ralink,rt2880-timer";
38 reg = <0x100 0x20>;
39
40 interrupt-parent = <&intc>;
41 interrupts = <1>;
42
43 status = "disabled";
44 };
45
46 watchdog@120 {
47 compatible = "ralink,rt2880-wdt";
48 reg = <0x120 0x10>;
49 };
50
51 intc: intc@200 {
52 compatible = "ralink,rt2880-intc";
53 reg = <0x200 0x100>;
54
55 interrupt-controller;
56 #interrupt-cells = <1>;
57
58 interrupt-parent = <&cpuintc>;
59 interrupts = <2>;
60 };
61
62 memc@300 {
63 compatible = "ralink,rt2880-memc";
64 reg = <0x300 0x100>;
65 };
66
67 gpio0: gpio@600 {
68 compatible = "ralink,rt2880-gpio";
69 reg = <0x600 0x34>;
70
71 gpio-controller;
72 #gpio-cells = <2>;
73
74 ralink,gpio-base = <0>;
75 ralink,num-gpios = <24>;
76 ralink,register-map = [ 00 04 08 0c
77 20 24 28 2c
78 30 34 ];
79 };
80
81 gpio1: gpio@638 {
82 compatible = "ralink,rt2880-gpio";
83 reg = <0x638 0x24>;
84
85 gpio-controller;
86 #gpio-cells = <2>;
87
88 ralink,gpio-base = <24>;
89 ralink,num-gpios = <16>;
90 ralink,register-map = [ 00 04 08 0c
91 10 14 18 1c
92 20 24 ];
93
94 status = "disabled";
95 };
96
97 gpio2: gpio@660 {
98 compatible = "ralink,rt2880-gpio";
99 reg = <0x660 0x24>;
100
101 gpio-controller;
102 #gpio-cells = <2>;
103
104 ralink,gpio-base = <40>;
105 ralink,num-gpios = <32>;
106 ralink,register-map = [ 00 04 08 0c
107 10 14 18 1c
108 20 24 ];
109
110 status = "disabled";
111 };
112
113 uartlite@c00 {
114 compatible = "ralink,rt2880-uart", "ns16550a";
115 reg = <0xc00 0x100>;
116
117 interrupt-parent = <&intc>;
118 interrupts = <8>;
119
120 reg-shift = <2>;
121 };
122 };
123
124 pinctrl {
125 compatible = "ralink,rt2880-pinmux";
126
127 pinctrl-names = "default";
128 pinctrl-0 = <&state_default>;
129
130 state_default: pinctrl0 {
131 sdram {
132 ralink,group = "sdram";
133 ralink,function = "sdram";
134 };
135 };
136
137 spi_pins: spi {
138 spi {
139 ralink,group = "spi";
140 ralink,function = "spi";
141 };
142 };
143
144 uartlite_pins: uartlite {
145 uart {
146 ralink,group = "uartlite";
147 ralink,function = "uartlite";
148 };
149 };
150 };
151
152 rstctrl: rstctrl {
153 compatible = "ralink,rt2880-reset";
154 #reset-cells = <1>;
155 };
156
157 ethernet@400000 {
158 compatible = "ralink,rt2880-eth";
159 reg = <0x00400000 10000>;
160
161 #address-cells = <1>;
162 #size-cells = <0>;
163
164 resets = <&rstctrl 18>;
165 reset-names = "fe";
166
167 interrupt-parent = <&cpuintc>;
168 interrupts = <5>;
169
170 status = "disabled";
171
172 port@0 {
173 compatible = "ralink,rt2880-port", "mediatek,eth-port";
174 reg = <0>;
175 };
176
177 mdio-bus {
178 #address-cells = <1>;
179 #size-cells = <0>;
180
181 status = "disabled";
182 };
183 };
184
185 wmac@480000 {
186 compatible = "ralink,rt2880-wmac";
187 reg = <0x480000 40000>;
188
189 interrupt-parent = <&cpuintc>;
190 interrupts = <6>;
191
192 ralink,eeprom = "soc_wmac.eeprom";
193 };
194 };