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 | |
Maxime Ripard | 54428d4 | 2014-01-02 22:05:04 +0100 | [diff] [blame] | 19 | aliases { |
| 20 | serial0 = &uart0; |
| 21 | serial1 = &uart1; |
| 22 | serial2 = &uart2; |
| 23 | serial3 = &uart3; |
| 24 | serial4 = &uart4; |
| 25 | serial5 = &uart5; |
| 26 | }; |
| 27 | |
| 28 | |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 29 | cpus { |
| 30 | #address-cells = <1>; |
| 31 | #size-cells = <0>; |
| 32 | |
| 33 | cpu@0 { |
| 34 | compatible = "arm,cortex-a7"; |
| 35 | device_type = "cpu"; |
| 36 | reg = <0>; |
| 37 | }; |
| 38 | |
| 39 | cpu@1 { |
| 40 | compatible = "arm,cortex-a7"; |
| 41 | device_type = "cpu"; |
| 42 | reg = <1>; |
| 43 | }; |
| 44 | |
| 45 | cpu@2 { |
| 46 | compatible = "arm,cortex-a7"; |
| 47 | device_type = "cpu"; |
| 48 | reg = <2>; |
| 49 | }; |
| 50 | |
| 51 | cpu@3 { |
| 52 | compatible = "arm,cortex-a7"; |
| 53 | device_type = "cpu"; |
| 54 | reg = <3>; |
| 55 | }; |
| 56 | }; |
| 57 | |
| 58 | memory { |
| 59 | reg = <0x40000000 0x80000000>; |
| 60 | }; |
| 61 | |
Maxime Ripard | b5a10b7 | 2014-04-17 21:54:41 +0200 | [diff] [blame] | 62 | pmu { |
| 63 | compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu"; |
| 64 | interrupts = <0 120 4>, |
| 65 | <0 121 4>, |
| 66 | <0 122 4>, |
| 67 | <0 123 4>; |
| 68 | }; |
| 69 | |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 70 | clocks { |
| 71 | #address-cells = <1>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 72 | #size-cells = <1>; |
| 73 | ranges; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 74 | |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 75 | osc24M: osc24M { |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 76 | #clock-cells = <0>; |
| 77 | compatible = "fixed-clock"; |
| 78 | clock-frequency = <24000000>; |
| 79 | }; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 80 | |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 81 | osc32k: clk@0 { |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 82 | #clock-cells = <0>; |
| 83 | compatible = "fixed-clock"; |
| 84 | clock-frequency = <32768>; |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 85 | clock-output-names = "osc32k"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 86 | }; |
| 87 | |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 88 | pll1: clk@01c20000 { |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 89 | #clock-cells = <0>; |
| 90 | compatible = "allwinner,sun6i-a31-pll1-clk"; |
| 91 | reg = <0x01c20000 0x4>; |
| 92 | clocks = <&osc24M>; |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 93 | clock-output-names = "pll1"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 94 | }; |
| 95 | |
Maxime Ripard | b0a09c7 | 2014-02-05 14:05:04 +0100 | [diff] [blame] | 96 | pll6: clk@01c20028 { |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 97 | #clock-cells = <0>; |
Maxime Ripard | b0a09c7 | 2014-02-05 14:05:04 +0100 | [diff] [blame] | 98 | compatible = "allwinner,sun6i-a31-pll6-clk"; |
| 99 | reg = <0x01c20028 0x4>; |
| 100 | clocks = <&osc24M>; |
| 101 | clock-output-names = "pll6"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 102 | }; |
| 103 | |
| 104 | cpu: cpu@01c20050 { |
| 105 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 106 | compatible = "allwinner,sun4i-a10-cpu-clk"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 107 | reg = <0x01c20050 0x4>; |
| 108 | |
| 109 | /* |
| 110 | * PLL1 is listed twice here. |
| 111 | * While it looks suspicious, it's actually documented |
| 112 | * that way both in the datasheet and in the code from |
| 113 | * Allwinner. |
| 114 | */ |
| 115 | clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll1>; |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 116 | clock-output-names = "cpu"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 117 | }; |
| 118 | |
| 119 | axi: axi@01c20050 { |
| 120 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 121 | compatible = "allwinner,sun4i-a10-axi-clk"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 122 | reg = <0x01c20050 0x4>; |
| 123 | clocks = <&cpu>; |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 124 | clock-output-names = "axi"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 125 | }; |
| 126 | |
| 127 | ahb1_mux: ahb1_mux@01c20054 { |
| 128 | #clock-cells = <0>; |
| 129 | compatible = "allwinner,sun6i-a31-ahb1-mux-clk"; |
| 130 | reg = <0x01c20054 0x4>; |
| 131 | clocks = <&osc32k>, <&osc24M>, <&axi>, <&pll6>; |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 132 | clock-output-names = "ahb1_mux"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 133 | }; |
| 134 | |
| 135 | ahb1: ahb1@01c20054 { |
| 136 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 137 | compatible = "allwinner,sun4i-a10-ahb-clk"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 138 | reg = <0x01c20054 0x4>; |
| 139 | clocks = <&ahb1_mux>; |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 140 | clock-output-names = "ahb1"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 141 | }; |
| 142 | |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 143 | ahb1_gates: clk@01c20060 { |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 144 | #clock-cells = <1>; |
| 145 | compatible = "allwinner,sun6i-a31-ahb1-gates-clk"; |
| 146 | reg = <0x01c20060 0x8>; |
| 147 | clocks = <&ahb1>; |
| 148 | clock-output-names = "ahb1_mipidsi", "ahb1_ss", |
| 149 | "ahb1_dma", "ahb1_mmc0", "ahb1_mmc1", |
| 150 | "ahb1_mmc2", "ahb1_mmc3", "ahb1_nand1", |
| 151 | "ahb1_nand0", "ahb1_sdram", |
| 152 | "ahb1_gmac", "ahb1_ts", "ahb1_hstimer", |
| 153 | "ahb1_spi0", "ahb1_spi1", "ahb1_spi2", |
| 154 | "ahb1_spi3", "ahb1_otg", "ahb1_ehci0", |
| 155 | "ahb1_ehci1", "ahb1_ohci0", |
| 156 | "ahb1_ohci1", "ahb1_ohci2", "ahb1_ve", |
| 157 | "ahb1_lcd0", "ahb1_lcd1", "ahb1_csi", |
| 158 | "ahb1_hdmi", "ahb1_de0", "ahb1_de1", |
| 159 | "ahb1_fe0", "ahb1_fe1", "ahb1_mp", |
| 160 | "ahb1_gpu", "ahb1_deu0", "ahb1_deu1", |
| 161 | "ahb1_drc0", "ahb1_drc1"; |
| 162 | }; |
| 163 | |
| 164 | apb1: apb1@01c20054 { |
| 165 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 166 | compatible = "allwinner,sun4i-a10-apb0-clk"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 167 | reg = <0x01c20054 0x4>; |
| 168 | clocks = <&ahb1>; |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 169 | clock-output-names = "apb1"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 170 | }; |
| 171 | |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 172 | apb1_gates: clk@01c20068 { |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 173 | #clock-cells = <1>; |
| 174 | compatible = "allwinner,sun6i-a31-apb1-gates-clk"; |
| 175 | reg = <0x01c20068 0x4>; |
| 176 | clocks = <&apb1>; |
| 177 | clock-output-names = "apb1_codec", "apb1_digital_mic", |
| 178 | "apb1_pio", "apb1_daudio0", |
| 179 | "apb1_daudio1"; |
| 180 | }; |
| 181 | |
| 182 | apb2_mux: apb2_mux@01c20058 { |
| 183 | #clock-cells = <0>; |
Maxime Ripard | bf6534a | 2014-02-06 09:55:58 +0100 | [diff] [blame] | 184 | compatible = "allwinner,sun4i-a10-apb1-mux-clk"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 185 | reg = <0x01c20058 0x4>; |
| 186 | clocks = <&osc32k>, <&osc24M>, <&pll6>, <&pll6>; |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 187 | clock-output-names = "apb2_mux"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 188 | }; |
| 189 | |
| 190 | apb2: apb2@01c20058 { |
| 191 | #clock-cells = <0>; |
| 192 | compatible = "allwinner,sun6i-a31-apb2-div-clk"; |
| 193 | reg = <0x01c20058 0x4>; |
| 194 | clocks = <&apb2_mux>; |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 195 | clock-output-names = "apb2"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 196 | }; |
| 197 | |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 198 | apb2_gates: clk@01c2006c { |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 199 | #clock-cells = <1>; |
| 200 | compatible = "allwinner,sun6i-a31-apb2-gates-clk"; |
Maxime Ripard | 439d9f5 | 2013-09-24 16:30:05 +0300 | [diff] [blame] | 201 | reg = <0x01c2006c 0x4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 202 | clocks = <&apb2>; |
| 203 | clock-output-names = "apb2_i2c0", "apb2_i2c1", |
| 204 | "apb2_i2c2", "apb2_i2c3", "apb2_uart0", |
| 205 | "apb2_uart1", "apb2_uart2", "apb2_uart3", |
| 206 | "apb2_uart4", "apb2_uart5"; |
| 207 | }; |
Maxime Ripard | b0a09c7 | 2014-02-05 14:05:04 +0100 | [diff] [blame] | 208 | |
Hans de Goede | adc54c8 | 2014-05-02 17:57:23 +0200 | [diff] [blame^] | 209 | mmc0_clk: clk@01c20088 { |
| 210 | #clock-cells = <0>; |
| 211 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
| 212 | reg = <0x01c20088 0x4>; |
| 213 | clocks = <&osc24M>, <&pll6>; |
| 214 | clock-output-names = "mmc0"; |
| 215 | }; |
| 216 | |
| 217 | mmc1_clk: clk@01c2008c { |
| 218 | #clock-cells = <0>; |
| 219 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
| 220 | reg = <0x01c2008c 0x4>; |
| 221 | clocks = <&osc24M>, <&pll6>; |
| 222 | clock-output-names = "mmc1"; |
| 223 | }; |
| 224 | |
| 225 | mmc2_clk: clk@01c20090 { |
| 226 | #clock-cells = <0>; |
| 227 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
| 228 | reg = <0x01c20090 0x4>; |
| 229 | clocks = <&osc24M>, <&pll6>; |
| 230 | clock-output-names = "mmc2"; |
| 231 | }; |
| 232 | |
| 233 | mmc3_clk: clk@01c20094 { |
| 234 | #clock-cells = <0>; |
| 235 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
| 236 | reg = <0x01c20094 0x4>; |
| 237 | clocks = <&osc24M>, <&pll6>; |
| 238 | clock-output-names = "mmc3"; |
| 239 | }; |
| 240 | |
Maxime Ripard | b0a09c7 | 2014-02-05 14:05:04 +0100 | [diff] [blame] | 241 | spi0_clk: clk@01c200a0 { |
| 242 | #clock-cells = <0>; |
Maxime Ripard | 225b021 | 2014-02-24 17:29:06 +0100 | [diff] [blame] | 243 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Maxime Ripard | b0a09c7 | 2014-02-05 14:05:04 +0100 | [diff] [blame] | 244 | reg = <0x01c200a0 0x4>; |
| 245 | clocks = <&osc24M>, <&pll6>; |
| 246 | clock-output-names = "spi0"; |
| 247 | }; |
| 248 | |
| 249 | spi1_clk: clk@01c200a4 { |
| 250 | #clock-cells = <0>; |
Maxime Ripard | 225b021 | 2014-02-24 17:29:06 +0100 | [diff] [blame] | 251 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Maxime Ripard | b0a09c7 | 2014-02-05 14:05:04 +0100 | [diff] [blame] | 252 | reg = <0x01c200a4 0x4>; |
| 253 | clocks = <&osc24M>, <&pll6>; |
| 254 | clock-output-names = "spi1"; |
| 255 | }; |
| 256 | |
| 257 | spi2_clk: clk@01c200a8 { |
| 258 | #clock-cells = <0>; |
Maxime Ripard | 225b021 | 2014-02-24 17:29:06 +0100 | [diff] [blame] | 259 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Maxime Ripard | b0a09c7 | 2014-02-05 14:05:04 +0100 | [diff] [blame] | 260 | reg = <0x01c200a8 0x4>; |
| 261 | clocks = <&osc24M>, <&pll6>; |
| 262 | clock-output-names = "spi2"; |
| 263 | }; |
| 264 | |
| 265 | spi3_clk: clk@01c200ac { |
| 266 | #clock-cells = <0>; |
Maxime Ripard | 225b021 | 2014-02-24 17:29:06 +0100 | [diff] [blame] | 267 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Maxime Ripard | b0a09c7 | 2014-02-05 14:05:04 +0100 | [diff] [blame] | 268 | reg = <0x01c200ac 0x4>; |
| 269 | clocks = <&osc24M>, <&pll6>; |
| 270 | clock-output-names = "spi3"; |
| 271 | }; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 272 | }; |
| 273 | |
| 274 | soc@01c00000 { |
| 275 | compatible = "simple-bus"; |
| 276 | #address-cells = <1>; |
| 277 | #size-cells = <1>; |
| 278 | ranges; |
| 279 | |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 280 | dma: dma-controller@01c02000 { |
| 281 | compatible = "allwinner,sun6i-a31-dma"; |
| 282 | reg = <0x01c02000 0x1000>; |
| 283 | interrupts = <0 50 4>; |
| 284 | clocks = <&ahb1_gates 6>; |
| 285 | resets = <&ahb1_rst 6>; |
| 286 | #dma-cells = <1>; |
| 287 | }; |
| 288 | |
Maxime Ripard | 140e172 | 2013-03-12 22:16:05 +0100 | [diff] [blame] | 289 | pio: pinctrl@01c20800 { |
| 290 | compatible = "allwinner,sun6i-a31-pinctrl"; |
| 291 | reg = <0x01c20800 0x400>; |
Maxime Ripard | 6f97dc8 | 2013-12-10 19:37:22 +0100 | [diff] [blame] | 292 | interrupts = <0 11 4>, |
| 293 | <0 15 4>, |
| 294 | <0 16 4>, |
| 295 | <0 17 4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 296 | clocks = <&apb1_gates 5>; |
Maxime Ripard | 140e172 | 2013-03-12 22:16:05 +0100 | [diff] [blame] | 297 | gpio-controller; |
| 298 | interrupt-controller; |
| 299 | #address-cells = <1>; |
| 300 | #size-cells = <0>; |
| 301 | #gpio-cells = <3>; |
Maxime Ripard | ab4238c | 2013-06-22 23:56:40 +0200 | [diff] [blame] | 302 | |
| 303 | uart0_pins_a: uart0@0 { |
| 304 | allwinner,pins = "PH20", "PH21"; |
| 305 | allwinner,function = "uart0"; |
| 306 | allwinner,drive = <0>; |
| 307 | allwinner,pull = <0>; |
| 308 | }; |
Maxime Ripard | 8be188b | 2014-03-04 17:28:40 +0100 | [diff] [blame] | 309 | |
| 310 | i2c0_pins_a: i2c0@0 { |
| 311 | allwinner,pins = "PH14", "PH15"; |
| 312 | allwinner,function = "i2c0"; |
| 313 | allwinner,drive = <0>; |
| 314 | allwinner,pull = <0>; |
| 315 | }; |
| 316 | |
| 317 | i2c1_pins_a: i2c1@0 { |
| 318 | allwinner,pins = "PH16", "PH17"; |
| 319 | allwinner,function = "i2c1"; |
| 320 | allwinner,drive = <0>; |
| 321 | allwinner,pull = <0>; |
| 322 | }; |
| 323 | |
| 324 | i2c2_pins_a: i2c2@0 { |
| 325 | allwinner,pins = "PH18", "PH19"; |
| 326 | allwinner,function = "i2c2"; |
| 327 | allwinner,drive = <0>; |
| 328 | allwinner,pull = <0>; |
| 329 | }; |
Hans de Goede | 9797eb8 | 2014-04-26 12:16:16 +0200 | [diff] [blame] | 330 | |
| 331 | mmc0_pins_a: mmc0@0 { |
| 332 | allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5"; |
| 333 | allwinner,function = "mmc0"; |
| 334 | allwinner,drive = <2>; |
| 335 | allwinner,pull = <0>; |
| 336 | }; |
Maxime Ripard | 140e172 | 2013-03-12 22:16:05 +0100 | [diff] [blame] | 337 | }; |
| 338 | |
Maxime Ripard | 24a661e9 | 2013-09-24 11:10:41 +0300 | [diff] [blame] | 339 | ahb1_rst: reset@01c202c0 { |
| 340 | #reset-cells = <1>; |
| 341 | compatible = "allwinner,sun6i-a31-ahb1-reset"; |
| 342 | reg = <0x01c202c0 0xc>; |
| 343 | }; |
| 344 | |
| 345 | apb1_rst: reset@01c202d0 { |
| 346 | #reset-cells = <1>; |
| 347 | compatible = "allwinner,sun6i-a31-clock-reset"; |
| 348 | reg = <0x01c202d0 0x4>; |
| 349 | }; |
| 350 | |
| 351 | apb2_rst: reset@01c202d8 { |
| 352 | #reset-cells = <1>; |
| 353 | compatible = "allwinner,sun6i-a31-clock-reset"; |
| 354 | reg = <0x01c202d8 0x4>; |
| 355 | }; |
| 356 | |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 357 | timer@01c20c00 { |
Maxime Ripard | b4f2644 | 2014-02-06 10:40:32 +0100 | [diff] [blame] | 358 | compatible = "allwinner,sun4i-a10-timer"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 359 | reg = <0x01c20c00 0xa0>; |
Maxime Ripard | 6f97dc8 | 2013-12-10 19:37:22 +0100 | [diff] [blame] | 360 | interrupts = <0 18 4>, |
| 361 | <0 19 4>, |
| 362 | <0 20 4>, |
| 363 | <0 21 4>, |
| 364 | <0 22 4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 365 | clocks = <&osc24M>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 366 | }; |
| 367 | |
| 368 | wdt1: watchdog@01c20ca0 { |
Maxime Ripard | ca5d04d | 2014-02-07 22:29:26 +0100 | [diff] [blame] | 369 | compatible = "allwinner,sun6i-a31-wdt"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 370 | reg = <0x01c20ca0 0x20>; |
| 371 | }; |
| 372 | |
| 373 | uart0: serial@01c28000 { |
| 374 | compatible = "snps,dw-apb-uart"; |
| 375 | reg = <0x01c28000 0x400>; |
Maxime Ripard | 6f97dc8 | 2013-12-10 19:37:22 +0100 | [diff] [blame] | 376 | interrupts = <0 0 4>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 377 | reg-shift = <2>; |
| 378 | reg-io-width = <4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 379 | clocks = <&apb2_gates 16>; |
Maxime Ripard | 24a661e9 | 2013-09-24 11:10:41 +0300 | [diff] [blame] | 380 | resets = <&apb2_rst 16>; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 381 | dmas = <&dma 6>, <&dma 6>; |
| 382 | dma-names = "rx", "tx"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 383 | status = "disabled"; |
| 384 | }; |
| 385 | |
| 386 | uart1: serial@01c28400 { |
| 387 | compatible = "snps,dw-apb-uart"; |
| 388 | reg = <0x01c28400 0x400>; |
Maxime Ripard | 6f97dc8 | 2013-12-10 19:37:22 +0100 | [diff] [blame] | 389 | interrupts = <0 1 4>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 390 | reg-shift = <2>; |
| 391 | reg-io-width = <4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 392 | clocks = <&apb2_gates 17>; |
Maxime Ripard | 24a661e9 | 2013-09-24 11:10:41 +0300 | [diff] [blame] | 393 | resets = <&apb2_rst 17>; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 394 | dmas = <&dma 7>, <&dma 7>; |
| 395 | dma-names = "rx", "tx"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 396 | status = "disabled"; |
| 397 | }; |
| 398 | |
| 399 | uart2: serial@01c28800 { |
| 400 | compatible = "snps,dw-apb-uart"; |
| 401 | reg = <0x01c28800 0x400>; |
Maxime Ripard | 6f97dc8 | 2013-12-10 19:37:22 +0100 | [diff] [blame] | 402 | interrupts = <0 2 4>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 403 | reg-shift = <2>; |
| 404 | reg-io-width = <4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 405 | clocks = <&apb2_gates 18>; |
Maxime Ripard | 24a661e9 | 2013-09-24 11:10:41 +0300 | [diff] [blame] | 406 | resets = <&apb2_rst 18>; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 407 | dmas = <&dma 8>, <&dma 8>; |
| 408 | dma-names = "rx", "tx"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 409 | status = "disabled"; |
| 410 | }; |
| 411 | |
| 412 | uart3: serial@01c28c00 { |
| 413 | compatible = "snps,dw-apb-uart"; |
| 414 | reg = <0x01c28c00 0x400>; |
Maxime Ripard | 6f97dc8 | 2013-12-10 19:37:22 +0100 | [diff] [blame] | 415 | interrupts = <0 3 4>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 416 | reg-shift = <2>; |
| 417 | reg-io-width = <4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 418 | clocks = <&apb2_gates 19>; |
Maxime Ripard | 24a661e9 | 2013-09-24 11:10:41 +0300 | [diff] [blame] | 419 | resets = <&apb2_rst 19>; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 420 | dmas = <&dma 9>, <&dma 9>; |
| 421 | dma-names = "rx", "tx"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 422 | status = "disabled"; |
| 423 | }; |
| 424 | |
| 425 | uart4: serial@01c29000 { |
| 426 | compatible = "snps,dw-apb-uart"; |
| 427 | reg = <0x01c29000 0x400>; |
Maxime Ripard | 6f97dc8 | 2013-12-10 19:37:22 +0100 | [diff] [blame] | 428 | interrupts = <0 4 4>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 429 | reg-shift = <2>; |
| 430 | reg-io-width = <4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 431 | clocks = <&apb2_gates 20>; |
Maxime Ripard | 24a661e9 | 2013-09-24 11:10:41 +0300 | [diff] [blame] | 432 | resets = <&apb2_rst 20>; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 433 | dmas = <&dma 10>, <&dma 10>; |
| 434 | dma-names = "rx", "tx"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 435 | status = "disabled"; |
| 436 | }; |
| 437 | |
| 438 | uart5: serial@01c29400 { |
| 439 | compatible = "snps,dw-apb-uart"; |
| 440 | reg = <0x01c29400 0x400>; |
Maxime Ripard | 6f97dc8 | 2013-12-10 19:37:22 +0100 | [diff] [blame] | 441 | interrupts = <0 5 4>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 442 | reg-shift = <2>; |
| 443 | reg-io-width = <4>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 444 | clocks = <&apb2_gates 21>; |
Maxime Ripard | 24a661e9 | 2013-09-24 11:10:41 +0300 | [diff] [blame] | 445 | resets = <&apb2_rst 21>; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 446 | dmas = <&dma 22>, <&dma 22>; |
| 447 | dma-names = "rx", "tx"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 448 | status = "disabled"; |
| 449 | }; |
| 450 | |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 451 | i2c0: i2c@01c2ac00 { |
| 452 | compatible = "allwinner,sun6i-a31-i2c"; |
| 453 | reg = <0x01c2ac00 0x400>; |
| 454 | interrupts = <0 6 4>; |
| 455 | clocks = <&apb2_gates 0>; |
| 456 | clock-frequency = <100000>; |
| 457 | resets = <&apb2_rst 0>; |
| 458 | status = "disabled"; |
| 459 | }; |
| 460 | |
| 461 | i2c1: i2c@01c2b000 { |
| 462 | compatible = "allwinner,sun6i-a31-i2c"; |
| 463 | reg = <0x01c2b000 0x400>; |
| 464 | interrupts = <0 7 4>; |
| 465 | clocks = <&apb2_gates 1>; |
| 466 | clock-frequency = <100000>; |
| 467 | resets = <&apb2_rst 1>; |
| 468 | status = "disabled"; |
| 469 | }; |
| 470 | |
| 471 | i2c2: i2c@01c2b400 { |
| 472 | compatible = "allwinner,sun6i-a31-i2c"; |
| 473 | reg = <0x01c2b400 0x400>; |
| 474 | interrupts = <0 8 4>; |
| 475 | clocks = <&apb2_gates 2>; |
| 476 | clock-frequency = <100000>; |
| 477 | resets = <&apb2_rst 2>; |
| 478 | status = "disabled"; |
| 479 | }; |
| 480 | |
| 481 | i2c3: i2c@01c2b800 { |
| 482 | compatible = "allwinner,sun6i-a31-i2c"; |
| 483 | reg = <0x01c2b800 0x400>; |
| 484 | interrupts = <0 9 4>; |
| 485 | clocks = <&apb2_gates 3>; |
| 486 | clock-frequency = <100000>; |
| 487 | resets = <&apb2_rst 3>; |
| 488 | status = "disabled"; |
| 489 | }; |
| 490 | |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 491 | spi0: spi@01c68000 { |
| 492 | compatible = "allwinner,sun6i-a31-spi"; |
| 493 | reg = <0x01c68000 0x1000>; |
| 494 | interrupts = <0 65 4>; |
| 495 | clocks = <&ahb1_gates 20>, <&spi0_clk>; |
| 496 | clock-names = "ahb", "mod"; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 497 | dmas = <&dma 23>, <&dma 23>; |
| 498 | dma-names = "rx", "tx"; |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 499 | resets = <&ahb1_rst 20>; |
| 500 | status = "disabled"; |
| 501 | }; |
| 502 | |
| 503 | spi1: spi@01c69000 { |
| 504 | compatible = "allwinner,sun6i-a31-spi"; |
| 505 | reg = <0x01c69000 0x1000>; |
| 506 | interrupts = <0 66 4>; |
| 507 | clocks = <&ahb1_gates 21>, <&spi1_clk>; |
| 508 | clock-names = "ahb", "mod"; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 509 | dmas = <&dma 24>, <&dma 24>; |
| 510 | dma-names = "rx", "tx"; |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 511 | resets = <&ahb1_rst 21>; |
| 512 | status = "disabled"; |
| 513 | }; |
| 514 | |
| 515 | spi2: spi@01c6a000 { |
| 516 | compatible = "allwinner,sun6i-a31-spi"; |
| 517 | reg = <0x01c6a000 0x1000>; |
| 518 | interrupts = <0 67 4>; |
| 519 | clocks = <&ahb1_gates 22>, <&spi2_clk>; |
| 520 | clock-names = "ahb", "mod"; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 521 | dmas = <&dma 25>, <&dma 25>; |
| 522 | dma-names = "rx", "tx"; |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 523 | resets = <&ahb1_rst 22>; |
| 524 | status = "disabled"; |
| 525 | }; |
| 526 | |
| 527 | spi3: spi@01c6b000 { |
| 528 | compatible = "allwinner,sun6i-a31-spi"; |
| 529 | reg = <0x01c6b000 0x1000>; |
| 530 | interrupts = <0 68 4>; |
| 531 | clocks = <&ahb1_gates 23>, <&spi3_clk>; |
| 532 | clock-names = "ahb", "mod"; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 533 | dmas = <&dma 26>, <&dma 26>; |
| 534 | dma-names = "rx", "tx"; |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 535 | resets = <&ahb1_rst 23>; |
| 536 | status = "disabled"; |
| 537 | }; |
| 538 | |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 539 | gic: interrupt-controller@01c81000 { |
| 540 | compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic"; |
| 541 | reg = <0x01c81000 0x1000>, |
| 542 | <0x01c82000 0x1000>, |
| 543 | <0x01c84000 0x2000>, |
| 544 | <0x01c86000 0x2000>; |
| 545 | interrupt-controller; |
| 546 | #interrupt-cells = <3>; |
| 547 | interrupts = <1 9 0xf04>; |
| 548 | }; |
Maxime Ripard | 81ee429 | 2013-11-03 10:30:12 +0100 | [diff] [blame] | 549 | |
Maxime Ripard | 28240d2 | 2014-04-17 10:29:35 +0200 | [diff] [blame] | 550 | nmi_intc: interrupt-controller@01f00c0c { |
| 551 | compatible = "allwinner,sun6i-a31-sc-nmi"; |
| 552 | interrupt-controller; |
| 553 | #interrupt-cells = <2>; |
| 554 | reg = <0x01f00c0c 0x38>; |
| 555 | interrupts = <0 32 4>; |
| 556 | }; |
| 557 | |
Hans de Goede | a42ea60 | 2014-04-13 13:41:02 +0200 | [diff] [blame] | 558 | prcm@01f01400 { |
| 559 | compatible = "allwinner,sun6i-a31-prcm"; |
| 560 | reg = <0x01f01400 0x200>; |
| 561 | }; |
| 562 | |
Maxime Ripard | 81ee429 | 2013-11-03 10:30:12 +0100 | [diff] [blame] | 563 | cpucfg@01f01c00 { |
| 564 | compatible = "allwinner,sun6i-a31-cpuconfig"; |
| 565 | reg = <0x01f01c00 0x300>; |
| 566 | }; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 567 | }; |
| 568 | }; |