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