Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014 Chen-Yu Tsai |
| 3 | * |
| 4 | * Chen-Yu Tsai <wens@csie.org> |
| 5 | * |
Maxime Ripard | d02fc73 | 2014-09-02 19:25:26 +0200 | [diff] [blame] | 6 | * This file is dual-licensed: you can use it either under the terms |
| 7 | * of the GPL or the X11 license, at your option. Note that this dual |
| 8 | * licensing only applies to this file, and not this project as a |
| 9 | * whole. |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 10 | * |
Maxime Ripard | 136d18a | 2014-10-17 11:38:23 +0200 | [diff] [blame] | 11 | * a) This file is free software; you can redistribute it and/or |
Maxime Ripard | d02fc73 | 2014-09-02 19:25:26 +0200 | [diff] [blame] | 12 | * modify it under the terms of the GNU General Public License as |
| 13 | * published by the Free Software Foundation; either version 2 of the |
| 14 | * License, or (at your option) any later version. |
| 15 | * |
Maxime Ripard | 136d18a | 2014-10-17 11:38:23 +0200 | [diff] [blame] | 16 | * This file is distributed in the hope that it will be useful, |
Maxime Ripard | d02fc73 | 2014-09-02 19:25:26 +0200 | [diff] [blame] | 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU General Public License for more details. |
| 20 | * |
Maxime Ripard | d02fc73 | 2014-09-02 19:25:26 +0200 | [diff] [blame] | 21 | * Or, alternatively, |
| 22 | * |
| 23 | * b) Permission is hereby granted, free of charge, to any person |
| 24 | * obtaining a copy of this software and associated documentation |
| 25 | * files (the "Software"), to deal in the Software without |
| 26 | * restriction, including without limitation the rights to use, |
| 27 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 28 | * sell copies of the Software, and to permit persons to whom the |
| 29 | * Software is furnished to do so, subject to the following |
| 30 | * conditions: |
| 31 | * |
| 32 | * The above copyright notice and this permission notice shall be |
| 33 | * included in all copies or substantial portions of the Software. |
| 34 | * |
| 35 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 36 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 37 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 38 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 39 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 40 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 41 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 42 | * OTHER DEALINGS IN THE SOFTWARE. |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 43 | */ |
| 44 | |
Maxime Ripard | 7145570 | 2014-12-16 22:59:54 +0100 | [diff] [blame] | 45 | #include "skeleton.dtsi" |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 46 | |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 47 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 48 | |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 49 | #include <dt-bindings/pinctrl/sun4i-a10.h> |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 50 | |
| 51 | / { |
| 52 | interrupt-parent = <&gic>; |
| 53 | |
Hans de Goede | fd18c7e | 2015-01-19 14:05:12 +0100 | [diff] [blame] | 54 | chosen { |
| 55 | #address-cells = <1>; |
| 56 | #size-cells = <1>; |
| 57 | ranges; |
| 58 | |
| 59 | framebuffer@0 { |
| 60 | compatible = "allwinner,simple-framebuffer", |
| 61 | "simple-framebuffer"; |
| 62 | allwinner,pipeline = "de_be0-lcd0"; |
| 63 | clocks = <&pll6 0>; |
| 64 | status = "disabled"; |
| 65 | }; |
| 66 | }; |
| 67 | |
Chen-Yu Tsai | 65ef564 | 2015-03-18 11:24:00 +0800 | [diff] [blame] | 68 | timer { |
| 69 | compatible = "arm,armv7-timer"; |
| 70 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 71 | <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 72 | <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 73 | <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; |
| 74 | clock-frequency = <24000000>; |
| 75 | arm,cpu-registers-not-fw-configured; |
| 76 | }; |
| 77 | |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 78 | cpus { |
Chen-Yu Tsai | f2641d2 | 2015-03-18 11:24:02 +0800 | [diff] [blame] | 79 | enable-method = "allwinner,sun8i-a23"; |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 80 | #address-cells = <1>; |
| 81 | #size-cells = <0>; |
| 82 | |
| 83 | cpu@0 { |
| 84 | compatible = "arm,cortex-a7"; |
| 85 | device_type = "cpu"; |
| 86 | reg = <0>; |
| 87 | }; |
| 88 | |
| 89 | cpu@1 { |
| 90 | compatible = "arm,cortex-a7"; |
| 91 | device_type = "cpu"; |
| 92 | reg = <1>; |
| 93 | }; |
| 94 | }; |
| 95 | |
| 96 | memory { |
| 97 | reg = <0x40000000 0x40000000>; |
| 98 | }; |
| 99 | |
| 100 | clocks { |
| 101 | #address-cells = <1>; |
| 102 | #size-cells = <1>; |
| 103 | ranges; |
| 104 | |
| 105 | osc24M: osc24M_clk { |
| 106 | #clock-cells = <0>; |
| 107 | compatible = "fixed-clock"; |
| 108 | clock-frequency = <24000000>; |
| 109 | clock-output-names = "osc24M"; |
| 110 | }; |
| 111 | |
| 112 | osc32k: osc32k_clk { |
| 113 | #clock-cells = <0>; |
| 114 | compatible = "fixed-clock"; |
| 115 | clock-frequency = <32768>; |
| 116 | clock-output-names = "osc32k"; |
| 117 | }; |
Chen-Yu Tsai | 8e98424 | 2014-06-26 23:55:44 +0800 | [diff] [blame] | 118 | |
| 119 | pll1: clk@01c20000 { |
| 120 | #clock-cells = <0>; |
| 121 | compatible = "allwinner,sun8i-a23-pll1-clk"; |
| 122 | reg = <0x01c20000 0x4>; |
| 123 | clocks = <&osc24M>; |
| 124 | clock-output-names = "pll1"; |
| 125 | }; |
| 126 | |
| 127 | /* dummy clock until actually implemented */ |
Chen-Yu Tsai | ff8bbf7 | 2014-11-24 15:58:58 +0800 | [diff] [blame] | 128 | pll5: pll5_clk { |
Chen-Yu Tsai | 8e98424 | 2014-06-26 23:55:44 +0800 | [diff] [blame] | 129 | #clock-cells = <0>; |
| 130 | compatible = "fixed-clock"; |
Chen-Yu Tsai | ff8bbf7 | 2014-11-24 15:58:58 +0800 | [diff] [blame] | 131 | clock-frequency = <0>; |
| 132 | clock-output-names = "pll5"; |
| 133 | }; |
| 134 | |
| 135 | pll6: clk@01c20028 { |
| 136 | #clock-cells = <1>; |
| 137 | compatible = "allwinner,sun6i-a31-pll6-clk"; |
| 138 | reg = <0x01c20028 0x4>; |
| 139 | clocks = <&osc24M>; |
| 140 | clock-output-names = "pll6", "pll6x2"; |
Chen-Yu Tsai | 8e98424 | 2014-06-26 23:55:44 +0800 | [diff] [blame] | 141 | }; |
| 142 | |
| 143 | cpu: cpu_clk@01c20050 { |
| 144 | #clock-cells = <0>; |
| 145 | compatible = "allwinner,sun4i-a10-cpu-clk"; |
| 146 | reg = <0x01c20050 0x4>; |
| 147 | |
| 148 | /* |
| 149 | * PLL1 is listed twice here. |
| 150 | * While it looks suspicious, it's actually documented |
| 151 | * that way both in the datasheet and in the code from |
| 152 | * Allwinner. |
| 153 | */ |
| 154 | clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll1>; |
| 155 | clock-output-names = "cpu"; |
| 156 | }; |
| 157 | |
| 158 | axi: axi_clk@01c20050 { |
| 159 | #clock-cells = <0>; |
| 160 | compatible = "allwinner,sun8i-a23-axi-clk"; |
| 161 | reg = <0x01c20050 0x4>; |
| 162 | clocks = <&cpu>; |
| 163 | clock-output-names = "axi"; |
| 164 | }; |
| 165 | |
Chen-Yu Tsai | 8e98424 | 2014-06-26 23:55:44 +0800 | [diff] [blame] | 166 | ahb1: ahb1_clk@01c20054 { |
| 167 | #clock-cells = <0>; |
Chen-Yu Tsai | de8e8e0 | 2014-11-26 15:16:54 +0800 | [diff] [blame] | 168 | compatible = "allwinner,sun6i-a31-ahb1-clk"; |
Chen-Yu Tsai | 8e98424 | 2014-06-26 23:55:44 +0800 | [diff] [blame] | 169 | reg = <0x01c20054 0x4>; |
Chen-Yu Tsai | ff8bbf7 | 2014-11-24 15:58:58 +0800 | [diff] [blame] | 170 | clocks = <&osc32k>, <&osc24M>, <&axi>, <&pll6 0>; |
Chen-Yu Tsai | 8e98424 | 2014-06-26 23:55:44 +0800 | [diff] [blame] | 171 | clock-output-names = "ahb1"; |
| 172 | }; |
| 173 | |
| 174 | apb1: apb1_clk@01c20054 { |
| 175 | #clock-cells = <0>; |
| 176 | compatible = "allwinner,sun4i-a10-apb0-clk"; |
| 177 | reg = <0x01c20054 0x4>; |
| 178 | clocks = <&ahb1>; |
| 179 | clock-output-names = "apb1"; |
| 180 | }; |
| 181 | |
| 182 | ahb1_gates: clk@01c20060 { |
| 183 | #clock-cells = <1>; |
| 184 | compatible = "allwinner,sun8i-a23-ahb1-gates-clk"; |
| 185 | reg = <0x01c20060 0x8>; |
| 186 | clocks = <&ahb1>; |
| 187 | clock-output-names = "ahb1_mipidsi", "ahb1_dma", |
| 188 | "ahb1_mmc0", "ahb1_mmc1", "ahb1_mmc2", |
| 189 | "ahb1_nand", "ahb1_sdram", |
| 190 | "ahb1_hstimer", "ahb1_spi0", |
| 191 | "ahb1_spi1", "ahb1_otg", "ahb1_ehci", |
| 192 | "ahb1_ohci", "ahb1_ve", "ahb1_lcd", |
| 193 | "ahb1_csi", "ahb1_be", "ahb1_fe", |
| 194 | "ahb1_gpu", "ahb1_spinlock", |
| 195 | "ahb1_drc"; |
| 196 | }; |
| 197 | |
| 198 | apb1_gates: clk@01c20068 { |
| 199 | #clock-cells = <1>; |
| 200 | compatible = "allwinner,sun8i-a23-apb1-gates-clk"; |
| 201 | reg = <0x01c20068 0x4>; |
| 202 | clocks = <&apb1>; |
| 203 | clock-output-names = "apb1_codec", "apb1_pio", |
| 204 | "apb1_daudio0", "apb1_daudio1"; |
| 205 | }; |
| 206 | |
Chen-Yu Tsai | 74c947a | 2014-11-06 11:40:31 +0800 | [diff] [blame] | 207 | apb2: clk@01c20058 { |
Chen-Yu Tsai | 8e98424 | 2014-06-26 23:55:44 +0800 | [diff] [blame] | 208 | #clock-cells = <0>; |
Chen-Yu Tsai | 74c947a | 2014-11-06 11:40:31 +0800 | [diff] [blame] | 209 | compatible = "allwinner,sun4i-a10-apb1-clk"; |
Chen-Yu Tsai | 8e98424 | 2014-06-26 23:55:44 +0800 | [diff] [blame] | 210 | reg = <0x01c20058 0x4>; |
Chen-Yu Tsai | ff8bbf7 | 2014-11-24 15:58:58 +0800 | [diff] [blame] | 211 | clocks = <&osc32k>, <&osc24M>, <&pll6 0>, <&pll6 0>; |
Chen-Yu Tsai | 8e98424 | 2014-06-26 23:55:44 +0800 | [diff] [blame] | 212 | clock-output-names = "apb2"; |
| 213 | }; |
| 214 | |
| 215 | apb2_gates: clk@01c2006c { |
| 216 | #clock-cells = <1>; |
| 217 | compatible = "allwinner,sun8i-a23-apb2-gates-clk"; |
| 218 | reg = <0x01c2006c 0x4>; |
| 219 | clocks = <&apb2>; |
| 220 | clock-output-names = "apb2_i2c0", "apb2_i2c1", |
| 221 | "apb2_i2c2", "apb2_uart0", |
| 222 | "apb2_uart1", "apb2_uart2", |
| 223 | "apb2_uart3", "apb2_uart4"; |
| 224 | }; |
Chen-Yu Tsai | 4b7ecb3 | 2014-08-17 11:52:12 +0800 | [diff] [blame] | 225 | |
| 226 | mmc0_clk: clk@01c20088 { |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame] | 227 | #clock-cells = <1>; |
| 228 | compatible = "allwinner,sun4i-a10-mmc-clk"; |
Chen-Yu Tsai | 4b7ecb3 | 2014-08-17 11:52:12 +0800 | [diff] [blame] | 229 | reg = <0x01c20088 0x4>; |
Chen-Yu Tsai | ff8bbf7 | 2014-11-24 15:58:58 +0800 | [diff] [blame] | 230 | clocks = <&osc24M>, <&pll6 0>; |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame] | 231 | clock-output-names = "mmc0", |
| 232 | "mmc0_output", |
| 233 | "mmc0_sample"; |
Chen-Yu Tsai | 4b7ecb3 | 2014-08-17 11:52:12 +0800 | [diff] [blame] | 234 | }; |
| 235 | |
| 236 | mmc1_clk: clk@01c2008c { |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame] | 237 | #clock-cells = <1>; |
| 238 | compatible = "allwinner,sun4i-a10-mmc-clk"; |
Chen-Yu Tsai | 4b7ecb3 | 2014-08-17 11:52:12 +0800 | [diff] [blame] | 239 | reg = <0x01c2008c 0x4>; |
Chen-Yu Tsai | ff8bbf7 | 2014-11-24 15:58:58 +0800 | [diff] [blame] | 240 | clocks = <&osc24M>, <&pll6 0>; |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame] | 241 | clock-output-names = "mmc1", |
| 242 | "mmc1_output", |
| 243 | "mmc1_sample"; |
Chen-Yu Tsai | 4b7ecb3 | 2014-08-17 11:52:12 +0800 | [diff] [blame] | 244 | }; |
| 245 | |
| 246 | mmc2_clk: clk@01c20090 { |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame] | 247 | #clock-cells = <1>; |
| 248 | compatible = "allwinner,sun4i-a10-mmc-clk"; |
Chen-Yu Tsai | 4b7ecb3 | 2014-08-17 11:52:12 +0800 | [diff] [blame] | 249 | reg = <0x01c20090 0x4>; |
Chen-Yu Tsai | ff8bbf7 | 2014-11-24 15:58:58 +0800 | [diff] [blame] | 250 | clocks = <&osc24M>, <&pll6 0>; |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame] | 251 | clock-output-names = "mmc2", |
| 252 | "mmc2_output", |
| 253 | "mmc2_sample"; |
Chen-Yu Tsai | 4b7ecb3 | 2014-08-17 11:52:12 +0800 | [diff] [blame] | 254 | }; |
Chen-Yu Tsai | ff8bbf7 | 2014-11-24 15:58:58 +0800 | [diff] [blame] | 255 | |
| 256 | mbus_clk: clk@01c2015c { |
| 257 | #clock-cells = <0>; |
| 258 | compatible = "allwinner,sun8i-a23-mbus-clk"; |
| 259 | reg = <0x01c2015c 0x4>; |
| 260 | clocks = <&osc24M>, <&pll6 1>, <&pll5>; |
| 261 | clock-output-names = "mbus"; |
Chen-Yu Tsai | c402157 | 2014-08-17 11:52:09 +0800 | [diff] [blame] | 262 | }; |
| 263 | }; |
| 264 | |
| 265 | soc@01c00000 { |
Chen-Yu Tsai | 6b2b16f | 2014-08-17 11:52:07 +0800 | [diff] [blame] | 266 | compatible = "simple-bus"; |
| 267 | #address-cells = <1>; |
Chen-Yu Tsai | c571111 | 2014-07-03 22:55:49 +0800 | [diff] [blame] | 268 | #size-cells = <1>; |
| 269 | ranges; |
| 270 | |
Chen-Yu Tsai | d07fe96 | 2014-09-18 11:24:40 +0800 | [diff] [blame] | 271 | dma: dma-controller@01c02000 { |
| 272 | compatible = "allwinner,sun8i-a23-dma"; |
| 273 | reg = <0x01c02000 0x1000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 274 | interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | d07fe96 | 2014-09-18 11:24:40 +0800 | [diff] [blame] | 275 | clocks = <&ahb1_gates 6>; |
| 276 | resets = <&ahb1_rst 6>; |
| 277 | #dma-cells = <1>; |
| 278 | }; |
| 279 | |
Chen-Yu Tsai | eacda1f | 2014-08-17 11:52:14 +0800 | [diff] [blame] | 280 | mmc0: mmc@01c0f000 { |
| 281 | compatible = "allwinner,sun5i-a13-mmc"; |
| 282 | reg = <0x01c0f000 0x1000>; |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame] | 283 | clocks = <&ahb1_gates 8>, |
| 284 | <&mmc0_clk 0>, |
| 285 | <&mmc0_clk 1>, |
| 286 | <&mmc0_clk 2>; |
| 287 | clock-names = "ahb", |
| 288 | "mmc", |
| 289 | "output", |
| 290 | "sample"; |
Chen-Yu Tsai | eacda1f | 2014-08-17 11:52:14 +0800 | [diff] [blame] | 291 | resets = <&ahb1_rst 8>; |
| 292 | reset-names = "ahb"; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 293 | interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | eacda1f | 2014-08-17 11:52:14 +0800 | [diff] [blame] | 294 | status = "disabled"; |
Hans de Goede | 4c1bb9c | 2015-03-10 16:27:09 +0100 | [diff] [blame] | 295 | #address-cells = <1>; |
| 296 | #size-cells = <0>; |
Chen-Yu Tsai | eacda1f | 2014-08-17 11:52:14 +0800 | [diff] [blame] | 297 | }; |
| 298 | |
| 299 | mmc1: mmc@01c10000 { |
| 300 | compatible = "allwinner,sun5i-a13-mmc"; |
| 301 | reg = <0x01c10000 0x1000>; |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame] | 302 | clocks = <&ahb1_gates 9>, |
| 303 | <&mmc1_clk 0>, |
| 304 | <&mmc1_clk 1>, |
| 305 | <&mmc1_clk 2>; |
| 306 | clock-names = "ahb", |
| 307 | "mmc", |
| 308 | "output", |
| 309 | "sample"; |
Chen-Yu Tsai | eacda1f | 2014-08-17 11:52:14 +0800 | [diff] [blame] | 310 | resets = <&ahb1_rst 9>; |
| 311 | reset-names = "ahb"; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 312 | interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | eacda1f | 2014-08-17 11:52:14 +0800 | [diff] [blame] | 313 | status = "disabled"; |
Hans de Goede | 4c1bb9c | 2015-03-10 16:27:09 +0100 | [diff] [blame] | 314 | #address-cells = <1>; |
| 315 | #size-cells = <0>; |
Chen-Yu Tsai | eacda1f | 2014-08-17 11:52:14 +0800 | [diff] [blame] | 316 | }; |
| 317 | |
| 318 | mmc2: mmc@01c11000 { |
| 319 | compatible = "allwinner,sun5i-a13-mmc"; |
| 320 | reg = <0x01c11000 0x1000>; |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame] | 321 | clocks = <&ahb1_gates 10>, |
| 322 | <&mmc2_clk 0>, |
| 323 | <&mmc2_clk 1>, |
| 324 | <&mmc2_clk 2>; |
| 325 | clock-names = "ahb", |
| 326 | "mmc", |
| 327 | "output", |
| 328 | "sample"; |
Chen-Yu Tsai | eacda1f | 2014-08-17 11:52:14 +0800 | [diff] [blame] | 329 | resets = <&ahb1_rst 10>; |
| 330 | reset-names = "ahb"; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 331 | interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | eacda1f | 2014-08-17 11:52:14 +0800 | [diff] [blame] | 332 | status = "disabled"; |
Hans de Goede | 4c1bb9c | 2015-03-10 16:27:09 +0100 | [diff] [blame] | 333 | #address-cells = <1>; |
| 334 | #size-cells = <0>; |
Chen-Yu Tsai | eacda1f | 2014-08-17 11:52:14 +0800 | [diff] [blame] | 335 | }; |
| 336 | |
Chen-Yu Tsai | c571111 | 2014-07-03 22:55:49 +0800 | [diff] [blame] | 337 | pio: pinctrl@01c20800 { |
| 338 | compatible = "allwinner,sun8i-a23-pinctrl"; |
| 339 | reg = <0x01c20800 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 340 | interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>, |
| 341 | <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>, |
| 342 | <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | c571111 | 2014-07-03 22:55:49 +0800 | [diff] [blame] | 343 | clocks = <&apb1_gates 5>; |
| 344 | gpio-controller; |
| 345 | interrupt-controller; |
| 346 | #address-cells = <1>; |
| 347 | #size-cells = <0>; |
| 348 | #gpio-cells = <3>; |
| 349 | |
| 350 | uart0_pins_a: uart0@0 { |
| 351 | allwinner,pins = "PF2", "PF4"; |
| 352 | allwinner,function = "uart0"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 353 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 354 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Chen-Yu Tsai | c571111 | 2014-07-03 22:55:49 +0800 | [diff] [blame] | 355 | }; |
Chen-Yu Tsai | cdb6fd6 | 2014-08-17 11:52:13 +0800 | [diff] [blame] | 356 | |
| 357 | mmc0_pins_a: mmc0@0 { |
Maxime Ripard | d8cacaa | 2015-05-03 11:53:07 +0200 | [diff] [blame] | 358 | allwinner,pins = "PF0", "PF1", "PF2", |
| 359 | "PF3", "PF4", "PF5"; |
Chen-Yu Tsai | cdb6fd6 | 2014-08-17 11:52:13 +0800 | [diff] [blame] | 360 | allwinner,function = "mmc0"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 361 | allwinner,drive = <SUN4I_PINCTRL_30_MA>; |
| 362 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Chen-Yu Tsai | cdb6fd6 | 2014-08-17 11:52:13 +0800 | [diff] [blame] | 363 | }; |
| 364 | |
| 365 | mmc1_pins_a: mmc1@0 { |
Maxime Ripard | d8cacaa | 2015-05-03 11:53:07 +0200 | [diff] [blame] | 366 | allwinner,pins = "PG0", "PG1", "PG2", |
| 367 | "PG3", "PG4", "PG5"; |
Chen-Yu Tsai | cdb6fd6 | 2014-08-17 11:52:13 +0800 | [diff] [blame] | 368 | allwinner,function = "mmc1"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 369 | allwinner,drive = <SUN4I_PINCTRL_30_MA>; |
| 370 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Chen-Yu Tsai | cdb6fd6 | 2014-08-17 11:52:13 +0800 | [diff] [blame] | 371 | }; |
Chen-Yu Tsai | 1890f51 | 2014-08-17 11:52:16 +0800 | [diff] [blame] | 372 | |
| 373 | i2c0_pins_a: i2c0@0 { |
| 374 | allwinner,pins = "PH2", "PH3"; |
| 375 | allwinner,function = "i2c0"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 376 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 377 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Chen-Yu Tsai | 1890f51 | 2014-08-17 11:52:16 +0800 | [diff] [blame] | 378 | }; |
| 379 | |
| 380 | i2c1_pins_a: i2c1@0 { |
| 381 | allwinner,pins = "PH4", "PH5"; |
| 382 | allwinner,function = "i2c1"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 383 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 384 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Chen-Yu Tsai | 1890f51 | 2014-08-17 11:52:16 +0800 | [diff] [blame] | 385 | }; |
| 386 | |
| 387 | i2c2_pins_a: i2c2@0 { |
| 388 | allwinner,pins = "PE12", "PE13"; |
| 389 | allwinner,function = "i2c2"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 390 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 391 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Chen-Yu Tsai | 1890f51 | 2014-08-17 11:52:16 +0800 | [diff] [blame] | 392 | }; |
Chen-Yu Tsai | c571111 | 2014-07-03 22:55:49 +0800 | [diff] [blame] | 393 | }; |
| 394 | |
| 395 | ahb1_rst: reset@01c202c0 { |
| 396 | #reset-cells = <1>; |
| 397 | compatible = "allwinner,sun6i-a31-clock-reset"; |
| 398 | reg = <0x01c202c0 0xc>; |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 399 | }; |
| 400 | |
| 401 | apb1_rst: reset@01c202d0 { |
| 402 | #reset-cells = <1>; |
| 403 | compatible = "allwinner,sun6i-a31-clock-reset"; |
| 404 | reg = <0x01c202d0 0x4>; |
| 405 | }; |
| 406 | |
| 407 | apb2_rst: reset@01c202d8 { |
| 408 | #reset-cells = <1>; |
| 409 | compatible = "allwinner,sun6i-a31-clock-reset"; |
| 410 | reg = <0x01c202d8 0x4>; |
| 411 | }; |
| 412 | |
| 413 | timer@01c20c00 { |
| 414 | compatible = "allwinner,sun4i-a10-timer"; |
| 415 | reg = <0x01c20c00 0xa0>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 416 | interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>, |
| 417 | <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 418 | clocks = <&osc24M>; |
| 419 | }; |
| 420 | |
| 421 | wdt0: watchdog@01c20ca0 { |
| 422 | compatible = "allwinner,sun6i-a31-wdt"; |
| 423 | reg = <0x01c20ca0 0x20>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 424 | interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 425 | }; |
| 426 | |
Hans de Goede | f0a05a0 | 2015-01-13 11:47:03 +0100 | [diff] [blame] | 427 | lradc: lradc@01c22800 { |
| 428 | compatible = "allwinner,sun4i-a10-lradc-keys"; |
| 429 | reg = <0x01c22800 0x100>; |
| 430 | interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>; |
| 431 | status = "disabled"; |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 432 | }; |
| 433 | |
| 434 | uart0: serial@01c28000 { |
| 435 | compatible = "snps,dw-apb-uart"; |
| 436 | reg = <0x01c28000 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 437 | interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 438 | reg-shift = <2>; |
| 439 | reg-io-width = <4>; |
Chen-Yu Tsai | 8e98424 | 2014-06-26 23:55:44 +0800 | [diff] [blame] | 440 | clocks = <&apb2_gates 16>; |
Chen-Yu Tsai | c571111 | 2014-07-03 22:55:49 +0800 | [diff] [blame] | 441 | resets = <&apb2_rst 16>; |
Chen-Yu Tsai | d07fe96 | 2014-09-18 11:24:40 +0800 | [diff] [blame] | 442 | dmas = <&dma 6>, <&dma 6>; |
| 443 | dma-names = "rx", "tx"; |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 444 | status = "disabled"; |
| 445 | }; |
| 446 | |
| 447 | uart1: serial@01c28400 { |
| 448 | compatible = "snps,dw-apb-uart"; |
| 449 | reg = <0x01c28400 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 450 | interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 451 | reg-shift = <2>; |
| 452 | reg-io-width = <4>; |
Chen-Yu Tsai | 8e98424 | 2014-06-26 23:55:44 +0800 | [diff] [blame] | 453 | clocks = <&apb2_gates 17>; |
Chen-Yu Tsai | c571111 | 2014-07-03 22:55:49 +0800 | [diff] [blame] | 454 | resets = <&apb2_rst 17>; |
Chen-Yu Tsai | d07fe96 | 2014-09-18 11:24:40 +0800 | [diff] [blame] | 455 | dmas = <&dma 7>, <&dma 7>; |
| 456 | dma-names = "rx", "tx"; |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 457 | status = "disabled"; |
| 458 | }; |
| 459 | |
| 460 | uart2: serial@01c28800 { |
| 461 | compatible = "snps,dw-apb-uart"; |
| 462 | reg = <0x01c28800 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 463 | interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 464 | reg-shift = <2>; |
| 465 | reg-io-width = <4>; |
Chen-Yu Tsai | 8e98424 | 2014-06-26 23:55:44 +0800 | [diff] [blame] | 466 | clocks = <&apb2_gates 18>; |
Chen-Yu Tsai | c571111 | 2014-07-03 22:55:49 +0800 | [diff] [blame] | 467 | resets = <&apb2_rst 18>; |
Chen-Yu Tsai | d07fe96 | 2014-09-18 11:24:40 +0800 | [diff] [blame] | 468 | dmas = <&dma 8>, <&dma 8>; |
| 469 | dma-names = "rx", "tx"; |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 470 | status = "disabled"; |
| 471 | }; |
| 472 | |
| 473 | uart3: serial@01c28c00 { |
| 474 | compatible = "snps,dw-apb-uart"; |
| 475 | reg = <0x01c28c00 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 476 | interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 477 | reg-shift = <2>; |
| 478 | reg-io-width = <4>; |
Chen-Yu Tsai | 8e98424 | 2014-06-26 23:55:44 +0800 | [diff] [blame] | 479 | clocks = <&apb2_gates 19>; |
Chen-Yu Tsai | c571111 | 2014-07-03 22:55:49 +0800 | [diff] [blame] | 480 | resets = <&apb2_rst 19>; |
Chen-Yu Tsai | d07fe96 | 2014-09-18 11:24:40 +0800 | [diff] [blame] | 481 | dmas = <&dma 9>, <&dma 9>; |
| 482 | dma-names = "rx", "tx"; |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 483 | status = "disabled"; |
| 484 | }; |
| 485 | |
| 486 | uart4: serial@01c29000 { |
| 487 | compatible = "snps,dw-apb-uart"; |
| 488 | reg = <0x01c29000 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 489 | interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 490 | reg-shift = <2>; |
| 491 | reg-io-width = <4>; |
Chen-Yu Tsai | 8e98424 | 2014-06-26 23:55:44 +0800 | [diff] [blame] | 492 | clocks = <&apb2_gates 20>; |
Chen-Yu Tsai | c571111 | 2014-07-03 22:55:49 +0800 | [diff] [blame] | 493 | resets = <&apb2_rst 20>; |
Chen-Yu Tsai | d07fe96 | 2014-09-18 11:24:40 +0800 | [diff] [blame] | 494 | dmas = <&dma 10>, <&dma 10>; |
| 495 | dma-names = "rx", "tx"; |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 496 | status = "disabled"; |
| 497 | }; |
| 498 | |
Chen-Yu Tsai | 0a97ea3 | 2014-08-19 00:51:50 +0800 | [diff] [blame] | 499 | i2c0: i2c@01c2ac00 { |
| 500 | compatible = "allwinner,sun6i-a31-i2c"; |
| 501 | reg = <0x01c2ac00 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 502 | interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 0a97ea3 | 2014-08-19 00:51:50 +0800 | [diff] [blame] | 503 | clocks = <&apb2_gates 0>; |
| 504 | resets = <&apb2_rst 0>; |
| 505 | status = "disabled"; |
| 506 | #address-cells = <1>; |
| 507 | #size-cells = <0>; |
| 508 | }; |
| 509 | |
| 510 | i2c1: i2c@01c2b000 { |
| 511 | compatible = "allwinner,sun6i-a31-i2c"; |
| 512 | reg = <0x01c2b000 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 513 | interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 0a97ea3 | 2014-08-19 00:51:50 +0800 | [diff] [blame] | 514 | clocks = <&apb2_gates 1>; |
| 515 | resets = <&apb2_rst 1>; |
| 516 | status = "disabled"; |
| 517 | #address-cells = <1>; |
| 518 | #size-cells = <0>; |
| 519 | }; |
| 520 | |
| 521 | i2c2: i2c@01c2b400 { |
| 522 | compatible = "allwinner,sun6i-a31-i2c"; |
| 523 | reg = <0x01c2b400 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 524 | interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 0a97ea3 | 2014-08-19 00:51:50 +0800 | [diff] [blame] | 525 | clocks = <&apb2_gates 2>; |
| 526 | resets = <&apb2_rst 2>; |
| 527 | status = "disabled"; |
| 528 | #address-cells = <1>; |
| 529 | #size-cells = <0>; |
| 530 | }; |
| 531 | |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 532 | gic: interrupt-controller@01c81000 { |
| 533 | compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic"; |
| 534 | reg = <0x01c81000 0x1000>, |
| 535 | <0x01c82000 0x1000>, |
| 536 | <0x01c84000 0x2000>, |
| 537 | <0x01c86000 0x2000>; |
| 538 | interrupt-controller; |
| 539 | #interrupt-cells = <3>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 540 | interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 541 | }; |
| 542 | |
Chen-Yu Tsai | 3b1213f | 2014-07-30 20:56:07 +0800 | [diff] [blame] | 543 | rtc: rtc@01f00000 { |
| 544 | compatible = "allwinner,sun6i-a31-rtc"; |
| 545 | reg = <0x01f00000 0x54>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 546 | interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>, |
| 547 | <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 3b1213f | 2014-07-30 20:56:07 +0800 | [diff] [blame] | 548 | }; |
| 549 | |
Chen-Yu Tsai | df02dd8 | 2014-07-09 15:54:39 +0800 | [diff] [blame] | 550 | prcm@01f01400 { |
| 551 | compatible = "allwinner,sun8i-a23-prcm"; |
| 552 | reg = <0x01f01400 0x200>; |
| 553 | |
| 554 | ar100: ar100_clk { |
| 555 | compatible = "fixed-factor-clock"; |
| 556 | #clock-cells = <0>; |
| 557 | clock-div = <1>; |
| 558 | clock-mult = <1>; |
| 559 | clocks = <&osc24M>; |
| 560 | clock-output-names = "ar100"; |
| 561 | }; |
| 562 | |
| 563 | ahb0: ahb0_clk { |
| 564 | compatible = "fixed-factor-clock"; |
| 565 | #clock-cells = <0>; |
| 566 | clock-div = <1>; |
| 567 | clock-mult = <1>; |
| 568 | clocks = <&ar100>; |
| 569 | clock-output-names = "ahb0"; |
| 570 | }; |
| 571 | |
| 572 | apb0: apb0_clk { |
| 573 | compatible = "allwinner,sun8i-a23-apb0-clk"; |
| 574 | #clock-cells = <0>; |
| 575 | clocks = <&ahb0>; |
| 576 | clock-output-names = "apb0"; |
| 577 | }; |
| 578 | |
| 579 | apb0_gates: apb0_gates_clk { |
| 580 | compatible = "allwinner,sun8i-a23-apb0-gates-clk"; |
| 581 | #clock-cells = <1>; |
| 582 | clocks = <&apb0>; |
| 583 | clock-output-names = "apb0_pio", "apb0_timer", |
| 584 | "apb0_rsb", "apb0_uart", |
| 585 | "apb0_i2c"; |
| 586 | }; |
| 587 | |
| 588 | apb0_rst: apb0_rst { |
| 589 | compatible = "allwinner,sun6i-a31-clock-reset"; |
| 590 | #reset-cells = <1>; |
| 591 | }; |
| 592 | }; |
| 593 | |
Chen-Yu Tsai | f2641d2 | 2015-03-18 11:24:02 +0800 | [diff] [blame] | 594 | cpucfg@01f01c00 { |
| 595 | compatible = "allwinner,sun8i-a23-cpuconfig"; |
| 596 | reg = <0x01f01c00 0x300>; |
| 597 | }; |
| 598 | |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 599 | r_uart: serial@01f02800 { |
| 600 | compatible = "snps,dw-apb-uart"; |
| 601 | reg = <0x01f02800 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 602 | interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 603 | reg-shift = <2>; |
| 604 | reg-io-width = <4>; |
Chen-Yu Tsai | df02dd8 | 2014-07-09 15:54:39 +0800 | [diff] [blame] | 605 | clocks = <&apb0_gates 4>; |
| 606 | resets = <&apb0_rst 4>; |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 607 | status = "disabled"; |
| 608 | }; |
Chen-Yu Tsai | b6a8711 | 2014-08-17 11:52:08 +0800 | [diff] [blame] | 609 | |
| 610 | r_pio: pinctrl@01f02c00 { |
| 611 | compatible = "allwinner,sun8i-a23-r-pinctrl"; |
| 612 | reg = <0x01f02c00 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 613 | interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | b6a8711 | 2014-08-17 11:52:08 +0800 | [diff] [blame] | 614 | clocks = <&apb0_gates 0>; |
| 615 | resets = <&apb0_rst 0>; |
| 616 | gpio-controller; |
| 617 | interrupt-controller; |
| 618 | #address-cells = <1>; |
| 619 | #size-cells = <0>; |
| 620 | #gpio-cells = <3>; |
Chen-Yu Tsai | 8130979 | 2014-08-17 11:52:10 +0800 | [diff] [blame] | 621 | |
| 622 | r_uart_pins_a: r_uart@0 { |
| 623 | allwinner,pins = "PL2", "PL3"; |
| 624 | allwinner,function = "s_uart"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 625 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 626 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Chen-Yu Tsai | 8130979 | 2014-08-17 11:52:10 +0800 | [diff] [blame] | 627 | }; |
Chen-Yu Tsai | b6a8711 | 2014-08-17 11:52:08 +0800 | [diff] [blame] | 628 | }; |
Chen-Yu Tsai | fd6c10f | 2014-06-20 22:52:52 +0800 | [diff] [blame] | 629 | }; |
| 630 | }; |