Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 Maxime Ripard |
| 3 | * |
| 4 | * Maxime Ripard <maxime.ripard@free-electrons.com> |
| 5 | * |
| 6 | * The code contained herein is licensed under the GNU General Public |
| 7 | * License. You may obtain a copy of the GNU General Public License |
| 8 | * Version 2 or later at the following locations: |
| 9 | * |
| 10 | * http://www.opensource.org/licenses/gpl-license.html |
| 11 | * http://www.gnu.org/copyleft/gpl.html |
| 12 | */ |
| 13 | |
| 14 | /include/ "skeleton.dtsi" |
| 15 | |
| 16 | / { |
| 17 | interrupt-parent = <&gic>; |
| 18 | |
| 19 | cpus { |
| 20 | #address-cells = <1>; |
| 21 | #size-cells = <0>; |
| 22 | |
| 23 | cpu@0 { |
| 24 | compatible = "arm,cortex-a7"; |
| 25 | device_type = "cpu"; |
| 26 | reg = <0>; |
| 27 | }; |
| 28 | |
| 29 | cpu@1 { |
| 30 | compatible = "arm,cortex-a7"; |
| 31 | device_type = "cpu"; |
| 32 | reg = <1>; |
| 33 | }; |
| 34 | |
| 35 | cpu@2 { |
| 36 | compatible = "arm,cortex-a7"; |
| 37 | device_type = "cpu"; |
| 38 | reg = <2>; |
| 39 | }; |
| 40 | |
| 41 | cpu@3 { |
| 42 | compatible = "arm,cortex-a7"; |
| 43 | device_type = "cpu"; |
| 44 | reg = <3>; |
| 45 | }; |
| 46 | }; |
| 47 | |
| 48 | memory { |
| 49 | reg = <0x40000000 0x80000000>; |
| 50 | }; |
| 51 | |
| 52 | clocks { |
| 53 | #address-cells = <1>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 54 | #size-cells = <1>; |
| 55 | ranges; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 56 | |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 57 | osc24M: osc24M { |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 58 | #clock-cells = <0>; |
| 59 | compatible = "fixed-clock"; |
| 60 | clock-frequency = <24000000>; |
| 61 | }; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 62 | |
| 63 | osc32k: osc32k { |
| 64 | #clock-cells = <0>; |
| 65 | compatible = "fixed-clock"; |
| 66 | clock-frequency = <32768>; |
| 67 | }; |
| 68 | |
| 69 | pll1: pll1@01c20000 { |
| 70 | #clock-cells = <0>; |
| 71 | compatible = "allwinner,sun6i-a31-pll1-clk"; |
| 72 | reg = <0x01c20000 0x4>; |
| 73 | clocks = <&osc24M>; |
| 74 | }; |
| 75 | |
| 76 | /* |
| 77 | * This is a dummy clock, to be used as placeholder on |
| 78 | * other mux clocks when a specific parent clock is not |
| 79 | * yet implemented. It should be dropped when the driver |
| 80 | * is complete. |
| 81 | */ |
| 82 | pll6: pll6 { |
| 83 | #clock-cells = <0>; |
| 84 | compatible = "fixed-clock"; |
| 85 | clock-frequency = <0>; |
| 86 | }; |
| 87 | |
| 88 | cpu: cpu@01c20050 { |
| 89 | #clock-cells = <0>; |
| 90 | compatible = "allwinner,sun4i-cpu-clk"; |
| 91 | reg = <0x01c20050 0x4>; |
| 92 | |
| 93 | /* |
| 94 | * PLL1 is listed twice here. |
| 95 | * While it looks suspicious, it's actually documented |
| 96 | * that way both in the datasheet and in the code from |
| 97 | * Allwinner. |
| 98 | */ |
| 99 | clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll1>; |
| 100 | }; |
| 101 | |
| 102 | axi: axi@01c20050 { |
| 103 | #clock-cells = <0>; |
| 104 | compatible = "allwinner,sun4i-axi-clk"; |
| 105 | reg = <0x01c20050 0x4>; |
| 106 | clocks = <&cpu>; |
| 107 | }; |
| 108 | |
| 109 | ahb1_mux: ahb1_mux@01c20054 { |
| 110 | #clock-cells = <0>; |
| 111 | compatible = "allwinner,sun6i-a31-ahb1-mux-clk"; |
| 112 | reg = <0x01c20054 0x4>; |
| 113 | clocks = <&osc32k>, <&osc24M>, <&axi>, <&pll6>; |
| 114 | }; |
| 115 | |
| 116 | ahb1: ahb1@01c20054 { |
| 117 | #clock-cells = <0>; |
| 118 | compatible = "allwinner,sun4i-ahb-clk"; |
| 119 | reg = <0x01c20054 0x4>; |
| 120 | clocks = <&ahb1_mux>; |
| 121 | }; |
| 122 | |
| 123 | ahb1_gates: ahb1_gates@01c20060 { |
| 124 | #clock-cells = <1>; |
| 125 | compatible = "allwinner,sun6i-a31-ahb1-gates-clk"; |
| 126 | reg = <0x01c20060 0x8>; |
| 127 | clocks = <&ahb1>; |
| 128 | clock-output-names = "ahb1_mipidsi", "ahb1_ss", |
| 129 | "ahb1_dma", "ahb1_mmc0", "ahb1_mmc1", |
| 130 | "ahb1_mmc2", "ahb1_mmc3", "ahb1_nand1", |
| 131 | "ahb1_nand0", "ahb1_sdram", |
| 132 | "ahb1_gmac", "ahb1_ts", "ahb1_hstimer", |
| 133 | "ahb1_spi0", "ahb1_spi1", "ahb1_spi2", |
| 134 | "ahb1_spi3", "ahb1_otg", "ahb1_ehci0", |
| 135 | "ahb1_ehci1", "ahb1_ohci0", |
| 136 | "ahb1_ohci1", "ahb1_ohci2", "ahb1_ve", |
| 137 | "ahb1_lcd0", "ahb1_lcd1", "ahb1_csi", |
| 138 | "ahb1_hdmi", "ahb1_de0", "ahb1_de1", |
| 139 | "ahb1_fe0", "ahb1_fe1", "ahb1_mp", |
| 140 | "ahb1_gpu", "ahb1_deu0", "ahb1_deu1", |
| 141 | "ahb1_drc0", "ahb1_drc1"; |
| 142 | }; |
| 143 | |
| 144 | apb1: apb1@01c20054 { |
| 145 | #clock-cells = <0>; |
| 146 | compatible = "allwinner,sun4i-apb0-clk"; |
| 147 | reg = <0x01c20054 0x4>; |
| 148 | clocks = <&ahb1>; |
| 149 | }; |
| 150 | |
| 151 | apb1_gates: apb1_gates@01c20060 { |
| 152 | #clock-cells = <1>; |
| 153 | compatible = "allwinner,sun6i-a31-apb1-gates-clk"; |
| 154 | reg = <0x01c20068 0x4>; |
| 155 | clocks = <&apb1>; |
| 156 | clock-output-names = "apb1_codec", "apb1_digital_mic", |
| 157 | "apb1_pio", "apb1_daudio0", |
| 158 | "apb1_daudio1"; |
| 159 | }; |
| 160 | |
| 161 | apb2_mux: apb2_mux@01c20058 { |
| 162 | #clock-cells = <0>; |
| 163 | compatible = "allwinner,sun4i-apb1-mux-clk"; |
| 164 | reg = <0x01c20058 0x4>; |
| 165 | clocks = <&osc32k>, <&osc24M>, <&pll6>, <&pll6>; |
| 166 | }; |
| 167 | |
| 168 | apb2: apb2@01c20058 { |
| 169 | #clock-cells = <0>; |
| 170 | compatible = "allwinner,sun6i-a31-apb2-div-clk"; |
| 171 | reg = <0x01c20058 0x4>; |
| 172 | clocks = <&apb2_mux>; |
| 173 | }; |
| 174 | |
| 175 | apb2_gates: apb2_gates@01c2006c { |
| 176 | #clock-cells = <1>; |
| 177 | compatible = "allwinner,sun6i-a31-apb2-gates-clk"; |
Maxime Ripard | 439d9f5 | 2013-09-24 16:30:05 +0300 | [diff] [blame] | 178 | reg = <0x01c2006c 0x4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 179 | clocks = <&apb2>; |
| 180 | clock-output-names = "apb2_i2c0", "apb2_i2c1", |
| 181 | "apb2_i2c2", "apb2_i2c3", "apb2_uart0", |
| 182 | "apb2_uart1", "apb2_uart2", "apb2_uart3", |
| 183 | "apb2_uart4", "apb2_uart5"; |
| 184 | }; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 185 | }; |
| 186 | |
| 187 | soc@01c00000 { |
| 188 | compatible = "simple-bus"; |
| 189 | #address-cells = <1>; |
| 190 | #size-cells = <1>; |
| 191 | ranges; |
| 192 | |
Maxime Ripard | 140e172 | 2013-03-12 22:16:05 +0100 | [diff] [blame] | 193 | pio: pinctrl@01c20800 { |
| 194 | compatible = "allwinner,sun6i-a31-pinctrl"; |
| 195 | reg = <0x01c20800 0x400>; |
Maxime Ripard | 6f97dc8 | 2013-12-10 19:37:22 +0100 | [diff] [blame^] | 196 | interrupts = <0 11 4>, |
| 197 | <0 15 4>, |
| 198 | <0 16 4>, |
| 199 | <0 17 4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 200 | clocks = <&apb1_gates 5>; |
Maxime Ripard | 140e172 | 2013-03-12 22:16:05 +0100 | [diff] [blame] | 201 | gpio-controller; |
| 202 | interrupt-controller; |
| 203 | #address-cells = <1>; |
| 204 | #size-cells = <0>; |
| 205 | #gpio-cells = <3>; |
Maxime Ripard | ab4238c | 2013-06-22 23:56:40 +0200 | [diff] [blame] | 206 | |
| 207 | uart0_pins_a: uart0@0 { |
| 208 | allwinner,pins = "PH20", "PH21"; |
| 209 | allwinner,function = "uart0"; |
| 210 | allwinner,drive = <0>; |
| 211 | allwinner,pull = <0>; |
| 212 | }; |
Maxime Ripard | 140e172 | 2013-03-12 22:16:05 +0100 | [diff] [blame] | 213 | }; |
| 214 | |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 215 | timer@01c20c00 { |
| 216 | compatible = "allwinner,sun4i-timer"; |
| 217 | reg = <0x01c20c00 0xa0>; |
Maxime Ripard | 6f97dc8 | 2013-12-10 19:37:22 +0100 | [diff] [blame^] | 218 | interrupts = <0 18 4>, |
| 219 | <0 19 4>, |
| 220 | <0 20 4>, |
| 221 | <0 21 4>, |
| 222 | <0 22 4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 223 | clocks = <&osc24M>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 224 | }; |
| 225 | |
| 226 | wdt1: watchdog@01c20ca0 { |
| 227 | compatible = "allwinner,sun6i-wdt"; |
| 228 | reg = <0x01c20ca0 0x20>; |
| 229 | }; |
| 230 | |
| 231 | uart0: serial@01c28000 { |
| 232 | compatible = "snps,dw-apb-uart"; |
| 233 | reg = <0x01c28000 0x400>; |
Maxime Ripard | 6f97dc8 | 2013-12-10 19:37:22 +0100 | [diff] [blame^] | 234 | interrupts = <0 0 4>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 235 | reg-shift = <2>; |
| 236 | reg-io-width = <4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 237 | clocks = <&apb2_gates 16>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 238 | status = "disabled"; |
| 239 | }; |
| 240 | |
| 241 | uart1: serial@01c28400 { |
| 242 | compatible = "snps,dw-apb-uart"; |
| 243 | reg = <0x01c28400 0x400>; |
Maxime Ripard | 6f97dc8 | 2013-12-10 19:37:22 +0100 | [diff] [blame^] | 244 | interrupts = <0 1 4>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 245 | reg-shift = <2>; |
| 246 | reg-io-width = <4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 247 | clocks = <&apb2_gates 17>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 248 | status = "disabled"; |
| 249 | }; |
| 250 | |
| 251 | uart2: serial@01c28800 { |
| 252 | compatible = "snps,dw-apb-uart"; |
| 253 | reg = <0x01c28800 0x400>; |
Maxime Ripard | 6f97dc8 | 2013-12-10 19:37:22 +0100 | [diff] [blame^] | 254 | interrupts = <0 2 4>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 255 | reg-shift = <2>; |
| 256 | reg-io-width = <4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 257 | clocks = <&apb2_gates 18>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 258 | status = "disabled"; |
| 259 | }; |
| 260 | |
| 261 | uart3: serial@01c28c00 { |
| 262 | compatible = "snps,dw-apb-uart"; |
| 263 | reg = <0x01c28c00 0x400>; |
Maxime Ripard | 6f97dc8 | 2013-12-10 19:37:22 +0100 | [diff] [blame^] | 264 | interrupts = <0 3 4>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 265 | reg-shift = <2>; |
| 266 | reg-io-width = <4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 267 | clocks = <&apb2_gates 19>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 268 | status = "disabled"; |
| 269 | }; |
| 270 | |
| 271 | uart4: serial@01c29000 { |
| 272 | compatible = "snps,dw-apb-uart"; |
| 273 | reg = <0x01c29000 0x400>; |
Maxime Ripard | 6f97dc8 | 2013-12-10 19:37:22 +0100 | [diff] [blame^] | 274 | interrupts = <0 4 4>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 275 | reg-shift = <2>; |
| 276 | reg-io-width = <4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 277 | clocks = <&apb2_gates 20>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 278 | status = "disabled"; |
| 279 | }; |
| 280 | |
| 281 | uart5: serial@01c29400 { |
| 282 | compatible = "snps,dw-apb-uart"; |
| 283 | reg = <0x01c29400 0x400>; |
Maxime Ripard | 6f97dc8 | 2013-12-10 19:37:22 +0100 | [diff] [blame^] | 284 | interrupts = <0 5 4>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 285 | reg-shift = <2>; |
| 286 | reg-io-width = <4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 287 | clocks = <&apb2_gates 21>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 288 | status = "disabled"; |
| 289 | }; |
| 290 | |
| 291 | gic: interrupt-controller@01c81000 { |
| 292 | compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic"; |
| 293 | reg = <0x01c81000 0x1000>, |
| 294 | <0x01c82000 0x1000>, |
| 295 | <0x01c84000 0x2000>, |
| 296 | <0x01c86000 0x2000>; |
| 297 | interrupt-controller; |
| 298 | #interrupt-cells = <3>; |
| 299 | interrupts = <1 9 0xf04>; |
| 300 | }; |
| 301 | }; |
| 302 | }; |