blob: a1a854b8a4547c1d47d8707c262335f7cdf66acd [file] [log] [blame]
Tony Priskcb935e72012-08-03 20:54:16 +12001/*
2 * wm8505.dtsi - Device tree file for Wondermedia WM8505 SoC
3 *
4 * Copyright (C) 2012 Tony Prisk <linux@prisktech.co.nz>
5 *
6 * Licensed under GPLv2 or later
7 */
8
9/include/ "skeleton.dtsi"
10
11/ {
12 compatible = "wm,wm8505";
13
14 cpus {
Tony Prisk7ec13d42013-04-23 10:33:44 +120015 #address-cells = <0>;
16 #size-cells = <0>;
17
18 cpu {
19 device_type = "cpu";
20 compatible = "arm,arm926ej-s";
Tony Priskcb935e72012-08-03 20:54:16 +120021 };
22 };
23
Tony Prisk55954f82013-04-23 14:23:26 +120024 aliases {
25 serial0 = &uart0;
26 serial1 = &uart1;
27 serial2 = &uart2;
28 serial3 = &uart3;
29 serial4 = &uart4;
30 serial5 = &uart5;
31 };
32
Tony Priskcb935e72012-08-03 20:54:16 +120033 soc {
34 #address-cells = <1>;
35 #size-cells = <1>;
36 compatible = "simple-bus";
37 ranges;
38 interrupt-parent = <&intc0>;
39
40 intc0: interrupt-controller@d8140000 {
41 compatible = "via,vt8500-intc";
42 interrupt-controller;
43 reg = <0xd8140000 0x10000>;
44 #interrupt-cells = <1>;
45 };
46
47 /* Secondary IC cascaded to intc0 */
48 intc1: interrupt-controller@d8150000 {
49 compatible = "via,vt8500-intc";
50 interrupt-controller;
51 #interrupt-cells = <1>;
52 reg = <0xD8150000 0x10000>;
53 interrupts = <56 57 58 59 60 61 62 63>;
54 };
55
Tony Prisk649a59c2013-02-20 09:52:23 +130056 pinctrl: pinctrl@d8110000 {
57 compatible = "wm,wm8505-pinctrl";
Tony Priskcb935e72012-08-03 20:54:16 +120058 reg = <0xd8110000 0x10000>;
Tony Prisk649a59c2013-02-20 09:52:23 +130059 interrupt-controller;
60 #interrupt-cells = <2>;
61 gpio-controller;
62 #gpio-cells = <2>;
Tony Priskcb935e72012-08-03 20:54:16 +120063 };
64
65 pmc@d8130000 {
66 compatible = "via,vt8500-pmc";
67 reg = <0xd8130000 0x1000>;
68 clocks {
69 #address-cells = <1>;
70 #size-cells = <0>;
71
72 ref24: ref24M {
73 #clock-cells = <0>;
74 compatible = "fixed-clock";
75 clock-frequency = <24000000>;
76 };
Tony Prisk12faa352013-01-18 15:05:31 +130077
Tony Prisk3e875152013-04-12 07:00:29 +120078 ref25: ref25M {
79 #clock-cells = <0>;
80 compatible = "fixed-clock";
81 clock-frequency = <25000000>;
82 };
83
Tony Prisk5c2b0a82013-05-10 17:35:11 +120084 plla: plla {
85 #clock-cells = <0>;
86 compatible = "via,vt8500-pll-clock";
87 clocks = <&ref25>;
88 reg = <0x200>;
89 };
90
Tony Prisk3e875152013-04-12 07:00:29 +120091 pllb: pllb {
92 #clock-cells = <0>;
93 compatible = "via,vt8500-pll-clock";
94 clocks = <&ref25>;
95 reg = <0x204>;
96 };
97
Tony Prisk5c2b0a82013-05-10 17:35:11 +120098 pllc: pllc {
99 #clock-cells = <0>;
100 compatible = "via,vt8500-pll-clock";
101 clocks = <&ref25>;
102 reg = <0x208>;
103 };
104
105 plld: plld {
106 #clock-cells = <0>;
107 compatible = "via,vt8500-pll-clock";
108 clocks = <&ref25>;
109 reg = <0x20c>;
110 };
111
Tony Prisk9e7b6d32013-05-10 17:44:58 +1200112 clkarm: arm {
113 #clock-cells = <0>;
114 compatible = "via,vt8500-device-clock";
115 clocks = <&plla>;
116 divisor-reg = <0x300>;
117 };
118
119 clkahb: ahb {
120 #clock-cells = <0>;
121 compatible = "via,vt8500-device-clock";
122 clocks = <&pllb>;
123 divisor-reg = <0x304>;
124 };
125
126 clkapb: apb {
127 #clock-cells = <0>;
128 compatible = "via,vt8500-device-clock";
129 clocks = <&pllb>;
130 divisor-reg = <0x350>;
131 };
132
133 clkddr: ddr {
134 #clock-cells = <0>;
135 compatible = "via,vt8500-device-clock";
136 clocks = <&plld>;
137 divisor-reg = <0x310>;
138 };
139
Tony Prisk12faa352013-01-18 15:05:31 +1300140 clkuart0: uart0 {
141 #clock-cells = <0>;
142 compatible = "via,vt8500-device-clock";
143 clocks = <&ref24>;
144 enable-reg = <0x250>;
145 enable-bit = <1>;
146 };
147
148 clkuart1: uart1 {
149 #clock-cells = <0>;
150 compatible = "via,vt8500-device-clock";
151 clocks = <&ref24>;
152 enable-reg = <0x250>;
153 enable-bit = <2>;
154 };
155
156 clkuart2: uart2 {
157 #clock-cells = <0>;
158 compatible = "via,vt8500-device-clock";
159 clocks = <&ref24>;
160 enable-reg = <0x250>;
161 enable-bit = <3>;
162 };
163
164 clkuart3: uart3 {
165 #clock-cells = <0>;
166 compatible = "via,vt8500-device-clock";
167 clocks = <&ref24>;
168 enable-reg = <0x250>;
169 enable-bit = <4>;
170 };
171
172 clkuart4: uart4 {
173 #clock-cells = <0>;
174 compatible = "via,vt8500-device-clock";
175 clocks = <&ref24>;
176 enable-reg = <0x250>;
177 enable-bit = <22>;
178 };
179
180 clkuart5: uart5 {
181 #clock-cells = <0>;
182 compatible = "via,vt8500-device-clock";
183 clocks = <&ref24>;
184 enable-reg = <0x250>;
185 enable-bit = <23>;
186 };
Tony Prisk3e875152013-04-12 07:00:29 +1200187
188 clksdhc: sdhc {
189 #clock-cells = <0>;
190 compatible = "via,vt8500-device-clock";
191 clocks = <&pllb>;
192 divisor-reg = <0x328>;
193 divisor-mask = <0x3f>;
194 enable-reg = <0x254>;
195 enable-bit = <18>;
196 };
Tony Priskcb935e72012-08-03 20:54:16 +1200197 };
198 };
199
200 timer@d8130100 {
201 compatible = "via,vt8500-timer";
202 reg = <0xd8130100 0x28>;
203 interrupts = <36>;
204 };
205
206 ehci@d8007100 {
207 compatible = "via,vt8500-ehci";
208 reg = <0xd8007100 0x200>;
Tony Prisk5448a272012-10-13 17:18:02 +1300209 interrupts = <1>;
Tony Priskcb935e72012-08-03 20:54:16 +1200210 };
211
212 uhci@d8007300 {
213 compatible = "platform-uhci";
214 reg = <0xd8007300 0x200>;
Tony Prisk5448a272012-10-13 17:18:02 +1300215 interrupts = <0>;
Tony Priskcb935e72012-08-03 20:54:16 +1200216 };
217
Tony Prisk7ab0a482013-04-03 07:20:38 +1300218 fb: fb@d8050800 {
Tony Priskcb935e72012-08-03 20:54:16 +1200219 compatible = "wm,wm8505-fb";
220 reg = <0xd8050800 0x200>;
Tony Priskcb935e72012-08-03 20:54:16 +1200221 };
222
223 ge_rops@d8050400 {
224 compatible = "wm,prizm-ge-rops";
225 reg = <0xd8050400 0x100>;
226 };
227
Tony Prisk55954f82013-04-23 14:23:26 +1200228 uart0: serial@d8200000 {
Tony Priskcb935e72012-08-03 20:54:16 +1200229 compatible = "via,vt8500-uart";
230 reg = <0xd8200000 0x1040>;
231 interrupts = <32>;
Tony Prisk12faa352013-01-18 15:05:31 +1300232 clocks = <&clkuart0>;
Tony Prisk55954f82013-04-23 14:23:26 +1200233 status = "disabled";
Tony Priskcb935e72012-08-03 20:54:16 +1200234 };
235
Tony Prisk55954f82013-04-23 14:23:26 +1200236 uart1: serial@d82b0000 {
Tony Priskcb935e72012-08-03 20:54:16 +1200237 compatible = "via,vt8500-uart";
238 reg = <0xd82b0000 0x1040>;
239 interrupts = <33>;
Tony Prisk12faa352013-01-18 15:05:31 +1300240 clocks = <&clkuart1>;
Tony Prisk55954f82013-04-23 14:23:26 +1200241 status = "disabled";
Tony Priskcb935e72012-08-03 20:54:16 +1200242 };
243
Tony Prisk55954f82013-04-23 14:23:26 +1200244 uart2: serial@d8210000 {
Tony Priskcb935e72012-08-03 20:54:16 +1200245 compatible = "via,vt8500-uart";
246 reg = <0xd8210000 0x1040>;
247 interrupts = <47>;
Tony Prisk12faa352013-01-18 15:05:31 +1300248 clocks = <&clkuart2>;
Tony Prisk55954f82013-04-23 14:23:26 +1200249 status = "disabled";
Tony Priskcb935e72012-08-03 20:54:16 +1200250 };
251
Tony Prisk55954f82013-04-23 14:23:26 +1200252 uart3: serial@d82c0000 {
Tony Priskcb935e72012-08-03 20:54:16 +1200253 compatible = "via,vt8500-uart";
254 reg = <0xd82c0000 0x1040>;
255 interrupts = <50>;
Tony Prisk12faa352013-01-18 15:05:31 +1300256 clocks = <&clkuart3>;
Tony Prisk55954f82013-04-23 14:23:26 +1200257 status = "disabled";
Tony Priskcb935e72012-08-03 20:54:16 +1200258 };
259
Tony Prisk55954f82013-04-23 14:23:26 +1200260 uart4: serial@d8370000 {
Tony Priskcb935e72012-08-03 20:54:16 +1200261 compatible = "via,vt8500-uart";
262 reg = <0xd8370000 0x1040>;
263 interrupts = <31>;
Tony Prisk12faa352013-01-18 15:05:31 +1300264 clocks = <&clkuart4>;
Tony Prisk55954f82013-04-23 14:23:26 +1200265 status = "disabled";
Tony Priskcb935e72012-08-03 20:54:16 +1200266 };
267
Tony Prisk55954f82013-04-23 14:23:26 +1200268 uart5: serial@d8380000 {
Tony Priskcb935e72012-08-03 20:54:16 +1200269 compatible = "via,vt8500-uart";
270 reg = <0xd8380000 0x1040>;
271 interrupts = <30>;
Tony Prisk12faa352013-01-18 15:05:31 +1300272 clocks = <&clkuart5>;
Tony Prisk55954f82013-04-23 14:23:26 +1200273 status = "disabled";
Tony Priskcb935e72012-08-03 20:54:16 +1200274 };
275
276 rtc@d8100000 {
277 compatible = "via,vt8500-rtc";
278 reg = <0xd8100000 0x10000>;
279 interrupts = <48>;
280 };
Tony Prisk3e875152013-04-12 07:00:29 +1200281
282 sdhc@d800a000 {
283 compatible = "wm,wm8505-sdhc";
284 reg = <0xd800a000 0x1000>;
285 interrupts = <20 21>;
286 clocks = <&clksdhc>;
287 bus-width = <4>;
288 };
Tony Priskcb935e72012-08-03 20:54:16 +1200289 };
290};