.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2012 Marvell Technology Group Ltd. |
---|
3 | 4 | * Author: Haojian Zhuang <haojian.zhuang@marvell.com> |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify |
---|
6 | | - * it under the terms of the GNU General Public License version 2 as |
---|
7 | | - * publishhed by the Free Software Foundation. |
---|
8 | 5 | */ |
---|
9 | 6 | |
---|
10 | | -#include "skeleton.dtsi" |
---|
11 | 7 | #include <dt-bindings/clock/marvell,mmp2.h> |
---|
| 8 | +#include <dt-bindings/power/marvell,mmp2.h> |
---|
12 | 9 | |
---|
13 | 10 | / { |
---|
| 11 | + #address-cells = <1>; |
---|
| 12 | + #size-cells = <1>; |
---|
| 13 | + |
---|
14 | 14 | aliases { |
---|
15 | 15 | serial0 = &uart1; |
---|
16 | 16 | serial1 = &uart2; |
---|
.. | .. |
---|
38 | 38 | #size-cells = <1>; |
---|
39 | 39 | reg = <0xd4200000 0x00200000>; |
---|
40 | 40 | ranges; |
---|
| 41 | + |
---|
| 42 | + gpu: gpu@d420d000 { |
---|
| 43 | + compatible = "vivante,gc"; |
---|
| 44 | + reg = <0xd420d000 0x4000>; |
---|
| 45 | + interrupts = <8>; |
---|
| 46 | + status = "disabled"; |
---|
| 47 | + clocks = <&soc_clocks MMP2_CLK_GPU_3D>, |
---|
| 48 | + <&soc_clocks MMP2_CLK_GPU_BUS>; |
---|
| 49 | + clock-names = "core", "bus"; |
---|
| 50 | + power-domains = <&soc_clocks MMP2_POWER_DOMAIN_GPU>; |
---|
| 51 | + }; |
---|
41 | 52 | |
---|
42 | 53 | intc: interrupt-controller@d4282000 { |
---|
43 | 54 | compatible = "mrvl,mmp2-intc"; |
---|
.. | .. |
---|
117 | 128 | reg-names = "mux status", "mux mask"; |
---|
118 | 129 | mrvl,intc-nr-irqs = <2>; |
---|
119 | 130 | }; |
---|
| 131 | + |
---|
| 132 | + usb_phy0: usb-phy@d4207000 { |
---|
| 133 | + compatible = "marvell,mmp2-usb-phy"; |
---|
| 134 | + reg = <0xd4207000 0x40>; |
---|
| 135 | + #phy-cells = <0>; |
---|
| 136 | + status = "disabled"; |
---|
| 137 | + }; |
---|
| 138 | + |
---|
| 139 | + usb_otg0: usb-otg@d4208000 { |
---|
| 140 | + compatible = "marvell,pxau2o-ehci"; |
---|
| 141 | + reg = <0xd4208000 0x200>; |
---|
| 142 | + interrupts = <44>; |
---|
| 143 | + clocks = <&soc_clocks MMP2_CLK_USB>; |
---|
| 144 | + clock-names = "USBCLK"; |
---|
| 145 | + phys = <&usb_phy0>; |
---|
| 146 | + phy-names = "usb"; |
---|
| 147 | + status = "disabled"; |
---|
| 148 | + }; |
---|
| 149 | + |
---|
| 150 | + mmc1: mmc@d4280000 { |
---|
| 151 | + compatible = "mrvl,pxav3-mmc"; |
---|
| 152 | + reg = <0xd4280000 0x120>; |
---|
| 153 | + clocks = <&soc_clocks MMP2_CLK_SDH0>; |
---|
| 154 | + clock-names = "io"; |
---|
| 155 | + interrupts = <39>; |
---|
| 156 | + status = "disabled"; |
---|
| 157 | + }; |
---|
| 158 | + |
---|
| 159 | + mmc2: mmc@d4280800 { |
---|
| 160 | + compatible = "mrvl,pxav3-mmc"; |
---|
| 161 | + reg = <0xd4280800 0x120>; |
---|
| 162 | + clocks = <&soc_clocks MMP2_CLK_SDH1>; |
---|
| 163 | + clock-names = "io"; |
---|
| 164 | + interrupts = <52>; |
---|
| 165 | + status = "disabled"; |
---|
| 166 | + }; |
---|
| 167 | + |
---|
| 168 | + mmc3: mmc@d4281000 { |
---|
| 169 | + compatible = "mrvl,pxav3-mmc"; |
---|
| 170 | + reg = <0xd4281000 0x120>; |
---|
| 171 | + clocks = <&soc_clocks MMP2_CLK_SDH2>; |
---|
| 172 | + clock-names = "io"; |
---|
| 173 | + interrupts = <53>; |
---|
| 174 | + status = "disabled"; |
---|
| 175 | + }; |
---|
| 176 | + |
---|
| 177 | + mmc4: mmc@d4281800 { |
---|
| 178 | + compatible = "mrvl,pxav3-mmc"; |
---|
| 179 | + reg = <0xd4281800 0x120>; |
---|
| 180 | + clocks = <&soc_clocks MMP2_CLK_SDH3>; |
---|
| 181 | + clock-names = "io"; |
---|
| 182 | + interrupts = <54>; |
---|
| 183 | + status = "disabled"; |
---|
| 184 | + }; |
---|
| 185 | + |
---|
| 186 | + camera0: camera@d420a000 { |
---|
| 187 | + compatible = "marvell,mmp2-ccic"; |
---|
| 188 | + reg = <0xd420a000 0x800>; |
---|
| 189 | + interrupts = <42>; |
---|
| 190 | + clocks = <&soc_clocks MMP2_CLK_CCIC0>; |
---|
| 191 | + clock-names = "axi"; |
---|
| 192 | + #clock-cells = <0>; |
---|
| 193 | + clock-output-names = "mclk"; |
---|
| 194 | + status = "disabled"; |
---|
| 195 | + }; |
---|
| 196 | + |
---|
| 197 | + camera1: camera@d420a800 { |
---|
| 198 | + compatible = "marvell,mmp2-ccic"; |
---|
| 199 | + reg = <0xd420a800 0x800>; |
---|
| 200 | + interrupts = <30>; |
---|
| 201 | + clocks = <&soc_clocks MMP2_CLK_CCIC1>; |
---|
| 202 | + clock-names = "axi"; |
---|
| 203 | + #clock-cells = <0>; |
---|
| 204 | + clock-output-names = "mclk"; |
---|
| 205 | + status = "disabled"; |
---|
| 206 | + }; |
---|
| 207 | + |
---|
| 208 | + adma0: dma-controller@d42a0800 { |
---|
| 209 | + compatible = "marvell,adma-1.0"; |
---|
| 210 | + reg = <0xd42a0800 0x100>; |
---|
| 211 | + interrupts = <48>; |
---|
| 212 | + #dma-cells = <1>; |
---|
| 213 | + asram = <&asram>; |
---|
| 214 | + iram = <&asram>; |
---|
| 215 | + status = "disabled"; |
---|
| 216 | + }; |
---|
| 217 | + |
---|
| 218 | + adma1: dma-controller@d42a0900 { |
---|
| 219 | + compatible = "marvell,adma-1.0"; |
---|
| 220 | + reg = <0xd42a0900 0x100>; |
---|
| 221 | + interrupts = <48>; |
---|
| 222 | + #dma-cells = <1>; |
---|
| 223 | + status = "disabled"; |
---|
| 224 | + }; |
---|
| 225 | + |
---|
| 226 | + audio_clk: clocks@d42a0c30 { |
---|
| 227 | + compatible = "marvell,mmp2-audio-clock"; |
---|
| 228 | + reg = <0xd42a0c30 0x10>; |
---|
| 229 | + clock-names = "audio", "vctcxo", "i2s0", "i2s1"; |
---|
| 230 | + clocks = <&soc_clocks MMP2_CLK_AUDIO>, |
---|
| 231 | + <&soc_clocks MMP2_CLK_VCTCXO>, |
---|
| 232 | + <&soc_clocks MMP2_CLK_I2S0>, |
---|
| 233 | + <&soc_clocks MMP2_CLK_I2S1>; |
---|
| 234 | + power-domains = <&soc_clocks MMP2_POWER_DOMAIN_AUDIO>; |
---|
| 235 | + #clock-cells = <1>; |
---|
| 236 | + status = "disabled"; |
---|
| 237 | + }; |
---|
| 238 | + |
---|
| 239 | + sspa0: audio-controller@d42a0c00 { |
---|
| 240 | + compatible = "marvell,mmp-sspa"; |
---|
| 241 | + reg = <0xd42a0c00 0x30>, |
---|
| 242 | + <0xd42a0c80 0x30>; |
---|
| 243 | + interrupts = <2>; |
---|
| 244 | + clock-names = "audio", "bitclk"; |
---|
| 245 | + clocks = <&soc_clocks MMP2_CLK_AUDIO>, |
---|
| 246 | + <&audio_clk 1>; |
---|
| 247 | + power-domains = <&soc_clocks MMP2_POWER_DOMAIN_AUDIO>; |
---|
| 248 | + #sound-dai-cells = <0>; |
---|
| 249 | + status = "disabled"; |
---|
| 250 | + }; |
---|
| 251 | + |
---|
| 252 | + sspa1: audio-controller@d42a0d00 { |
---|
| 253 | + compatible = "marvell,mmp-sspa"; |
---|
| 254 | + reg = <0xd42a0d00 0x30>, |
---|
| 255 | + <0xd42a0d80 0x30>; |
---|
| 256 | + interrupts = <3>; |
---|
| 257 | + clock-names = "audio", "bitclk"; |
---|
| 258 | + clocks = <&soc_clocks MMP2_CLK_AUDIO>, |
---|
| 259 | + <&audio_clk 2>; |
---|
| 260 | + power-domains = <&soc_clocks MMP2_POWER_DOMAIN_AUDIO>; |
---|
| 261 | + #sound-dai-cells = <0>; |
---|
| 262 | + status = "disabled"; |
---|
| 263 | + }; |
---|
120 | 264 | }; |
---|
121 | 265 | |
---|
122 | 266 | apb@d4000000 { /* APB */ |
---|
.. | .. |
---|
126 | 270 | reg = <0xd4000000 0x00200000>; |
---|
127 | 271 | ranges; |
---|
128 | 272 | |
---|
| 273 | + dma-controller@d4000000 { |
---|
| 274 | + compatible = "marvell,pdma-1.0"; |
---|
| 275 | + reg = <0xd4000000 0x10000>; |
---|
| 276 | + interrupts = <48>; |
---|
| 277 | + #dma-channels = <16>; |
---|
| 278 | + status = "disabled"; |
---|
| 279 | + }; |
---|
| 280 | + |
---|
129 | 281 | timer0: timer@d4014000 { |
---|
130 | 282 | compatible = "mrvl,mmp-timer"; |
---|
131 | 283 | reg = <0xd4014000 0x100>; |
---|
132 | 284 | interrupts = <13>; |
---|
| 285 | + clocks = <&soc_clocks MMP2_CLK_TIMER>; |
---|
133 | 286 | }; |
---|
134 | 287 | |
---|
135 | | - uart1: uart@d4030000 { |
---|
136 | | - compatible = "mrvl,mmp-uart"; |
---|
| 288 | + uart1: serial@d4030000 { |
---|
| 289 | + compatible = "mrvl,mmp-uart", "intel,xscale-uart"; |
---|
137 | 290 | reg = <0xd4030000 0x1000>; |
---|
138 | 291 | interrupts = <27>; |
---|
139 | 292 | clocks = <&soc_clocks MMP2_CLK_UART0>; |
---|
140 | 293 | resets = <&soc_clocks MMP2_CLK_UART0>; |
---|
| 294 | + reg-shift = <2>; |
---|
141 | 295 | status = "disabled"; |
---|
142 | 296 | }; |
---|
143 | 297 | |
---|
144 | | - uart2: uart@d4017000 { |
---|
145 | | - compatible = "mrvl,mmp-uart"; |
---|
| 298 | + uart2: serial@d4017000 { |
---|
| 299 | + compatible = "mrvl,mmp-uart", "intel,xscale-uart"; |
---|
146 | 300 | reg = <0xd4017000 0x1000>; |
---|
147 | 301 | interrupts = <28>; |
---|
148 | 302 | clocks = <&soc_clocks MMP2_CLK_UART1>; |
---|
149 | 303 | resets = <&soc_clocks MMP2_CLK_UART1>; |
---|
| 304 | + reg-shift = <2>; |
---|
150 | 305 | status = "disabled"; |
---|
151 | 306 | }; |
---|
152 | 307 | |
---|
153 | | - uart3: uart@d4018000 { |
---|
154 | | - compatible = "mrvl,mmp-uart"; |
---|
| 308 | + uart3: serial@d4018000 { |
---|
| 309 | + compatible = "mrvl,mmp-uart", "intel,xscale-uart"; |
---|
155 | 310 | reg = <0xd4018000 0x1000>; |
---|
156 | 311 | interrupts = <24>; |
---|
157 | 312 | clocks = <&soc_clocks MMP2_CLK_UART2>; |
---|
158 | 313 | resets = <&soc_clocks MMP2_CLK_UART2>; |
---|
| 314 | + reg-shift = <2>; |
---|
159 | 315 | status = "disabled"; |
---|
160 | 316 | }; |
---|
161 | 317 | |
---|
162 | | - uart4: uart@d4016000 { |
---|
163 | | - compatible = "mrvl,mmp-uart"; |
---|
| 318 | + uart4: serial@d4016000 { |
---|
| 319 | + compatible = "mrvl,mmp-uart", "intel,xscale-uart"; |
---|
164 | 320 | reg = <0xd4016000 0x1000>; |
---|
165 | 321 | interrupts = <46>; |
---|
166 | 322 | clocks = <&soc_clocks MMP2_CLK_UART3>; |
---|
167 | 323 | resets = <&soc_clocks MMP2_CLK_UART3>; |
---|
| 324 | + reg-shift = <2>; |
---|
168 | 325 | status = "disabled"; |
---|
169 | 326 | }; |
---|
170 | 327 | |
---|
171 | | - gpio@d4019000 { |
---|
| 328 | + gpio: gpio@d4019000 { |
---|
172 | 329 | compatible = "marvell,mmp2-gpio"; |
---|
173 | 330 | #address-cells = <1>; |
---|
174 | 331 | #size-cells = <1>; |
---|
.. | .. |
---|
232 | 389 | status = "disabled"; |
---|
233 | 390 | }; |
---|
234 | 391 | |
---|
| 392 | + twsi3: i2c@d4032000 { |
---|
| 393 | + compatible = "mrvl,mmp-twsi"; |
---|
| 394 | + reg = <0xd4032000 0x1000>; |
---|
| 395 | + interrupt-parent = <&intcmux17>; |
---|
| 396 | + interrupts = <1>; |
---|
| 397 | + clocks = <&soc_clocks MMP2_CLK_TWSI2>; |
---|
| 398 | + resets = <&soc_clocks MMP2_CLK_TWSI2>; |
---|
| 399 | + #address-cells = <1>; |
---|
| 400 | + #size-cells = <0>; |
---|
| 401 | + status = "disabled"; |
---|
| 402 | + }; |
---|
| 403 | + |
---|
| 404 | + twsi4: i2c@d4033000 { |
---|
| 405 | + compatible = "mrvl,mmp-twsi"; |
---|
| 406 | + reg = <0xd4033000 0x1000>; |
---|
| 407 | + interrupt-parent = <&intcmux17>; |
---|
| 408 | + interrupts = <2>; |
---|
| 409 | + clocks = <&soc_clocks MMP2_CLK_TWSI3>; |
---|
| 410 | + resets = <&soc_clocks MMP2_CLK_TWSI3>; |
---|
| 411 | + #address-cells = <1>; |
---|
| 412 | + #size-cells = <0>; |
---|
| 413 | + status = "disabled"; |
---|
| 414 | + }; |
---|
| 415 | + |
---|
| 416 | + |
---|
| 417 | + twsi5: i2c@d4033800 { |
---|
| 418 | + compatible = "mrvl,mmp-twsi"; |
---|
| 419 | + reg = <0xd4033800 0x1000>; |
---|
| 420 | + interrupt-parent = <&intcmux17>; |
---|
| 421 | + interrupts = <3>; |
---|
| 422 | + clocks = <&soc_clocks MMP2_CLK_TWSI4>; |
---|
| 423 | + resets = <&soc_clocks MMP2_CLK_TWSI4>; |
---|
| 424 | + #address-cells = <1>; |
---|
| 425 | + #size-cells = <0>; |
---|
| 426 | + status = "disabled"; |
---|
| 427 | + }; |
---|
| 428 | + |
---|
| 429 | + twsi6: i2c@d4034000 { |
---|
| 430 | + compatible = "mrvl,mmp-twsi"; |
---|
| 431 | + reg = <0xd4034000 0x1000>; |
---|
| 432 | + interrupt-parent = <&intcmux17>; |
---|
| 433 | + interrupts = <4>; |
---|
| 434 | + clocks = <&soc_clocks MMP2_CLK_TWSI5>; |
---|
| 435 | + resets = <&soc_clocks MMP2_CLK_TWSI5>; |
---|
| 436 | + #address-cells = <1>; |
---|
| 437 | + #size-cells = <0>; |
---|
| 438 | + status = "disabled"; |
---|
| 439 | + }; |
---|
| 440 | + |
---|
235 | 441 | rtc: rtc@d4010000 { |
---|
236 | 442 | compatible = "mrvl,mmp-rtc"; |
---|
237 | 443 | reg = <0xd4010000 0x1000>; |
---|
238 | | - interrupts = <1 0>; |
---|
| 444 | + interrupts = <1>, <0>; |
---|
239 | 445 | interrupt-names = "rtc 1Hz", "rtc alarm"; |
---|
240 | 446 | interrupt-parent = <&intcmux5>; |
---|
241 | 447 | clocks = <&soc_clocks MMP2_CLK_RTC>; |
---|
242 | 448 | resets = <&soc_clocks MMP2_CLK_RTC>; |
---|
243 | 449 | status = "disabled"; |
---|
244 | 450 | }; |
---|
| 451 | + |
---|
| 452 | + ssp1: spi@d4035000 { |
---|
| 453 | + compatible = "marvell,mmp2-ssp"; |
---|
| 454 | + reg = <0xd4035000 0x1000>; |
---|
| 455 | + clocks = <&soc_clocks MMP2_CLK_SSP0>; |
---|
| 456 | + interrupts = <0>; |
---|
| 457 | + #address-cells = <1>; |
---|
| 458 | + #size-cells = <0>; |
---|
| 459 | + status = "disabled"; |
---|
| 460 | + }; |
---|
| 461 | + |
---|
| 462 | + ssp2: spi@d4036000 { |
---|
| 463 | + compatible = "marvell,mmp2-ssp"; |
---|
| 464 | + reg = <0xd4036000 0x1000>; |
---|
| 465 | + clocks = <&soc_clocks MMP2_CLK_SSP1>; |
---|
| 466 | + interrupts = <1>; |
---|
| 467 | + #address-cells = <1>; |
---|
| 468 | + #size-cells = <0>; |
---|
| 469 | + status = "disabled"; |
---|
| 470 | + }; |
---|
| 471 | + |
---|
| 472 | + ssp3: spi@d4037000 { |
---|
| 473 | + compatible = "marvell,mmp2-ssp"; |
---|
| 474 | + reg = <0xd4037000 0x1000>; |
---|
| 475 | + clocks = <&soc_clocks MMP2_CLK_SSP2>; |
---|
| 476 | + interrupts = <20>; |
---|
| 477 | + #address-cells = <1>; |
---|
| 478 | + #size-cells = <0>; |
---|
| 479 | + status = "disabled"; |
---|
| 480 | + }; |
---|
| 481 | + |
---|
| 482 | + ssp4: spi@d4039000 { |
---|
| 483 | + compatible = "marvell,mmp2-ssp"; |
---|
| 484 | + reg = <0xd4039000 0x1000>; |
---|
| 485 | + clocks = <&soc_clocks MMP2_CLK_SSP3>; |
---|
| 486 | + interrupts = <21>; |
---|
| 487 | + #address-cells = <1>; |
---|
| 488 | + #size-cells = <0>; |
---|
| 489 | + status = "disabled"; |
---|
| 490 | + }; |
---|
245 | 491 | }; |
---|
246 | 492 | |
---|
247 | | - soc_clocks: clocks{ |
---|
| 493 | + asram: sram@e0000000 { |
---|
| 494 | + compatible = "mmio-sram"; |
---|
| 495 | + reg = <0xe0000000 0x10000>; |
---|
| 496 | + ranges = <0 0xe0000000 0x10000>; |
---|
| 497 | + #address-cells = <1>; |
---|
| 498 | + #size-cells = <1>; |
---|
| 499 | + status = "disabled"; |
---|
| 500 | + }; |
---|
| 501 | + |
---|
| 502 | + soc_clocks: clocks { |
---|
248 | 503 | compatible = "marvell,mmp2-clock"; |
---|
249 | | - reg = <0xd4050000 0x1000>, |
---|
| 504 | + reg = <0xd4050000 0x2000>, |
---|
250 | 505 | <0xd4282800 0x400>, |
---|
251 | 506 | <0xd4015000 0x1000>; |
---|
252 | 507 | reg-names = "mpmu", "apmu", "apbc"; |
---|
253 | 508 | #clock-cells = <1>; |
---|
254 | 509 | #reset-cells = <1>; |
---|
| 510 | + #power-domain-cells = <1>; |
---|
255 | 511 | }; |
---|
256 | 512 | }; |
---|
257 | 513 | }; |
---|