Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014 Chen-Yu Tsai |
| 3 | * |
| 4 | * Chen-Yu Tsai <wens@csie.org> |
| 5 | * |
| 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. |
| 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 |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [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, |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [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 | * |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [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. |
| 43 | */ |
| 44 | |
Maxime Ripard | 7145570 | 2014-12-16 22:59:54 +0100 | [diff] [blame] | 45 | #include "skeleton64.dtsi" |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +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 | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 50 | |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 51 | #include <dt-bindings/clock/sun9i-a80-ccu.h> |
| 52 | #include <dt-bindings/clock/sun9i-a80-de.h> |
| 53 | #include <dt-bindings/clock/sun9i-a80-usb.h> |
| 54 | #include <dt-bindings/reset/sun9i-a80-ccu.h> |
| 55 | #include <dt-bindings/reset/sun9i-a80-de.h> |
| 56 | #include <dt-bindings/reset/sun9i-a80-usb.h> |
| 57 | |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 58 | / { |
| 59 | interrupt-parent = <&gic>; |
| 60 | |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 61 | cpus { |
| 62 | #address-cells = <1>; |
| 63 | #size-cells = <0>; |
| 64 | |
| 65 | cpu0: cpu@0 { |
| 66 | compatible = "arm,cortex-a7"; |
| 67 | device_type = "cpu"; |
| 68 | reg = <0x0>; |
| 69 | }; |
| 70 | |
| 71 | cpu1: cpu@1 { |
| 72 | compatible = "arm,cortex-a7"; |
| 73 | device_type = "cpu"; |
| 74 | reg = <0x1>; |
| 75 | }; |
| 76 | |
| 77 | cpu2: cpu@2 { |
| 78 | compatible = "arm,cortex-a7"; |
| 79 | device_type = "cpu"; |
| 80 | reg = <0x2>; |
| 81 | }; |
| 82 | |
| 83 | cpu3: cpu@3 { |
| 84 | compatible = "arm,cortex-a7"; |
| 85 | device_type = "cpu"; |
| 86 | reg = <0x3>; |
| 87 | }; |
| 88 | |
| 89 | cpu4: cpu@100 { |
| 90 | compatible = "arm,cortex-a15"; |
| 91 | device_type = "cpu"; |
| 92 | reg = <0x100>; |
| 93 | }; |
| 94 | |
| 95 | cpu5: cpu@101 { |
| 96 | compatible = "arm,cortex-a15"; |
| 97 | device_type = "cpu"; |
| 98 | reg = <0x101>; |
| 99 | }; |
| 100 | |
| 101 | cpu6: cpu@102 { |
| 102 | compatible = "arm,cortex-a15"; |
| 103 | device_type = "cpu"; |
| 104 | reg = <0x102>; |
| 105 | }; |
| 106 | |
| 107 | cpu7: cpu@103 { |
| 108 | compatible = "arm,cortex-a15"; |
| 109 | device_type = "cpu"; |
| 110 | reg = <0x103>; |
| 111 | }; |
| 112 | }; |
| 113 | |
| 114 | memory { |
| 115 | /* 8GB max. with LPAE */ |
| 116 | reg = <0 0x20000000 0x02 0>; |
| 117 | }; |
| 118 | |
Chen-Yu Tsai | 51e9f5f | 2015-03-18 16:00:28 +0800 | [diff] [blame] | 119 | timer { |
| 120 | compatible = "arm,armv7-timer"; |
| 121 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 122 | <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 123 | <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 124 | <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; |
| 125 | clock-frequency = <24000000>; |
| 126 | arm,cpu-registers-not-fw-configured; |
| 127 | }; |
| 128 | |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 129 | clocks { |
| 130 | #address-cells = <1>; |
| 131 | #size-cells = <1>; |
| 132 | /* |
| 133 | * map 64 bit address range down to 32 bits, |
| 134 | * as the peripherals are all under 512MB. |
| 135 | */ |
| 136 | ranges = <0 0 0 0x20000000>; |
| 137 | |
Chen-Yu Tsai | d255abd | 2015-11-29 11:03:10 +0800 | [diff] [blame] | 138 | /* |
| 139 | * This clock is actually configurable from the PRCM address |
| 140 | * space. The external 24M oscillator can be turned off, and |
| 141 | * the clock switched to an internal 16M RC oscillator. Under |
| 142 | * normal operation there's no reason to do this, and the |
| 143 | * default is to use the external good one, so just model this |
| 144 | * as a fixed clock. Also it is not entirely clear if the |
| 145 | * osc24M mux in the PRCM affects the entire clock tree, which |
| 146 | * would also throw all the PLL clock rates off, or just the |
| 147 | * downstream clocks in the PRCM. |
| 148 | */ |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 149 | osc24M: osc24M_clk { |
| 150 | #clock-cells = <0>; |
| 151 | compatible = "fixed-clock"; |
| 152 | clock-frequency = <24000000>; |
| 153 | clock-output-names = "osc24M"; |
| 154 | }; |
| 155 | |
Chen-Yu Tsai | d255abd | 2015-11-29 11:03:10 +0800 | [diff] [blame] | 156 | /* |
| 157 | * The 32k clock is from an external source, normally the |
Chen-Yu Tsai | 1626698 | 2016-08-19 15:42:26 +0800 | [diff] [blame] | 158 | * AC100 codec/RTC chip. This serves as a placeholder for |
| 159 | * board dts files to specify the source. |
Chen-Yu Tsai | d255abd | 2015-11-29 11:03:10 +0800 | [diff] [blame] | 160 | */ |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 161 | osc32k: osc32k_clk { |
| 162 | #clock-cells = <0>; |
Chen-Yu Tsai | 1626698 | 2016-08-19 15:42:26 +0800 | [diff] [blame] | 163 | compatible = "fixed-factor-clock"; |
| 164 | clock-div = <1>; |
| 165 | clock-mult = <1>; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 166 | clock-output-names = "osc32k"; |
| 167 | }; |
Chen-Yu Tsai | ac399a9 | 2014-10-20 22:10:30 +0800 | [diff] [blame] | 168 | |
Chen-Yu Tsai | afd7d66 | 2015-11-29 11:03:09 +0800 | [diff] [blame] | 169 | cpus_clk: clk@08001410 { |
| 170 | compatible = "allwinner,sun9i-a80-cpus-clk"; |
| 171 | reg = <0x08001410 0x4>; |
| 172 | #clock-cells = <0>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 173 | clocks = <&osc32k>, <&osc24M>, |
| 174 | <&ccu CLK_PLL_PERIPH0>, |
| 175 | <&ccu CLK_PLL_AUDIO>; |
Chen-Yu Tsai | afd7d66 | 2015-11-29 11:03:09 +0800 | [diff] [blame] | 176 | clock-output-names = "cpus"; |
| 177 | }; |
| 178 | |
| 179 | ahbs: ahbs_clk { |
| 180 | compatible = "fixed-factor-clock"; |
| 181 | #clock-cells = <0>; |
| 182 | clock-div = <1>; |
| 183 | clock-mult = <1>; |
| 184 | clocks = <&cpus_clk>; |
| 185 | clock-output-names = "ahbs"; |
| 186 | }; |
| 187 | |
| 188 | apbs: clk@0800141c { |
| 189 | compatible = "allwinner,sun8i-a23-apb0-clk"; |
| 190 | reg = <0x0800141c 0x4>; |
| 191 | #clock-cells = <0>; |
| 192 | clocks = <&ahbs>; |
| 193 | clock-output-names = "apbs"; |
| 194 | }; |
| 195 | |
| 196 | apbs_gates: clk@08001428 { |
| 197 | compatible = "allwinner,sun9i-a80-apbs-gates-clk"; |
| 198 | reg = <0x08001428 0x4>; |
| 199 | #clock-cells = <1>; |
| 200 | clocks = <&apbs>; |
| 201 | clock-indices = <0>, <1>, |
| 202 | <2>, <3>, |
| 203 | <4>, <5>, |
| 204 | <6>, <7>, |
| 205 | <12>, <13>, |
| 206 | <16>, <17>, |
| 207 | <18>, <20>; |
| 208 | clock-output-names = "apbs_pio", "apbs_ir", |
| 209 | "apbs_timer", "apbs_rsb", |
| 210 | "apbs_uart", "apbs_1wire", |
| 211 | "apbs_i2c0", "apbs_i2c1", |
| 212 | "apbs_ps2_0", "apbs_ps2_1", |
| 213 | "apbs_dma", "apbs_i2s0", |
| 214 | "apbs_i2s1", "apbs_twd"; |
| 215 | }; |
| 216 | |
| 217 | r_1wire_clk: clk@08001450 { |
| 218 | reg = <0x08001450 0x4>; |
| 219 | #clock-cells = <0>; |
| 220 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
| 221 | clocks = <&osc32k>, <&osc24M>; |
| 222 | clock-output-names = "r_1wire"; |
| 223 | }; |
| 224 | |
| 225 | r_ir_clk: clk@08001454 { |
| 226 | reg = <0x08001454 0x4>; |
| 227 | #clock-cells = <0>; |
| 228 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
| 229 | clocks = <&osc32k>, <&osc24M>; |
| 230 | clock-output-names = "r_ir"; |
| 231 | }; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 232 | }; |
| 233 | |
| 234 | soc { |
| 235 | compatible = "simple-bus"; |
| 236 | #address-cells = <1>; |
| 237 | #size-cells = <1>; |
| 238 | /* |
| 239 | * map 64 bit address range down to 32 bits, |
| 240 | * as the peripherals are all under 512MB. |
| 241 | */ |
| 242 | ranges = <0 0 0 0x20000000>; |
| 243 | |
Chen-Yu Tsai | 7047216 | 2015-02-03 06:22:02 +0800 | [diff] [blame] | 244 | ehci0: usb@00a00000 { |
| 245 | compatible = "allwinner,sun9i-a80-ehci", "generic-ehci"; |
| 246 | reg = <0x00a00000 0x100>; |
| 247 | interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 248 | clocks = <&usb_clocks CLK_BUS_HCI0>; |
| 249 | resets = <&usb_clocks RST_USB0_HCI>; |
Chen-Yu Tsai | 7047216 | 2015-02-03 06:22:02 +0800 | [diff] [blame] | 250 | phys = <&usbphy1>; |
| 251 | phy-names = "usb"; |
| 252 | status = "disabled"; |
| 253 | }; |
| 254 | |
| 255 | ohci0: usb@00a00400 { |
| 256 | compatible = "allwinner,sun9i-a80-ohci", "generic-ohci"; |
| 257 | reg = <0x00a00400 0x100>; |
| 258 | interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 259 | clocks = <&usb_clocks CLK_BUS_HCI0>, |
| 260 | <&usb_clocks CLK_USB_OHCI0>; |
| 261 | resets = <&usb_clocks RST_USB0_HCI>; |
Chen-Yu Tsai | 7047216 | 2015-02-03 06:22:02 +0800 | [diff] [blame] | 262 | phys = <&usbphy1>; |
| 263 | phy-names = "usb"; |
| 264 | status = "disabled"; |
| 265 | }; |
| 266 | |
Chen-Yu Tsai | 1af5d19 | 2015-01-28 03:54:10 +0800 | [diff] [blame] | 267 | usbphy1: phy@00a00800 { |
| 268 | compatible = "allwinner,sun9i-a80-usb-phy"; |
| 269 | reg = <0x00a00800 0x4>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 270 | clocks = <&usb_clocks CLK_USB0_PHY>; |
Chen-Yu Tsai | 1af5d19 | 2015-01-28 03:54:10 +0800 | [diff] [blame] | 271 | clock-names = "phy"; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 272 | resets = <&usb_clocks RST_USB0_PHY>; |
Chen-Yu Tsai | 1af5d19 | 2015-01-28 03:54:10 +0800 | [diff] [blame] | 273 | reset-names = "phy"; |
| 274 | status = "disabled"; |
| 275 | #phy-cells = <0>; |
| 276 | }; |
| 277 | |
Chen-Yu Tsai | 7047216 | 2015-02-03 06:22:02 +0800 | [diff] [blame] | 278 | ehci1: usb@00a01000 { |
| 279 | compatible = "allwinner,sun9i-a80-ehci", "generic-ehci"; |
| 280 | reg = <0x00a01000 0x100>; |
| 281 | interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 282 | clocks = <&usb_clocks CLK_BUS_HCI1>; |
| 283 | resets = <&usb_clocks RST_USB1_HCI>; |
Chen-Yu Tsai | 7047216 | 2015-02-03 06:22:02 +0800 | [diff] [blame] | 284 | phys = <&usbphy2>; |
| 285 | phy-names = "usb"; |
| 286 | status = "disabled"; |
| 287 | }; |
| 288 | |
Chen-Yu Tsai | 1af5d19 | 2015-01-28 03:54:10 +0800 | [diff] [blame] | 289 | usbphy2: phy@00a01800 { |
| 290 | compatible = "allwinner,sun9i-a80-usb-phy"; |
| 291 | reg = <0x00a01800 0x4>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 292 | clocks = <&usb_clocks CLK_USB1_HSIC>, |
| 293 | <&usb_clocks CLK_USB_HSIC>, |
| 294 | <&usb_clocks CLK_USB1_PHY>; |
| 295 | clock-names = "hsic_480M", |
| 296 | "hsic_12M", |
| 297 | "phy"; |
| 298 | resets = <&usb_clocks RST_USB1_HSIC>, |
| 299 | <&usb_clocks RST_USB1_PHY>; |
| 300 | reset-names = "hsic", |
| 301 | "phy"; |
Chen-Yu Tsai | 1af5d19 | 2015-01-28 03:54:10 +0800 | [diff] [blame] | 302 | status = "disabled"; |
| 303 | #phy-cells = <0>; |
| 304 | /* usb1 is always used with HSIC */ |
| 305 | phy_type = "hsic"; |
| 306 | }; |
| 307 | |
Chen-Yu Tsai | 7047216 | 2015-02-03 06:22:02 +0800 | [diff] [blame] | 308 | ehci2: usb@00a02000 { |
| 309 | compatible = "allwinner,sun9i-a80-ehci", "generic-ehci"; |
| 310 | reg = <0x00a02000 0x100>; |
| 311 | interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 312 | clocks = <&usb_clocks CLK_BUS_HCI2>; |
| 313 | resets = <&usb_clocks RST_USB2_HCI>; |
Chen-Yu Tsai | 7047216 | 2015-02-03 06:22:02 +0800 | [diff] [blame] | 314 | phys = <&usbphy3>; |
| 315 | phy-names = "usb"; |
| 316 | status = "disabled"; |
| 317 | }; |
| 318 | |
| 319 | ohci2: usb@00a02400 { |
| 320 | compatible = "allwinner,sun9i-a80-ohci", "generic-ohci"; |
| 321 | reg = <0x00a02400 0x100>; |
| 322 | interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 323 | clocks = <&usb_clocks CLK_BUS_HCI2>, |
| 324 | <&usb_clocks CLK_USB_OHCI2>; |
| 325 | resets = <&usb_clocks RST_USB2_HCI>; |
Chen-Yu Tsai | 7047216 | 2015-02-03 06:22:02 +0800 | [diff] [blame] | 326 | phys = <&usbphy3>; |
| 327 | phy-names = "usb"; |
| 328 | status = "disabled"; |
| 329 | }; |
| 330 | |
Chen-Yu Tsai | 1af5d19 | 2015-01-28 03:54:10 +0800 | [diff] [blame] | 331 | usbphy3: phy@00a02800 { |
| 332 | compatible = "allwinner,sun9i-a80-usb-phy"; |
| 333 | reg = <0x00a02800 0x4>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 334 | clocks = <&usb_clocks CLK_USB2_HSIC>, |
| 335 | <&usb_clocks CLK_USB_HSIC>, |
| 336 | <&usb_clocks CLK_USB2_PHY>; |
| 337 | clock-names = "hsic_480M", |
| 338 | "hsic_12M", |
| 339 | "phy"; |
| 340 | resets = <&usb_clocks RST_USB2_HSIC>, |
| 341 | <&usb_clocks RST_USB2_PHY>; |
| 342 | reset-names = "hsic", |
| 343 | "phy"; |
Chen-Yu Tsai | 1af5d19 | 2015-01-28 03:54:10 +0800 | [diff] [blame] | 344 | status = "disabled"; |
| 345 | #phy-cells = <0>; |
| 346 | }; |
| 347 | |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 348 | usb_clocks: clock@00a08000 { |
| 349 | compatible = "allwinner,sun9i-a80-usb-clks"; |
| 350 | reg = <0x00a08000 0x8>; |
| 351 | clocks = <&ccu CLK_BUS_USB>, <&osc24M>; |
| 352 | clock-names = "bus", "hosc"; |
| 353 | #clock-cells = <1>; |
| 354 | #reset-cells = <1>; |
| 355 | }; |
| 356 | |
Chen-Yu Tsai | 2f6941c | 2015-01-17 13:19:30 +0800 | [diff] [blame] | 357 | mmc0: mmc@01c0f000 { |
Chen-Yu Tsai | 3a95221 | 2016-01-21 13:26:39 +0800 | [diff] [blame] | 358 | compatible = "allwinner,sun9i-a80-mmc"; |
Chen-Yu Tsai | 2f6941c | 2015-01-17 13:19:30 +0800 | [diff] [blame] | 359 | reg = <0x01c0f000 0x1000>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 360 | clocks = <&mmc_config_clk 0>, <&ccu CLK_MMC0>, |
| 361 | <&ccu CLK_MMC0_OUTPUT>, |
| 362 | <&ccu CLK_MMC0_SAMPLE>; |
Chen-Yu Tsai | 2f6941c | 2015-01-17 13:19:30 +0800 | [diff] [blame] | 363 | clock-names = "ahb", "mmc", "output", "sample"; |
| 364 | resets = <&mmc_config_clk 0>; |
| 365 | reset-names = "ahb"; |
| 366 | interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; |
| 367 | status = "disabled"; |
Hans de Goede | 4c1bb9c | 2015-03-10 16:27:09 +0100 | [diff] [blame] | 368 | #address-cells = <1>; |
| 369 | #size-cells = <0>; |
Chen-Yu Tsai | 2f6941c | 2015-01-17 13:19:30 +0800 | [diff] [blame] | 370 | }; |
| 371 | |
| 372 | mmc1: mmc@01c10000 { |
Chen-Yu Tsai | 3a95221 | 2016-01-21 13:26:39 +0800 | [diff] [blame] | 373 | compatible = "allwinner,sun9i-a80-mmc"; |
Chen-Yu Tsai | 2f6941c | 2015-01-17 13:19:30 +0800 | [diff] [blame] | 374 | reg = <0x01c10000 0x1000>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 375 | clocks = <&mmc_config_clk 1>, <&ccu CLK_MMC1>, |
| 376 | <&ccu CLK_MMC1_OUTPUT>, |
| 377 | <&ccu CLK_MMC1_SAMPLE>; |
Chen-Yu Tsai | 2f6941c | 2015-01-17 13:19:30 +0800 | [diff] [blame] | 378 | clock-names = "ahb", "mmc", "output", "sample"; |
| 379 | resets = <&mmc_config_clk 1>; |
| 380 | reset-names = "ahb"; |
| 381 | interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; |
| 382 | status = "disabled"; |
Hans de Goede | 4c1bb9c | 2015-03-10 16:27:09 +0100 | [diff] [blame] | 383 | #address-cells = <1>; |
| 384 | #size-cells = <0>; |
Chen-Yu Tsai | 2f6941c | 2015-01-17 13:19:30 +0800 | [diff] [blame] | 385 | }; |
| 386 | |
| 387 | mmc2: mmc@01c11000 { |
Chen-Yu Tsai | 3a95221 | 2016-01-21 13:26:39 +0800 | [diff] [blame] | 388 | compatible = "allwinner,sun9i-a80-mmc"; |
Chen-Yu Tsai | 2f6941c | 2015-01-17 13:19:30 +0800 | [diff] [blame] | 389 | reg = <0x01c11000 0x1000>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 390 | clocks = <&mmc_config_clk 2>, <&ccu CLK_MMC2>, |
| 391 | <&ccu CLK_MMC2_OUTPUT>, |
| 392 | <&ccu CLK_MMC2_SAMPLE>; |
Chen-Yu Tsai | 2f6941c | 2015-01-17 13:19:30 +0800 | [diff] [blame] | 393 | clock-names = "ahb", "mmc", "output", "sample"; |
| 394 | resets = <&mmc_config_clk 2>; |
| 395 | reset-names = "ahb"; |
| 396 | interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; |
| 397 | status = "disabled"; |
Hans de Goede | 4c1bb9c | 2015-03-10 16:27:09 +0100 | [diff] [blame] | 398 | #address-cells = <1>; |
| 399 | #size-cells = <0>; |
Chen-Yu Tsai | 2f6941c | 2015-01-17 13:19:30 +0800 | [diff] [blame] | 400 | }; |
| 401 | |
| 402 | mmc3: mmc@01c12000 { |
Chen-Yu Tsai | 3a95221 | 2016-01-21 13:26:39 +0800 | [diff] [blame] | 403 | compatible = "allwinner,sun9i-a80-mmc"; |
Chen-Yu Tsai | 2f6941c | 2015-01-17 13:19:30 +0800 | [diff] [blame] | 404 | reg = <0x01c12000 0x1000>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 405 | clocks = <&mmc_config_clk 3>, <&ccu CLK_MMC3>, |
| 406 | <&ccu CLK_MMC3_OUTPUT>, |
| 407 | <&ccu CLK_MMC3_SAMPLE>; |
Chen-Yu Tsai | 2f6941c | 2015-01-17 13:19:30 +0800 | [diff] [blame] | 408 | clock-names = "ahb", "mmc", "output", "sample"; |
| 409 | resets = <&mmc_config_clk 3>; |
| 410 | reset-names = "ahb"; |
| 411 | interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>; |
| 412 | status = "disabled"; |
Hans de Goede | 4c1bb9c | 2015-03-10 16:27:09 +0100 | [diff] [blame] | 413 | #address-cells = <1>; |
| 414 | #size-cells = <0>; |
Chen-Yu Tsai | 2f6941c | 2015-01-17 13:19:30 +0800 | [diff] [blame] | 415 | }; |
| 416 | |
Chen-Yu Tsai | 9c56f3f | 2015-01-17 13:19:29 +0800 | [diff] [blame] | 417 | mmc_config_clk: clk@01c13000 { |
| 418 | compatible = "allwinner,sun9i-a80-mmc-config-clk"; |
| 419 | reg = <0x01c13000 0x10>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 420 | clocks = <&ccu CLK_BUS_MMC>; |
Chen-Yu Tsai | 9c56f3f | 2015-01-17 13:19:29 +0800 | [diff] [blame] | 421 | clock-names = "ahb"; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 422 | resets = <&ccu RST_BUS_MMC>; |
Chen-Yu Tsai | 9c56f3f | 2015-01-17 13:19:29 +0800 | [diff] [blame] | 423 | reset-names = "ahb"; |
| 424 | #clock-cells = <1>; |
| 425 | #reset-cells = <1>; |
| 426 | clock-output-names = "mmc0_config", "mmc1_config", |
| 427 | "mmc2_config", "mmc3_config"; |
| 428 | }; |
| 429 | |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 430 | gic: interrupt-controller@01c41000 { |
| 431 | compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic"; |
| 432 | reg = <0x01c41000 0x1000>, |
| 433 | <0x01c42000 0x1000>, |
| 434 | <0x01c44000 0x2000>, |
| 435 | <0x01c46000 0x2000>; |
| 436 | interrupt-controller; |
| 437 | #interrupt-cells = <3>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 438 | interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 439 | }; |
| 440 | |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 441 | de_clocks: clock@03000000 { |
| 442 | compatible = "allwinner,sun9i-a80-de-clks"; |
| 443 | reg = <0x03000000 0x30>; |
| 444 | clocks = <&ccu CLK_DE>, |
| 445 | <&ccu CLK_SDRAM>, |
| 446 | <&ccu CLK_BUS_DE>; |
| 447 | clock-names = "mod", |
| 448 | "dram", |
| 449 | "bus"; |
| 450 | resets = <&ccu RST_BUS_DE>; |
| 451 | #clock-cells = <1>; |
Chen-Yu Tsai | ac399a9 | 2014-10-20 22:10:30 +0800 | [diff] [blame] | 452 | #reset-cells = <1>; |
Chen-Yu Tsai | ac399a9 | 2014-10-20 22:10:30 +0800 | [diff] [blame] | 453 | }; |
| 454 | |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 455 | ccu: clock@06000000 { |
| 456 | compatible = "allwinner,sun9i-a80-ccu"; |
| 457 | reg = <0x06000000 0x800>; |
| 458 | clocks = <&osc24M>, <&osc32k>; |
| 459 | clock-names = "hosc", "losc"; |
| 460 | #clock-cells = <1>; |
Chen-Yu Tsai | ac399a9 | 2014-10-20 22:10:30 +0800 | [diff] [blame] | 461 | #reset-cells = <1>; |
Chen-Yu Tsai | ac399a9 | 2014-10-20 22:10:30 +0800 | [diff] [blame] | 462 | }; |
| 463 | |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 464 | timer@06000c00 { |
| 465 | compatible = "allwinner,sun4i-a10-timer"; |
| 466 | reg = <0x06000c00 0xa0>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 467 | interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>, |
| 468 | <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>, |
| 469 | <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>, |
| 470 | <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>, |
| 471 | <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>, |
| 472 | <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 473 | |
| 474 | clocks = <&osc24M>; |
| 475 | }; |
| 476 | |
Chen-Yu Tsai | 6d6693c | 2015-05-27 00:54:16 +0800 | [diff] [blame] | 477 | wdt: watchdog@06000ca0 { |
| 478 | compatible = "allwinner,sun6i-a31-wdt"; |
| 479 | reg = <0x06000ca0 0x20>; |
| 480 | interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>; |
| 481 | }; |
| 482 | |
Maxime Ripard | 43d024d | 2014-10-28 22:41:28 +0100 | [diff] [blame] | 483 | pio: pinctrl@06000800 { |
| 484 | compatible = "allwinner,sun9i-a80-pinctrl"; |
| 485 | reg = <0x06000800 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 486 | interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>, |
| 487 | <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>, |
| 488 | <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>, |
| 489 | <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>, |
| 490 | <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 491 | clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&osc32k>; |
Maxime Ripard | be7bc6b | 2016-10-19 11:15:27 +0200 | [diff] [blame] | 492 | clock-names = "apb", "hosc", "losc"; |
Maxime Ripard | 43d024d | 2014-10-28 22:41:28 +0100 | [diff] [blame] | 493 | gpio-controller; |
| 494 | interrupt-controller; |
Hans de Goede | 6d55d33 | 2015-10-15 16:28:45 +0200 | [diff] [blame] | 495 | #interrupt-cells = <3>; |
Maxime Ripard | 43d024d | 2014-10-28 22:41:28 +0100 | [diff] [blame] | 496 | #size-cells = <0>; |
| 497 | #gpio-cells = <3>; |
Maxime Ripard | 888366f | 2014-10-28 22:41:29 +0100 | [diff] [blame] | 498 | |
Chen-Yu Tsai | 6657a05 | 2014-10-31 11:05:47 +0800 | [diff] [blame] | 499 | i2c3_pins_a: i2c3@0 { |
| 500 | allwinner,pins = "PG10", "PG11"; |
| 501 | allwinner,function = "i2c3"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 502 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 503 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Chen-Yu Tsai | 6657a05 | 2014-10-31 11:05:47 +0800 | [diff] [blame] | 504 | }; |
| 505 | |
Chen-Yu Tsai | cd23e2e | 2015-01-13 09:37:31 +0800 | [diff] [blame] | 506 | mmc0_pins: mmc0 { |
| 507 | allwinner,pins = "PF0", "PF1" ,"PF2", "PF3", |
| 508 | "PF4", "PF5"; |
| 509 | allwinner,function = "mmc0"; |
| 510 | allwinner,drive = <SUN4I_PINCTRL_30_MA>; |
| 511 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
| 512 | }; |
| 513 | |
Chen-Yu Tsai | 56b0730 | 2016-10-28 18:11:52 +0800 | [diff] [blame] | 514 | mmc1_pins: mmc1 { |
| 515 | allwinner,pins = "PG0", "PG1" ,"PG2", "PG3", |
| 516 | "PG4", "PG5"; |
| 517 | allwinner,function = "mmc1"; |
| 518 | allwinner,drive = <SUN4I_PINCTRL_30_MA>; |
| 519 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
| 520 | }; |
| 521 | |
Chen-Yu Tsai | 23a602b | 2015-01-17 13:19:33 +0800 | [diff] [blame] | 522 | mmc2_8bit_pins: mmc2_8bit { |
| 523 | allwinner,pins = "PC6", "PC7", "PC8", "PC9", |
| 524 | "PC10", "PC11", "PC12", |
Chen-Yu Tsai | 675ec62 | 2016-01-21 13:26:40 +0800 | [diff] [blame] | 525 | "PC13", "PC14", "PC15", |
| 526 | "PC16"; |
Chen-Yu Tsai | 23a602b | 2015-01-17 13:19:33 +0800 | [diff] [blame] | 527 | allwinner,function = "mmc2"; |
| 528 | allwinner,drive = <SUN4I_PINCTRL_30_MA>; |
| 529 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Maxime Ripard | 888366f | 2014-10-28 22:41:29 +0100 | [diff] [blame] | 530 | }; |
Maxime Ripard | 43d024d | 2014-10-28 22:41:28 +0100 | [diff] [blame] | 531 | |
| 532 | uart0_pins_a: uart0@0 { |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 533 | allwinner,pins = "PH12", "PH13"; |
| 534 | allwinner,function = "uart0"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 535 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 536 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 537 | }; |
Chen-Yu Tsai | 2a950b2 | 2014-10-31 11:05:50 +0800 | [diff] [blame] | 538 | |
| 539 | uart4_pins_a: uart4@0 { |
| 540 | allwinner,pins = "PG12", "PG13", "PG14", "PG15"; |
| 541 | allwinner,function = "uart4"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 542 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 543 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
Chen-Yu Tsai | 2a950b2 | 2014-10-31 11:05:50 +0800 | [diff] [blame] | 544 | }; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 545 | }; |
| 546 | |
| 547 | uart0: serial@07000000 { |
Chen-Yu Tsai | ac399a9 | 2014-10-20 22:10:30 +0800 | [diff] [blame] | 548 | compatible = "snps,dw-apb-uart"; |
| 549 | reg = <0x07000000 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 550 | interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 551 | reg-shift = <2>; |
| 552 | reg-io-width = <4>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 553 | clocks = <&ccu CLK_BUS_UART0>; |
| 554 | resets = <&ccu RST_BUS_UART0>; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 555 | status = "disabled"; |
| 556 | }; |
| 557 | |
| 558 | uart1: serial@07000400 { |
| 559 | compatible = "snps,dw-apb-uart"; |
| 560 | reg = <0x07000400 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 561 | interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 562 | reg-shift = <2>; |
| 563 | reg-io-width = <4>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 564 | clocks = <&ccu CLK_BUS_UART1>; |
| 565 | resets = <&ccu RST_BUS_UART1>; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 566 | status = "disabled"; |
| 567 | }; |
| 568 | |
| 569 | uart2: serial@07000800 { |
| 570 | compatible = "snps,dw-apb-uart"; |
| 571 | reg = <0x07000800 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 572 | interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 573 | reg-shift = <2>; |
| 574 | reg-io-width = <4>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 575 | clocks = <&ccu CLK_BUS_UART2>; |
| 576 | resets = <&ccu RST_BUS_UART2>; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 577 | status = "disabled"; |
| 578 | }; |
| 579 | |
| 580 | uart3: serial@07000c00 { |
| 581 | compatible = "snps,dw-apb-uart"; |
| 582 | reg = <0x07000c00 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 583 | interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 584 | reg-shift = <2>; |
| 585 | reg-io-width = <4>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 586 | clocks = <&ccu CLK_BUS_UART3>; |
| 587 | resets = <&ccu RST_BUS_UART3>; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 588 | status = "disabled"; |
| 589 | }; |
| 590 | |
| 591 | uart4: serial@07001000 { |
| 592 | compatible = "snps,dw-apb-uart"; |
| 593 | reg = <0x07001000 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 594 | interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 595 | reg-shift = <2>; |
| 596 | reg-io-width = <4>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 597 | clocks = <&ccu CLK_BUS_UART4>; |
| 598 | resets = <&ccu RST_BUS_UART4>; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 599 | status = "disabled"; |
| 600 | }; |
| 601 | |
| 602 | uart5: serial@07001400 { |
| 603 | compatible = "snps,dw-apb-uart"; |
| 604 | reg = <0x07001400 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 605 | interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 606 | reg-shift = <2>; |
| 607 | reg-io-width = <4>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 608 | clocks = <&ccu CLK_BUS_UART5>; |
| 609 | resets = <&ccu RST_BUS_UART5>; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 610 | status = "disabled"; |
| 611 | }; |
| 612 | |
Chen-Yu Tsai | e4aa753 | 2014-10-31 11:05:46 +0800 | [diff] [blame] | 613 | i2c0: i2c@07002800 { |
| 614 | compatible = "allwinner,sun6i-a31-i2c"; |
| 615 | reg = <0x07002800 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 616 | interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 617 | clocks = <&ccu CLK_BUS_I2C0>; |
| 618 | resets = <&ccu RST_BUS_I2C0>; |
Chen-Yu Tsai | e4aa753 | 2014-10-31 11:05:46 +0800 | [diff] [blame] | 619 | status = "disabled"; |
| 620 | #address-cells = <1>; |
| 621 | #size-cells = <0>; |
| 622 | }; |
| 623 | |
| 624 | i2c1: i2c@07002c00 { |
| 625 | compatible = "allwinner,sun6i-a31-i2c"; |
| 626 | reg = <0x07002c00 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 627 | interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 628 | clocks = <&ccu CLK_BUS_I2C1>; |
| 629 | resets = <&ccu RST_BUS_I2C1>; |
Chen-Yu Tsai | e4aa753 | 2014-10-31 11:05:46 +0800 | [diff] [blame] | 630 | status = "disabled"; |
| 631 | #address-cells = <1>; |
| 632 | #size-cells = <0>; |
| 633 | }; |
| 634 | |
| 635 | i2c2: i2c@07003000 { |
| 636 | compatible = "allwinner,sun6i-a31-i2c"; |
| 637 | reg = <0x07003000 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 638 | interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 639 | clocks = <&ccu CLK_BUS_I2C2>; |
| 640 | resets = <&ccu RST_BUS_I2C2>; |
Chen-Yu Tsai | e4aa753 | 2014-10-31 11:05:46 +0800 | [diff] [blame] | 641 | status = "disabled"; |
| 642 | #address-cells = <1>; |
| 643 | #size-cells = <0>; |
| 644 | }; |
| 645 | |
| 646 | i2c3: i2c@07003400 { |
| 647 | compatible = "allwinner,sun6i-a31-i2c"; |
| 648 | reg = <0x07003400 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 649 | interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 650 | clocks = <&ccu CLK_BUS_I2C3>; |
| 651 | resets = <&ccu RST_BUS_I2C3>; |
Chen-Yu Tsai | e4aa753 | 2014-10-31 11:05:46 +0800 | [diff] [blame] | 652 | status = "disabled"; |
| 653 | #address-cells = <1>; |
| 654 | #size-cells = <0>; |
| 655 | }; |
| 656 | |
| 657 | i2c4: i2c@07003800 { |
| 658 | compatible = "allwinner,sun6i-a31-i2c"; |
| 659 | reg = <0x07003800 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 660 | interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 64507fe | 2017-01-28 20:22:39 +0800 | [diff] [blame^] | 661 | clocks = <&ccu CLK_BUS_I2C4>; |
| 662 | resets = <&ccu RST_BUS_I2C4>; |
Chen-Yu Tsai | e4aa753 | 2014-10-31 11:05:46 +0800 | [diff] [blame] | 663 | status = "disabled"; |
| 664 | #address-cells = <1>; |
| 665 | #size-cells = <0>; |
| 666 | }; |
| 667 | |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 668 | r_wdt: watchdog@08001000 { |
| 669 | compatible = "allwinner,sun6i-a31-wdt"; |
| 670 | reg = <0x08001000 0x20>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 671 | interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 672 | }; |
| 673 | |
Chen-Yu Tsai | afd7d66 | 2015-11-29 11:03:09 +0800 | [diff] [blame] | 674 | apbs_rst: reset@080014b0 { |
| 675 | reg = <0x080014b0 0x4>; |
| 676 | compatible = "allwinner,sun6i-a31-clock-reset"; |
| 677 | #reset-cells = <1>; |
| 678 | }; |
| 679 | |
Chen-Yu Tsai | 67e1cbf | 2015-12-03 16:20:13 +0800 | [diff] [blame] | 680 | nmi_intc: interrupt-controller@080015a0 { |
| 681 | compatible = "allwinner,sun9i-a80-nmi"; |
| 682 | interrupt-controller; |
| 683 | #interrupt-cells = <2>; |
| 684 | reg = <0x080015a0 0xc>; |
| 685 | interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; |
| 686 | }; |
| 687 | |
Chen-Yu Tsai | 1595b37 | 2015-12-01 13:47:22 +0800 | [diff] [blame] | 688 | r_ir: ir@08002000 { |
| 689 | compatible = "allwinner,sun5i-a13-ir"; |
| 690 | interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; |
| 691 | pinctrl-names = "default"; |
| 692 | pinctrl-0 = <&r_ir_pins>; |
| 693 | clocks = <&apbs_gates 1>, <&r_ir_clk>; |
| 694 | clock-names = "apb", "ir"; |
| 695 | resets = <&apbs_rst 1>; |
| 696 | reg = <0x08002000 0x40>; |
| 697 | status = "disabled"; |
| 698 | }; |
| 699 | |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 700 | r_uart: serial@08002800 { |
| 701 | compatible = "snps,dw-apb-uart"; |
| 702 | reg = <0x08002800 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 703 | interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 704 | reg-shift = <2>; |
| 705 | reg-io-width = <4>; |
Chen-Yu Tsai | afd7d66 | 2015-11-29 11:03:09 +0800 | [diff] [blame] | 706 | clocks = <&apbs_gates 4>; |
| 707 | resets = <&apbs_rst 4>; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 708 | status = "disabled"; |
| 709 | }; |
Chen-Yu Tsai | 1ac56a6 | 2015-12-01 13:47:20 +0800 | [diff] [blame] | 710 | |
| 711 | r_pio: pinctrl@08002c00 { |
| 712 | compatible = "allwinner,sun9i-a80-r-pinctrl"; |
| 713 | reg = <0x08002c00 0x400>; |
| 714 | interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>, |
| 715 | <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | be7bc6b | 2016-10-19 11:15:27 +0200 | [diff] [blame] | 716 | clocks = <&apbs_gates 0>, <&osc24M>, <&osc32k>; |
| 717 | clock-names = "apb", "hosc", "losc"; |
Chen-Yu Tsai | 1ac56a6 | 2015-12-01 13:47:20 +0800 | [diff] [blame] | 718 | resets = <&apbs_rst 0>; |
| 719 | gpio-controller; |
| 720 | interrupt-controller; |
Chen-Yu Tsai | 06ad11b | 2016-08-27 15:59:50 +0800 | [diff] [blame] | 721 | #interrupt-cells = <3>; |
Chen-Yu Tsai | 1ac56a6 | 2015-12-01 13:47:20 +0800 | [diff] [blame] | 722 | #gpio-cells = <3>; |
Chen-Yu Tsai | 1595b37 | 2015-12-01 13:47:22 +0800 | [diff] [blame] | 723 | |
| 724 | r_ir_pins: r_ir { |
| 725 | allwinner,pins = "PL6"; |
| 726 | allwinner,function = "s_cir_rx"; |
| 727 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
| 728 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
| 729 | }; |
Chen-Yu Tsai | ed473eb | 2015-12-01 13:47:24 +0800 | [diff] [blame] | 730 | |
| 731 | r_rsb_pins: r_rsb { |
| 732 | allwinner,pins = "PN0", "PN1"; |
| 733 | allwinner,function = "s_rsb"; |
| 734 | allwinner,drive = <SUN4I_PINCTRL_20_MA>; |
| 735 | allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |
| 736 | }; |
| 737 | }; |
| 738 | |
| 739 | r_rsb: i2c@08003400 { |
| 740 | compatible = "allwinner,sun8i-a23-rsb"; |
| 741 | reg = <0x08003400 0x400>; |
| 742 | interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; |
| 743 | clocks = <&apbs_gates 3>; |
| 744 | clock-frequency = <3000000>; |
| 745 | resets = <&apbs_rst 3>; |
| 746 | pinctrl-names = "default"; |
| 747 | pinctrl-0 = <&r_rsb_pins>; |
| 748 | status = "disabled"; |
| 749 | #address-cells = <1>; |
| 750 | #size-cells = <0>; |
Chen-Yu Tsai | 1ac56a6 | 2015-12-01 13:47:20 +0800 | [diff] [blame] | 751 | }; |
Chen-Yu Tsai | 4ab328f | 2014-10-08 21:02:53 +0800 | [diff] [blame] | 752 | }; |
| 753 | }; |