Commit | Line | Data |
---|---|---|
a636cd6c | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
def4d6c0 TP |
2 | /* |
3 | * wm8850.dtsi - Device tree file for Wondermedia WM8850 SoC | |
4 | * | |
5 | * Copyright (C) 2012 Tony Prisk <linux@prisktech.co.nz> | |
def4d6c0 TP |
6 | */ |
7 | ||
def4d6c0 | 8 | / { |
abe60a3a RH |
9 | #address-cells = <1>; |
10 | #size-cells = <1>; | |
def4d6c0 TP |
11 | compatible = "wm,wm8850"; |
12 | ||
7ec13d42 TP |
13 | cpus { |
14 | #address-cells = <1>; | |
15 | #size-cells = <0>; | |
16 | ||
17 | cpu@0 { | |
18 | device_type = "cpu"; | |
19 | compatible = "arm,cortex-a9"; | |
20 | reg = <0x0>; | |
21 | }; | |
22 | }; | |
23 | ||
abe60a3a RH |
24 | memory { |
25 | device_type = "memory"; | |
26 | reg = <0x0 0x0>; | |
27 | }; | |
28 | ||
def4d6c0 TP |
29 | aliases { |
30 | serial0 = &uart0; | |
31 | serial1 = &uart1; | |
32 | serial2 = &uart2; | |
33 | serial3 = &uart3; | |
34 | }; | |
35 | ||
36 | soc { | |
37 | #address-cells = <1>; | |
38 | #size-cells = <1>; | |
39 | compatible = "simple-bus"; | |
40 | ranges; | |
41 | interrupt-parent = <&intc0>; | |
42 | ||
43 | intc0: interrupt-controller@d8140000 { | |
44 | compatible = "via,vt8500-intc"; | |
45 | interrupt-controller; | |
46 | reg = <0xd8140000 0x10000>; | |
47 | #interrupt-cells = <1>; | |
48 | }; | |
49 | ||
50 | /* Secondary IC cascaded to intc0 */ | |
51 | intc1: interrupt-controller@d8150000 { | |
52 | compatible = "via,vt8500-intc"; | |
53 | interrupt-controller; | |
54 | #interrupt-cells = <1>; | |
55 | reg = <0xD8150000 0x10000>; | |
56 | interrupts = <56 57 58 59 60 61 62 63>; | |
57 | }; | |
58 | ||
649a59cf TP |
59 | pinctrl: pinctrl@d8110000 { |
60 | compatible = "wm,wm8850-pinctrl"; | |
def4d6c0 | 61 | reg = <0xd8110000 0x10000>; |
649a59cf TP |
62 | interrupt-controller; |
63 | #interrupt-cells = <2>; | |
64 | gpio-controller; | |
65 | #gpio-cells = <2>; | |
def4d6c0 TP |
66 | }; |
67 | ||
68 | pmc@d8130000 { | |
69 | compatible = "via,vt8500-pmc"; | |
70 | reg = <0xd8130000 0x1000>; | |
71 | ||
72 | clocks { | |
73 | #address-cells = <1>; | |
74 | #size-cells = <0>; | |
75 | ||
76 | ref25: ref25M { | |
77 | #clock-cells = <0>; | |
78 | compatible = "fixed-clock"; | |
79 | clock-frequency = <25000000>; | |
80 | }; | |
81 | ||
82 | ref24: ref24M { | |
83 | #clock-cells = <0>; | |
84 | compatible = "fixed-clock"; | |
85 | clock-frequency = <24000000>; | |
86 | }; | |
87 | ||
88 | plla: plla { | |
89 | #clock-cells = <0>; | |
7d4c6f3c | 90 | compatible = "wm,wm8850-pll-clock"; |
e36572b6 | 91 | clocks = <&ref24>; |
def4d6c0 TP |
92 | reg = <0x200>; |
93 | }; | |
94 | ||
95 | pllb: pllb { | |
96 | #clock-cells = <0>; | |
7d4c6f3c | 97 | compatible = "wm,wm8850-pll-clock"; |
e36572b6 | 98 | clocks = <&ref24>; |
def4d6c0 TP |
99 | reg = <0x204>; |
100 | }; | |
101 | ||
5c2b0a85 TP |
102 | pllc: pllc { |
103 | #clock-cells = <0>; | |
104 | compatible = "wm,wm8850-pll-clock"; | |
e36572b6 | 105 | clocks = <&ref24>; |
5c2b0a85 TP |
106 | reg = <0x208>; |
107 | }; | |
108 | ||
109 | plld: plld { | |
110 | #clock-cells = <0>; | |
111 | compatible = "wm,wm8850-pll-clock"; | |
e36572b6 | 112 | clocks = <&ref24>; |
5c2b0a85 TP |
113 | reg = <0x20c>; |
114 | }; | |
115 | ||
116 | plle: plle { | |
117 | #clock-cells = <0>; | |
118 | compatible = "wm,wm8850-pll-clock"; | |
e36572b6 | 119 | clocks = <&ref24>; |
5c2b0a85 TP |
120 | reg = <0x210>; |
121 | }; | |
122 | ||
123 | pllf: pllf { | |
124 | #clock-cells = <0>; | |
125 | compatible = "wm,wm8850-pll-clock"; | |
e36572b6 | 126 | clocks = <&ref24>; |
5c2b0a85 TP |
127 | reg = <0x214>; |
128 | }; | |
129 | ||
130 | pllg: pllg { | |
131 | #clock-cells = <0>; | |
132 | compatible = "wm,wm8850-pll-clock"; | |
e36572b6 | 133 | clocks = <&ref24>; |
5c2b0a85 TP |
134 | reg = <0x218>; |
135 | }; | |
136 | ||
9e7b6d3e TP |
137 | clkarm: arm { |
138 | #clock-cells = <0>; | |
139 | compatible = "via,vt8500-device-clock"; | |
140 | clocks = <&plla>; | |
141 | divisor-reg = <0x300>; | |
142 | }; | |
143 | ||
144 | clkahb: ahb { | |
145 | #clock-cells = <0>; | |
146 | compatible = "via,vt8500-device-clock"; | |
147 | clocks = <&pllb>; | |
148 | divisor-reg = <0x304>; | |
149 | }; | |
150 | ||
151 | clkapb: apb { | |
152 | #clock-cells = <0>; | |
153 | compatible = "via,vt8500-device-clock"; | |
154 | clocks = <&pllb>; | |
155 | divisor-reg = <0x320>; | |
156 | }; | |
157 | ||
158 | clkddr: ddr { | |
159 | #clock-cells = <0>; | |
160 | compatible = "via,vt8500-device-clock"; | |
161 | clocks = <&plld>; | |
162 | divisor-reg = <0x310>; | |
163 | }; | |
164 | ||
def4d6c0 TP |
165 | clkuart0: uart0 { |
166 | #clock-cells = <0>; | |
167 | compatible = "via,vt8500-device-clock"; | |
168 | clocks = <&ref24>; | |
169 | enable-reg = <0x254>; | |
170 | enable-bit = <24>; | |
171 | }; | |
172 | ||
173 | clkuart1: uart1 { | |
174 | #clock-cells = <0>; | |
175 | compatible = "via,vt8500-device-clock"; | |
176 | clocks = <&ref24>; | |
177 | enable-reg = <0x254>; | |
178 | enable-bit = <25>; | |
179 | }; | |
180 | ||
181 | clkuart2: uart2 { | |
182 | #clock-cells = <0>; | |
183 | compatible = "via,vt8500-device-clock"; | |
184 | clocks = <&ref24>; | |
185 | enable-reg = <0x254>; | |
186 | enable-bit = <26>; | |
187 | }; | |
188 | ||
189 | clkuart3: uart3 { | |
190 | #clock-cells = <0>; | |
191 | compatible = "via,vt8500-device-clock"; | |
192 | clocks = <&ref24>; | |
193 | enable-reg = <0x254>; | |
194 | enable-bit = <27>; | |
195 | }; | |
196 | ||
197 | clkpwm: pwm { | |
198 | #clock-cells = <0>; | |
199 | compatible = "via,vt8500-device-clock"; | |
200 | clocks = <&pllb>; | |
201 | divisor-reg = <0x350>; | |
202 | enable-reg = <0x250>; | |
203 | enable-bit = <17>; | |
204 | }; | |
205 | ||
206 | clksdhc: sdhc { | |
207 | #clock-cells = <0>; | |
208 | compatible = "via,vt8500-device-clock"; | |
209 | clocks = <&pllb>; | |
210 | divisor-reg = <0x330>; | |
211 | divisor-mask = <0x3f>; | |
212 | enable-reg = <0x250>; | |
213 | enable-bit = <0>; | |
214 | }; | |
215 | }; | |
216 | }; | |
217 | ||
7ab0a484 | 218 | fb: fb@d8051700 { |
def4d6c0 TP |
219 | compatible = "wm,wm8505-fb"; |
220 | reg = <0xd8051700 0x200>; | |
def4d6c0 TP |
221 | }; |
222 | ||
223 | ge_rops@d8050400 { | |
224 | compatible = "wm,prizm-ge-rops"; | |
225 | reg = <0xd8050400 0x100>; | |
226 | }; | |
227 | ||
228 | pwm: pwm@d8220000 { | |
229 | #pwm-cells = <3>; | |
230 | compatible = "via,vt8500-pwm"; | |
231 | reg = <0xd8220000 0x100>; | |
232 | clocks = <&clkpwm>; | |
233 | }; | |
234 | ||
235 | timer@d8130100 { | |
236 | compatible = "via,vt8500-timer"; | |
237 | reg = <0xd8130100 0x28>; | |
238 | interrupts = <36>; | |
239 | }; | |
240 | ||
241 | ehci@d8007900 { | |
242 | compatible = "via,vt8500-ehci"; | |
243 | reg = <0xd8007900 0x200>; | |
244 | interrupts = <26>; | |
245 | }; | |
246 | ||
247 | uhci@d8007b00 { | |
248 | compatible = "platform-uhci"; | |
249 | reg = <0xd8007b00 0x200>; | |
250 | interrupts = <26>; | |
251 | }; | |
252 | ||
253 | uhci@d8008d00 { | |
254 | compatible = "platform-uhci"; | |
255 | reg = <0xd8008d00 0x200>; | |
256 | interrupts = <26>; | |
257 | }; | |
258 | ||
55954f85 | 259 | uart0: serial@d8200000 { |
def4d6c0 TP |
260 | compatible = "via,vt8500-uart"; |
261 | reg = <0xd8200000 0x1040>; | |
262 | interrupts = <32>; | |
263 | clocks = <&clkuart0>; | |
55954f85 | 264 | status = "disabled"; |
def4d6c0 TP |
265 | }; |
266 | ||
55954f85 | 267 | uart1: serial@d82b0000 { |
def4d6c0 TP |
268 | compatible = "via,vt8500-uart"; |
269 | reg = <0xd82b0000 0x1040>; | |
270 | interrupts = <33>; | |
271 | clocks = <&clkuart1>; | |
55954f85 | 272 | status = "disabled"; |
def4d6c0 TP |
273 | }; |
274 | ||
55954f85 | 275 | uart2: serial@d8210000 { |
def4d6c0 TP |
276 | compatible = "via,vt8500-uart"; |
277 | reg = <0xd8210000 0x1040>; | |
278 | interrupts = <47>; | |
279 | clocks = <&clkuart2>; | |
55954f85 | 280 | status = "disabled"; |
def4d6c0 TP |
281 | }; |
282 | ||
55954f85 | 283 | uart3: serial@d82c0000 { |
def4d6c0 TP |
284 | compatible = "via,vt8500-uart"; |
285 | reg = <0xd82c0000 0x1040>; | |
286 | interrupts = <50>; | |
287 | clocks = <&clkuart3>; | |
55954f85 | 288 | status = "disabled"; |
def4d6c0 TP |
289 | }; |
290 | ||
291 | rtc@d8100000 { | |
292 | compatible = "via,vt8500-rtc"; | |
293 | reg = <0xd8100000 0x10000>; | |
294 | interrupts = <48>; | |
295 | }; | |
296 | ||
297 | sdhc@d800a000 { | |
298 | compatible = "wm,wm8505-sdhc"; | |
299 | reg = <0xd800a000 0x1000>; | |
300 | interrupts = <20 21>; | |
301 | clocks = <&clksdhc>; | |
302 | bus-width = <4>; | |
303 | sdon-inverted; | |
304 | }; | |
2d283862 AC |
305 | |
306 | ethernet@d8004000 { | |
307 | compatible = "via,vt8500-rhine"; | |
308 | reg = <0xd8004000 0x100>; | |
309 | interrupts = <10>; | |
310 | }; | |
def4d6c0 TP |
311 | }; |
312 | }; |