Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 Maxime Ripard |
| 3 | * |
| 4 | * Maxime Ripard <maxime.ripard@free-electrons.com> |
| 5 | * |
Maxime Ripard | 6c3ba72 | 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 | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [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 | 6c3ba72 | 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 | 6c3ba72 | 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 | 6c3ba72 | 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 | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 43 | */ |
| 44 | |
Maxime Ripard | 7145570 | 2014-12-16 22:59:54 +0100 | [diff] [blame] | 45 | #include "skeleton.dtsi" |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [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 | eb58b40 | 2015-03-26 05:04:49 +0800 | [diff] [blame] | 48 | #include <dt-bindings/thermal/thermal.h> |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 49 | |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 50 | #include <dt-bindings/clock/sun6i-a31-ccu.h> |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 51 | #include <dt-bindings/reset/sun6i-a31-ccu.h> |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 52 | |
| 53 | / { |
| 54 | interrupt-parent = <&gic>; |
| 55 | |
Maxime Ripard | 54428d4 | 2014-01-02 22:05:04 +0100 | [diff] [blame] | 56 | aliases { |
Chen-Yu Tsai | e5073fd | 2014-07-16 01:15:46 +0800 | [diff] [blame] | 57 | ethernet0 = &gmac; |
Maxime Ripard | 54428d4 | 2014-01-02 22:05:04 +0100 | [diff] [blame] | 58 | }; |
| 59 | |
Hans de Goede | e53a8b2 | 2014-11-14 16:34:36 +0100 | [diff] [blame] | 60 | chosen { |
| 61 | #address-cells = <1>; |
| 62 | #size-cells = <1>; |
| 63 | ranges; |
| 64 | |
Chen-Yu Tsai | c094930 | 2015-10-23 11:50:40 +0800 | [diff] [blame] | 65 | simplefb_hdmi: 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"; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 69 | clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_AHB1_LCD0>, |
| 70 | <&ccu CLK_AHB1_HDMI>, <&ccu CLK_DRAM_BE0>, |
| 71 | <&ccu CLK_IEP_DRC0>, <&ccu CLK_BE0>, |
| 72 | <&ccu CLK_LCD0_CH1>, <&ccu CLK_HDMI>; |
Hans de Goede | e53a8b2 | 2014-11-14 16:34:36 +0100 | [diff] [blame] | 73 | status = "disabled"; |
| 74 | }; |
Hans de Goede | fd18c7e | 2015-01-19 14:05:12 +0100 | [diff] [blame] | 75 | |
Chen-Yu Tsai | c094930 | 2015-10-23 11:50:40 +0800 | [diff] [blame] | 76 | simplefb_lcd: framebuffer@1 { |
Hans de Goede | fd18c7e | 2015-01-19 14:05:12 +0100 | [diff] [blame] | 77 | compatible = "allwinner,simple-framebuffer", |
| 78 | "simple-framebuffer"; |
| 79 | allwinner,pipeline = "de_be0-lcd0"; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 80 | clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_AHB1_LCD0>, |
| 81 | <&ccu CLK_DRAM_BE0>, <&ccu CLK_IEP_DRC0>, |
| 82 | <&ccu CLK_BE0>, <&ccu CLK_LCD0_CH0>; |
Hans de Goede | fd18c7e | 2015-01-19 14:05:12 +0100 | [diff] [blame] | 83 | status = "disabled"; |
| 84 | }; |
Hans de Goede | e53a8b2 | 2014-11-14 16:34:36 +0100 | [diff] [blame] | 85 | }; |
Maxime Ripard | 54428d4 | 2014-01-02 22:05:04 +0100 | [diff] [blame] | 86 | |
Maxime Ripard | 121b96c | 2015-01-11 20:33:44 +0100 | [diff] [blame] | 87 | timer { |
| 88 | compatible = "arm,armv7-timer"; |
| 89 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 90 | <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 91 | <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 92 | <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; |
| 93 | clock-frequency = <24000000>; |
| 94 | arm,cpu-registers-not-fw-configured; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 95 | }; |
| 96 | |
| 97 | cpus { |
| 98 | enable-method = "allwinner,sun6i-a31"; |
| 99 | #address-cells = <1>; |
| 100 | #size-cells = <0>; |
| 101 | |
Chen-Yu Tsai | 3a2bc64 | 2015-03-26 05:04:48 +0800 | [diff] [blame] | 102 | cpu0: cpu@0 { |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 103 | compatible = "arm,cortex-a7"; |
| 104 | device_type = "cpu"; |
| 105 | reg = <0>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 106 | clocks = <&ccu CLK_CPU>; |
Chen-Yu Tsai | 3a2bc64 | 2015-03-26 05:04:48 +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 */ |
Chen-Yu Tsai | 3a2bc64 | 2015-03-26 05:04:48 +0800 | [diff] [blame] | 110 | 1008000 1200000 |
Maxime Ripard | 8358aad | 2015-05-03 11:54:35 +0200 | [diff] [blame] | 111 | 864000 1200000 |
| 112 | 720000 1100000 |
| 113 | 480000 1000000 |
Chen-Yu Tsai | 3a2bc64 | 2015-03-26 05:04:48 +0800 | [diff] [blame] | 114 | >; |
| 115 | #cooling-cells = <2>; |
| 116 | cooling-min-level = <0>; |
| 117 | cooling-max-level = <3>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 118 | }; |
| 119 | |
| 120 | cpu@1 { |
| 121 | compatible = "arm,cortex-a7"; |
| 122 | device_type = "cpu"; |
| 123 | reg = <1>; |
| 124 | }; |
| 125 | |
| 126 | cpu@2 { |
| 127 | compatible = "arm,cortex-a7"; |
| 128 | device_type = "cpu"; |
| 129 | reg = <2>; |
| 130 | }; |
| 131 | |
| 132 | cpu@3 { |
| 133 | compatible = "arm,cortex-a7"; |
| 134 | device_type = "cpu"; |
| 135 | reg = <3>; |
| 136 | }; |
| 137 | }; |
| 138 | |
Chen-Yu Tsai | eb58b40 | 2015-03-26 05:04:49 +0800 | [diff] [blame] | 139 | thermal-zones { |
| 140 | cpu_thermal { |
| 141 | /* milliseconds */ |
| 142 | polling-delay-passive = <250>; |
| 143 | polling-delay = <1000>; |
| 144 | thermal-sensors = <&rtp>; |
| 145 | |
| 146 | cooling-maps { |
| 147 | map0 { |
| 148 | trip = <&cpu_alert0>; |
| 149 | cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 150 | }; |
| 151 | }; |
| 152 | |
| 153 | trips { |
| 154 | cpu_alert0: cpu_alert0 { |
| 155 | /* milliCelsius */ |
| 156 | temperature = <70000>; |
| 157 | hysteresis = <2000>; |
| 158 | type = "passive"; |
| 159 | }; |
| 160 | |
| 161 | cpu_crit: cpu_crit { |
| 162 | /* milliCelsius */ |
| 163 | temperature = <100000>; |
| 164 | hysteresis = <2000>; |
| 165 | type = "critical"; |
| 166 | }; |
| 167 | }; |
| 168 | }; |
| 169 | }; |
| 170 | |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 171 | memory { |
| 172 | reg = <0x40000000 0x80000000>; |
| 173 | }; |
| 174 | |
Maxime Ripard | b5a10b7 | 2014-04-17 21:54:41 +0200 | [diff] [blame] | 175 | pmu { |
| 176 | compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu"; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 177 | interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>, |
| 178 | <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>, |
| 179 | <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>, |
| 180 | <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | b5a10b7 | 2014-04-17 21:54:41 +0200 | [diff] [blame] | 181 | }; |
| 182 | |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 183 | clocks { |
| 184 | #address-cells = <1>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 185 | #size-cells = <1>; |
| 186 | ranges; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 187 | |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 188 | osc24M: osc24M { |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 189 | #clock-cells = <0>; |
| 190 | compatible = "fixed-clock"; |
| 191 | clock-frequency = <24000000>; |
| 192 | }; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 193 | |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 194 | osc32k: clk@0 { |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 195 | #clock-cells = <0>; |
| 196 | compatible = "fixed-clock"; |
| 197 | clock-frequency = <32768>; |
Chen-Yu Tsai | 7b5b290 | 2014-02-03 09:51:43 +0800 | [diff] [blame] | 198 | clock-output-names = "osc32k"; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 199 | }; |
| 200 | |
Chen-Yu Tsai | ed29861 | 2014-07-16 01:15:44 +0800 | [diff] [blame] | 201 | /* |
Maxime Ripard | d8cacaa | 2015-05-03 11:53:07 +0200 | [diff] [blame] | 202 | * The following two are dummy clocks, placeholders |
| 203 | * used in the gmac_tx clock. The gmac driver will |
| 204 | * choose one parent depending on the PHY interface |
| 205 | * mode, using clk_set_rate auto-reparenting. |
| 206 | * |
| 207 | * The actual TX clock rate is not controlled by the |
| 208 | * gmac_tx clock. |
Chen-Yu Tsai | ed29861 | 2014-07-16 01:15:44 +0800 | [diff] [blame] | 209 | */ |
| 210 | mii_phy_tx_clk: clk@1 { |
| 211 | #clock-cells = <0>; |
| 212 | compatible = "fixed-clock"; |
| 213 | clock-frequency = <25000000>; |
| 214 | clock-output-names = "mii_phy_tx"; |
| 215 | }; |
| 216 | |
| 217 | gmac_int_tx_clk: clk@2 { |
| 218 | #clock-cells = <0>; |
| 219 | compatible = "fixed-clock"; |
| 220 | clock-frequency = <125000000>; |
| 221 | clock-output-names = "gmac_int_tx"; |
| 222 | }; |
| 223 | |
| 224 | gmac_tx_clk: clk@01c200d0 { |
| 225 | #clock-cells = <0>; |
| 226 | compatible = "allwinner,sun7i-a20-gmac-clk"; |
| 227 | reg = <0x01c200d0 0x4>; |
| 228 | clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>; |
| 229 | clock-output-names = "gmac_tx"; |
| 230 | }; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 231 | }; |
| 232 | |
Chen-Yu Tsai | 6d0e5b7 | 2016-10-20 11:43:42 +0800 | [diff] [blame] | 233 | de: display-engine { |
| 234 | compatible = "allwinner,sun6i-a31-display-engine"; |
| 235 | allwinner,pipelines = <&fe0>; |
Chen-Yu Tsai | 205ac7b | 2016-11-24 14:43:38 +0800 | [diff] [blame] | 236 | status = "disabled"; |
Chen-Yu Tsai | 6d0e5b7 | 2016-10-20 11:43:42 +0800 | [diff] [blame] | 237 | }; |
| 238 | |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 239 | soc@01c00000 { |
| 240 | compatible = "simple-bus"; |
| 241 | #address-cells = <1>; |
| 242 | #size-cells = <1>; |
| 243 | ranges; |
| 244 | |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 245 | dma: dma-controller@01c02000 { |
| 246 | compatible = "allwinner,sun6i-a31-dma"; |
| 247 | reg = <0x01c02000 0x1000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 248 | interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 249 | clocks = <&ccu CLK_AHB1_DMA>; |
| 250 | resets = <&ccu RST_AHB1_DMA>; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 251 | #dma-cells = <1>; |
| 252 | }; |
| 253 | |
Chen-Yu Tsai | 6d0e5b7 | 2016-10-20 11:43:42 +0800 | [diff] [blame] | 254 | tcon0: lcd-controller@01c0c000 { |
| 255 | compatible = "allwinner,sun6i-a31-tcon"; |
| 256 | reg = <0x01c0c000 0x1000>; |
| 257 | interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; |
| 258 | resets = <&ccu RST_AHB1_LCD0>; |
| 259 | reset-names = "lcd"; |
| 260 | clocks = <&ccu CLK_AHB1_LCD0>, |
| 261 | <&ccu CLK_LCD0_CH0>, |
| 262 | <&ccu CLK_LCD0_CH1>; |
| 263 | clock-names = "ahb", |
| 264 | "tcon-ch0", |
| 265 | "tcon-ch1"; |
| 266 | clock-output-names = "tcon0-pixel-clock"; |
| 267 | status = "disabled"; |
| 268 | |
| 269 | ports { |
| 270 | #address-cells = <1>; |
| 271 | #size-cells = <0>; |
| 272 | |
| 273 | tcon0_in: port@0 { |
| 274 | #address-cells = <1>; |
| 275 | #size-cells = <0>; |
| 276 | reg = <0>; |
| 277 | |
| 278 | tcon0_in_drc0: endpoint@0 { |
| 279 | reg = <0>; |
| 280 | remote-endpoint = <&drc0_out_tcon0>; |
| 281 | }; |
| 282 | }; |
| 283 | |
| 284 | tcon0_out: port@1 { |
| 285 | #address-cells = <1>; |
| 286 | #size-cells = <0>; |
| 287 | reg = <1>; |
| 288 | }; |
| 289 | }; |
| 290 | }; |
| 291 | |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 292 | mmc0: mmc@01c0f000 { |
Hans de Goede | 57af711 | 2016-07-30 16:25:48 +0200 | [diff] [blame] | 293 | compatible = "allwinner,sun7i-a20-mmc"; |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 294 | reg = <0x01c0f000 0x1000>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 295 | clocks = <&ccu CLK_AHB1_MMC0>, |
| 296 | <&ccu CLK_MMC0>, |
| 297 | <&ccu CLK_MMC0_OUTPUT>, |
| 298 | <&ccu CLK_MMC0_SAMPLE>; |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame] | 299 | clock-names = "ahb", |
| 300 | "mmc", |
| 301 | "output", |
| 302 | "sample"; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 303 | resets = <&ccu RST_AHB1_MMC0>; |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 304 | reset-names = "ahb"; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 305 | interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 306 | status = "disabled"; |
Hans de Goede | 4c1bb9c | 2015-03-10 16:27:09 +0100 | [diff] [blame] | 307 | #address-cells = <1>; |
| 308 | #size-cells = <0>; |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 309 | }; |
| 310 | |
| 311 | mmc1: mmc@01c10000 { |
Hans de Goede | 57af711 | 2016-07-30 16:25:48 +0200 | [diff] [blame] | 312 | compatible = "allwinner,sun7i-a20-mmc"; |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 313 | reg = <0x01c10000 0x1000>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 314 | clocks = <&ccu CLK_AHB1_MMC1>, |
| 315 | <&ccu CLK_MMC1>, |
| 316 | <&ccu CLK_MMC1_OUTPUT>, |
| 317 | <&ccu CLK_MMC1_SAMPLE>; |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame] | 318 | clock-names = "ahb", |
| 319 | "mmc", |
| 320 | "output", |
| 321 | "sample"; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 322 | resets = <&ccu RST_AHB1_MMC1>; |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 323 | reset-names = "ahb"; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 324 | interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 325 | status = "disabled"; |
Hans de Goede | 4c1bb9c | 2015-03-10 16:27:09 +0100 | [diff] [blame] | 326 | #address-cells = <1>; |
| 327 | #size-cells = <0>; |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 328 | }; |
| 329 | |
| 330 | mmc2: mmc@01c11000 { |
Hans de Goede | 57af711 | 2016-07-30 16:25:48 +0200 | [diff] [blame] | 331 | compatible = "allwinner,sun7i-a20-mmc"; |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 332 | reg = <0x01c11000 0x1000>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 333 | clocks = <&ccu CLK_AHB1_MMC2>, |
| 334 | <&ccu CLK_MMC2>, |
| 335 | <&ccu CLK_MMC2_OUTPUT>, |
| 336 | <&ccu CLK_MMC2_SAMPLE>; |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame] | 337 | clock-names = "ahb", |
| 338 | "mmc", |
| 339 | "output", |
| 340 | "sample"; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 341 | resets = <&ccu RST_AHB1_MMC2>; |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 342 | reset-names = "ahb"; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 343 | interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 344 | status = "disabled"; |
Hans de Goede | 4c1bb9c | 2015-03-10 16:27:09 +0100 | [diff] [blame] | 345 | #address-cells = <1>; |
| 346 | #size-cells = <0>; |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 347 | }; |
| 348 | |
| 349 | mmc3: mmc@01c12000 { |
Hans de Goede | 57af711 | 2016-07-30 16:25:48 +0200 | [diff] [blame] | 350 | compatible = "allwinner,sun7i-a20-mmc"; |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 351 | reg = <0x01c12000 0x1000>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 352 | clocks = <&ccu CLK_AHB1_MMC3>, |
| 353 | <&ccu CLK_MMC3>, |
| 354 | <&ccu CLK_MMC3_OUTPUT>, |
| 355 | <&ccu CLK_MMC3_SAMPLE>; |
Maxime Ripard | d8c3a39 | 2014-07-11 19:39:06 +0200 | [diff] [blame] | 356 | clock-names = "ahb", |
| 357 | "mmc", |
| 358 | "output", |
| 359 | "sample"; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 360 | resets = <&ccu RST_AHB1_MMC3>; |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 361 | reset-names = "ahb"; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 362 | interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>; |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 363 | status = "disabled"; |
Hans de Goede | 4c1bb9c | 2015-03-10 16:27:09 +0100 | [diff] [blame] | 364 | #address-cells = <1>; |
| 365 | #size-cells = <0>; |
Hans de Goede | 5b753f0 | 2014-05-02 17:57:24 +0200 | [diff] [blame] | 366 | }; |
| 367 | |
Hans de Goede | d208eaf | 2015-06-01 13:29:49 +0200 | [diff] [blame] | 368 | usb_otg: usb@01c19000 { |
| 369 | compatible = "allwinner,sun6i-a31-musb"; |
| 370 | reg = <0x01c19000 0x0400>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 371 | clocks = <&ccu CLK_AHB1_OTG>; |
| 372 | resets = <&ccu RST_AHB1_OTG>; |
Hans de Goede | d208eaf | 2015-06-01 13:29:49 +0200 | [diff] [blame] | 373 | interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; |
| 374 | interrupt-names = "mc"; |
| 375 | phys = <&usbphy 0>; |
| 376 | phy-names = "usb"; |
| 377 | extcon = <&usbphy 0>; |
| 378 | status = "disabled"; |
| 379 | }; |
| 380 | |
Maxime Ripard | ef96408 | 2014-05-13 17:44:21 +0200 | [diff] [blame] | 381 | usbphy: phy@01c19400 { |
| 382 | compatible = "allwinner,sun6i-a31-usb-phy"; |
| 383 | reg = <0x01c19400 0x10>, |
| 384 | <0x01c1a800 0x4>, |
| 385 | <0x01c1b800 0x4>; |
| 386 | reg-names = "phy_ctrl", |
| 387 | "pmu1", |
| 388 | "pmu2"; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 389 | clocks = <&ccu CLK_USB_PHY0>, |
| 390 | <&ccu CLK_USB_PHY1>, |
| 391 | <&ccu CLK_USB_PHY2>; |
Maxime Ripard | ef96408 | 2014-05-13 17:44:21 +0200 | [diff] [blame] | 392 | clock-names = "usb0_phy", |
| 393 | "usb1_phy", |
| 394 | "usb2_phy"; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 395 | resets = <&ccu RST_USB_PHY0>, |
| 396 | <&ccu RST_USB_PHY1>, |
| 397 | <&ccu RST_USB_PHY2>; |
Maxime Ripard | ef96408 | 2014-05-13 17:44:21 +0200 | [diff] [blame] | 398 | reset-names = "usb0_reset", |
| 399 | "usb1_reset", |
| 400 | "usb2_reset"; |
| 401 | status = "disabled"; |
| 402 | #phy-cells = <1>; |
| 403 | }; |
| 404 | |
| 405 | ehci0: usb@01c1a000 { |
| 406 | compatible = "allwinner,sun6i-a31-ehci", "generic-ehci"; |
| 407 | reg = <0x01c1a000 0x100>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 408 | interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 409 | clocks = <&ccu CLK_AHB1_EHCI0>; |
| 410 | resets = <&ccu RST_AHB1_EHCI0>; |
Maxime Ripard | ef96408 | 2014-05-13 17:44:21 +0200 | [diff] [blame] | 411 | phys = <&usbphy 1>; |
| 412 | phy-names = "usb"; |
| 413 | status = "disabled"; |
| 414 | }; |
| 415 | |
| 416 | ohci0: usb@01c1a400 { |
| 417 | compatible = "allwinner,sun6i-a31-ohci", "generic-ohci"; |
| 418 | reg = <0x01c1a400 0x100>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 419 | interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 420 | clocks = <&ccu CLK_AHB1_OHCI0>, <&ccu CLK_USB_OHCI0>; |
| 421 | resets = <&ccu RST_AHB1_OHCI0>; |
Maxime Ripard | ef96408 | 2014-05-13 17:44:21 +0200 | [diff] [blame] | 422 | phys = <&usbphy 1>; |
| 423 | phy-names = "usb"; |
| 424 | status = "disabled"; |
| 425 | }; |
| 426 | |
| 427 | ehci1: usb@01c1b000 { |
| 428 | compatible = "allwinner,sun6i-a31-ehci", "generic-ehci"; |
| 429 | reg = <0x01c1b000 0x100>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 430 | interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 431 | clocks = <&ccu CLK_AHB1_EHCI1>; |
| 432 | resets = <&ccu RST_AHB1_EHCI1>; |
Maxime Ripard | ef96408 | 2014-05-13 17:44:21 +0200 | [diff] [blame] | 433 | phys = <&usbphy 2>; |
| 434 | phy-names = "usb"; |
| 435 | status = "disabled"; |
| 436 | }; |
| 437 | |
| 438 | ohci1: usb@01c1b400 { |
| 439 | compatible = "allwinner,sun6i-a31-ohci", "generic-ohci"; |
| 440 | reg = <0x01c1b400 0x100>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 441 | interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 442 | clocks = <&ccu CLK_AHB1_OHCI1>, <&ccu CLK_USB_OHCI1>; |
| 443 | resets = <&ccu RST_AHB1_OHCI1>; |
Maxime Ripard | ef96408 | 2014-05-13 17:44:21 +0200 | [diff] [blame] | 444 | phys = <&usbphy 2>; |
| 445 | phy-names = "usb"; |
| 446 | status = "disabled"; |
| 447 | }; |
| 448 | |
Maxime Ripard | b294ebb | 2014-05-20 13:59:58 +0200 | [diff] [blame] | 449 | ohci2: usb@01c1c400 { |
Maxime Ripard | ef96408 | 2014-05-13 17:44:21 +0200 | [diff] [blame] | 450 | compatible = "allwinner,sun6i-a31-ohci", "generic-ohci"; |
| 451 | reg = <0x01c1c400 0x100>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 452 | interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 453 | clocks = <&ccu CLK_AHB1_OHCI2>, <&ccu CLK_USB_OHCI2>; |
| 454 | resets = <&ccu RST_AHB1_OHCI2>; |
Maxime Ripard | ef96408 | 2014-05-13 17:44:21 +0200 | [diff] [blame] | 455 | status = "disabled"; |
| 456 | }; |
| 457 | |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 458 | ccu: clock@01c20000 { |
| 459 | compatible = "allwinner,sun6i-a31-ccu"; |
| 460 | reg = <0x01c20000 0x400>; |
| 461 | clocks = <&osc24M>, <&osc32k>; |
| 462 | clock-names = "hosc", "losc"; |
| 463 | #clock-cells = <1>; |
| 464 | #reset-cells = <1>; |
| 465 | }; |
| 466 | |
Maxime Ripard | 140e172 | 2013-03-12 22:16:05 +0100 | [diff] [blame] | 467 | pio: pinctrl@01c20800 { |
| 468 | compatible = "allwinner,sun6i-a31-pinctrl"; |
| 469 | reg = <0x01c20800 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 470 | interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>, |
| 471 | <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>, |
| 472 | <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>, |
| 473 | <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | be7bc6b | 2016-10-19 11:15:27 +0200 | [diff] [blame] | 474 | clocks = <&ccu CLK_APB1_PIO>, <&osc24M>, <&osc32k>; |
| 475 | clock-names = "apb", "hosc", "losc"; |
Maxime Ripard | 140e172 | 2013-03-12 22:16:05 +0100 | [diff] [blame] | 476 | gpio-controller; |
| 477 | interrupt-controller; |
Maxime Ripard | b03e081 | 2015-06-17 11:44:24 +0200 | [diff] [blame] | 478 | #interrupt-cells = <3>; |
Maxime Ripard | 140e172 | 2013-03-12 22:16:05 +0100 | [diff] [blame] | 479 | #gpio-cells = <3>; |
Maxime Ripard | ab4238c | 2013-06-22 23:56:40 +0200 | [diff] [blame] | 480 | |
Chen-Yu Tsai | dc0aea3 | 2016-10-07 00:06:26 +0800 | [diff] [blame] | 481 | gmac_pins_gmii_a: gmac_gmii@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 482 | pins = "PA0", "PA1", "PA2", "PA3", |
Chen-Yu Tsai | dc0aea3 | 2016-10-07 00:06:26 +0800 | [diff] [blame] | 483 | "PA4", "PA5", "PA6", "PA7", |
| 484 | "PA8", "PA9", "PA10", "PA11", |
| 485 | "PA12", "PA13", "PA14", "PA15", |
| 486 | "PA16", "PA17", "PA18", "PA19", |
| 487 | "PA20", "PA21", "PA22", "PA23", |
| 488 | "PA24", "PA25", "PA26", "PA27"; |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 489 | function = "gmac"; |
Chen-Yu Tsai | dc0aea3 | 2016-10-07 00:06:26 +0800 | [diff] [blame] | 490 | /* |
| 491 | * data lines in GMII mode run at 125MHz and |
| 492 | * might need a higher signal drive strength |
| 493 | */ |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 494 | drive-strength = <30>; |
Chen-Yu Tsai | dc0aea3 | 2016-10-07 00:06:26 +0800 | [diff] [blame] | 495 | }; |
| 496 | |
| 497 | gmac_pins_mii_a: gmac_mii@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 498 | pins = "PA0", "PA1", "PA2", "PA3", |
Chen-Yu Tsai | dc0aea3 | 2016-10-07 00:06:26 +0800 | [diff] [blame] | 499 | "PA8", "PA9", "PA11", |
| 500 | "PA12", "PA13", "PA14", "PA19", |
| 501 | "PA20", "PA21", "PA22", "PA23", |
| 502 | "PA24", "PA26", "PA27"; |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 503 | function = "gmac"; |
Maxime Ripard | ab4238c | 2013-06-22 23:56:40 +0200 | [diff] [blame] | 504 | }; |
Maxime Ripard | 8be188b | 2014-03-04 17:28:40 +0100 | [diff] [blame] | 505 | |
Chen-Yu Tsai | dc0aea3 | 2016-10-07 00:06:26 +0800 | [diff] [blame] | 506 | gmac_pins_rgmii_a: gmac_rgmii@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 507 | pins = "PA0", "PA1", "PA2", "PA3", |
Chen-Yu Tsai | dc0aea3 | 2016-10-07 00:06:26 +0800 | [diff] [blame] | 508 | "PA9", "PA10", "PA11", |
| 509 | "PA12", "PA13", "PA14", "PA19", |
| 510 | "PA20", "PA25", "PA26", "PA27"; |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 511 | function = "gmac"; |
Chen-Yu Tsai | dc0aea3 | 2016-10-07 00:06:26 +0800 | [diff] [blame] | 512 | /* |
| 513 | * data lines in RGMII mode use DDR mode |
| 514 | * and need a higher signal drive strength |
| 515 | */ |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 516 | drive-strength = <40>; |
Chen-Yu Tsai | dc0aea3 | 2016-10-07 00:06:26 +0800 | [diff] [blame] | 517 | }; |
| 518 | |
Maxime Ripard | 8be188b | 2014-03-04 17:28:40 +0100 | [diff] [blame] | 519 | i2c0_pins_a: i2c0@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 520 | pins = "PH14", "PH15"; |
| 521 | function = "i2c0"; |
Maxime Ripard | 8be188b | 2014-03-04 17:28:40 +0100 | [diff] [blame] | 522 | }; |
| 523 | |
| 524 | i2c1_pins_a: i2c1@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 525 | pins = "PH16", "PH17"; |
| 526 | function = "i2c1"; |
Maxime Ripard | 8be188b | 2014-03-04 17:28:40 +0100 | [diff] [blame] | 527 | }; |
| 528 | |
| 529 | i2c2_pins_a: i2c2@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 530 | pins = "PH18", "PH19"; |
| 531 | function = "i2c2"; |
Maxime Ripard | 8be188b | 2014-03-04 17:28:40 +0100 | [diff] [blame] | 532 | }; |
Hans de Goede | 9797eb8 | 2014-04-26 12:16:16 +0200 | [diff] [blame] | 533 | |
Chen-Yu Tsai | 0ff8219 | 2016-10-20 11:43:43 +0800 | [diff] [blame] | 534 | lcd0_rgb888_pins: lcd0_rgb888 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 535 | pins = "PD0", "PD1", "PD2", "PD3", |
Chen-Yu Tsai | 0ff8219 | 2016-10-20 11:43:43 +0800 | [diff] [blame] | 536 | "PD4", "PD5", "PD6", "PD7", |
| 537 | "PD8", "PD9", "PD10", "PD11", |
| 538 | "PD12", "PD13", "PD14", "PD15", |
| 539 | "PD16", "PD17", "PD18", "PD19", |
| 540 | "PD20", "PD21", "PD22", "PD23", |
| 541 | "PD24", "PD25", "PD26", "PD27"; |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 542 | function = "lcd0"; |
Chen-Yu Tsai | 0ff8219 | 2016-10-20 11:43:43 +0800 | [diff] [blame] | 543 | }; |
| 544 | |
Hans de Goede | 9797eb8 | 2014-04-26 12:16:16 +0200 | [diff] [blame] | 545 | mmc0_pins_a: mmc0@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 546 | pins = "PF0", "PF1", "PF2", |
Maxime Ripard | d8cacaa | 2015-05-03 11:53:07 +0200 | [diff] [blame] | 547 | "PF3", "PF4", "PF5"; |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 548 | function = "mmc0"; |
| 549 | drive-strength = <30>; |
Chen-Yu Tsai | 80ee72e | 2016-11-17 17:34:38 +0800 | [diff] [blame] | 550 | bias-pull-up; |
Hans de Goede | 9797eb8 | 2014-04-26 12:16:16 +0200 | [diff] [blame] | 551 | }; |
Chen-Yu Tsai | ee39a3e | 2014-07-16 01:15:43 +0800 | [diff] [blame] | 552 | |
Chen-Yu Tsai | 878c4de | 2015-03-10 19:59:22 +0800 | [diff] [blame] | 553 | mmc1_pins_a: mmc1@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 554 | pins = "PG0", "PG1", "PG2", "PG3", |
Chen-Yu Tsai | 878c4de | 2015-03-10 19:59:22 +0800 | [diff] [blame] | 555 | "PG4", "PG5"; |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 556 | function = "mmc1"; |
| 557 | drive-strength = <30>; |
Chen-Yu Tsai | 80ee72e | 2016-11-17 17:34:38 +0800 | [diff] [blame] | 558 | bias-pull-up; |
Chen-Yu Tsai | 878c4de | 2015-03-10 19:59:22 +0800 | [diff] [blame] | 559 | }; |
| 560 | |
Hans de Goede | 5edab36 | 2015-10-15 16:28:46 +0200 | [diff] [blame] | 561 | mmc2_pins_a: mmc2@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 562 | pins = "PC6", "PC7", "PC8", "PC9", |
Hans de Goede | 5edab36 | 2015-10-15 16:28:46 +0200 | [diff] [blame] | 563 | "PC10", "PC11"; |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 564 | function = "mmc2"; |
| 565 | drive-strength = <30>; |
| 566 | bias-pull-up; |
Hans de Goede | 5edab36 | 2015-10-15 16:28:46 +0200 | [diff] [blame] | 567 | }; |
| 568 | |
| 569 | mmc2_8bit_emmc_pins: mmc2@1 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 570 | pins = "PC6", "PC7", "PC8", "PC9", |
Chen-Yu Tsai | 4917c46 | 2015-08-28 17:54:37 +0800 | [diff] [blame] | 571 | "PC10", "PC11", "PC12", |
| 572 | "PC13", "PC14", "PC15", |
| 573 | "PC24"; |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 574 | function = "mmc2"; |
| 575 | drive-strength = <30>; |
Chen-Yu Tsai | 80ee72e | 2016-11-17 17:34:38 +0800 | [diff] [blame] | 576 | bias-pull-up; |
Chen-Yu Tsai | 4917c46 | 2015-08-28 17:54:37 +0800 | [diff] [blame] | 577 | }; |
| 578 | |
Chen-Yu Tsai | a22f8b2 | 2016-01-21 13:26:35 +0800 | [diff] [blame] | 579 | mmc3_8bit_emmc_pins: mmc3@1 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 580 | pins = "PC6", "PC7", "PC8", "PC9", |
Chen-Yu Tsai | a22f8b2 | 2016-01-21 13:26:35 +0800 | [diff] [blame] | 581 | "PC10", "PC11", "PC12", |
| 582 | "PC13", "PC14", "PC15", |
| 583 | "PC24"; |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 584 | function = "mmc3"; |
| 585 | drive-strength = <40>; |
Chen-Yu Tsai | 80ee72e | 2016-11-17 17:34:38 +0800 | [diff] [blame] | 586 | bias-pull-up; |
Chen-Yu Tsai | a22f8b2 | 2016-01-21 13:26:35 +0800 | [diff] [blame] | 587 | }; |
| 588 | |
Marcus Cooper | 5f396b1 | 2016-12-20 11:40:36 +0100 | [diff] [blame] | 589 | spdif_pins_a: spdif@0 { |
| 590 | pins = "PH28"; |
| 591 | function = "spdif"; |
Maxime Ripard | 092a0c3 | 2014-12-16 22:59:57 +0100 | [diff] [blame] | 592 | }; |
Chen-Yu Tsai | ee39a3e | 2014-07-16 01:15:43 +0800 | [diff] [blame] | 593 | |
Chen-Yu Tsai | dc0aea3 | 2016-10-07 00:06:26 +0800 | [diff] [blame] | 594 | uart0_pins_a: uart0@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 595 | pins = "PH20", "PH21"; |
| 596 | function = "uart0"; |
Chen-Yu Tsai | ee39a3e | 2014-07-16 01:15:43 +0800 | [diff] [blame] | 597 | }; |
Maxime Ripard | 140e172 | 2013-03-12 22:16:05 +0100 | [diff] [blame] | 598 | }; |
| 599 | |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 600 | timer@01c20c00 { |
Maxime Ripard | b4f2644 | 2014-02-06 10:40:32 +0100 | [diff] [blame] | 601 | compatible = "allwinner,sun4i-a10-timer"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 602 | reg = <0x01c20c00 0xa0>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 603 | interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>, |
| 604 | <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>, |
| 605 | <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>, |
| 606 | <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>, |
| 607 | <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 9809656 | 2013-07-23 23:54:19 +0200 | [diff] [blame] | 608 | clocks = <&osc24M>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 609 | }; |
| 610 | |
| 611 | wdt1: watchdog@01c20ca0 { |
Maxime Ripard | ca5d04d | 2014-02-07 22:29:26 +0100 | [diff] [blame] | 612 | compatible = "allwinner,sun6i-a31-wdt"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 613 | reg = <0x01c20ca0 0x20>; |
| 614 | }; |
| 615 | |
Marcus Cooper | 63b31ba | 2016-12-20 11:40:37 +0100 | [diff] [blame] | 616 | spdif: spdif@01c21000 { |
| 617 | #sound-dai-cells = <0>; |
| 618 | compatible = "allwinner,sun6i-a31-spdif"; |
| 619 | reg = <0x01c21000 0x400>; |
| 620 | interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; |
| 621 | clocks = <&ccu CLK_APB1_SPDIF>, <&ccu CLK_SPDIF>; |
| 622 | resets = <&ccu RST_APB1_SPDIF>; |
| 623 | clock-names = "apb", "spdif"; |
| 624 | dmas = <&dma 2>, <&dma 2>; |
| 625 | dma-names = "rx", "tx"; |
| 626 | status = "disabled"; |
| 627 | }; |
| 628 | |
Chen-Yu Tsai | 61d2595 | 2015-08-28 17:54:34 +0800 | [diff] [blame] | 629 | lradc: lradc@01c22800 { |
| 630 | compatible = "allwinner,sun4i-a10-lradc-keys"; |
| 631 | reg = <0x01c22800 0x100>; |
| 632 | interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>; |
| 633 | status = "disabled"; |
| 634 | }; |
| 635 | |
Chen-Yu Tsai | 4ec45cd | 2015-01-24 22:33:48 +0800 | [diff] [blame] | 636 | rtp: rtp@01c25000 { |
| 637 | compatible = "allwinner,sun6i-a31-ts"; |
| 638 | reg = <0x01c25000 0x100>; |
| 639 | interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; |
| 640 | #thermal-sensor-cells = <0>; |
| 641 | }; |
| 642 | |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 643 | uart0: serial@01c28000 { |
| 644 | compatible = "snps,dw-apb-uart"; |
| 645 | reg = <0x01c28000 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 646 | interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 647 | reg-shift = <2>; |
| 648 | reg-io-width = <4>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 649 | clocks = <&ccu CLK_APB2_UART0>; |
| 650 | resets = <&ccu RST_APB2_UART0>; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 651 | dmas = <&dma 6>, <&dma 6>; |
| 652 | dma-names = "rx", "tx"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 653 | status = "disabled"; |
| 654 | }; |
| 655 | |
| 656 | uart1: serial@01c28400 { |
| 657 | compatible = "snps,dw-apb-uart"; |
| 658 | reg = <0x01c28400 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 659 | interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 660 | reg-shift = <2>; |
| 661 | reg-io-width = <4>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 662 | clocks = <&ccu CLK_APB2_UART1>; |
| 663 | resets = <&ccu RST_APB2_UART1>; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 664 | dmas = <&dma 7>, <&dma 7>; |
| 665 | dma-names = "rx", "tx"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 666 | status = "disabled"; |
| 667 | }; |
| 668 | |
| 669 | uart2: serial@01c28800 { |
| 670 | compatible = "snps,dw-apb-uart"; |
| 671 | reg = <0x01c28800 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 672 | interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 673 | reg-shift = <2>; |
| 674 | reg-io-width = <4>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 675 | clocks = <&ccu CLK_APB2_UART2>; |
| 676 | resets = <&ccu RST_APB2_UART2>; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 677 | dmas = <&dma 8>, <&dma 8>; |
| 678 | dma-names = "rx", "tx"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 679 | status = "disabled"; |
| 680 | }; |
| 681 | |
| 682 | uart3: serial@01c28c00 { |
| 683 | compatible = "snps,dw-apb-uart"; |
| 684 | reg = <0x01c28c00 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 685 | interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 686 | reg-shift = <2>; |
| 687 | reg-io-width = <4>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 688 | clocks = <&ccu CLK_APB2_UART3>; |
| 689 | resets = <&ccu RST_APB2_UART3>; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 690 | dmas = <&dma 9>, <&dma 9>; |
| 691 | dma-names = "rx", "tx"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 692 | status = "disabled"; |
| 693 | }; |
| 694 | |
| 695 | uart4: serial@01c29000 { |
| 696 | compatible = "snps,dw-apb-uart"; |
| 697 | reg = <0x01c29000 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 698 | interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 699 | reg-shift = <2>; |
| 700 | reg-io-width = <4>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 701 | clocks = <&ccu CLK_APB2_UART4>; |
| 702 | resets = <&ccu RST_APB2_UART4>; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 703 | dmas = <&dma 10>, <&dma 10>; |
| 704 | dma-names = "rx", "tx"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 705 | status = "disabled"; |
| 706 | }; |
| 707 | |
| 708 | uart5: serial@01c29400 { |
| 709 | compatible = "snps,dw-apb-uart"; |
| 710 | reg = <0x01c29400 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 711 | interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 712 | reg-shift = <2>; |
| 713 | reg-io-width = <4>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 714 | clocks = <&ccu CLK_APB2_UART5>; |
| 715 | resets = <&ccu RST_APB2_UART5>; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 716 | dmas = <&dma 22>, <&dma 22>; |
| 717 | dma-names = "rx", "tx"; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 718 | status = "disabled"; |
| 719 | }; |
| 720 | |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 721 | i2c0: i2c@01c2ac00 { |
| 722 | compatible = "allwinner,sun6i-a31-i2c"; |
| 723 | reg = <0x01c2ac00 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 724 | interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 725 | clocks = <&ccu CLK_APB2_I2C0>; |
| 726 | resets = <&ccu RST_APB2_I2C0>; |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 727 | status = "disabled"; |
Chen-Yu Tsai | 495bccf | 2014-07-21 22:54:27 +0800 | [diff] [blame] | 728 | #address-cells = <1>; |
| 729 | #size-cells = <0>; |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 730 | }; |
| 731 | |
| 732 | i2c1: i2c@01c2b000 { |
| 733 | compatible = "allwinner,sun6i-a31-i2c"; |
| 734 | reg = <0x01c2b000 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 735 | interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 736 | clocks = <&ccu CLK_APB2_I2C1>; |
| 737 | resets = <&ccu RST_APB2_I2C1>; |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 738 | status = "disabled"; |
Chen-Yu Tsai | 495bccf | 2014-07-21 22:54:27 +0800 | [diff] [blame] | 739 | #address-cells = <1>; |
| 740 | #size-cells = <0>; |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 741 | }; |
| 742 | |
| 743 | i2c2: i2c@01c2b400 { |
| 744 | compatible = "allwinner,sun6i-a31-i2c"; |
| 745 | reg = <0x01c2b400 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 746 | interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 747 | clocks = <&ccu CLK_APB2_I2C2>; |
| 748 | resets = <&ccu RST_APB2_I2C2>; |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 749 | status = "disabled"; |
Chen-Yu Tsai | 495bccf | 2014-07-21 22:54:27 +0800 | [diff] [blame] | 750 | #address-cells = <1>; |
| 751 | #size-cells = <0>; |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 752 | }; |
| 753 | |
| 754 | i2c3: i2c@01c2b800 { |
| 755 | compatible = "allwinner,sun6i-a31-i2c"; |
| 756 | reg = <0x01c2b800 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 757 | interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 758 | clocks = <&ccu CLK_APB2_I2C3>; |
| 759 | resets = <&ccu RST_APB2_I2C3>; |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 760 | status = "disabled"; |
Chen-Yu Tsai | 495bccf | 2014-07-21 22:54:27 +0800 | [diff] [blame] | 761 | #address-cells = <1>; |
| 762 | #size-cells = <0>; |
Maxime Ripard | 96c7cc9 | 2014-03-04 17:28:39 +0100 | [diff] [blame] | 763 | }; |
| 764 | |
Chen-Yu Tsai | 3dca65f | 2014-07-16 01:15:45 +0800 | [diff] [blame] | 765 | gmac: ethernet@01c30000 { |
| 766 | compatible = "allwinner,sun7i-a20-gmac"; |
| 767 | reg = <0x01c30000 0x1054>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 768 | interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 3dca65f | 2014-07-16 01:15:45 +0800 | [diff] [blame] | 769 | interrupt-names = "macirq"; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 770 | clocks = <&ccu CLK_AHB1_EMAC>, <&gmac_tx_clk>; |
Chen-Yu Tsai | 3dca65f | 2014-07-16 01:15:45 +0800 | [diff] [blame] | 771 | clock-names = "stmmaceth", "allwinner_gmac_tx"; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 772 | resets = <&ccu RST_AHB1_EMAC>; |
Chen-Yu Tsai | 3dca65f | 2014-07-16 01:15:45 +0800 | [diff] [blame] | 773 | reset-names = "stmmaceth"; |
| 774 | snps,pbl = <2>; |
| 775 | snps,fixed-burst; |
| 776 | snps,force_sf_dma_mode; |
| 777 | status = "disabled"; |
| 778 | #address-cells = <1>; |
| 779 | #size-cells = <0>; |
| 780 | }; |
| 781 | |
Chen-Yu Tsai | 14fee74 | 2015-08-11 13:32:57 +0800 | [diff] [blame] | 782 | crypto: crypto-engine@01c15000 { |
| 783 | compatible = "allwinner,sun4i-a10-crypto"; |
| 784 | reg = <0x01c15000 0x1000>; |
| 785 | interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 786 | clocks = <&ccu CLK_AHB1_SS>, <&ccu CLK_SS>; |
Chen-Yu Tsai | 14fee74 | 2015-08-11 13:32:57 +0800 | [diff] [blame] | 787 | clock-names = "ahb", "mod"; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 788 | resets = <&ccu RST_AHB1_SS>; |
Chen-Yu Tsai | 14fee74 | 2015-08-11 13:32:57 +0800 | [diff] [blame] | 789 | reset-names = "ahb"; |
| 790 | }; |
| 791 | |
Chen-Yu Tsai | 94a160c | 2016-11-07 18:07:01 +0800 | [diff] [blame] | 792 | codec: codec@01c22c00 { |
| 793 | #sound-dai-cells = <0>; |
| 794 | compatible = "allwinner,sun6i-a31-codec"; |
| 795 | reg = <0x01c22c00 0x400>; |
| 796 | interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; |
| 797 | clocks = <&ccu CLK_APB1_CODEC>, <&ccu CLK_CODEC>; |
| 798 | clock-names = "apb", "codec"; |
| 799 | resets = <&ccu RST_APB1_CODEC>; |
| 800 | dmas = <&dma 15>, <&dma 15>; |
| 801 | dma-names = "rx", "tx"; |
| 802 | status = "disabled"; |
| 803 | }; |
| 804 | |
Maxime Ripard | 8cffcb0 | 2014-04-17 11:06:46 +0200 | [diff] [blame] | 805 | timer@01c60000 { |
Maxime Ripard | d8cacaa | 2015-05-03 11:53:07 +0200 | [diff] [blame] | 806 | compatible = "allwinner,sun6i-a31-hstimer", |
| 807 | "allwinner,sun7i-a20-hstimer"; |
Maxime Ripard | 8cffcb0 | 2014-04-17 11:06:46 +0200 | [diff] [blame] | 808 | reg = <0x01c60000 0x1000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 809 | interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>, |
| 810 | <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>, |
| 811 | <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>, |
| 812 | <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 813 | clocks = <&ccu CLK_AHB1_HSTIMER>; |
| 814 | resets = <&ccu RST_AHB1_HSTIMER>; |
Maxime Ripard | 8cffcb0 | 2014-04-17 11:06:46 +0200 | [diff] [blame] | 815 | }; |
| 816 | |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 817 | spi0: spi@01c68000 { |
| 818 | compatible = "allwinner,sun6i-a31-spi"; |
| 819 | reg = <0x01c68000 0x1000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 820 | interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 821 | clocks = <&ccu CLK_AHB1_SPI0>, <&ccu CLK_SPI0>; |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 822 | clock-names = "ahb", "mod"; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 823 | dmas = <&dma 23>, <&dma 23>; |
| 824 | dma-names = "rx", "tx"; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 825 | resets = <&ccu RST_AHB1_SPI0>; |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 826 | status = "disabled"; |
| 827 | }; |
| 828 | |
| 829 | spi1: spi@01c69000 { |
| 830 | compatible = "allwinner,sun6i-a31-spi"; |
| 831 | reg = <0x01c69000 0x1000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 832 | interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 833 | clocks = <&ccu CLK_AHB1_SPI1>, <&ccu CLK_SPI1>; |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 834 | clock-names = "ahb", "mod"; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 835 | dmas = <&dma 24>, <&dma 24>; |
| 836 | dma-names = "rx", "tx"; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 837 | resets = <&ccu RST_AHB1_SPI1>; |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 838 | status = "disabled"; |
| 839 | }; |
| 840 | |
| 841 | spi2: spi@01c6a000 { |
| 842 | compatible = "allwinner,sun6i-a31-spi"; |
| 843 | reg = <0x01c6a000 0x1000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 844 | interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 845 | clocks = <&ccu CLK_AHB1_SPI2>, <&ccu CLK_SPI2>; |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 846 | clock-names = "ahb", "mod"; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 847 | dmas = <&dma 25>, <&dma 25>; |
| 848 | dma-names = "rx", "tx"; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 849 | resets = <&ccu RST_AHB1_SPI2>; |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 850 | status = "disabled"; |
| 851 | }; |
| 852 | |
| 853 | spi3: spi@01c6b000 { |
| 854 | compatible = "allwinner,sun6i-a31-spi"; |
| 855 | reg = <0x01c6b000 0x1000>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 856 | interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 857 | clocks = <&ccu CLK_AHB1_SPI3>, <&ccu CLK_SPI3>; |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 858 | clock-names = "ahb", "mod"; |
Maxime Ripard | d2d878c | 2014-01-30 15:41:23 +0100 | [diff] [blame] | 859 | dmas = <&dma 26>, <&dma 26>; |
| 860 | dma-names = "rx", "tx"; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 861 | resets = <&ccu RST_AHB1_SPI3>; |
Maxime Ripard | 0d6efe3 | 2014-02-05 14:05:06 +0100 | [diff] [blame] | 862 | status = "disabled"; |
| 863 | }; |
| 864 | |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 865 | gic: interrupt-controller@01c81000 { |
| 866 | compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic"; |
| 867 | reg = <0x01c81000 0x1000>, |
Marc Zyngier | 387720c | 2017-01-18 09:27:28 +0000 | [diff] [blame] | 868 | <0x01c82000 0x2000>, |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 869 | <0x01c84000 0x2000>, |
| 870 | <0x01c86000 0x2000>; |
| 871 | interrupt-controller; |
| 872 | #interrupt-cells = <3>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 873 | interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 874 | }; |
Maxime Ripard | 81ee429 | 2013-11-03 10:30:12 +0100 | [diff] [blame] | 875 | |
Chen-Yu Tsai | 6d0e5b7 | 2016-10-20 11:43:42 +0800 | [diff] [blame] | 876 | fe0: display-frontend@01e00000 { |
| 877 | compatible = "allwinner,sun6i-a31-display-frontend"; |
| 878 | reg = <0x01e00000 0x20000>; |
| 879 | interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>; |
| 880 | clocks = <&ccu CLK_AHB1_FE0>, <&ccu CLK_FE0>, |
| 881 | <&ccu CLK_DRAM_FE0>; |
| 882 | clock-names = "ahb", "mod", |
| 883 | "ram"; |
| 884 | resets = <&ccu RST_AHB1_FE0>; |
| 885 | |
| 886 | ports { |
| 887 | #address-cells = <1>; |
| 888 | #size-cells = <0>; |
| 889 | |
| 890 | fe0_out: port@1 { |
| 891 | #address-cells = <1>; |
| 892 | #size-cells = <0>; |
| 893 | reg = <1>; |
| 894 | |
| 895 | fe0_out_be0: endpoint@0 { |
| 896 | reg = <0>; |
| 897 | remote-endpoint = <&be0_in_fe0>; |
| 898 | }; |
| 899 | }; |
| 900 | }; |
| 901 | }; |
| 902 | |
| 903 | be0: display-backend@01e60000 { |
| 904 | compatible = "allwinner,sun6i-a31-display-backend"; |
| 905 | reg = <0x01e60000 0x10000>; |
| 906 | interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>; |
| 907 | clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_BE0>, |
| 908 | <&ccu CLK_DRAM_BE0>; |
| 909 | clock-names = "ahb", "mod", |
| 910 | "ram"; |
| 911 | resets = <&ccu RST_AHB1_BE0>; |
| 912 | |
| 913 | assigned-clocks = <&ccu CLK_BE0>; |
| 914 | assigned-clock-rates = <300000000>; |
| 915 | |
| 916 | ports { |
| 917 | #address-cells = <1>; |
| 918 | #size-cells = <0>; |
| 919 | |
| 920 | be0_in: port@0 { |
| 921 | #address-cells = <1>; |
| 922 | #size-cells = <0>; |
| 923 | reg = <0>; |
| 924 | |
| 925 | be0_in_fe0: endpoint@0 { |
| 926 | reg = <0>; |
| 927 | remote-endpoint = <&fe0_out_be0>; |
| 928 | }; |
| 929 | }; |
| 930 | |
| 931 | be0_out: port@1 { |
| 932 | #address-cells = <1>; |
| 933 | #size-cells = <0>; |
| 934 | reg = <1>; |
| 935 | |
| 936 | be0_out_drc0: endpoint@0 { |
| 937 | reg = <0>; |
| 938 | remote-endpoint = <&drc0_in_be0>; |
| 939 | }; |
| 940 | }; |
| 941 | }; |
| 942 | }; |
| 943 | |
| 944 | drc0: drc@01e70000 { |
| 945 | compatible = "allwinner,sun6i-a31-drc"; |
| 946 | reg = <0x01e70000 0x10000>; |
| 947 | interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>; |
| 948 | clocks = <&ccu CLK_AHB1_DRC0>, <&ccu CLK_IEP_DRC0>, |
| 949 | <&ccu CLK_DRAM_DRC0>; |
| 950 | clock-names = "ahb", "mod", |
| 951 | "ram"; |
| 952 | resets = <&ccu RST_AHB1_DRC0>; |
| 953 | |
| 954 | assigned-clocks = <&ccu CLK_IEP_DRC0>; |
| 955 | assigned-clock-rates = <300000000>; |
| 956 | |
| 957 | ports { |
| 958 | #address-cells = <1>; |
| 959 | #size-cells = <0>; |
| 960 | |
| 961 | drc0_in: port@0 { |
| 962 | #address-cells = <1>; |
| 963 | #size-cells = <0>; |
| 964 | reg = <0>; |
| 965 | |
| 966 | drc0_in_be0: endpoint@0 { |
| 967 | reg = <0>; |
| 968 | remote-endpoint = <&be0_out_drc0>; |
| 969 | }; |
| 970 | }; |
| 971 | |
| 972 | drc0_out: port@1 { |
| 973 | #address-cells = <1>; |
| 974 | #size-cells = <0>; |
| 975 | reg = <1>; |
| 976 | |
| 977 | drc0_out_tcon0: endpoint@0 { |
| 978 | reg = <0>; |
| 979 | remote-endpoint = <&tcon0_in_drc0>; |
| 980 | }; |
| 981 | }; |
| 982 | }; |
| 983 | }; |
| 984 | |
Chen-Yu Tsai | 5e70043 | 2014-07-30 20:56:06 +0800 | [diff] [blame] | 985 | rtc: rtc@01f00000 { |
| 986 | compatible = "allwinner,sun6i-a31-rtc"; |
| 987 | reg = <0x01f00000 0x54>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 988 | interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>, |
| 989 | <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 5e70043 | 2014-07-30 20:56:06 +0800 | [diff] [blame] | 990 | }; |
| 991 | |
Maxime Ripard | 28240d2 | 2014-04-17 10:29:35 +0200 | [diff] [blame] | 992 | nmi_intc: interrupt-controller@01f00c0c { |
| 993 | compatible = "allwinner,sun6i-a31-sc-nmi"; |
| 994 | interrupt-controller; |
| 995 | #interrupt-cells = <2>; |
| 996 | reg = <0x01f00c0c 0x38>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 997 | interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 28240d2 | 2014-04-17 10:29:35 +0200 | [diff] [blame] | 998 | }; |
| 999 | |
Hans de Goede | a42ea60 | 2014-04-13 13:41:02 +0200 | [diff] [blame] | 1000 | prcm@01f01400 { |
| 1001 | compatible = "allwinner,sun6i-a31-prcm"; |
| 1002 | reg = <0x01f01400 0x200>; |
Boris BREZILLON | cc08f5e | 2014-05-14 14:38:21 +0200 | [diff] [blame] | 1003 | |
| 1004 | ar100: ar100_clk { |
| 1005 | compatible = "allwinner,sun6i-a31-ar100-clk"; |
| 1006 | #clock-cells = <0>; |
Chen-Yu Tsai | 78a9f0d | 2016-08-25 14:22:00 +0800 | [diff] [blame] | 1007 | clocks = <&osc32k>, <&osc24M>, |
| 1008 | <&ccu CLK_PLL_PERIPH>, |
| 1009 | <&ccu CLK_PLL_PERIPH>; |
Boris BREZILLON | cc08f5e | 2014-05-14 14:38:21 +0200 | [diff] [blame] | 1010 | clock-output-names = "ar100"; |
| 1011 | }; |
| 1012 | |
| 1013 | ahb0: ahb0_clk { |
| 1014 | compatible = "fixed-factor-clock"; |
| 1015 | #clock-cells = <0>; |
| 1016 | clock-div = <1>; |
| 1017 | clock-mult = <1>; |
| 1018 | clocks = <&ar100>; |
| 1019 | clock-output-names = "ahb0"; |
| 1020 | }; |
| 1021 | |
| 1022 | apb0: apb0_clk { |
| 1023 | compatible = "allwinner,sun6i-a31-apb0-clk"; |
| 1024 | #clock-cells = <0>; |
| 1025 | clocks = <&ahb0>; |
| 1026 | clock-output-names = "apb0"; |
| 1027 | }; |
| 1028 | |
| 1029 | apb0_gates: apb0_gates_clk { |
| 1030 | compatible = "allwinner,sun6i-a31-apb0-gates-clk"; |
| 1031 | #clock-cells = <1>; |
| 1032 | clocks = <&apb0>; |
| 1033 | clock-output-names = "apb0_pio", "apb0_ir", |
| 1034 | "apb0_timer", "apb0_p2wi", |
| 1035 | "apb0_uart", "apb0_1wire", |
| 1036 | "apb0_i2c"; |
| 1037 | }; |
| 1038 | |
Hans de Goede | 9b5c6e0 | 2014-12-17 18:18:19 +0100 | [diff] [blame] | 1039 | ir_clk: ir_clk { |
| 1040 | #clock-cells = <0>; |
| 1041 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
| 1042 | clocks = <&osc32k>, <&osc24M>; |
| 1043 | clock-output-names = "ir"; |
| 1044 | }; |
| 1045 | |
Boris BREZILLON | cc08f5e | 2014-05-14 14:38:21 +0200 | [diff] [blame] | 1046 | apb0_rst: apb0_rst { |
| 1047 | compatible = "allwinner,sun6i-a31-clock-reset"; |
| 1048 | #reset-cells = <1>; |
| 1049 | }; |
Hans de Goede | a42ea60 | 2014-04-13 13:41:02 +0200 | [diff] [blame] | 1050 | }; |
| 1051 | |
Maxime Ripard | 81ee429 | 2013-11-03 10:30:12 +0100 | [diff] [blame] | 1052 | cpucfg@01f01c00 { |
| 1053 | compatible = "allwinner,sun6i-a31-cpuconfig"; |
| 1054 | reg = <0x01f01c00 0x300>; |
| 1055 | }; |
Boris BREZILLON | 209394a | 2014-05-13 16:03:03 +0200 | [diff] [blame] | 1056 | |
Hans de Goede | 4ac367b | 2014-12-29 12:09:24 +0100 | [diff] [blame] | 1057 | ir: ir@01f02000 { |
| 1058 | compatible = "allwinner,sun5i-a13-ir"; |
| 1059 | clocks = <&apb0_gates 1>, <&ir_clk>; |
| 1060 | clock-names = "apb", "ir"; |
| 1061 | resets = <&apb0_rst 1>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 1062 | interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; |
Hans de Goede | 4ac367b | 2014-12-29 12:09:24 +0100 | [diff] [blame] | 1063 | reg = <0x01f02000 0x40>; |
| 1064 | status = "disabled"; |
| 1065 | }; |
| 1066 | |
Boris BREZILLON | 209394a | 2014-05-13 16:03:03 +0200 | [diff] [blame] | 1067 | r_pio: pinctrl@01f02c00 { |
| 1068 | compatible = "allwinner,sun6i-a31-r-pinctrl"; |
| 1069 | reg = <0x01f02c00 0x400>; |
Maxime Ripard | 19882b8 | 2014-12-16 22:59:58 +0100 | [diff] [blame] | 1070 | interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>, |
| 1071 | <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | be7bc6b | 2016-10-19 11:15:27 +0200 | [diff] [blame] | 1072 | clocks = <&apb0_gates 0>, <&osc24M>, <&osc32k>; |
| 1073 | clock-names = "apb", "hosc", "losc"; |
Boris BREZILLON | 209394a | 2014-05-13 16:03:03 +0200 | [diff] [blame] | 1074 | resets = <&apb0_rst 0>; |
| 1075 | gpio-controller; |
| 1076 | interrupt-controller; |
Hans de Goede | 6d55d33 | 2015-10-15 16:28:45 +0200 | [diff] [blame] | 1077 | #interrupt-cells = <3>; |
Boris BREZILLON | 209394a | 2014-05-13 16:03:03 +0200 | [diff] [blame] | 1078 | #size-cells = <0>; |
| 1079 | #gpio-cells = <3>; |
Hans de Goede | dbbcd88 | 2014-11-23 14:38:14 +0100 | [diff] [blame] | 1080 | |
| 1081 | ir_pins_a: ir@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 1082 | pins = "PL4"; |
| 1083 | function = "s_ir"; |
Hans de Goede | dbbcd88 | 2014-11-23 14:38:14 +0100 | [diff] [blame] | 1084 | }; |
Boris BREZILLON | fcd6013 | 2015-03-10 19:59:12 +0800 | [diff] [blame] | 1085 | |
| 1086 | p2wi_pins: p2wi { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 1087 | pins = "PL0", "PL1"; |
| 1088 | function = "s_p2wi"; |
Boris BREZILLON | fcd6013 | 2015-03-10 19:59:12 +0800 | [diff] [blame] | 1089 | }; |
| 1090 | }; |
| 1091 | |
| 1092 | p2wi: i2c@01f03400 { |
| 1093 | compatible = "allwinner,sun6i-a31-p2wi"; |
| 1094 | reg = <0x01f03400 0x400>; |
| 1095 | interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; |
| 1096 | clocks = <&apb0_gates 3>; |
| 1097 | clock-frequency = <100000>; |
| 1098 | resets = <&apb0_rst 3>; |
| 1099 | pinctrl-names = "default"; |
| 1100 | pinctrl-0 = <&p2wi_pins>; |
| 1101 | status = "disabled"; |
| 1102 | #address-cells = <1>; |
| 1103 | #size-cells = <0>; |
Boris BREZILLON | 209394a | 2014-05-13 16:03:03 +0200 | [diff] [blame] | 1104 | }; |
Maxime Ripard | 8aed3b3 | 2013-03-10 16:09:06 +0100 | [diff] [blame] | 1105 | }; |
| 1106 | }; |