Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 Maxime Ripard |
| 3 | * |
| 4 | * Maxime Ripard <maxime.ripard@free-electrons.com> |
| 5 | * |
Maxime Ripard | 394c56c | 2014-09-02 19:25:26 +0200 | [diff] [blame] | 6 | * This file is dual-licensed: you can use it either under the terms |
| 7 | * of the GPL or the X11 license, at your option. Note that this dual |
| 8 | * licensing only applies to this file, and not this project as a |
| 9 | * whole. |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 10 | * |
Maxime Ripard | 5186d83 | 2014-10-17 11:38:23 +0200 | [diff] [blame] | 11 | * a) This file is free software; you can redistribute it and/or |
Maxime Ripard | 394c56c | 2014-09-02 19:25:26 +0200 | [diff] [blame] | 12 | * modify it under the terms of the GNU General Public License as |
| 13 | * published by the Free Software Foundation; either version 2 of the |
| 14 | * License, or (at your option) any later version. |
| 15 | * |
Maxime Ripard | 5186d83 | 2014-10-17 11:38:23 +0200 | [diff] [blame] | 16 | * This file is distributed in the hope that it will be useful, |
Maxime Ripard | 394c56c | 2014-09-02 19:25:26 +0200 | [diff] [blame] | 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU General Public License for more details. |
| 20 | * |
Maxime Ripard | 394c56c | 2014-09-02 19:25:26 +0200 | [diff] [blame] | 21 | * Or, alternatively, |
| 22 | * |
| 23 | * b) Permission is hereby granted, free of charge, to any person |
| 24 | * obtaining a copy of this software and associated documentation |
| 25 | * files (the "Software"), to deal in the Software without |
| 26 | * restriction, including without limitation the rights to use, |
| 27 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 28 | * sell copies of the Software, and to permit persons to whom the |
| 29 | * Software is furnished to do so, subject to the following |
| 30 | * conditions: |
| 31 | * |
| 32 | * The above copyright notice and this permission notice shall be |
| 33 | * included in all copies or substantial portions of the Software. |
| 34 | * |
| 35 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 36 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 37 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 38 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 39 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 40 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 41 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 42 | * OTHER DEALINGS IN THE SOFTWARE. |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 43 | */ |
| 44 | |
Maxime Ripard | 7145570 | 2014-12-16 22:59:54 +0100 | [diff] [blame] | 45 | #include "skeleton.dtsi" |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 46 | |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 47 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
Chen-Yu Tsai | b6d3424 | 2015-01-12 12:34:03 +0800 | [diff] [blame] | 48 | #include <dt-bindings/thermal/thermal.h> |
Maxime Ripard | 1f9f6a7 | 2014-12-16 22:59:56 +0100 | [diff] [blame] | 49 | #include <dt-bindings/dma/sun4i-a10.h> |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 50 | #include <dt-bindings/clock/sun4i-a10-ccu.h> |
| 51 | #include <dt-bindings/reset/sun4i-a10-ccu.h> |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 52 | |
| 53 | / { |
| 54 | interrupt-parent = <&gic>; |
| 55 | |
Emilio López | e751cce | 2013-11-16 15:17:29 -0300 | [diff] [blame] | 56 | aliases { |
Chen-Yu Tsai | 18428f7 | 2014-02-10 18:35:54 +0800 | [diff] [blame] | 57 | ethernet0 = &gmac; |
Emilio López | e751cce | 2013-11-16 15:17:29 -0300 | [diff] [blame] | 58 | }; |
| 59 | |
Hans de Goede | 8efc5c2 | 2014-11-14 16:34:37 +0100 | [diff] [blame] | 60 | chosen { |
| 61 | #address-cells = <1>; |
| 62 | #size-cells = <1>; |
| 63 | ranges; |
| 64 | |
Hans de Goede | a9f8cda | 2014-11-18 12:07:13 +0100 | [diff] [blame] | 65 | framebuffer@0 { |
Maxime Ripard | d8cacaa | 2015-05-03 11:53:07 +0200 | [diff] [blame] | 66 | compatible = "allwinner,simple-framebuffer", |
| 67 | "simple-framebuffer"; |
Hans de Goede | a9f8cda | 2014-11-18 12:07:13 +0100 | [diff] [blame] | 68 | allwinner,pipeline = "de_be0-lcd0-hdmi"; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 69 | clocks = <&ccu CLK_AHB_LCD0>, <&ccu CLK_AHB_HDMI0>, |
| 70 | <&ccu CLK_AHB_DE_BE0>, <&ccu CLK_DE_BE0>, |
| 71 | <&ccu CLK_TCON0_CH1>, <&ccu CLK_DRAM_DE_BE0>, |
| 72 | <&ccu CLK_HDMI>; |
Hans de Goede | 8efc5c2 | 2014-11-14 16:34:37 +0100 | [diff] [blame] | 73 | status = "disabled"; |
| 74 | }; |
Hans de Goede | fd18c7e | 2015-01-19 14:05:12 +0100 | [diff] [blame] | 75 | |
| 76 | framebuffer@1 { |
| 77 | compatible = "allwinner,simple-framebuffer", |
| 78 | "simple-framebuffer"; |
| 79 | allwinner,pipeline = "de_be0-lcd0"; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 80 | clocks = <&ccu CLK_AHB_LCD0>, <&ccu CLK_AHB_DE_BE0>, |
| 81 | <&ccu CLK_DE_BE0>, <&ccu CLK_TCON0_CH0>, |
| 82 | <&ccu CLK_DRAM_DE_BE0>; |
Hans de Goede | fd18c7e | 2015-01-19 14:05:12 +0100 | [diff] [blame] | 83 | status = "disabled"; |
| 84 | }; |
| 85 | |
| 86 | framebuffer@2 { |
| 87 | compatible = "allwinner,simple-framebuffer", |
| 88 | "simple-framebuffer"; |
| 89 | allwinner,pipeline = "de_be0-lcd0-tve0"; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 90 | clocks = <&ccu CLK_AHB_TVE0>, <&ccu CLK_AHB_LCD0>, |
| 91 | <&ccu CLK_AHB_DE_BE0>, |
| 92 | <&ccu CLK_DE_BE0>, <&ccu CLK_TCON0_CH1>, |
| 93 | <&ccu CLK_DRAM_TVE0>, <&ccu CLK_DRAM_DE_BE0>; |
Hans de Goede | fd18c7e | 2015-01-19 14:05:12 +0100 | [diff] [blame] | 94 | status = "disabled"; |
| 95 | }; |
Hans de Goede | 8efc5c2 | 2014-11-14 16:34:37 +0100 | [diff] [blame] | 96 | }; |
| 97 | |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 98 | cpus { |
| 99 | #address-cells = <1>; |
| 100 | #size-cells = <0>; |
| 101 | |
Chen-Yu Tsai | d96b716 | 2015-01-06 10:35:16 +0800 | [diff] [blame] | 102 | cpu0: cpu@0 { |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 103 | compatible = "arm,cortex-a7"; |
| 104 | device_type = "cpu"; |
| 105 | reg = <0>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 106 | clocks = <&ccu CLK_CPU>; |
Chen-Yu Tsai | d96b716 | 2015-01-06 10:35:16 +0800 | [diff] [blame] | 107 | clock-latency = <244144>; /* 8 32k periods */ |
| 108 | operating-points = < |
Maxime Ripard | 8358aad | 2015-05-03 11:54:35 +0200 | [diff] [blame] | 109 | /* kHz uV */ |
| 110 | 960000 1400000 |
| 111 | 912000 1400000 |
| 112 | 864000 1300000 |
| 113 | 720000 1200000 |
| 114 | 528000 1100000 |
| 115 | 312000 1000000 |
Timo Sigurdsson | eaeef1a | 2015-08-04 23:08:01 +0200 | [diff] [blame] | 116 | 144000 1000000 |
Chen-Yu Tsai | d96b716 | 2015-01-06 10:35:16 +0800 | [diff] [blame] | 117 | >; |
| 118 | #cooling-cells = <2>; |
| 119 | cooling-min-level = <0>; |
Chen-Yu Tsai | 370a9b5 | 2015-03-25 00:53:27 +0800 | [diff] [blame] | 120 | cooling-max-level = <6>; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 121 | }; |
| 122 | |
| 123 | cpu@1 { |
| 124 | compatible = "arm,cortex-a7"; |
| 125 | device_type = "cpu"; |
| 126 | reg = <1>; |
| 127 | }; |
| 128 | }; |
| 129 | |
Chen-Yu Tsai | b6d3424 | 2015-01-12 12:34:03 +0800 | [diff] [blame] | 130 | thermal-zones { |
| 131 | cpu_thermal { |
| 132 | /* milliseconds */ |
| 133 | polling-delay-passive = <250>; |
| 134 | polling-delay = <1000>; |
| 135 | thermal-sensors = <&rtp>; |
| 136 | |
| 137 | cooling-maps { |
| 138 | map0 { |
| 139 | trip = <&cpu_alert0>; |
| 140 | cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 141 | }; |
| 142 | }; |
| 143 | |
| 144 | trips { |
| 145 | cpu_alert0: cpu_alert0 { |
| 146 | /* milliCelsius */ |
| 147 | temperature = <75000>; |
| 148 | hysteresis = <2000>; |
| 149 | type = "passive"; |
| 150 | }; |
| 151 | |
| 152 | cpu_crit: cpu_crit { |
| 153 | /* milliCelsius */ |
| 154 | temperature = <100000>; |
| 155 | hysteresis = <2000>; |
| 156 | type = "critical"; |
| 157 | }; |
| 158 | }; |
| 159 | }; |
| 160 | }; |
| 161 | |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 162 | memory { |
| 163 | reg = <0x40000000 0x80000000>; |
| 164 | }; |
| 165 | |
Marc Zyngier | 7902763 | 2014-02-18 14:04:44 +0000 | [diff] [blame] | 166 | timer { |
| 167 | compatible = "arm,armv7-timer"; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 168 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 169 | <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 170 | <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 171 | <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; |
Marc Zyngier | 7902763 | 2014-02-18 14:04:44 +0000 | [diff] [blame] | 172 | }; |
| 173 | |
Maxime Ripard | e29ea4d | 2014-04-17 21:54:41 +0200 | [diff] [blame] | 174 | pmu { |
| 175 | compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu"; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 176 | interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>, |
| 177 | <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | e29ea4d | 2014-04-17 21:54:41 +0200 | [diff] [blame] | 178 | }; |
| 179 | |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 180 | clocks { |
| 181 | #address-cells = <1>; |
| 182 | #size-cells = <1>; |
| 183 | ranges; |
| 184 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 185 | osc24M: clk@1c20050 { |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 186 | #clock-cells = <0>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 187 | compatible = "fixed-clock"; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 188 | clock-frequency = <24000000>; |
Chen-Yu Tsai | 06067a2 | 2014-02-03 09:51:44 +0800 | [diff] [blame] | 189 | clock-output-names = "osc24M"; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 190 | }; |
| 191 | |
Chen-Yu Tsai | 673fac7 | 2014-01-01 10:30:47 +0800 | [diff] [blame] | 192 | osc32k: clk@0 { |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 193 | #clock-cells = <0>; |
| 194 | compatible = "fixed-clock"; |
| 195 | clock-frequency = <32768>; |
Chen-Yu Tsai | 673fac7 | 2014-01-01 10:30:47 +0800 | [diff] [blame] | 196 | clock-output-names = "osc32k"; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 197 | }; |
Maxime Ripard | de7dc93 | 2013-07-25 21:12:52 +0200 | [diff] [blame] | 198 | |
Chen-Yu Tsai | 0aff037 | 2014-01-01 10:30:48 +0800 | [diff] [blame] | 199 | /* |
Maxime Ripard | d8cacaa | 2015-05-03 11:53:07 +0200 | [diff] [blame] | 200 | * The following two are dummy clocks, placeholders |
| 201 | * used in the gmac_tx clock. The gmac driver will |
| 202 | * choose one parent depending on the PHY interface |
| 203 | * mode, using clk_set_rate auto-reparenting. |
| 204 | * |
| 205 | * The actual TX clock rate is not controlled by the |
| 206 | * gmac_tx clock. |
Chen-Yu Tsai | daed5a8 | 2014-02-10 18:35:48 +0800 | [diff] [blame] | 207 | */ |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 208 | mii_phy_tx_clk: clk@1 { |
Chen-Yu Tsai | daed5a8 | 2014-02-10 18:35:48 +0800 | [diff] [blame] | 209 | #clock-cells = <0>; |
| 210 | compatible = "fixed-clock"; |
| 211 | clock-frequency = <25000000>; |
| 212 | clock-output-names = "mii_phy_tx"; |
| 213 | }; |
| 214 | |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 215 | gmac_int_tx_clk: clk@2 { |
Chen-Yu Tsai | daed5a8 | 2014-02-10 18:35:48 +0800 | [diff] [blame] | 216 | #clock-cells = <0>; |
| 217 | compatible = "fixed-clock"; |
| 218 | clock-frequency = <125000000>; |
| 219 | clock-output-names = "gmac_int_tx"; |
| 220 | }; |
| 221 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 222 | gmac_tx_clk: clk@1c20164 { |
Chen-Yu Tsai | daed5a8 | 2014-02-10 18:35:48 +0800 | [diff] [blame] | 223 | #clock-cells = <0>; |
| 224 | compatible = "allwinner,sun7i-a20-gmac-clk"; |
| 225 | reg = <0x01c20164 0x4>; |
| 226 | clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>; |
| 227 | clock-output-names = "gmac_tx"; |
| 228 | }; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 229 | }; |
| 230 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 231 | soc@1c00000 { |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 232 | compatible = "simple-bus"; |
| 233 | #address-cells = <1>; |
| 234 | #size-cells = <1>; |
| 235 | ranges; |
| 236 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 237 | sram-controller@1c00000 { |
Maxime Ripard | 0eb14a8 | 2015-03-26 15:53:44 +0100 | [diff] [blame] | 238 | compatible = "allwinner,sun4i-a10-sram-controller"; |
| 239 | reg = <0x01c00000 0x30>; |
| 240 | #address-cells = <1>; |
| 241 | #size-cells = <1>; |
| 242 | ranges; |
| 243 | |
| 244 | sram_a: sram@00000000 { |
| 245 | compatible = "mmio-sram"; |
| 246 | reg = <0x00000000 0xc000>; |
| 247 | #address-cells = <1>; |
| 248 | #size-cells = <1>; |
| 249 | ranges = <0 0x00000000 0xc000>; |
| 250 | |
| 251 | emac_sram: sram-section@8000 { |
| 252 | compatible = "allwinner,sun4i-a10-sram-a3-a4"; |
| 253 | reg = <0x8000 0x4000>; |
| 254 | status = "disabled"; |
| 255 | }; |
| 256 | }; |
| 257 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 258 | sram_d: sram@10000 { |
Maxime Ripard | 0eb14a8 | 2015-03-26 15:53:44 +0100 | [diff] [blame] | 259 | compatible = "mmio-sram"; |
| 260 | reg = <0x00010000 0x1000>; |
| 261 | #address-cells = <1>; |
| 262 | #size-cells = <1>; |
| 263 | ranges = <0 0x00010000 0x1000>; |
| 264 | |
| 265 | otg_sram: sram-section@0000 { |
| 266 | compatible = "allwinner,sun4i-a10-sram-d"; |
| 267 | reg = <0x0000 0x1000>; |
| 268 | status = "disabled"; |
| 269 | }; |
| 270 | }; |
| 271 | }; |
| 272 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 273 | nmi_intc: interrupt-controller@1c00030 { |
Carlo Caione | 8ff973a | 2014-03-19 20:21:18 +0100 | [diff] [blame] | 274 | compatible = "allwinner,sun7i-a20-sc-nmi"; |
| 275 | interrupt-controller; |
| 276 | #interrupt-cells = <2>; |
| 277 | reg = <0x01c00030 0x0c>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 278 | interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; |
Carlo Caione | 8ff973a | 2014-03-19 20:21:18 +0100 | [diff] [blame] | 279 | }; |
| 280 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 281 | dma: dma-controller@1c02000 { |
Emilio López | 316e0b0 | 2014-08-04 17:09:59 -0300 | [diff] [blame] | 282 | compatible = "allwinner,sun4i-a10-dma"; |
| 283 | reg = <0x01c02000 0x1000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 284 | interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 285 | clocks = <&ccu CLK_AHB_DMA>; |
Emilio López | 316e0b0 | 2014-08-04 17:09:59 -0300 | [diff] [blame] | 286 | #dma-cells = <2>; |
| 287 | }; |
| 288 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 289 | nfc: nand@1c03000 { |
Boris Brezillon | b2a83ad | 2016-06-14 14:17:38 +0300 | [diff] [blame] | 290 | compatible = "allwinner,sun4i-a10-nand"; |
| 291 | reg = <0x01c03000 0x1000>; |
| 292 | interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 293 | clocks = <&ccu CLK_AHB_NAND>, <&ccu CLK_NAND>; |
Boris Brezillon | b2a83ad | 2016-06-14 14:17:38 +0300 | [diff] [blame] | 294 | clock-names = "ahb", "mod"; |
| 295 | dmas = <&dma SUN4I_DMA_DEDICATED 3>; |
| 296 | dma-names = "rxtx"; |
| 297 | status = "disabled"; |
| 298 | #address-cells = <1>; |
| 299 | #size-cells = <0>; |
| 300 | }; |
| 301 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 302 | spi0: spi@1c05000 { |
Maxime Ripard | 36ab3e7 | 2014-02-22 22:35:54 +0100 | [diff] [blame] | 303 | compatible = "allwinner,sun4i-a10-spi"; |
| 304 | reg = <0x01c05000 0x1000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 305 | interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 306 | clocks = <&ccu CLK_AHB_SPI0>, <&ccu CLK_SPI0>; |
Maxime Ripard | 36ab3e7 | 2014-02-22 22:35:54 +0100 | [diff] [blame] | 307 | clock-names = "ahb", "mod"; |
Maxime Ripard | 1f9f6a7 | 2014-12-16 22:59:56 +0100 | [diff] [blame] | 308 | dmas = <&dma SUN4I_DMA_DEDICATED 27>, |
| 309 | <&dma SUN4I_DMA_DEDICATED 26>; |
Emilio López | ffec721 | 2014-08-04 17:10:02 -0300 | [diff] [blame] | 310 | dma-names = "rx", "tx"; |
Maxime Ripard | 36ab3e7 | 2014-02-22 22:35:54 +0100 | [diff] [blame] | 311 | status = "disabled"; |
| 312 | #address-cells = <1>; |
| 313 | #size-cells = <0>; |
Emmanuel Vadot | 9bbe355 | 2016-12-27 11:28:07 +0100 | [diff] [blame] | 314 | num-cs = <4>; |
Maxime Ripard | 36ab3e7 | 2014-02-22 22:35:54 +0100 | [diff] [blame] | 315 | }; |
| 316 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 317 | spi1: spi@1c06000 { |
Maxime Ripard | 36ab3e7 | 2014-02-22 22:35:54 +0100 | [diff] [blame] | 318 | compatible = "allwinner,sun4i-a10-spi"; |
| 319 | reg = <0x01c06000 0x1000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 320 | interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 321 | clocks = <&ccu CLK_AHB_SPI1>, <&ccu CLK_SPI1>; |
Maxime Ripard | 36ab3e7 | 2014-02-22 22:35:54 +0100 | [diff] [blame] | 322 | clock-names = "ahb", "mod"; |
Maxime Ripard | 1f9f6a7 | 2014-12-16 22:59:56 +0100 | [diff] [blame] | 323 | dmas = <&dma SUN4I_DMA_DEDICATED 9>, |
| 324 | <&dma SUN4I_DMA_DEDICATED 8>; |
Emilio López | ffec721 | 2014-08-04 17:10:02 -0300 | [diff] [blame] | 325 | dma-names = "rx", "tx"; |
Maxime Ripard | 36ab3e7 | 2014-02-22 22:35:54 +0100 | [diff] [blame] | 326 | status = "disabled"; |
| 327 | #address-cells = <1>; |
| 328 | #size-cells = <0>; |
Emmanuel Vadot | 9bbe355 | 2016-12-27 11:28:07 +0100 | [diff] [blame] | 329 | num-cs = <1>; |
Maxime Ripard | 36ab3e7 | 2014-02-22 22:35:54 +0100 | [diff] [blame] | 330 | }; |
| 331 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 332 | emac: ethernet@1c0b000 { |
Maxime Ripard | 1c70e09 | 2014-02-02 14:49:13 +0100 | [diff] [blame] | 333 | compatible = "allwinner,sun4i-a10-emac"; |
Maxime Ripard | 2e804d0 | 2013-09-11 11:10:06 +0200 | [diff] [blame] | 334 | reg = <0x01c0b000 0x1000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 335 | interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 336 | clocks = <&ccu CLK_AHB_EMAC>; |
Maxime Ripard | 0eb14a8 | 2015-03-26 15:53:44 +0100 | [diff] [blame] | 337 | allwinner,sram = <&emac_sram 1>; |
Maxime Ripard | 2e804d0 | 2013-09-11 11:10:06 +0200 | [diff] [blame] | 338 | status = "disabled"; |
| 339 | }; |
| 340 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 341 | mdio: mdio@1c0b080 { |
Maxime Ripard | 1c70e09 | 2014-02-02 14:49:13 +0100 | [diff] [blame] | 342 | compatible = "allwinner,sun4i-a10-mdio"; |
Maxime Ripard | 2e804d0 | 2013-09-11 11:10:06 +0200 | [diff] [blame] | 343 | reg = <0x01c0b080 0x14>; |
| 344 | status = "disabled"; |
| 345 | #address-cells = <1>; |
| 346 | #size-cells = <0>; |
| 347 | }; |
| 348 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 349 | mmc0: mmc@1c0f000 { |
Hans de Goede | 57af711 | 2016-07-30 16:25:48 +0200 | [diff] [blame] | 350 | compatible = "allwinner,sun7i-a20-mmc"; |
Hans de Goede | dd29ce5 | 2014-05-02 17:57:26 +0200 | [diff] [blame] | 351 | reg = <0x01c0f000 0x1000>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 352 | clocks = <&ccu CLK_AHB_MMC0>, |
| 353 | <&ccu CLK_MMC0>, |
| 354 | <&ccu CLK_MMC0_OUTPUT>, |
| 355 | <&ccu CLK_MMC0_SAMPLE>; |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame] | 356 | clock-names = "ahb", |
| 357 | "mmc", |
| 358 | "output", |
| 359 | "sample"; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 360 | interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; |
Hans de Goede | dd29ce5 | 2014-05-02 17:57:26 +0200 | [diff] [blame] | 361 | status = "disabled"; |
Hans de Goede | 4c1bb9c | 2015-03-10 16:27:09 +0100 | [diff] [blame] | 362 | #address-cells = <1>; |
| 363 | #size-cells = <0>; |
Hans de Goede | dd29ce5 | 2014-05-02 17:57:26 +0200 | [diff] [blame] | 364 | }; |
| 365 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 366 | mmc1: mmc@1c10000 { |
Hans de Goede | 57af711 | 2016-07-30 16:25:48 +0200 | [diff] [blame] | 367 | compatible = "allwinner,sun7i-a20-mmc"; |
Hans de Goede | dd29ce5 | 2014-05-02 17:57:26 +0200 | [diff] [blame] | 368 | reg = <0x01c10000 0x1000>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 369 | clocks = <&ccu CLK_AHB_MMC1>, |
| 370 | <&ccu CLK_MMC1>, |
| 371 | <&ccu CLK_MMC1_OUTPUT>, |
| 372 | <&ccu CLK_MMC1_SAMPLE>; |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame] | 373 | clock-names = "ahb", |
| 374 | "mmc", |
| 375 | "output", |
| 376 | "sample"; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 377 | interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; |
Hans de Goede | dd29ce5 | 2014-05-02 17:57:26 +0200 | [diff] [blame] | 378 | status = "disabled"; |
Hans de Goede | 4c1bb9c | 2015-03-10 16:27:09 +0100 | [diff] [blame] | 379 | #address-cells = <1>; |
| 380 | #size-cells = <0>; |
Hans de Goede | dd29ce5 | 2014-05-02 17:57:26 +0200 | [diff] [blame] | 381 | }; |
| 382 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 383 | mmc2: mmc@1c11000 { |
Hans de Goede | 57af711 | 2016-07-30 16:25:48 +0200 | [diff] [blame] | 384 | compatible = "allwinner,sun7i-a20-mmc"; |
Hans de Goede | dd29ce5 | 2014-05-02 17:57:26 +0200 | [diff] [blame] | 385 | reg = <0x01c11000 0x1000>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 386 | clocks = <&ccu CLK_AHB_MMC2>, |
| 387 | <&ccu CLK_MMC2>, |
| 388 | <&ccu CLK_MMC2_OUTPUT>, |
| 389 | <&ccu CLK_MMC2_SAMPLE>; |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame] | 390 | clock-names = "ahb", |
| 391 | "mmc", |
| 392 | "output", |
| 393 | "sample"; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 394 | interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>; |
Hans de Goede | dd29ce5 | 2014-05-02 17:57:26 +0200 | [diff] [blame] | 395 | status = "disabled"; |
Hans de Goede | 4c1bb9c | 2015-03-10 16:27:09 +0100 | [diff] [blame] | 396 | #address-cells = <1>; |
| 397 | #size-cells = <0>; |
Hans de Goede | dd29ce5 | 2014-05-02 17:57:26 +0200 | [diff] [blame] | 398 | }; |
| 399 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 400 | mmc3: mmc@1c12000 { |
Hans de Goede | 57af711 | 2016-07-30 16:25:48 +0200 | [diff] [blame] | 401 | compatible = "allwinner,sun7i-a20-mmc"; |
Hans de Goede | dd29ce5 | 2014-05-02 17:57:26 +0200 | [diff] [blame] | 402 | reg = <0x01c12000 0x1000>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 403 | clocks = <&ccu CLK_AHB_MMC3>, |
| 404 | <&ccu CLK_MMC3>, |
| 405 | <&ccu CLK_MMC3_OUTPUT>, |
| 406 | <&ccu CLK_MMC3_SAMPLE>; |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame] | 407 | clock-names = "ahb", |
| 408 | "mmc", |
| 409 | "output", |
| 410 | "sample"; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 411 | interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>; |
Hans de Goede | dd29ce5 | 2014-05-02 17:57:26 +0200 | [diff] [blame] | 412 | status = "disabled"; |
Hans de Goede | 4c1bb9c | 2015-03-10 16:27:09 +0100 | [diff] [blame] | 413 | #address-cells = <1>; |
| 414 | #size-cells = <0>; |
Hans de Goede | dd29ce5 | 2014-05-02 17:57:26 +0200 | [diff] [blame] | 415 | }; |
| 416 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 417 | usb_otg: usb@1c13000 { |
Roman Byshko | cbb3ff1 | 2014-10-22 00:14:03 +0200 | [diff] [blame] | 418 | compatible = "allwinner,sun4i-a10-musb"; |
| 419 | reg = <0x01c13000 0x0400>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 420 | clocks = <&ccu CLK_AHB_OTG>; |
Roman Byshko | cbb3ff1 | 2014-10-22 00:14:03 +0200 | [diff] [blame] | 421 | interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>; |
| 422 | interrupt-names = "mc"; |
| 423 | phys = <&usbphy 0>; |
| 424 | phy-names = "usb"; |
| 425 | extcon = <&usbphy 0>; |
| 426 | allwinner,sram = <&otg_sram 1>; |
| 427 | status = "disabled"; |
| 428 | }; |
| 429 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 430 | usbphy: phy@1c13400 { |
Roman Byshko | 9debd0a | 2014-03-01 20:26:25 +0100 | [diff] [blame] | 431 | #phy-cells = <1>; |
| 432 | compatible = "allwinner,sun7i-a20-usb-phy"; |
| 433 | reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>; |
| 434 | reg-names = "phy_ctrl", "pmu1", "pmu2"; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 435 | clocks = <&ccu CLK_USB_PHY>; |
Roman Byshko | 9debd0a | 2014-03-01 20:26:25 +0100 | [diff] [blame] | 436 | clock-names = "usb_phy"; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 437 | resets = <&ccu RST_USB_PHY0>, |
| 438 | <&ccu RST_USB_PHY1>, |
| 439 | <&ccu RST_USB_PHY2>; |
Roman Byshko | 134c60a | 2014-11-10 19:55:08 +0100 | [diff] [blame] | 440 | reset-names = "usb0_reset", "usb1_reset", "usb2_reset"; |
Roman Byshko | 9debd0a | 2014-03-01 20:26:25 +0100 | [diff] [blame] | 441 | status = "disabled"; |
| 442 | }; |
| 443 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 444 | ehci0: usb@1c14000 { |
Roman Byshko | 9debd0a | 2014-03-01 20:26:25 +0100 | [diff] [blame] | 445 | compatible = "allwinner,sun7i-a20-ehci", "generic-ehci"; |
| 446 | reg = <0x01c14000 0x100>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 447 | interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 448 | clocks = <&ccu CLK_AHB_EHCI0>; |
Roman Byshko | 9debd0a | 2014-03-01 20:26:25 +0100 | [diff] [blame] | 449 | phys = <&usbphy 1>; |
| 450 | phy-names = "usb"; |
| 451 | status = "disabled"; |
| 452 | }; |
| 453 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 454 | ohci0: usb@1c14400 { |
Roman Byshko | 9debd0a | 2014-03-01 20:26:25 +0100 | [diff] [blame] | 455 | compatible = "allwinner,sun7i-a20-ohci", "generic-ohci"; |
| 456 | reg = <0x01c14400 0x100>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 457 | interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 458 | clocks = <&ccu CLK_USB_OHCI0>, <&ccu CLK_AHB_OHCI0>; |
Roman Byshko | 9debd0a | 2014-03-01 20:26:25 +0100 | [diff] [blame] | 459 | phys = <&usbphy 1>; |
| 460 | phy-names = "usb"; |
| 461 | status = "disabled"; |
| 462 | }; |
| 463 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 464 | crypto: crypto-engine@1c15000 { |
Antoine Tenart | 9bea19a | 2017-06-01 21:39:05 +0200 | [diff] [blame] | 465 | compatible = "allwinner,sun7i-a20-crypto", |
| 466 | "allwinner,sun4i-a10-crypto"; |
LABBE Corentin | 110d4e2 | 2015-07-17 16:39:39 +0200 | [diff] [blame] | 467 | reg = <0x01c15000 0x1000>; |
| 468 | interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 469 | clocks = <&ccu CLK_AHB_SS>, <&ccu CLK_SS>; |
LABBE Corentin | 110d4e2 | 2015-07-17 16:39:39 +0200 | [diff] [blame] | 470 | clock-names = "ahb", "mod"; |
| 471 | }; |
| 472 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 473 | spi2: spi@1c17000 { |
Maxime Ripard | 36ab3e7 | 2014-02-22 22:35:54 +0100 | [diff] [blame] | 474 | compatible = "allwinner,sun4i-a10-spi"; |
| 475 | reg = <0x01c17000 0x1000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 476 | interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 477 | clocks = <&ccu CLK_AHB_SPI2>, <&ccu CLK_SPI2>; |
Maxime Ripard | 36ab3e7 | 2014-02-22 22:35:54 +0100 | [diff] [blame] | 478 | clock-names = "ahb", "mod"; |
Maxime Ripard | 1f9f6a7 | 2014-12-16 22:59:56 +0100 | [diff] [blame] | 479 | dmas = <&dma SUN4I_DMA_DEDICATED 29>, |
| 480 | <&dma SUN4I_DMA_DEDICATED 28>; |
Emilio López | ffec721 | 2014-08-04 17:10:02 -0300 | [diff] [blame] | 481 | dma-names = "rx", "tx"; |
Maxime Ripard | 36ab3e7 | 2014-02-22 22:35:54 +0100 | [diff] [blame] | 482 | status = "disabled"; |
| 483 | #address-cells = <1>; |
| 484 | #size-cells = <0>; |
Emmanuel Vadot | 9bbe355 | 2016-12-27 11:28:07 +0100 | [diff] [blame] | 485 | num-cs = <1>; |
Maxime Ripard | 36ab3e7 | 2014-02-22 22:35:54 +0100 | [diff] [blame] | 486 | }; |
| 487 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 488 | ahci: sata@1c18000 { |
Hans de Goede | 902febf | 2014-03-01 20:26:22 +0100 | [diff] [blame] | 489 | compatible = "allwinner,sun4i-a10-ahci"; |
| 490 | reg = <0x01c18000 0x1000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 491 | interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 492 | clocks = <&ccu CLK_AHB_SATA>, <&ccu CLK_SATA>; |
Hans de Goede | 902febf | 2014-03-01 20:26:22 +0100 | [diff] [blame] | 493 | status = "disabled"; |
| 494 | }; |
| 495 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 496 | ehci1: usb@1c1c000 { |
Roman Byshko | 9debd0a | 2014-03-01 20:26:25 +0100 | [diff] [blame] | 497 | compatible = "allwinner,sun7i-a20-ehci", "generic-ehci"; |
| 498 | reg = <0x01c1c000 0x100>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 499 | interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 500 | clocks = <&ccu CLK_AHB_EHCI1>; |
Roman Byshko | 9debd0a | 2014-03-01 20:26:25 +0100 | [diff] [blame] | 501 | phys = <&usbphy 2>; |
| 502 | phy-names = "usb"; |
| 503 | status = "disabled"; |
| 504 | }; |
| 505 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 506 | ohci1: usb@1c1c400 { |
Roman Byshko | 9debd0a | 2014-03-01 20:26:25 +0100 | [diff] [blame] | 507 | compatible = "allwinner,sun7i-a20-ohci", "generic-ohci"; |
| 508 | reg = <0x01c1c400 0x100>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 509 | interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 510 | clocks = <&ccu CLK_USB_OHCI1>, <&ccu CLK_AHB_OHCI1>; |
Roman Byshko | 9debd0a | 2014-03-01 20:26:25 +0100 | [diff] [blame] | 511 | phys = <&usbphy 2>; |
| 512 | phy-names = "usb"; |
| 513 | status = "disabled"; |
| 514 | }; |
| 515 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 516 | spi3: spi@1c1f000 { |
Maxime Ripard | 36ab3e7 | 2014-02-22 22:35:54 +0100 | [diff] [blame] | 517 | compatible = "allwinner,sun4i-a10-spi"; |
| 518 | reg = <0x01c1f000 0x1000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 519 | interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 520 | clocks = <&ccu CLK_AHB_SPI3>, <&ccu CLK_SPI3>; |
Maxime Ripard | 36ab3e7 | 2014-02-22 22:35:54 +0100 | [diff] [blame] | 521 | clock-names = "ahb", "mod"; |
Maxime Ripard | 1f9f6a7 | 2014-12-16 22:59:56 +0100 | [diff] [blame] | 522 | dmas = <&dma SUN4I_DMA_DEDICATED 31>, |
| 523 | <&dma SUN4I_DMA_DEDICATED 30>; |
Emilio López | ffec721 | 2014-08-04 17:10:02 -0300 | [diff] [blame] | 524 | dma-names = "rx", "tx"; |
Maxime Ripard | 36ab3e7 | 2014-02-22 22:35:54 +0100 | [diff] [blame] | 525 | status = "disabled"; |
| 526 | #address-cells = <1>; |
| 527 | #size-cells = <0>; |
Emmanuel Vadot | 9bbe355 | 2016-12-27 11:28:07 +0100 | [diff] [blame] | 528 | num-cs = <1>; |
Maxime Ripard | 36ab3e7 | 2014-02-22 22:35:54 +0100 | [diff] [blame] | 529 | }; |
| 530 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 531 | ccu: clock@1c20000 { |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 532 | compatible = "allwinner,sun7i-a20-ccu"; |
| 533 | reg = <0x01c20000 0x400>; |
| 534 | clocks = <&osc24M>, <&osc32k>; |
| 535 | clock-names = "hosc", "losc"; |
| 536 | #clock-cells = <1>; |
| 537 | #reset-cells = <1>; |
| 538 | }; |
| 539 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 540 | pio: pinctrl@1c20800 { |
Maxime Ripard | 17eac03 | 2013-07-24 23:46:11 +0200 | [diff] [blame] | 541 | compatible = "allwinner,sun7i-a20-pinctrl"; |
| 542 | reg = <0x01c20800 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 543 | interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 544 | clocks = <&ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>; |
Maxime Ripard | be7bc6b | 2016-10-19 11:15:27 +0200 | [diff] [blame] | 545 | clock-names = "apb", "hosc", "losc"; |
Maxime Ripard | 17eac03 | 2013-07-24 23:46:11 +0200 | [diff] [blame] | 546 | gpio-controller; |
| 547 | interrupt-controller; |
Maxime Ripard | b03e081 | 2015-06-17 11:44:24 +0200 | [diff] [blame] | 548 | #interrupt-cells = <3>; |
Maxime Ripard | 17eac03 | 2013-07-24 23:46:11 +0200 | [diff] [blame] | 549 | #gpio-cells = <3>; |
Maxime Ripard | 9f229ba | 2013-07-25 00:09:47 +0200 | [diff] [blame] | 550 | |
Patrick Menschel | 86daa3d | 2017-04-03 19:00:14 +0200 | [diff] [blame] | 551 | can0_pins_a: can0@0 { |
| 552 | pins = "PH20", "PH21"; |
| 553 | function = "can"; |
| 554 | }; |
| 555 | |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 556 | clk_out_a_pins_a: clk_out_a@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 557 | pins = "PI12"; |
| 558 | function = "clk_out_a"; |
Alexandre Belloni | fd7898a | 2014-04-28 18:17:12 +0200 | [diff] [blame] | 559 | }; |
| 560 | |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 561 | clk_out_b_pins_a: clk_out_b@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 562 | pins = "PI13"; |
| 563 | function = "clk_out_b"; |
Alexandre Belloni | fd7898a | 2014-04-28 18:17:12 +0200 | [diff] [blame] | 564 | }; |
| 565 | |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 566 | emac_pins_a: emac0@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 567 | pins = "PA0", "PA1", "PA2", |
| 568 | "PA3", "PA4", "PA5", "PA6", |
| 569 | "PA7", "PA8", "PA9", "PA10", |
| 570 | "PA11", "PA12", "PA13", "PA14", |
| 571 | "PA15", "PA16"; |
| 572 | function = "emac"; |
Maxime Ripard | 9f229ba | 2013-07-25 00:09:47 +0200 | [diff] [blame] | 573 | }; |
| 574 | |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 575 | gmac_pins_mii_a: gmac_mii@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 576 | pins = "PA0", "PA1", "PA2", |
| 577 | "PA3", "PA4", "PA5", "PA6", |
| 578 | "PA7", "PA8", "PA9", "PA10", |
| 579 | "PA11", "PA12", "PA13", "PA14", |
| 580 | "PA15", "PA16"; |
| 581 | function = "gmac"; |
Chen-Yu Tsai | 4261ec4 | 2014-01-14 22:49:50 +0800 | [diff] [blame] | 582 | }; |
| 583 | |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 584 | gmac_pins_rgmii_a: gmac_rgmii@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 585 | pins = "PA0", "PA1", "PA2", |
| 586 | "PA3", "PA4", "PA5", "PA6", |
| 587 | "PA7", "PA8", "PA10", |
| 588 | "PA11", "PA12", "PA13", |
| 589 | "PA15", "PA16"; |
| 590 | function = "gmac"; |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 591 | /* |
| 592 | * data lines in RGMII mode use DDR mode |
| 593 | * and need a higher signal drive strength |
| 594 | */ |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 595 | drive-strength = <40>; |
Maxime Ripard | 9f229ba | 2013-07-25 00:09:47 +0200 | [diff] [blame] | 596 | }; |
Maxime Ripard | 756084c | 2013-09-11 11:10:07 +0200 | [diff] [blame] | 597 | |
Maxime Ripard | e5496a3 | 2013-08-31 23:08:49 +0200 | [diff] [blame] | 598 | i2c0_pins_a: i2c0@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 599 | pins = "PB0", "PB1"; |
| 600 | function = "i2c0"; |
Maxime Ripard | e5496a3 | 2013-08-31 23:08:49 +0200 | [diff] [blame] | 601 | }; |
| 602 | |
| 603 | i2c1_pins_a: i2c1@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 604 | pins = "PB18", "PB19"; |
| 605 | function = "i2c1"; |
Maxime Ripard | e5496a3 | 2013-08-31 23:08:49 +0200 | [diff] [blame] | 606 | }; |
| 607 | |
| 608 | i2c2_pins_a: i2c2@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 609 | pins = "PB20", "PB21"; |
| 610 | function = "i2c2"; |
Maxime Ripard | e5496a3 | 2013-08-31 23:08:49 +0200 | [diff] [blame] | 611 | }; |
| 612 | |
Wills Wang | 7b5bace | 2014-08-19 15:33:00 +0800 | [diff] [blame] | 613 | i2c3_pins_a: i2c3@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 614 | pins = "PI0", "PI1"; |
| 615 | function = "i2c3"; |
Wills Wang | 7b5bace | 2014-08-19 15:33:00 +0800 | [diff] [blame] | 616 | }; |
| 617 | |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 618 | ir0_rx_pins_a: ir0@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 619 | pins = "PB4"; |
| 620 | function = "ir0"; |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 621 | }; |
| 622 | |
| 623 | ir0_tx_pins_a: ir0@1 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 624 | pins = "PB3"; |
| 625 | function = "ir0"; |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 626 | }; |
| 627 | |
| 628 | ir1_rx_pins_a: ir1@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 629 | pins = "PB23"; |
| 630 | function = "ir1"; |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 631 | }; |
| 632 | |
| 633 | ir1_tx_pins_a: ir1@1 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 634 | pins = "PB22"; |
| 635 | function = "ir1"; |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 636 | }; |
| 637 | |
| 638 | mmc0_pins_a: mmc0@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 639 | pins = "PF0", "PF1", "PF2", |
| 640 | "PF3", "PF4", "PF5"; |
| 641 | function = "mmc0"; |
| 642 | drive-strength = <30>; |
Chen-Yu Tsai | 80ee72e | 2016-11-17 17:34:38 +0800 | [diff] [blame] | 643 | bias-pull-up; |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 644 | }; |
| 645 | |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 646 | mmc2_pins_a: mmc2@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 647 | pins = "PC6", "PC7", "PC8", |
| 648 | "PC9", "PC10", "PC11"; |
| 649 | function = "mmc2"; |
| 650 | drive-strength = <30>; |
| 651 | bias-pull-up; |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 652 | }; |
| 653 | |
| 654 | mmc3_pins_a: mmc3@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 655 | pins = "PI4", "PI5", "PI6", |
| 656 | "PI7", "PI8", "PI9"; |
| 657 | function = "mmc3"; |
| 658 | drive-strength = <30>; |
Chen-Yu Tsai | 80ee72e | 2016-11-17 17:34:38 +0800 | [diff] [blame] | 659 | bias-pull-up; |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 660 | }; |
| 661 | |
| 662 | ps20_pins_a: ps20@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 663 | pins = "PI20", "PI21"; |
| 664 | function = "ps2"; |
Maxime Ripard | 756084c | 2013-09-11 11:10:07 +0200 | [diff] [blame] | 665 | }; |
Chen-Yu Tsai | f2e0759 | 2014-01-01 10:30:50 +0800 | [diff] [blame] | 666 | |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 667 | ps21_pins_a: ps21@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 668 | pins = "PH12", "PH13"; |
| 669 | function = "ps2"; |
Chen-Yu Tsai | f2e0759 | 2014-01-01 10:30:50 +0800 | [diff] [blame] | 670 | }; |
| 671 | |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 672 | pwm0_pins_a: pwm0@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 673 | pins = "PB2"; |
| 674 | function = "pwm"; |
Chen-Yu Tsai | f2e0759 | 2014-01-01 10:30:50 +0800 | [diff] [blame] | 675 | }; |
Chen-Yu Tsai | 129ccbc | 2014-02-10 18:35:50 +0800 | [diff] [blame] | 676 | |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 677 | pwm1_pins_a: pwm1@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 678 | pins = "PI3"; |
| 679 | function = "pwm"; |
Chen-Yu Tsai | 129ccbc | 2014-02-10 18:35:50 +0800 | [diff] [blame] | 680 | }; |
| 681 | |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 682 | spdif_tx_pins_a: spdif@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 683 | pins = "PB13"; |
| 684 | function = "spdif"; |
| 685 | bias-pull-up; |
Chen-Yu Tsai | 129ccbc | 2014-02-10 18:35:50 +0800 | [diff] [blame] | 686 | }; |
Maxime Ripard | 412f2c6 | 2014-02-22 22:35:58 +0100 | [diff] [blame] | 687 | |
Hans de Goede | 2dad53b | 2014-10-01 09:26:04 +0200 | [diff] [blame] | 688 | spi0_pins_a: spi0@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 689 | pins = "PI11", "PI12", "PI13"; |
| 690 | function = "spi0"; |
Maxime Ripard | f3022c6 | 2015-05-03 09:25:41 +0200 | [diff] [blame] | 691 | }; |
| 692 | |
| 693 | spi0_cs0_pins_a: spi0_cs0@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 694 | pins = "PI10"; |
| 695 | function = "spi0"; |
Maxime Ripard | f3022c6 | 2015-05-03 09:25:41 +0200 | [diff] [blame] | 696 | }; |
| 697 | |
| 698 | spi0_cs1_pins_a: spi0_cs1@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 699 | pins = "PI14"; |
| 700 | function = "spi0"; |
Hans de Goede | 2dad53b | 2014-10-01 09:26:04 +0200 | [diff] [blame] | 701 | }; |
| 702 | |
Maxime Ripard | 412f2c6 | 2014-02-22 22:35:58 +0100 | [diff] [blame] | 703 | spi1_pins_a: spi1@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 704 | pins = "PI17", "PI18", "PI19"; |
| 705 | function = "spi1"; |
Maxime Ripard | f3022c6 | 2015-05-03 09:25:41 +0200 | [diff] [blame] | 706 | }; |
| 707 | |
| 708 | spi1_cs0_pins_a: spi1_cs0@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 709 | pins = "PI16"; |
| 710 | function = "spi1"; |
Maxime Ripard | 412f2c6 | 2014-02-22 22:35:58 +0100 | [diff] [blame] | 711 | }; |
| 712 | |
| 713 | spi2_pins_a: spi2@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 714 | pins = "PC20", "PC21", "PC22"; |
| 715 | function = "spi2"; |
Maxime Ripard | 412f2c6 | 2014-02-22 22:35:58 +0100 | [diff] [blame] | 716 | }; |
Hans de Goede | 11fbedf | 2014-05-02 17:57:27 +0200 | [diff] [blame] | 717 | |
Wills Wang | 7b5bace | 2014-08-19 15:33:00 +0800 | [diff] [blame] | 718 | spi2_pins_b: spi2@1 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 719 | pins = "PB15", "PB16", "PB17"; |
| 720 | function = "spi2"; |
Maxime Ripard | f3022c6 | 2015-05-03 09:25:41 +0200 | [diff] [blame] | 721 | }; |
| 722 | |
| 723 | spi2_cs0_pins_a: spi2_cs0@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 724 | pins = "PC19"; |
| 725 | function = "spi2"; |
Maxime Ripard | f3022c6 | 2015-05-03 09:25:41 +0200 | [diff] [blame] | 726 | }; |
| 727 | |
| 728 | spi2_cs0_pins_b: spi2_cs0@1 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 729 | pins = "PB14"; |
| 730 | function = "spi2"; |
Wills Wang | 7b5bace | 2014-08-19 15:33:00 +0800 | [diff] [blame] | 731 | }; |
| 732 | |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 733 | uart0_pins_a: uart0@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 734 | pins = "PB22", "PB23"; |
| 735 | function = "uart0"; |
Hans de Goede | 11fbedf | 2014-05-02 17:57:27 +0200 | [diff] [blame] | 736 | }; |
Alexander Bersenev | 0fc2b7a | 2014-06-09 00:08:11 +0600 | [diff] [blame] | 737 | |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 738 | uart2_pins_a: uart2@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 739 | pins = "PI16", "PI17", "PI18", "PI19"; |
| 740 | function = "uart2"; |
Alexander Bersenev | 0fc2b7a | 2014-06-09 00:08:11 +0600 | [diff] [blame] | 741 | }; |
| 742 | |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 743 | uart3_pins_a: uart3@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 744 | pins = "PG6", "PG7", "PG8", "PG9"; |
| 745 | function = "uart3"; |
Marcus Cooper | 469a22e | 2015-05-02 13:36:20 +0200 | [diff] [blame] | 746 | }; |
| 747 | |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 748 | uart3_pins_b: uart3@1 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 749 | pins = "PH0", "PH1"; |
| 750 | function = "uart3"; |
Marcus Cooper | 469a22e | 2015-05-02 13:36:20 +0200 | [diff] [blame] | 751 | }; |
| 752 | |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 753 | uart4_pins_a: uart4@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 754 | pins = "PG10", "PG11"; |
| 755 | function = "uart4"; |
Alexander Bersenev | 0fc2b7a | 2014-06-09 00:08:11 +0600 | [diff] [blame] | 756 | }; |
Vishnu Patekar | 1e8d156 | 2015-01-25 19:10:09 +0530 | [diff] [blame] | 757 | |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 758 | uart4_pins_b: uart4@1 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 759 | pins = "PH4", "PH5"; |
| 760 | function = "uart4"; |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 761 | }; |
| 762 | |
| 763 | uart5_pins_a: uart5@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 764 | pins = "PI10", "PI11"; |
| 765 | function = "uart5"; |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 766 | }; |
| 767 | |
| 768 | uart6_pins_a: uart6@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 769 | pins = "PI12", "PI13"; |
| 770 | function = "uart6"; |
Aleksei Mamlin | d130f2e | 2016-06-10 11:05:19 +0300 | [diff] [blame] | 771 | }; |
| 772 | |
| 773 | uart7_pins_a: uart7@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 774 | pins = "PI20", "PI21"; |
| 775 | function = "uart7"; |
Vishnu Patekar | 1e8d156 | 2015-01-25 19:10:09 +0530 | [diff] [blame] | 776 | }; |
Maxime Ripard | 17eac03 | 2013-07-24 23:46:11 +0200 | [diff] [blame] | 777 | }; |
| 778 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 779 | timer@1c20c00 { |
Maxime Ripard | b4f2644 | 2014-02-06 10:40:32 +0100 | [diff] [blame] | 780 | compatible = "allwinner,sun4i-a10-timer"; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 781 | reg = <0x01c20c00 0x90>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 782 | interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>, |
| 783 | <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>, |
| 784 | <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>, |
| 785 | <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>, |
| 786 | <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>, |
| 787 | <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 788 | clocks = <&osc24M>; |
| 789 | }; |
| 790 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 791 | wdt: watchdog@1c20c90 { |
Maxime Ripard | ca5d04d | 2014-02-07 22:29:26 +0100 | [diff] [blame] | 792 | compatible = "allwinner,sun4i-a10-wdt"; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 793 | reg = <0x01c20c90 0x10>; |
| 794 | }; |
| 795 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 796 | rtc: rtc@1c20d00 { |
Carlo Caione | b5d905c | 2013-10-16 20:30:26 +0200 | [diff] [blame] | 797 | compatible = "allwinner,sun7i-a20-rtc"; |
| 798 | reg = <0x01c20d00 0x20>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 799 | interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>; |
Carlo Caione | b5d905c | 2013-10-16 20:30:26 +0200 | [diff] [blame] | 800 | }; |
| 801 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 802 | pwm: pwm@1c20e00 { |
Alexandre Belloni | 8ec40c2 | 2014-04-28 18:17:13 +0200 | [diff] [blame] | 803 | compatible = "allwinner,sun7i-a20-pwm"; |
| 804 | reg = <0x01c20e00 0xc>; |
| 805 | clocks = <&osc24M>; |
| 806 | #pwm-cells = <3>; |
| 807 | status = "disabled"; |
| 808 | }; |
| 809 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 810 | spdif: spdif@1c21000 { |
Marcus Cooper | a34d6ce | 2016-03-21 21:01:04 +0100 | [diff] [blame] | 811 | #sound-dai-cells = <0>; |
| 812 | compatible = "allwinner,sun4i-a10-spdif"; |
| 813 | reg = <0x01c21000 0x400>; |
| 814 | interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 815 | clocks = <&ccu CLK_APB0_SPDIF>, <&ccu CLK_SPDIF>; |
Marcus Cooper | a34d6ce | 2016-03-21 21:01:04 +0100 | [diff] [blame] | 816 | clock-names = "apb", "spdif"; |
| 817 | dmas = <&dma SUN4I_DMA_NORMAL 2>, |
| 818 | <&dma SUN4I_DMA_NORMAL 2>; |
| 819 | dma-names = "rx", "tx"; |
| 820 | status = "disabled"; |
| 821 | }; |
| 822 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 823 | ir0: ir@1c21800 { |
Hans de Goede | 1715a38 | 2014-06-30 23:57:54 +0200 | [diff] [blame] | 824 | compatible = "allwinner,sun4i-a10-ir"; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 825 | clocks = <&ccu CLK_APB0_IR0>, <&ccu CLK_IR0>; |
Alexander Bersenev | c1a0ee3 | 2014-06-21 17:04:05 +0600 | [diff] [blame] | 826 | clock-names = "apb", "ir"; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 827 | interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>; |
Alexander Bersenev | c1a0ee3 | 2014-06-21 17:04:05 +0600 | [diff] [blame] | 828 | reg = <0x01c21800 0x40>; |
| 829 | status = "disabled"; |
| 830 | }; |
| 831 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 832 | ir1: ir@1c21c00 { |
Hans de Goede | 1715a38 | 2014-06-30 23:57:54 +0200 | [diff] [blame] | 833 | compatible = "allwinner,sun4i-a10-ir"; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 834 | clocks = <&ccu CLK_APB0_IR1>, <&ccu CLK_IR1>; |
Alexander Bersenev | c1a0ee3 | 2014-06-21 17:04:05 +0600 | [diff] [blame] | 835 | clock-names = "apb", "ir"; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 836 | interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; |
Alexander Bersenev | c1a0ee3 | 2014-06-21 17:04:05 +0600 | [diff] [blame] | 837 | reg = <0x01c21c00 0x40>; |
| 838 | status = "disabled"; |
| 839 | }; |
| 840 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 841 | i2s1: i2s@1c22000 { |
Maxime Ripard | 6a70635 | 2015-09-19 16:48:00 +0200 | [diff] [blame] | 842 | #sound-dai-cells = <0>; |
| 843 | compatible = "allwinner,sun4i-a10-i2s"; |
| 844 | reg = <0x01c22000 0x400>; |
| 845 | interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 846 | clocks = <&ccu CLK_APB0_I2S1>, <&ccu CLK_I2S1>; |
Maxime Ripard | 6a70635 | 2015-09-19 16:48:00 +0200 | [diff] [blame] | 847 | clock-names = "apb", "mod"; |
| 848 | dmas = <&dma SUN4I_DMA_NORMAL 4>, |
| 849 | <&dma SUN4I_DMA_NORMAL 4>; |
| 850 | dma-names = "rx", "tx"; |
| 851 | status = "disabled"; |
| 852 | }; |
| 853 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 854 | i2s0: i2s@1c22400 { |
Maxime Ripard | 6a70635 | 2015-09-19 16:48:00 +0200 | [diff] [blame] | 855 | #sound-dai-cells = <0>; |
| 856 | compatible = "allwinner,sun4i-a10-i2s"; |
| 857 | reg = <0x01c22400 0x400>; |
| 858 | interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 859 | clocks = <&ccu CLK_APB0_I2S0>, <&ccu CLK_I2S0>; |
Maxime Ripard | 6a70635 | 2015-09-19 16:48:00 +0200 | [diff] [blame] | 860 | clock-names = "apb", "mod"; |
| 861 | dmas = <&dma SUN4I_DMA_NORMAL 3>, |
| 862 | <&dma SUN4I_DMA_NORMAL 3>; |
| 863 | dma-names = "rx", "tx"; |
| 864 | status = "disabled"; |
| 865 | }; |
| 866 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 867 | lradc: lradc@1c22800 { |
Hans de Goede | a6a2d64 | 2014-12-23 11:13:22 +0100 | [diff] [blame] | 868 | compatible = "allwinner,sun4i-a10-lradc-keys"; |
| 869 | reg = <0x01c22800 0x100>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 870 | interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>; |
Hans de Goede | a6a2d64 | 2014-12-23 11:13:22 +0100 | [diff] [blame] | 871 | status = "disabled"; |
| 872 | }; |
| 873 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 874 | codec: codec@1c22c00 { |
Emilio López | d5ce107 | 2014-08-18 01:07:55 -0300 | [diff] [blame] | 875 | #sound-dai-cells = <0>; |
| 876 | compatible = "allwinner,sun7i-a20-codec"; |
| 877 | reg = <0x01c22c00 0x40>; |
| 878 | interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 879 | clocks = <&ccu CLK_APB0_CODEC>, <&ccu CLK_CODEC>; |
Emilio López | d5ce107 | 2014-08-18 01:07:55 -0300 | [diff] [blame] | 880 | clock-names = "apb", "codec"; |
| 881 | dmas = <&dma SUN4I_DMA_NORMAL 19>, |
| 882 | <&dma SUN4I_DMA_NORMAL 19>; |
| 883 | dma-names = "rx", "tx"; |
| 884 | status = "disabled"; |
| 885 | }; |
| 886 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 887 | sid: eeprom@1c23800 { |
Oliver Schinagl | 2bad969 | 2013-09-03 12:33:28 +0200 | [diff] [blame] | 888 | compatible = "allwinner,sun7i-a20-sid"; |
| 889 | reg = <0x01c23800 0x200>; |
| 890 | }; |
| 891 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 892 | i2s2: i2s@1c24400 { |
Maxime Ripard | 6a70635 | 2015-09-19 16:48:00 +0200 | [diff] [blame] | 893 | #sound-dai-cells = <0>; |
| 894 | compatible = "allwinner,sun4i-a10-i2s"; |
| 895 | reg = <0x01c24400 0x400>; |
| 896 | interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 897 | clocks = <&ccu CLK_APB0_I2S2>, <&ccu CLK_I2S2>; |
Maxime Ripard | 6a70635 | 2015-09-19 16:48:00 +0200 | [diff] [blame] | 898 | clock-names = "apb", "mod"; |
| 899 | dmas = <&dma SUN4I_DMA_NORMAL 6>, |
| 900 | <&dma SUN4I_DMA_NORMAL 6>; |
| 901 | dma-names = "rx", "tx"; |
| 902 | status = "disabled"; |
| 903 | }; |
| 904 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 905 | rtp: rtp@1c25000 { |
Hans de Goede | 8bf1b9b | 2015-03-08 21:53:42 +0100 | [diff] [blame] | 906 | compatible = "allwinner,sun5i-a13-ts"; |
Hans de Goede | 00f7ed8 | 2013-12-31 17:20:52 +0100 | [diff] [blame] | 907 | reg = <0x01c25000 0x100>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 908 | interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 41e7afb | 2015-01-06 10:35:15 +0800 | [diff] [blame] | 909 | #thermal-sensor-cells = <0>; |
Hans de Goede | 00f7ed8 | 2013-12-31 17:20:52 +0100 | [diff] [blame] | 910 | }; |
| 911 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 912 | uart0: serial@1c28000 { |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 913 | compatible = "snps,dw-apb-uart"; |
| 914 | reg = <0x01c28000 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 915 | interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 916 | reg-shift = <2>; |
| 917 | reg-io-width = <4>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 918 | clocks = <&ccu CLK_APB1_UART0>; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 919 | status = "disabled"; |
| 920 | }; |
| 921 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 922 | uart1: serial@1c28400 { |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 923 | compatible = "snps,dw-apb-uart"; |
| 924 | reg = <0x01c28400 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 925 | interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 926 | reg-shift = <2>; |
| 927 | reg-io-width = <4>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 928 | clocks = <&ccu CLK_APB1_UART1>; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 929 | status = "disabled"; |
| 930 | }; |
| 931 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 932 | uart2: serial@1c28800 { |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 933 | compatible = "snps,dw-apb-uart"; |
| 934 | reg = <0x01c28800 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 935 | interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 936 | reg-shift = <2>; |
| 937 | reg-io-width = <4>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 938 | clocks = <&ccu CLK_APB1_UART2>; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 939 | status = "disabled"; |
| 940 | }; |
| 941 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 942 | uart3: serial@1c28c00 { |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 943 | compatible = "snps,dw-apb-uart"; |
| 944 | reg = <0x01c28c00 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 945 | interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 946 | reg-shift = <2>; |
| 947 | reg-io-width = <4>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 948 | clocks = <&ccu CLK_APB1_UART3>; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 949 | status = "disabled"; |
| 950 | }; |
| 951 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 952 | uart4: serial@1c29000 { |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 953 | compatible = "snps,dw-apb-uart"; |
| 954 | reg = <0x01c29000 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 955 | interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 956 | reg-shift = <2>; |
| 957 | reg-io-width = <4>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 958 | clocks = <&ccu CLK_APB1_UART4>; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 959 | status = "disabled"; |
| 960 | }; |
| 961 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 962 | uart5: serial@1c29400 { |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 963 | compatible = "snps,dw-apb-uart"; |
| 964 | reg = <0x01c29400 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 965 | interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 966 | reg-shift = <2>; |
| 967 | reg-io-width = <4>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 968 | clocks = <&ccu CLK_APB1_UART5>; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 969 | status = "disabled"; |
| 970 | }; |
| 971 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 972 | uart6: serial@1c29800 { |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 973 | compatible = "snps,dw-apb-uart"; |
| 974 | reg = <0x01c29800 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 975 | interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 976 | reg-shift = <2>; |
| 977 | reg-io-width = <4>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 978 | clocks = <&ccu CLK_APB1_UART6>; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 979 | status = "disabled"; |
| 980 | }; |
| 981 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 982 | uart7: serial@1c29c00 { |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 983 | compatible = "snps,dw-apb-uart"; |
| 984 | reg = <0x01c29c00 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 985 | interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 986 | reg-shift = <2>; |
| 987 | reg-io-width = <4>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 988 | clocks = <&ccu CLK_APB1_UART7>; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 989 | status = "disabled"; |
| 990 | }; |
| 991 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 992 | ps20: ps2@1c2a000 { |
Patrick Menschel | cb44b46 | 2017-04-04 20:36:30 +0200 | [diff] [blame] | 993 | compatible = "allwinner,sun4i-a10-ps2"; |
| 994 | reg = <0x01c2a000 0x400>; |
| 995 | interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 996 | clocks = <&ccu CLK_APB1_PS20>; |
Patrick Menschel | cb44b46 | 2017-04-04 20:36:30 +0200 | [diff] [blame] | 997 | status = "disabled"; |
| 998 | }; |
| 999 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 1000 | ps21: ps2@1c2a400 { |
Patrick Menschel | cb44b46 | 2017-04-04 20:36:30 +0200 | [diff] [blame] | 1001 | compatible = "allwinner,sun4i-a10-ps2"; |
| 1002 | reg = <0x01c2a400 0x400>; |
| 1003 | interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 1004 | clocks = <&ccu CLK_APB1_PS21>; |
Patrick Menschel | cb44b46 | 2017-04-04 20:36:30 +0200 | [diff] [blame] | 1005 | status = "disabled"; |
| 1006 | }; |
| 1007 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 1008 | i2c0: i2c@1c2ac00 { |
Maxime Ripard | d8cacaa | 2015-05-03 11:53:07 +0200 | [diff] [blame] | 1009 | compatible = "allwinner,sun7i-a20-i2c", |
| 1010 | "allwinner,sun4i-a10-i2c"; |
Maxime Ripard | 428abbb | 2013-08-31 23:07:24 +0200 | [diff] [blame] | 1011 | reg = <0x01c2ac00 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 1012 | interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 1013 | clocks = <&ccu CLK_APB1_I2C0>; |
Maxime Ripard | 428abbb | 2013-08-31 23:07:24 +0200 | [diff] [blame] | 1014 | status = "disabled"; |
Hans de Goede | d1412ae | 2014-04-13 13:41:05 +0200 | [diff] [blame] | 1015 | #address-cells = <1>; |
| 1016 | #size-cells = <0>; |
Maxime Ripard | 428abbb | 2013-08-31 23:07:24 +0200 | [diff] [blame] | 1017 | }; |
| 1018 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 1019 | i2c1: i2c@1c2b000 { |
Maxime Ripard | d8cacaa | 2015-05-03 11:53:07 +0200 | [diff] [blame] | 1020 | compatible = "allwinner,sun7i-a20-i2c", |
| 1021 | "allwinner,sun4i-a10-i2c"; |
Maxime Ripard | 428abbb | 2013-08-31 23:07:24 +0200 | [diff] [blame] | 1022 | reg = <0x01c2b000 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 1023 | interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 1024 | clocks = <&ccu CLK_APB1_I2C1>; |
Maxime Ripard | 428abbb | 2013-08-31 23:07:24 +0200 | [diff] [blame] | 1025 | status = "disabled"; |
Hans de Goede | d1412ae | 2014-04-13 13:41:05 +0200 | [diff] [blame] | 1026 | #address-cells = <1>; |
| 1027 | #size-cells = <0>; |
Maxime Ripard | 428abbb | 2013-08-31 23:07:24 +0200 | [diff] [blame] | 1028 | }; |
| 1029 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 1030 | i2c2: i2c@1c2b400 { |
Maxime Ripard | d8cacaa | 2015-05-03 11:53:07 +0200 | [diff] [blame] | 1031 | compatible = "allwinner,sun7i-a20-i2c", |
| 1032 | "allwinner,sun4i-a10-i2c"; |
Maxime Ripard | 428abbb | 2013-08-31 23:07:24 +0200 | [diff] [blame] | 1033 | reg = <0x01c2b400 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 1034 | interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 1035 | clocks = <&ccu CLK_APB1_I2C2>; |
Maxime Ripard | 428abbb | 2013-08-31 23:07:24 +0200 | [diff] [blame] | 1036 | status = "disabled"; |
Hans de Goede | d1412ae | 2014-04-13 13:41:05 +0200 | [diff] [blame] | 1037 | #address-cells = <1>; |
| 1038 | #size-cells = <0>; |
Maxime Ripard | 428abbb | 2013-08-31 23:07:24 +0200 | [diff] [blame] | 1039 | }; |
| 1040 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 1041 | i2c3: i2c@1c2b800 { |
Maxime Ripard | d8cacaa | 2015-05-03 11:53:07 +0200 | [diff] [blame] | 1042 | compatible = "allwinner,sun7i-a20-i2c", |
| 1043 | "allwinner,sun4i-a10-i2c"; |
Maxime Ripard | 428abbb | 2013-08-31 23:07:24 +0200 | [diff] [blame] | 1044 | reg = <0x01c2b800 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 1045 | interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 1046 | clocks = <&ccu CLK_APB1_I2C3>; |
Maxime Ripard | 428abbb | 2013-08-31 23:07:24 +0200 | [diff] [blame] | 1047 | status = "disabled"; |
Hans de Goede | d1412ae | 2014-04-13 13:41:05 +0200 | [diff] [blame] | 1048 | #address-cells = <1>; |
| 1049 | #size-cells = <0>; |
Maxime Ripard | 428abbb | 2013-08-31 23:07:24 +0200 | [diff] [blame] | 1050 | }; |
| 1051 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 1052 | can0: can@1c2bc00 { |
Patrick Menschel | d2a20ef | 2017-04-03 19:00:13 +0200 | [diff] [blame] | 1053 | compatible = "allwinner,sun7i-a20-can", |
| 1054 | "allwinner,sun4i-a10-can"; |
| 1055 | reg = <0x01c2bc00 0x400>; |
| 1056 | interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 1057 | clocks = <&ccu CLK_APB1_CAN>; |
Patrick Menschel | d2a20ef | 2017-04-03 19:00:13 +0200 | [diff] [blame] | 1058 | status = "disabled"; |
| 1059 | }; |
| 1060 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 1061 | i2c4: i2c@1c2c000 { |
Maxime Ripard | d8cacaa | 2015-05-03 11:53:07 +0200 | [diff] [blame] | 1062 | compatible = "allwinner,sun7i-a20-i2c", |
| 1063 | "allwinner,sun4i-a10-i2c"; |
Maxime Ripard | a386704 | 2014-04-18 21:13:08 +0200 | [diff] [blame] | 1064 | reg = <0x01c2c000 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 1065 | interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 1066 | clocks = <&ccu CLK_APB1_I2C4>; |
Maxime Ripard | 428abbb | 2013-08-31 23:07:24 +0200 | [diff] [blame] | 1067 | status = "disabled"; |
Hans de Goede | d1412ae | 2014-04-13 13:41:05 +0200 | [diff] [blame] | 1068 | #address-cells = <1>; |
| 1069 | #size-cells = <0>; |
Maxime Ripard | 428abbb | 2013-08-31 23:07:24 +0200 | [diff] [blame] | 1070 | }; |
| 1071 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 1072 | gmac: ethernet@1c50000 { |
Chen-Yu Tsai | c40b8d5 | 2014-02-10 18:35:49 +0800 | [diff] [blame] | 1073 | compatible = "allwinner,sun7i-a20-gmac"; |
| 1074 | reg = <0x01c50000 0x10000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 1075 | interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | c40b8d5 | 2014-02-10 18:35:49 +0800 | [diff] [blame] | 1076 | interrupt-names = "macirq"; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 1077 | clocks = <&ccu CLK_AHB_GMAC>, <&gmac_tx_clk>; |
Chen-Yu Tsai | c40b8d5 | 2014-02-10 18:35:49 +0800 | [diff] [blame] | 1078 | clock-names = "stmmaceth", "allwinner_gmac_tx"; |
| 1079 | snps,pbl = <2>; |
| 1080 | snps,fixed-burst; |
| 1081 | snps,force_sf_dma_mode; |
| 1082 | status = "disabled"; |
| 1083 | #address-cells = <1>; |
| 1084 | #size-cells = <0>; |
| 1085 | }; |
| 1086 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 1087 | hstimer@1c60000 { |
Maxime Ripard | 31f8ad3 | 2013-11-07 12:01:48 +0100 | [diff] [blame] | 1088 | compatible = "allwinner,sun7i-a20-hstimer"; |
| 1089 | reg = <0x01c60000 0x1000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 1090 | interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>, |
| 1091 | <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>, |
| 1092 | <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>, |
| 1093 | <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>; |
Priit Laes | f18698e | 2017-08-23 20:23:32 +0300 | [diff] [blame] | 1094 | clocks = <&ccu CLK_AHB_HSTIMER>; |
Maxime Ripard | 31f8ad3 | 2013-11-07 12:01:48 +0100 | [diff] [blame] | 1095 | }; |
| 1096 | |
Maxime Ripard | 5841f6c | 2017-10-05 12:49:36 +0200 | [diff] [blame^] | 1097 | gic: interrupt-controller@1c81000 { |
Marc Zyngier | 387720c | 2017-01-18 09:27:28 +0000 | [diff] [blame] | 1098 | compatible = "arm,gic-400", "arm,cortex-a7-gic", "arm,cortex-a15-gic"; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 1099 | reg = <0x01c81000 0x1000>, |
Marc Zyngier | 387720c | 2017-01-18 09:27:28 +0000 | [diff] [blame] | 1100 | <0x01c82000 0x2000>, |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 1101 | <0x01c84000 0x2000>, |
| 1102 | <0x01c86000 0x2000>; |
| 1103 | interrupt-controller; |
| 1104 | #interrupt-cells = <3>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 1105 | interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; |
Maxime Ripard | 4790ecf | 2013-07-17 10:07:10 +0200 | [diff] [blame] | 1106 | }; |
| 1107 | }; |
| 1108 | }; |