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