Tony Prisk | cb935e7 | 2012-08-03 20:54:16 +1200 | [diff] [blame] | 1 | /* |
| 2 | * wm8650.dtsi - Device tree file for Wondermedia WM8650 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,wm8650"; |
| 13 | |
Tony Prisk | 7ec13d4 | 2013-04-23 10:33:44 +1200 | [diff] [blame] | 14 | cpus { |
| 15 | #address-cells = <0>; |
| 16 | #size-cells = <0>; |
| 17 | |
| 18 | cpu { |
| 19 | device_type = "cpu"; |
| 20 | compatible = "arm,arm926ej-s"; |
| 21 | }; |
| 22 | }; |
| 23 | |
Tony Prisk | 55954f8 | 2013-04-23 14:23:26 +1200 | [diff] [blame] | 24 | aliases { |
| 25 | serial0 = &uart0; |
| 26 | serial1 = &uart1; |
| 27 | }; |
| 28 | |
Tony Prisk | cb935e7 | 2012-08-03 20:54:16 +1200 | [diff] [blame] | 29 | soc { |
| 30 | #address-cells = <1>; |
| 31 | #size-cells = <1>; |
| 32 | compatible = "simple-bus"; |
| 33 | ranges; |
| 34 | interrupt-parent = <&intc0>; |
| 35 | |
| 36 | intc0: interrupt-controller@d8140000 { |
| 37 | compatible = "via,vt8500-intc"; |
| 38 | interrupt-controller; |
| 39 | reg = <0xd8140000 0x10000>; |
| 40 | #interrupt-cells = <1>; |
| 41 | }; |
| 42 | |
| 43 | /* Secondary IC cascaded to intc0 */ |
| 44 | intc1: interrupt-controller@d8150000 { |
| 45 | compatible = "via,vt8500-intc"; |
| 46 | interrupt-controller; |
| 47 | #interrupt-cells = <1>; |
| 48 | reg = <0xD8150000 0x10000>; |
| 49 | interrupts = <56 57 58 59 60 61 62 63>; |
| 50 | }; |
| 51 | |
Tony Prisk | 649a59c | 2013-02-20 09:52:23 +1300 | [diff] [blame] | 52 | pinctrl: pinctrl@d8110000 { |
| 53 | compatible = "wm,wm8650-pinctrl"; |
Tony Prisk | cb935e7 | 2012-08-03 20:54:16 +1200 | [diff] [blame] | 54 | reg = <0xd8110000 0x10000>; |
Tony Prisk | 649a59c | 2013-02-20 09:52:23 +1300 | [diff] [blame] | 55 | interrupt-controller; |
| 56 | #interrupt-cells = <2>; |
| 57 | gpio-controller; |
| 58 | #gpio-cells = <2>; |
Tony Prisk | cb935e7 | 2012-08-03 20:54:16 +1200 | [diff] [blame] | 59 | }; |
| 60 | |
| 61 | pmc@d8130000 { |
| 62 | compatible = "via,vt8500-pmc"; |
| 63 | reg = <0xd8130000 0x1000>; |
| 64 | |
| 65 | clocks { |
| 66 | #address-cells = <1>; |
| 67 | #size-cells = <0>; |
| 68 | |
| 69 | ref25: ref25M { |
| 70 | #clock-cells = <0>; |
| 71 | compatible = "fixed-clock"; |
| 72 | clock-frequency = <25000000>; |
| 73 | }; |
| 74 | |
| 75 | ref24: ref24M { |
| 76 | #clock-cells = <0>; |
| 77 | compatible = "fixed-clock"; |
| 78 | clock-frequency = <24000000>; |
| 79 | }; |
| 80 | |
| 81 | plla: plla { |
| 82 | #clock-cells = <0>; |
| 83 | compatible = "wm,wm8650-pll-clock"; |
| 84 | clocks = <&ref25>; |
| 85 | reg = <0x200>; |
| 86 | }; |
| 87 | |
| 88 | pllb: pllb { |
| 89 | #clock-cells = <0>; |
| 90 | compatible = "wm,wm8650-pll-clock"; |
| 91 | clocks = <&ref25>; |
| 92 | reg = <0x204>; |
| 93 | }; |
| 94 | |
Tony Prisk | 5c2b0a8 | 2013-05-10 17:35:11 +1200 | [diff] [blame] | 95 | pllc: pllc { |
| 96 | #clock-cells = <0>; |
| 97 | compatible = "wm,wm8650-pll-clock"; |
| 98 | clocks = <&ref25>; |
| 99 | reg = <0x208>; |
| 100 | }; |
| 101 | |
| 102 | plld: plld { |
| 103 | #clock-cells = <0>; |
| 104 | compatible = "wm,wm8650-pll-clock"; |
| 105 | clocks = <&ref25>; |
| 106 | reg = <0x20c>; |
| 107 | }; |
| 108 | |
| 109 | plle: plle { |
| 110 | #clock-cells = <0>; |
| 111 | compatible = "wm,wm8650-pll-clock"; |
| 112 | clocks = <&ref25>; |
| 113 | reg = <0x210>; |
| 114 | }; |
| 115 | |
Tony Prisk | 9e7b6d3e | 2013-05-10 17:44:58 +1200 | [diff] [blame] | 116 | clkarm: arm { |
| 117 | #clock-cells = <0>; |
| 118 | compatible = "via,vt8500-device-clock"; |
| 119 | clocks = <&plla>; |
| 120 | divisor-reg = <0x300>; |
| 121 | }; |
| 122 | |
| 123 | clkahb: ahb { |
| 124 | #clock-cells = <0>; |
| 125 | compatible = "via,vt8500-device-clock"; |
| 126 | clocks = <&pllb>; |
| 127 | divisor-reg = <0x304>; |
| 128 | }; |
| 129 | |
| 130 | clkapb: apb { |
| 131 | #clock-cells = <0>; |
| 132 | compatible = "via,vt8500-device-clock"; |
| 133 | clocks = <&pllb>; |
| 134 | divisor-reg = <0x320>; |
| 135 | }; |
| 136 | |
| 137 | clkddr: ddr { |
| 138 | #clock-cells = <0>; |
| 139 | compatible = "via,vt8500-device-clock"; |
| 140 | clocks = <&plld>; |
| 141 | divisor-reg = <0x310>; |
| 142 | }; |
| 143 | |
Tony Prisk | 12faa35 | 2013-01-18 15:05:31 +1300 | [diff] [blame] | 144 | clkuart0: uart0 { |
| 145 | #clock-cells = <0>; |
| 146 | compatible = "via,vt8500-device-clock"; |
| 147 | clocks = <&ref24>; |
| 148 | enable-reg = <0x250>; |
| 149 | enable-bit = <1>; |
| 150 | }; |
| 151 | |
| 152 | clkuart1: uart1 { |
| 153 | #clock-cells = <0>; |
| 154 | compatible = "via,vt8500-device-clock"; |
| 155 | clocks = <&ref24>; |
| 156 | enable-reg = <0x250>; |
| 157 | enable-bit = <2>; |
| 158 | }; |
| 159 | |
Tony Prisk | 9e7b6d3e | 2013-05-10 17:44:58 +1200 | [diff] [blame] | 160 | clksdhc: sdhc { |
Tony Prisk | cb935e7 | 2012-08-03 20:54:16 +1200 | [diff] [blame] | 161 | #clock-cells = <0>; |
| 162 | compatible = "via,vt8500-device-clock"; |
| 163 | clocks = <&pllb>; |
| 164 | divisor-reg = <0x328>; |
| 165 | divisor-mask = <0x3f>; |
| 166 | enable-reg = <0x254>; |
| 167 | enable-bit = <18>; |
| 168 | }; |
| 169 | }; |
| 170 | }; |
| 171 | |
| 172 | timer@d8130100 { |
| 173 | compatible = "via,vt8500-timer"; |
| 174 | reg = <0xd8130100 0x28>; |
| 175 | interrupts = <36>; |
| 176 | }; |
| 177 | |
| 178 | ehci@d8007900 { |
| 179 | compatible = "via,vt8500-ehci"; |
| 180 | reg = <0xd8007900 0x200>; |
| 181 | interrupts = <43>; |
| 182 | }; |
| 183 | |
| 184 | uhci@d8007b00 { |
| 185 | compatible = "platform-uhci"; |
| 186 | reg = <0xd8007b00 0x200>; |
| 187 | interrupts = <43>; |
| 188 | }; |
| 189 | |
Roman Volkov | 0f090bf | 2016-01-01 16:38:11 +0300 | [diff] [blame] | 190 | sdhc@d800a000 { |
| 191 | compatible = "wm,wm8505-sdhc"; |
| 192 | reg = <0xd800a000 0x400>; |
| 193 | interrupts = <20>, <21>; |
| 194 | clocks = <&clksdhc>; |
| 195 | bus-width = <4>; |
| 196 | sdon-inverted; |
| 197 | }; |
| 198 | |
Tony Prisk | 7ab0a48 | 2013-04-03 07:20:38 +1300 | [diff] [blame] | 199 | fb: fb@d8050800 { |
Tony Prisk | cb935e7 | 2012-08-03 20:54:16 +1200 | [diff] [blame] | 200 | compatible = "wm,wm8505-fb"; |
| 201 | reg = <0xd8050800 0x200>; |
Tony Prisk | cb935e7 | 2012-08-03 20:54:16 +1200 | [diff] [blame] | 202 | }; |
| 203 | |
| 204 | ge_rops@d8050400 { |
| 205 | compatible = "wm,prizm-ge-rops"; |
| 206 | reg = <0xd8050400 0x100>; |
| 207 | }; |
| 208 | |
Tony Prisk | 55954f8 | 2013-04-23 14:23:26 +1200 | [diff] [blame] | 209 | uart0: serial@d8200000 { |
Tony Prisk | cb935e7 | 2012-08-03 20:54:16 +1200 | [diff] [blame] | 210 | compatible = "via,vt8500-uart"; |
| 211 | reg = <0xd8200000 0x1040>; |
| 212 | interrupts = <32>; |
Tony Prisk | 12faa35 | 2013-01-18 15:05:31 +1300 | [diff] [blame] | 213 | clocks = <&clkuart0>; |
Tony Prisk | 55954f8 | 2013-04-23 14:23:26 +1200 | [diff] [blame] | 214 | status = "disabled"; |
Tony Prisk | cb935e7 | 2012-08-03 20:54:16 +1200 | [diff] [blame] | 215 | }; |
| 216 | |
Tony Prisk | 55954f8 | 2013-04-23 14:23:26 +1200 | [diff] [blame] | 217 | uart1: serial@d82b0000 { |
Tony Prisk | cb935e7 | 2012-08-03 20:54:16 +1200 | [diff] [blame] | 218 | compatible = "via,vt8500-uart"; |
| 219 | reg = <0xd82b0000 0x1040>; |
| 220 | interrupts = <33>; |
Tony Prisk | 12faa35 | 2013-01-18 15:05:31 +1300 | [diff] [blame] | 221 | clocks = <&clkuart1>; |
Tony Prisk | 55954f8 | 2013-04-23 14:23:26 +1200 | [diff] [blame] | 222 | status = "disabled"; |
Tony Prisk | cb935e7 | 2012-08-03 20:54:16 +1200 | [diff] [blame] | 223 | }; |
| 224 | |
| 225 | rtc@d8100000 { |
| 226 | compatible = "via,vt8500-rtc"; |
| 227 | reg = <0xd8100000 0x10000>; |
| 228 | interrupts = <48>; |
| 229 | }; |
Alexey Charkov | 2d28386 | 2014-04-22 19:28:09 +0400 | [diff] [blame] | 230 | |
| 231 | ethernet@d8004000 { |
| 232 | compatible = "via,vt8500-rhine"; |
| 233 | reg = <0xd8004000 0x100>; |
| 234 | interrupts = <10>; |
| 235 | }; |
Tony Prisk | cb935e7 | 2012-08-03 20:54:16 +1200 | [diff] [blame] | 236 | }; |
| 237 | }; |