Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 Maxime Ripard |
| 3 | * |
| 4 | * Maxime Ripard <maxime.ripard@free-electrons.com> |
| 5 | * |
| 6 | * This file is dual-licensed: you can use it either under the terms |
| 7 | * of the GPL or the X11 license, at your option. Note that this dual |
| 8 | * licensing only applies to this file, and not this project as a |
| 9 | * whole. |
| 10 | * |
| 11 | * a) This file is free software; you can redistribute it and/or |
| 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 | * |
| 16 | * This file is distributed in the hope that it will be useful, |
| 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 | * |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +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. |
| 43 | */ |
| 44 | |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 45 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 46 | #include <dt-bindings/thermal/thermal.h> |
| 47 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 48 | #include <dt-bindings/clock/sun6i-a31-ccu.h> |
Andre Przywara | fa15e50 | 2022-09-13 00:52:52 +0100 | [diff] [blame] | 49 | #include <dt-bindings/clock/sun6i-rtc.h> |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 50 | #include <dt-bindings/reset/sun6i-a31-ccu.h> |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 51 | |
| 52 | / { |
| 53 | interrupt-parent = <&gic>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 54 | #address-cells = <1>; |
| 55 | #size-cells = <1>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 56 | |
| 57 | aliases { |
| 58 | ethernet0 = &gmac; |
| 59 | }; |
| 60 | |
| 61 | chosen { |
| 62 | #address-cells = <1>; |
| 63 | #size-cells = <1>; |
| 64 | ranges; |
| 65 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 66 | simplefb_hdmi: framebuffer-lcd0-hdmi { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 67 | compatible = "allwinner,simple-framebuffer", |
| 68 | "simple-framebuffer"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 69 | allwinner,pipeline = "de_be0-lcd0-hdmi"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 70 | clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_AHB1_LCD0>, |
| 71 | <&ccu CLK_AHB1_HDMI>, <&ccu CLK_DRAM_BE0>, |
| 72 | <&ccu CLK_IEP_DRC0>, <&ccu CLK_BE0>, |
| 73 | <&ccu CLK_LCD0_CH1>, <&ccu CLK_HDMI>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 74 | status = "disabled"; |
| 75 | }; |
| 76 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 77 | simplefb_lcd: framebuffer-lcd0 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 78 | compatible = "allwinner,simple-framebuffer", |
| 79 | "simple-framebuffer"; |
| 80 | allwinner,pipeline = "de_be0-lcd0"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 81 | clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_AHB1_LCD0>, |
| 82 | <&ccu CLK_DRAM_BE0>, <&ccu CLK_IEP_DRC0>, |
| 83 | <&ccu CLK_BE0>, <&ccu CLK_LCD0_CH0>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 84 | status = "disabled"; |
| 85 | }; |
| 86 | }; |
| 87 | |
| 88 | timer { |
| 89 | compatible = "arm,armv7-timer"; |
| 90 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 91 | <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 92 | <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 93 | <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; |
| 94 | clock-frequency = <24000000>; |
| 95 | arm,cpu-registers-not-fw-configured; |
| 96 | }; |
| 97 | |
| 98 | cpus { |
| 99 | enable-method = "allwinner,sun6i-a31"; |
| 100 | #address-cells = <1>; |
| 101 | #size-cells = <0>; |
| 102 | |
| 103 | cpu0: cpu@0 { |
| 104 | compatible = "arm,cortex-a7"; |
| 105 | device_type = "cpu"; |
| 106 | reg = <0>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 107 | clocks = <&ccu CLK_CPU>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 108 | clock-latency = <244144>; /* 8 32k periods */ |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 109 | operating-points = |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 110 | /* kHz uV */ |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 111 | <1008000 1200000>, |
| 112 | <864000 1200000>, |
| 113 | <720000 1100000>, |
| 114 | <480000 1000000>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 115 | #cooling-cells = <2>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 116 | }; |
| 117 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 118 | cpu1: cpu@1 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 119 | compatible = "arm,cortex-a7"; |
| 120 | device_type = "cpu"; |
| 121 | reg = <1>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 122 | clocks = <&ccu CLK_CPU>; |
| 123 | clock-latency = <244144>; /* 8 32k periods */ |
| 124 | operating-points = |
| 125 | /* kHz uV */ |
| 126 | <1008000 1200000>, |
| 127 | <864000 1200000>, |
| 128 | <720000 1100000>, |
| 129 | <480000 1000000>; |
| 130 | #cooling-cells = <2>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 131 | }; |
| 132 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 133 | cpu2: cpu@2 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 134 | compatible = "arm,cortex-a7"; |
| 135 | device_type = "cpu"; |
| 136 | reg = <2>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 137 | clocks = <&ccu CLK_CPU>; |
| 138 | clock-latency = <244144>; /* 8 32k periods */ |
| 139 | operating-points = |
| 140 | /* kHz uV */ |
| 141 | <1008000 1200000>, |
| 142 | <864000 1200000>, |
| 143 | <720000 1100000>, |
| 144 | <480000 1000000>; |
| 145 | #cooling-cells = <2>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 146 | }; |
| 147 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 148 | cpu3: cpu@3 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 149 | compatible = "arm,cortex-a7"; |
| 150 | device_type = "cpu"; |
| 151 | reg = <3>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 152 | clocks = <&ccu CLK_CPU>; |
| 153 | clock-latency = <244144>; /* 8 32k periods */ |
| 154 | operating-points = |
| 155 | /* kHz uV */ |
| 156 | <1008000 1200000>, |
| 157 | <864000 1200000>, |
| 158 | <720000 1100000>, |
| 159 | <480000 1000000>; |
| 160 | #cooling-cells = <2>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 161 | }; |
| 162 | }; |
| 163 | |
| 164 | thermal-zones { |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 165 | cpu-thermal { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 166 | /* milliseconds */ |
| 167 | polling-delay-passive = <250>; |
| 168 | polling-delay = <1000>; |
| 169 | thermal-sensors = <&rtp>; |
| 170 | |
| 171 | cooling-maps { |
| 172 | map0 { |
| 173 | trip = <&cpu_alert0>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 174 | cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 175 | <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 176 | <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 177 | <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 178 | }; |
| 179 | }; |
| 180 | |
| 181 | trips { |
| 182 | cpu_alert0: cpu_alert0 { |
| 183 | /* milliCelsius */ |
| 184 | temperature = <70000>; |
| 185 | hysteresis = <2000>; |
| 186 | type = "passive"; |
| 187 | }; |
| 188 | |
| 189 | cpu_crit: cpu_crit { |
| 190 | /* milliCelsius */ |
| 191 | temperature = <100000>; |
| 192 | hysteresis = <2000>; |
| 193 | type = "critical"; |
| 194 | }; |
| 195 | }; |
| 196 | }; |
| 197 | }; |
| 198 | |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 199 | pmu { |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 200 | compatible = "arm,cortex-a7-pmu"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 201 | interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>, |
| 202 | <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>, |
| 203 | <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>, |
| 204 | <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>; |
| 205 | }; |
| 206 | |
| 207 | clocks { |
| 208 | #address-cells = <1>; |
| 209 | #size-cells = <1>; |
| 210 | ranges; |
| 211 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 212 | osc24M: clk-24M { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 213 | #clock-cells = <0>; |
| 214 | compatible = "fixed-clock"; |
| 215 | clock-frequency = <24000000>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 216 | clock-accuracy = <50000>; |
| 217 | clock-output-names = "osc24M"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 218 | }; |
| 219 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 220 | osc32k: clk-32k { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 221 | #clock-cells = <0>; |
| 222 | compatible = "fixed-clock"; |
| 223 | clock-frequency = <32768>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 224 | clock-accuracy = <50000>; |
| 225 | clock-output-names = "ext_osc32k"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 226 | }; |
| 227 | |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 228 | /* |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 229 | * The following two are dummy clocks, placeholders |
| 230 | * used in the gmac_tx clock. The gmac driver will |
| 231 | * choose one parent depending on the PHY interface |
| 232 | * mode, using clk_set_rate auto-reparenting. |
| 233 | * |
| 234 | * The actual TX clock rate is not controlled by the |
| 235 | * gmac_tx clock. |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 236 | */ |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 237 | mii_phy_tx_clk: clk-mii-phy-tx { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 238 | #clock-cells = <0>; |
| 239 | compatible = "fixed-clock"; |
| 240 | clock-frequency = <25000000>; |
| 241 | clock-output-names = "mii_phy_tx"; |
| 242 | }; |
| 243 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 244 | gmac_int_tx_clk: clk-gmac-int-tx { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 245 | #clock-cells = <0>; |
| 246 | compatible = "fixed-clock"; |
| 247 | clock-frequency = <125000000>; |
| 248 | clock-output-names = "gmac_int_tx"; |
| 249 | }; |
| 250 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 251 | gmac_tx_clk: clk@1c200d0 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 252 | #clock-cells = <0>; |
| 253 | compatible = "allwinner,sun7i-a20-gmac-clk"; |
| 254 | reg = <0x01c200d0 0x4>; |
| 255 | clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>; |
| 256 | clock-output-names = "gmac_tx"; |
| 257 | }; |
| 258 | }; |
| 259 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 260 | de: display-engine { |
| 261 | compatible = "allwinner,sun6i-a31-display-engine"; |
| 262 | allwinner,pipelines = <&fe0>, <&fe1>; |
| 263 | status = "disabled"; |
| 264 | }; |
| 265 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 266 | soc { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 267 | compatible = "simple-bus"; |
| 268 | #address-cells = <1>; |
| 269 | #size-cells = <1>; |
| 270 | ranges; |
| 271 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 272 | dma: dma-controller@1c02000 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 273 | compatible = "allwinner,sun6i-a31-dma"; |
| 274 | reg = <0x01c02000 0x1000>; |
| 275 | interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 276 | clocks = <&ccu CLK_AHB1_DMA>; |
| 277 | resets = <&ccu RST_AHB1_DMA>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 278 | #dma-cells = <1>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 279 | }; |
| 280 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 281 | tcon0: lcd-controller@1c0c000 { |
| 282 | compatible = "allwinner,sun6i-a31-tcon"; |
| 283 | reg = <0x01c0c000 0x1000>; |
| 284 | interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 285 | dmas = <&dma 11>; |
| 286 | resets = <&ccu RST_AHB1_LCD0>, |
| 287 | <&ccu RST_AHB1_LVDS>; |
| 288 | reset-names = "lcd", |
| 289 | "lvds"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 290 | clocks = <&ccu CLK_AHB1_LCD0>, |
| 291 | <&ccu CLK_LCD0_CH0>, |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 292 | <&ccu CLK_LCD0_CH1>, |
| 293 | <&ccu 15>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 294 | clock-names = "ahb", |
| 295 | "tcon-ch0", |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 296 | "tcon-ch1", |
| 297 | "lvds-alt"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 298 | clock-output-names = "tcon0-pixel-clock"; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 299 | #clock-cells = <0>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 300 | |
| 301 | ports { |
| 302 | #address-cells = <1>; |
| 303 | #size-cells = <0>; |
| 304 | |
| 305 | tcon0_in: port@0 { |
| 306 | #address-cells = <1>; |
| 307 | #size-cells = <0>; |
| 308 | reg = <0>; |
| 309 | |
| 310 | tcon0_in_drc0: endpoint@0 { |
| 311 | reg = <0>; |
| 312 | remote-endpoint = <&drc0_out_tcon0>; |
| 313 | }; |
| 314 | |
| 315 | tcon0_in_drc1: endpoint@1 { |
| 316 | reg = <1>; |
| 317 | remote-endpoint = <&drc1_out_tcon0>; |
| 318 | }; |
| 319 | }; |
| 320 | |
| 321 | tcon0_out: port@1 { |
| 322 | #address-cells = <1>; |
| 323 | #size-cells = <0>; |
| 324 | reg = <1>; |
| 325 | |
| 326 | tcon0_out_hdmi: endpoint@1 { |
| 327 | reg = <1>; |
| 328 | remote-endpoint = <&hdmi_in_tcon0>; |
| 329 | allwinner,tcon-channel = <1>; |
| 330 | }; |
| 331 | }; |
| 332 | }; |
| 333 | }; |
| 334 | |
| 335 | tcon1: lcd-controller@1c0d000 { |
| 336 | compatible = "allwinner,sun6i-a31-tcon"; |
| 337 | reg = <0x01c0d000 0x1000>; |
| 338 | interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 339 | dmas = <&dma 12>; |
| 340 | resets = <&ccu RST_AHB1_LCD1>, |
| 341 | <&ccu RST_AHB1_LVDS>; |
| 342 | reset-names = "lcd", "lvds"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 343 | clocks = <&ccu CLK_AHB1_LCD1>, |
| 344 | <&ccu CLK_LCD1_CH0>, |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 345 | <&ccu CLK_LCD1_CH1>, |
| 346 | <&ccu 15>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 347 | clock-names = "ahb", |
| 348 | "tcon-ch0", |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 349 | "tcon-ch1", |
| 350 | "lvds-alt"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 351 | clock-output-names = "tcon1-pixel-clock"; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 352 | #clock-cells = <0>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 353 | |
| 354 | ports { |
| 355 | #address-cells = <1>; |
| 356 | #size-cells = <0>; |
| 357 | |
| 358 | tcon1_in: port@0 { |
| 359 | #address-cells = <1>; |
| 360 | #size-cells = <0>; |
| 361 | reg = <0>; |
| 362 | |
| 363 | tcon1_in_drc0: endpoint@0 { |
| 364 | reg = <0>; |
| 365 | remote-endpoint = <&drc0_out_tcon1>; |
| 366 | }; |
| 367 | |
| 368 | tcon1_in_drc1: endpoint@1 { |
| 369 | reg = <1>; |
| 370 | remote-endpoint = <&drc1_out_tcon1>; |
| 371 | }; |
| 372 | }; |
| 373 | |
| 374 | tcon1_out: port@1 { |
| 375 | #address-cells = <1>; |
| 376 | #size-cells = <0>; |
| 377 | reg = <1>; |
| 378 | |
| 379 | tcon1_out_hdmi: endpoint@1 { |
| 380 | reg = <1>; |
| 381 | remote-endpoint = <&hdmi_in_tcon1>; |
| 382 | allwinner,tcon-channel = <1>; |
| 383 | }; |
| 384 | }; |
| 385 | }; |
| 386 | }; |
| 387 | |
| 388 | mmc0: mmc@1c0f000 { |
| 389 | compatible = "allwinner,sun7i-a20-mmc"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 390 | reg = <0x01c0f000 0x1000>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 391 | clocks = <&ccu CLK_AHB1_MMC0>, |
| 392 | <&ccu CLK_MMC0>, |
| 393 | <&ccu CLK_MMC0_OUTPUT>, |
| 394 | <&ccu CLK_MMC0_SAMPLE>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 395 | clock-names = "ahb", |
| 396 | "mmc", |
| 397 | "output", |
| 398 | "sample"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 399 | resets = <&ccu RST_AHB1_MMC0>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 400 | reset-names = "ahb"; |
| 401 | interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 402 | pinctrl-names = "default"; |
| 403 | pinctrl-0 = <&mmc0_pins>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 404 | status = "disabled"; |
| 405 | #address-cells = <1>; |
| 406 | #size-cells = <0>; |
| 407 | }; |
| 408 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 409 | mmc1: mmc@1c10000 { |
| 410 | compatible = "allwinner,sun7i-a20-mmc"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 411 | reg = <0x01c10000 0x1000>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 412 | clocks = <&ccu CLK_AHB1_MMC1>, |
| 413 | <&ccu CLK_MMC1>, |
| 414 | <&ccu CLK_MMC1_OUTPUT>, |
| 415 | <&ccu CLK_MMC1_SAMPLE>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 416 | clock-names = "ahb", |
| 417 | "mmc", |
| 418 | "output", |
| 419 | "sample"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 420 | resets = <&ccu RST_AHB1_MMC1>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 421 | reset-names = "ahb"; |
| 422 | interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 423 | pinctrl-names = "default"; |
| 424 | pinctrl-0 = <&mmc1_pins>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 425 | status = "disabled"; |
| 426 | #address-cells = <1>; |
| 427 | #size-cells = <0>; |
| 428 | }; |
| 429 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 430 | mmc2: mmc@1c11000 { |
| 431 | compatible = "allwinner,sun7i-a20-mmc"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 432 | reg = <0x01c11000 0x1000>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 433 | clocks = <&ccu CLK_AHB1_MMC2>, |
| 434 | <&ccu CLK_MMC2>, |
| 435 | <&ccu CLK_MMC2_OUTPUT>, |
| 436 | <&ccu CLK_MMC2_SAMPLE>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 437 | clock-names = "ahb", |
| 438 | "mmc", |
| 439 | "output", |
| 440 | "sample"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 441 | resets = <&ccu RST_AHB1_MMC2>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 442 | reset-names = "ahb"; |
| 443 | interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; |
| 444 | status = "disabled"; |
| 445 | #address-cells = <1>; |
| 446 | #size-cells = <0>; |
| 447 | }; |
| 448 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 449 | mmc3: mmc@1c12000 { |
| 450 | compatible = "allwinner,sun7i-a20-mmc"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 451 | reg = <0x01c12000 0x1000>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 452 | clocks = <&ccu CLK_AHB1_MMC3>, |
| 453 | <&ccu CLK_MMC3>, |
| 454 | <&ccu CLK_MMC3_OUTPUT>, |
| 455 | <&ccu CLK_MMC3_SAMPLE>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 456 | clock-names = "ahb", |
| 457 | "mmc", |
| 458 | "output", |
| 459 | "sample"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 460 | resets = <&ccu RST_AHB1_MMC3>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 461 | reset-names = "ahb"; |
| 462 | interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>; |
| 463 | status = "disabled"; |
| 464 | #address-cells = <1>; |
| 465 | #size-cells = <0>; |
| 466 | }; |
| 467 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 468 | hdmi: hdmi@1c16000 { |
| 469 | compatible = "allwinner,sun6i-a31-hdmi"; |
| 470 | reg = <0x01c16000 0x1000>; |
| 471 | interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>; |
| 472 | clocks = <&ccu CLK_AHB1_HDMI>, <&ccu CLK_HDMI>, |
| 473 | <&ccu CLK_HDMI_DDC>, |
| 474 | <&ccu CLK_PLL_VIDEO0_2X>, |
| 475 | <&ccu CLK_PLL_VIDEO1_2X>; |
| 476 | clock-names = "ahb", "mod", "ddc", "pll-0", "pll-1"; |
| 477 | resets = <&ccu RST_AHB1_HDMI>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 478 | dma-names = "ddc-tx", "ddc-rx", "audio-tx"; |
| 479 | dmas = <&dma 13>, <&dma 13>, <&dma 14>; |
| 480 | status = "disabled"; |
| 481 | |
| 482 | ports { |
| 483 | #address-cells = <1>; |
| 484 | #size-cells = <0>; |
| 485 | |
| 486 | hdmi_in: port@0 { |
| 487 | #address-cells = <1>; |
| 488 | #size-cells = <0>; |
| 489 | reg = <0>; |
| 490 | |
| 491 | hdmi_in_tcon0: endpoint@0 { |
| 492 | reg = <0>; |
| 493 | remote-endpoint = <&tcon0_out_hdmi>; |
| 494 | }; |
| 495 | |
| 496 | hdmi_in_tcon1: endpoint@1 { |
| 497 | reg = <1>; |
| 498 | remote-endpoint = <&tcon1_out_hdmi>; |
| 499 | }; |
| 500 | }; |
| 501 | |
| 502 | hdmi_out: port@1 { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 503 | reg = <1>; |
| 504 | }; |
| 505 | }; |
| 506 | }; |
| 507 | |
| 508 | usb_otg: usb@1c19000 { |
Hans de Goede | 7d83182 | 2015-08-05 17:39:14 +0200 | [diff] [blame] | 509 | compatible = "allwinner,sun6i-a31-musb"; |
| 510 | reg = <0x01c19000 0x0400>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 511 | clocks = <&ccu CLK_AHB1_OTG>; |
| 512 | resets = <&ccu RST_AHB1_OTG>; |
Hans de Goede | 7d83182 | 2015-08-05 17:39:14 +0200 | [diff] [blame] | 513 | interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; |
| 514 | interrupt-names = "mc"; |
| 515 | phys = <&usbphy 0>; |
| 516 | phy-names = "usb"; |
| 517 | extcon = <&usbphy 0>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 518 | dr_mode = "otg"; |
Hans de Goede | 7d83182 | 2015-08-05 17:39:14 +0200 | [diff] [blame] | 519 | status = "disabled"; |
| 520 | }; |
| 521 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 522 | usbphy: phy@1c19400 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 523 | compatible = "allwinner,sun6i-a31-usb-phy"; |
| 524 | reg = <0x01c19400 0x10>, |
| 525 | <0x01c1a800 0x4>, |
| 526 | <0x01c1b800 0x4>; |
| 527 | reg-names = "phy_ctrl", |
| 528 | "pmu1", |
| 529 | "pmu2"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 530 | clocks = <&ccu CLK_USB_PHY0>, |
| 531 | <&ccu CLK_USB_PHY1>, |
| 532 | <&ccu CLK_USB_PHY2>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 533 | clock-names = "usb0_phy", |
| 534 | "usb1_phy", |
| 535 | "usb2_phy"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 536 | resets = <&ccu RST_USB_PHY0>, |
| 537 | <&ccu RST_USB_PHY1>, |
| 538 | <&ccu RST_USB_PHY2>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 539 | reset-names = "usb0_reset", |
| 540 | "usb1_reset", |
| 541 | "usb2_reset"; |
| 542 | status = "disabled"; |
| 543 | #phy-cells = <1>; |
| 544 | }; |
| 545 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 546 | ehci0: usb@1c1a000 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 547 | compatible = "allwinner,sun6i-a31-ehci", "generic-ehci"; |
| 548 | reg = <0x01c1a000 0x100>; |
| 549 | interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 550 | clocks = <&ccu CLK_AHB1_EHCI0>; |
| 551 | resets = <&ccu RST_AHB1_EHCI0>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 552 | phys = <&usbphy 1>; |
| 553 | phy-names = "usb"; |
| 554 | status = "disabled"; |
| 555 | }; |
| 556 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 557 | ohci0: usb@1c1a400 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 558 | compatible = "allwinner,sun6i-a31-ohci", "generic-ohci"; |
| 559 | reg = <0x01c1a400 0x100>; |
| 560 | interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 561 | clocks = <&ccu CLK_AHB1_OHCI0>, <&ccu CLK_USB_OHCI0>; |
| 562 | resets = <&ccu RST_AHB1_OHCI0>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 563 | phys = <&usbphy 1>; |
| 564 | phy-names = "usb"; |
| 565 | status = "disabled"; |
| 566 | }; |
| 567 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 568 | ehci1: usb@1c1b000 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 569 | compatible = "allwinner,sun6i-a31-ehci", "generic-ehci"; |
| 570 | reg = <0x01c1b000 0x100>; |
| 571 | interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 572 | clocks = <&ccu CLK_AHB1_EHCI1>; |
| 573 | resets = <&ccu RST_AHB1_EHCI1>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 574 | phys = <&usbphy 2>; |
| 575 | phy-names = "usb"; |
| 576 | status = "disabled"; |
| 577 | }; |
| 578 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 579 | ohci1: usb@1c1b400 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 580 | compatible = "allwinner,sun6i-a31-ohci", "generic-ohci"; |
| 581 | reg = <0x01c1b400 0x100>; |
| 582 | interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 583 | clocks = <&ccu CLK_AHB1_OHCI1>, <&ccu CLK_USB_OHCI1>; |
| 584 | resets = <&ccu RST_AHB1_OHCI1>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 585 | phys = <&usbphy 2>; |
| 586 | phy-names = "usb"; |
| 587 | status = "disabled"; |
| 588 | }; |
| 589 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 590 | ohci2: usb@1c1c400 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 591 | compatible = "allwinner,sun6i-a31-ohci", "generic-ohci"; |
| 592 | reg = <0x01c1c400 0x100>; |
| 593 | interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 594 | clocks = <&ccu CLK_AHB1_OHCI2>, <&ccu CLK_USB_OHCI2>; |
| 595 | resets = <&ccu RST_AHB1_OHCI2>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 596 | status = "disabled"; |
| 597 | }; |
| 598 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 599 | ccu: clock@1c20000 { |
| 600 | compatible = "allwinner,sun6i-a31-ccu"; |
| 601 | reg = <0x01c20000 0x400>; |
Andre Przywara | fa15e50 | 2022-09-13 00:52:52 +0100 | [diff] [blame] | 602 | clocks = <&osc24M>, <&rtc CLK_OSC32K>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 603 | clock-names = "hosc", "losc"; |
| 604 | #clock-cells = <1>; |
| 605 | #reset-cells = <1>; |
| 606 | }; |
| 607 | |
| 608 | pio: pinctrl@1c20800 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 609 | compatible = "allwinner,sun6i-a31-pinctrl"; |
| 610 | reg = <0x01c20800 0x400>; |
| 611 | interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>, |
| 612 | <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>, |
| 613 | <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>, |
| 614 | <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; |
Andre Przywara | fa15e50 | 2022-09-13 00:52:52 +0100 | [diff] [blame] | 615 | clocks = <&ccu CLK_APB1_PIO>, <&osc24M>, |
| 616 | <&rtc CLK_OSC32K>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 617 | clock-names = "apb", "hosc", "losc"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 618 | gpio-controller; |
| 619 | interrupt-controller; |
Hans de Goede | 7d83182 | 2015-08-05 17:39:14 +0200 | [diff] [blame] | 620 | #interrupt-cells = <3>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 621 | #gpio-cells = <3>; |
| 622 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 623 | gmac_gmii_pins: gmac-gmii-pins { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 624 | pins = "PA0", "PA1", "PA2", "PA3", |
| 625 | "PA4", "PA5", "PA6", "PA7", |
| 626 | "PA8", "PA9", "PA10", "PA11", |
| 627 | "PA12", "PA13", "PA14", "PA15", |
| 628 | "PA16", "PA17", "PA18", "PA19", |
| 629 | "PA20", "PA21", "PA22", "PA23", |
| 630 | "PA24", "PA25", "PA26", "PA27"; |
| 631 | function = "gmac"; |
| 632 | /* |
| 633 | * data lines in GMII mode run at 125MHz and |
| 634 | * might need a higher signal drive strength |
| 635 | */ |
| 636 | drive-strength = <30>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 637 | }; |
| 638 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 639 | gmac_mii_pins: gmac-mii-pins { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 640 | pins = "PA0", "PA1", "PA2", "PA3", |
| 641 | "PA8", "PA9", "PA11", |
| 642 | "PA12", "PA13", "PA14", "PA19", |
| 643 | "PA20", "PA21", "PA22", "PA23", |
| 644 | "PA24", "PA26", "PA27"; |
| 645 | function = "gmac"; |
| 646 | }; |
| 647 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 648 | gmac_rgmii_pins: gmac-rgmii-pins { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 649 | pins = "PA0", "PA1", "PA2", "PA3", |
| 650 | "PA9", "PA10", "PA11", |
| 651 | "PA12", "PA13", "PA14", "PA19", |
| 652 | "PA20", "PA25", "PA26", "PA27"; |
| 653 | function = "gmac"; |
| 654 | /* |
| 655 | * data lines in RGMII mode use DDR mode |
| 656 | * and need a higher signal drive strength |
| 657 | */ |
| 658 | drive-strength = <40>; |
| 659 | }; |
| 660 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 661 | i2c0_pins: i2c0-pins { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 662 | pins = "PH14", "PH15"; |
| 663 | function = "i2c0"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 664 | }; |
| 665 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 666 | i2c1_pins: i2c1-pins { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 667 | pins = "PH16", "PH17"; |
| 668 | function = "i2c1"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 669 | }; |
| 670 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 671 | i2c2_pins: i2c2-pins { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 672 | pins = "PH18", "PH19"; |
| 673 | function = "i2c2"; |
| 674 | }; |
| 675 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 676 | lcd0_rgb888_pins: lcd0-rgb888-pins { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 677 | pins = "PD0", "PD1", "PD2", "PD3", |
| 678 | "PD4", "PD5", "PD6", "PD7", |
| 679 | "PD8", "PD9", "PD10", "PD11", |
| 680 | "PD12", "PD13", "PD14", "PD15", |
| 681 | "PD16", "PD17", "PD18", "PD19", |
| 682 | "PD20", "PD21", "PD22", "PD23", |
| 683 | "PD24", "PD25", "PD26", "PD27"; |
| 684 | function = "lcd0"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 685 | }; |
| 686 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 687 | mmc0_pins: mmc0-pins { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 688 | pins = "PF0", "PF1", "PF2", |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 689 | "PF3", "PF4", "PF5"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 690 | function = "mmc0"; |
| 691 | drive-strength = <30>; |
| 692 | bias-pull-up; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 693 | }; |
| 694 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 695 | mmc1_pins: mmc1-pins { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 696 | pins = "PG0", "PG1", "PG2", "PG3", |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 697 | "PG4", "PG5"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 698 | function = "mmc1"; |
| 699 | drive-strength = <30>; |
| 700 | bias-pull-up; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 701 | }; |
| 702 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 703 | mmc2_4bit_pins: mmc2-4bit-pins { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 704 | pins = "PC6", "PC7", "PC8", "PC9", |
Hans de Goede | 5834fe3 | 2015-10-13 23:57:03 +0200 | [diff] [blame] | 705 | "PC10", "PC11"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 706 | function = "mmc2"; |
| 707 | drive-strength = <30>; |
| 708 | bias-pull-up; |
Hans de Goede | 5834fe3 | 2015-10-13 23:57:03 +0200 | [diff] [blame] | 709 | }; |
| 710 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 711 | mmc2_8bit_emmc_pins: mmc2-8bit-emmc-pins { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 712 | pins = "PC6", "PC7", "PC8", "PC9", |
Hans de Goede | 5834fe3 | 2015-10-13 23:57:03 +0200 | [diff] [blame] | 713 | "PC10", "PC11", "PC12", |
| 714 | "PC13", "PC14", "PC15", |
| 715 | "PC24"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 716 | function = "mmc2"; |
| 717 | drive-strength = <30>; |
| 718 | bias-pull-up; |
Hans de Goede | 5834fe3 | 2015-10-13 23:57:03 +0200 | [diff] [blame] | 719 | }; |
| 720 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 721 | mmc3_8bit_emmc_pins: mmc3-8bit-emmc-pins { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 722 | pins = "PC6", "PC7", "PC8", "PC9", |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 723 | "PC10", "PC11", "PC12", |
| 724 | "PC13", "PC14", "PC15", |
| 725 | "PC24"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 726 | function = "mmc3"; |
| 727 | drive-strength = <40>; |
| 728 | bias-pull-up; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 729 | }; |
| 730 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 731 | spdif_tx_pin: spdif-tx-pin { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 732 | pins = "PH28"; |
| 733 | function = "spdif"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 734 | }; |
| 735 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 736 | uart0_ph_pins: uart0-ph-pins { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 737 | pins = "PH20", "PH21"; |
| 738 | function = "uart0"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 739 | }; |
| 740 | }; |
| 741 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 742 | timer@1c20c00 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 743 | compatible = "allwinner,sun4i-a10-timer"; |
| 744 | reg = <0x01c20c00 0xa0>; |
| 745 | interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>, |
| 746 | <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>, |
| 747 | <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>, |
| 748 | <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>, |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 749 | <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>, |
| 750 | <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 751 | clocks = <&osc24M>; |
| 752 | }; |
| 753 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 754 | wdt1: watchdog@1c20ca0 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 755 | compatible = "allwinner,sun6i-a31-wdt"; |
| 756 | reg = <0x01c20ca0 0x20>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 757 | interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; |
| 758 | clocks = <&osc24M>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 759 | }; |
| 760 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 761 | spdif: spdif@1c21000 { |
| 762 | #sound-dai-cells = <0>; |
| 763 | compatible = "allwinner,sun6i-a31-spdif"; |
| 764 | reg = <0x01c21000 0x400>; |
| 765 | interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; |
| 766 | clocks = <&ccu CLK_APB1_SPDIF>, <&ccu CLK_SPDIF>; |
| 767 | resets = <&ccu RST_APB1_SPDIF>; |
| 768 | clock-names = "apb", "spdif"; |
| 769 | dmas = <&dma 2>, <&dma 2>; |
| 770 | dma-names = "rx", "tx"; |
| 771 | status = "disabled"; |
| 772 | }; |
| 773 | |
| 774 | i2s0: i2s@1c22000 { |
| 775 | #sound-dai-cells = <0>; |
| 776 | compatible = "allwinner,sun6i-a31-i2s"; |
| 777 | reg = <0x01c22000 0x400>; |
| 778 | interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; |
| 779 | clocks = <&ccu CLK_APB1_DAUDIO0>, <&ccu CLK_DAUDIO0>; |
| 780 | resets = <&ccu RST_APB1_DAUDIO0>; |
| 781 | clock-names = "apb", "mod"; |
| 782 | dmas = <&dma 3>, <&dma 3>; |
| 783 | dma-names = "rx", "tx"; |
| 784 | status = "disabled"; |
| 785 | }; |
| 786 | |
| 787 | i2s1: i2s@1c22400 { |
| 788 | #sound-dai-cells = <0>; |
| 789 | compatible = "allwinner,sun6i-a31-i2s"; |
| 790 | reg = <0x01c22400 0x400>; |
| 791 | interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; |
| 792 | clocks = <&ccu CLK_APB1_DAUDIO1>, <&ccu CLK_DAUDIO1>; |
| 793 | resets = <&ccu RST_APB1_DAUDIO1>; |
| 794 | clock-names = "apb", "mod"; |
| 795 | dmas = <&dma 4>, <&dma 4>; |
| 796 | dma-names = "rx", "tx"; |
| 797 | status = "disabled"; |
| 798 | }; |
| 799 | |
| 800 | lradc: lradc@1c22800 { |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 801 | compatible = "allwinner,sun4i-a10-lradc-keys"; |
| 802 | reg = <0x01c22800 0x100>; |
| 803 | interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>; |
| 804 | status = "disabled"; |
| 805 | }; |
| 806 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 807 | rtp: rtp@1c25000 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 808 | compatible = "allwinner,sun6i-a31-ts"; |
| 809 | reg = <0x01c25000 0x100>; |
| 810 | interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; |
| 811 | #thermal-sensor-cells = <0>; |
| 812 | }; |
| 813 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 814 | uart0: serial@1c28000 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 815 | compatible = "snps,dw-apb-uart"; |
| 816 | reg = <0x01c28000 0x400>; |
| 817 | interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; |
| 818 | reg-shift = <2>; |
| 819 | reg-io-width = <4>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 820 | clocks = <&ccu CLK_APB2_UART0>; |
| 821 | resets = <&ccu RST_APB2_UART0>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 822 | dmas = <&dma 6>, <&dma 6>; |
| 823 | dma-names = "rx", "tx"; |
| 824 | status = "disabled"; |
| 825 | }; |
| 826 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 827 | uart1: serial@1c28400 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 828 | compatible = "snps,dw-apb-uart"; |
| 829 | reg = <0x01c28400 0x400>; |
| 830 | interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; |
| 831 | reg-shift = <2>; |
| 832 | reg-io-width = <4>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 833 | clocks = <&ccu CLK_APB2_UART1>; |
| 834 | resets = <&ccu RST_APB2_UART1>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 835 | dmas = <&dma 7>, <&dma 7>; |
| 836 | dma-names = "rx", "tx"; |
| 837 | status = "disabled"; |
| 838 | }; |
| 839 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 840 | uart2: serial@1c28800 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 841 | compatible = "snps,dw-apb-uart"; |
| 842 | reg = <0x01c28800 0x400>; |
| 843 | interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; |
| 844 | reg-shift = <2>; |
| 845 | reg-io-width = <4>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 846 | clocks = <&ccu CLK_APB2_UART2>; |
| 847 | resets = <&ccu RST_APB2_UART2>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 848 | dmas = <&dma 8>, <&dma 8>; |
| 849 | dma-names = "rx", "tx"; |
| 850 | status = "disabled"; |
| 851 | }; |
| 852 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 853 | uart3: serial@1c28c00 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 854 | compatible = "snps,dw-apb-uart"; |
| 855 | reg = <0x01c28c00 0x400>; |
| 856 | interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; |
| 857 | reg-shift = <2>; |
| 858 | reg-io-width = <4>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 859 | clocks = <&ccu CLK_APB2_UART3>; |
| 860 | resets = <&ccu RST_APB2_UART3>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 861 | dmas = <&dma 9>, <&dma 9>; |
| 862 | dma-names = "rx", "tx"; |
| 863 | status = "disabled"; |
| 864 | }; |
| 865 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 866 | uart4: serial@1c29000 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 867 | compatible = "snps,dw-apb-uart"; |
| 868 | reg = <0x01c29000 0x400>; |
| 869 | interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; |
| 870 | reg-shift = <2>; |
| 871 | reg-io-width = <4>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 872 | clocks = <&ccu CLK_APB2_UART4>; |
| 873 | resets = <&ccu RST_APB2_UART4>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 874 | dmas = <&dma 10>, <&dma 10>; |
| 875 | dma-names = "rx", "tx"; |
| 876 | status = "disabled"; |
| 877 | }; |
| 878 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 879 | uart5: serial@1c29400 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 880 | compatible = "snps,dw-apb-uart"; |
| 881 | reg = <0x01c29400 0x400>; |
| 882 | interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>; |
| 883 | reg-shift = <2>; |
| 884 | reg-io-width = <4>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 885 | clocks = <&ccu CLK_APB2_UART5>; |
| 886 | resets = <&ccu RST_APB2_UART5>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 887 | dmas = <&dma 22>, <&dma 22>; |
| 888 | dma-names = "rx", "tx"; |
| 889 | status = "disabled"; |
| 890 | }; |
| 891 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 892 | i2c0: i2c@1c2ac00 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 893 | compatible = "allwinner,sun6i-a31-i2c"; |
| 894 | reg = <0x01c2ac00 0x400>; |
| 895 | interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 896 | clocks = <&ccu CLK_APB2_I2C0>; |
| 897 | resets = <&ccu RST_APB2_I2C0>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 898 | pinctrl-names = "default"; |
| 899 | pinctrl-0 = <&i2c0_pins>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 900 | status = "disabled"; |
| 901 | #address-cells = <1>; |
| 902 | #size-cells = <0>; |
| 903 | }; |
| 904 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 905 | i2c1: i2c@1c2b000 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 906 | compatible = "allwinner,sun6i-a31-i2c"; |
| 907 | reg = <0x01c2b000 0x400>; |
| 908 | interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 909 | clocks = <&ccu CLK_APB2_I2C1>; |
| 910 | resets = <&ccu RST_APB2_I2C1>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 911 | pinctrl-names = "default"; |
| 912 | pinctrl-0 = <&i2c1_pins>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 913 | status = "disabled"; |
| 914 | #address-cells = <1>; |
| 915 | #size-cells = <0>; |
| 916 | }; |
| 917 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 918 | i2c2: i2c@1c2b400 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 919 | compatible = "allwinner,sun6i-a31-i2c"; |
| 920 | reg = <0x01c2b400 0x400>; |
| 921 | interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 922 | clocks = <&ccu CLK_APB2_I2C2>; |
| 923 | resets = <&ccu RST_APB2_I2C2>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 924 | pinctrl-names = "default"; |
| 925 | pinctrl-0 = <&i2c2_pins>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 926 | status = "disabled"; |
| 927 | #address-cells = <1>; |
| 928 | #size-cells = <0>; |
| 929 | }; |
| 930 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 931 | i2c3: i2c@1c2b800 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 932 | compatible = "allwinner,sun6i-a31-i2c"; |
| 933 | reg = <0x01c2b800 0x400>; |
| 934 | interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 935 | clocks = <&ccu CLK_APB2_I2C3>; |
| 936 | resets = <&ccu RST_APB2_I2C3>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 937 | status = "disabled"; |
| 938 | #address-cells = <1>; |
| 939 | #size-cells = <0>; |
| 940 | }; |
| 941 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 942 | gmac: ethernet@1c30000 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 943 | compatible = "allwinner,sun7i-a20-gmac"; |
| 944 | reg = <0x01c30000 0x1054>; |
| 945 | interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; |
| 946 | interrupt-names = "macirq"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 947 | clocks = <&ccu CLK_AHB1_EMAC>, <&gmac_tx_clk>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 948 | clock-names = "stmmaceth", "allwinner_gmac_tx"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 949 | resets = <&ccu RST_AHB1_EMAC>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 950 | reset-names = "stmmaceth"; |
| 951 | snps,pbl = <2>; |
| 952 | snps,fixed-burst; |
| 953 | snps,force_sf_dma_mode; |
| 954 | status = "disabled"; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 955 | |
| 956 | mdio: mdio { |
| 957 | compatible = "snps,dwmac-mdio"; |
| 958 | #address-cells = <1>; |
| 959 | #size-cells = <0>; |
| 960 | }; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 961 | }; |
| 962 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 963 | crypto: crypto-engine@1c15000 { |
| 964 | compatible = "allwinner,sun6i-a31-crypto", |
| 965 | "allwinner,sun4i-a10-crypto"; |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 966 | reg = <0x01c15000 0x1000>; |
| 967 | interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 968 | clocks = <&ccu CLK_AHB1_SS>, <&ccu CLK_SS>; |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 969 | clock-names = "ahb", "mod"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 970 | resets = <&ccu RST_AHB1_SS>; |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 971 | reset-names = "ahb"; |
| 972 | }; |
| 973 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 974 | codec: codec@1c22c00 { |
| 975 | #sound-dai-cells = <0>; |
| 976 | compatible = "allwinner,sun6i-a31-codec"; |
| 977 | reg = <0x01c22c00 0x400>; |
| 978 | interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; |
| 979 | clocks = <&ccu CLK_APB1_CODEC>, <&ccu CLK_CODEC>; |
| 980 | clock-names = "apb", "codec"; |
| 981 | resets = <&ccu RST_APB1_CODEC>; |
| 982 | dmas = <&dma 15>, <&dma 15>; |
| 983 | dma-names = "rx", "tx"; |
| 984 | status = "disabled"; |
| 985 | }; |
| 986 | |
| 987 | timer@1c60000 { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 988 | compatible = "allwinner,sun6i-a31-hstimer", |
| 989 | "allwinner,sun7i-a20-hstimer"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 990 | reg = <0x01c60000 0x1000>; |
| 991 | interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>, |
| 992 | <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>, |
| 993 | <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>, |
| 994 | <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 995 | clocks = <&ccu CLK_AHB1_HSTIMER>; |
| 996 | resets = <&ccu RST_AHB1_HSTIMER>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 997 | }; |
| 998 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 999 | spi0: spi@1c68000 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1000 | compatible = "allwinner,sun6i-a31-spi"; |
| 1001 | reg = <0x01c68000 0x1000>; |
| 1002 | interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1003 | clocks = <&ccu CLK_AHB1_SPI0>, <&ccu CLK_SPI0>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1004 | clock-names = "ahb", "mod"; |
| 1005 | dmas = <&dma 23>, <&dma 23>; |
| 1006 | dma-names = "rx", "tx"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1007 | resets = <&ccu RST_AHB1_SPI0>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1008 | status = "disabled"; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 1009 | #address-cells = <1>; |
| 1010 | #size-cells = <0>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1011 | }; |
| 1012 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1013 | spi1: spi@1c69000 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1014 | compatible = "allwinner,sun6i-a31-spi"; |
| 1015 | reg = <0x01c69000 0x1000>; |
| 1016 | interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1017 | clocks = <&ccu CLK_AHB1_SPI1>, <&ccu CLK_SPI1>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1018 | clock-names = "ahb", "mod"; |
| 1019 | dmas = <&dma 24>, <&dma 24>; |
| 1020 | dma-names = "rx", "tx"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1021 | resets = <&ccu RST_AHB1_SPI1>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1022 | status = "disabled"; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 1023 | #address-cells = <1>; |
| 1024 | #size-cells = <0>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1025 | }; |
| 1026 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1027 | spi2: spi@1c6a000 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1028 | compatible = "allwinner,sun6i-a31-spi"; |
| 1029 | reg = <0x01c6a000 0x1000>; |
| 1030 | interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1031 | clocks = <&ccu CLK_AHB1_SPI2>, <&ccu CLK_SPI2>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1032 | clock-names = "ahb", "mod"; |
| 1033 | dmas = <&dma 25>, <&dma 25>; |
| 1034 | dma-names = "rx", "tx"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1035 | resets = <&ccu RST_AHB1_SPI2>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1036 | status = "disabled"; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 1037 | #address-cells = <1>; |
| 1038 | #size-cells = <0>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1039 | }; |
| 1040 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1041 | spi3: spi@1c6b000 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1042 | compatible = "allwinner,sun6i-a31-spi"; |
| 1043 | reg = <0x01c6b000 0x1000>; |
| 1044 | interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1045 | clocks = <&ccu CLK_AHB1_SPI3>, <&ccu CLK_SPI3>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1046 | clock-names = "ahb", "mod"; |
| 1047 | dmas = <&dma 26>, <&dma 26>; |
| 1048 | dma-names = "rx", "tx"; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1049 | resets = <&ccu RST_AHB1_SPI3>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1050 | status = "disabled"; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 1051 | #address-cells = <1>; |
| 1052 | #size-cells = <0>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1053 | }; |
| 1054 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1055 | gic: interrupt-controller@1c81000 { |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 1056 | compatible = "arm,gic-400"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1057 | reg = <0x01c81000 0x1000>, |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1058 | <0x01c82000 0x2000>, |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1059 | <0x01c84000 0x2000>, |
| 1060 | <0x01c86000 0x2000>; |
| 1061 | interrupt-controller; |
| 1062 | #interrupt-cells = <3>; |
| 1063 | interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; |
| 1064 | }; |
| 1065 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1066 | fe0: display-frontend@1e00000 { |
| 1067 | compatible = "allwinner,sun6i-a31-display-frontend"; |
| 1068 | reg = <0x01e00000 0x20000>; |
| 1069 | interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>; |
| 1070 | clocks = <&ccu CLK_AHB1_FE0>, <&ccu CLK_FE0>, |
| 1071 | <&ccu CLK_DRAM_FE0>; |
| 1072 | clock-names = "ahb", "mod", |
| 1073 | "ram"; |
| 1074 | resets = <&ccu RST_AHB1_FE0>; |
| 1075 | |
| 1076 | ports { |
| 1077 | #address-cells = <1>; |
| 1078 | #size-cells = <0>; |
| 1079 | |
| 1080 | fe0_out: port@1 { |
| 1081 | #address-cells = <1>; |
| 1082 | #size-cells = <0>; |
| 1083 | reg = <1>; |
| 1084 | |
| 1085 | fe0_out_be0: endpoint@0 { |
| 1086 | reg = <0>; |
| 1087 | remote-endpoint = <&be0_in_fe0>; |
| 1088 | }; |
| 1089 | |
| 1090 | fe0_out_be1: endpoint@1 { |
| 1091 | reg = <1>; |
| 1092 | remote-endpoint = <&be1_in_fe0>; |
| 1093 | }; |
| 1094 | }; |
| 1095 | }; |
| 1096 | }; |
| 1097 | |
| 1098 | fe1: display-frontend@1e20000 { |
| 1099 | compatible = "allwinner,sun6i-a31-display-frontend"; |
| 1100 | reg = <0x01e20000 0x20000>; |
| 1101 | interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>; |
| 1102 | clocks = <&ccu CLK_AHB1_FE1>, <&ccu CLK_FE1>, |
| 1103 | <&ccu CLK_DRAM_FE1>; |
| 1104 | clock-names = "ahb", "mod", |
| 1105 | "ram"; |
| 1106 | resets = <&ccu RST_AHB1_FE1>; |
| 1107 | |
| 1108 | ports { |
| 1109 | #address-cells = <1>; |
| 1110 | #size-cells = <0>; |
| 1111 | |
| 1112 | fe1_out: port@1 { |
| 1113 | #address-cells = <1>; |
| 1114 | #size-cells = <0>; |
| 1115 | reg = <1>; |
| 1116 | |
| 1117 | fe1_out_be0: endpoint@0 { |
| 1118 | reg = <0>; |
| 1119 | remote-endpoint = <&be0_in_fe1>; |
| 1120 | }; |
| 1121 | |
| 1122 | fe1_out_be1: endpoint@1 { |
| 1123 | reg = <1>; |
| 1124 | remote-endpoint = <&be1_in_fe1>; |
| 1125 | }; |
| 1126 | }; |
| 1127 | }; |
| 1128 | }; |
| 1129 | |
| 1130 | be1: display-backend@1e40000 { |
| 1131 | compatible = "allwinner,sun6i-a31-display-backend"; |
| 1132 | reg = <0x01e40000 0x10000>; |
| 1133 | interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>; |
| 1134 | clocks = <&ccu CLK_AHB1_BE1>, <&ccu CLK_BE1>, |
| 1135 | <&ccu CLK_DRAM_BE1>; |
| 1136 | clock-names = "ahb", "mod", |
| 1137 | "ram"; |
| 1138 | resets = <&ccu RST_AHB1_BE1>; |
| 1139 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1140 | ports { |
| 1141 | #address-cells = <1>; |
| 1142 | #size-cells = <0>; |
| 1143 | |
| 1144 | be1_in: port@0 { |
| 1145 | #address-cells = <1>; |
| 1146 | #size-cells = <0>; |
| 1147 | reg = <0>; |
| 1148 | |
| 1149 | be1_in_fe0: endpoint@0 { |
| 1150 | reg = <0>; |
| 1151 | remote-endpoint = <&fe0_out_be1>; |
| 1152 | }; |
| 1153 | |
| 1154 | be1_in_fe1: endpoint@1 { |
| 1155 | reg = <1>; |
| 1156 | remote-endpoint = <&fe1_out_be1>; |
| 1157 | }; |
| 1158 | }; |
| 1159 | |
| 1160 | be1_out: port@1 { |
| 1161 | #address-cells = <1>; |
| 1162 | #size-cells = <0>; |
| 1163 | reg = <1>; |
| 1164 | |
| 1165 | be1_out_drc1: endpoint@1 { |
| 1166 | reg = <1>; |
| 1167 | remote-endpoint = <&drc1_in_be1>; |
| 1168 | }; |
| 1169 | }; |
| 1170 | }; |
| 1171 | }; |
| 1172 | |
| 1173 | drc1: drc@1e50000 { |
| 1174 | compatible = "allwinner,sun6i-a31-drc"; |
| 1175 | reg = <0x01e50000 0x10000>; |
| 1176 | interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>; |
| 1177 | clocks = <&ccu CLK_AHB1_DRC1>, <&ccu CLK_IEP_DRC1>, |
| 1178 | <&ccu CLK_DRAM_DRC1>; |
| 1179 | clock-names = "ahb", "mod", |
| 1180 | "ram"; |
| 1181 | resets = <&ccu RST_AHB1_DRC1>; |
| 1182 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1183 | ports { |
| 1184 | #address-cells = <1>; |
| 1185 | #size-cells = <0>; |
| 1186 | |
| 1187 | drc1_in: port@0 { |
| 1188 | #address-cells = <1>; |
| 1189 | #size-cells = <0>; |
| 1190 | reg = <0>; |
| 1191 | |
| 1192 | drc1_in_be1: endpoint@1 { |
| 1193 | reg = <1>; |
| 1194 | remote-endpoint = <&be1_out_drc1>; |
| 1195 | }; |
| 1196 | }; |
| 1197 | |
| 1198 | drc1_out: port@1 { |
| 1199 | #address-cells = <1>; |
| 1200 | #size-cells = <0>; |
| 1201 | reg = <1>; |
| 1202 | |
| 1203 | drc1_out_tcon0: endpoint@0 { |
| 1204 | reg = <0>; |
| 1205 | remote-endpoint = <&tcon0_in_drc1>; |
| 1206 | }; |
| 1207 | |
| 1208 | drc1_out_tcon1: endpoint@1 { |
| 1209 | reg = <1>; |
| 1210 | remote-endpoint = <&tcon1_in_drc1>; |
| 1211 | }; |
| 1212 | }; |
| 1213 | }; |
| 1214 | }; |
| 1215 | |
| 1216 | be0: display-backend@1e60000 { |
| 1217 | compatible = "allwinner,sun6i-a31-display-backend"; |
| 1218 | reg = <0x01e60000 0x10000>; |
| 1219 | interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>; |
| 1220 | clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_BE0>, |
| 1221 | <&ccu CLK_DRAM_BE0>; |
| 1222 | clock-names = "ahb", "mod", |
| 1223 | "ram"; |
| 1224 | resets = <&ccu RST_AHB1_BE0>; |
| 1225 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1226 | ports { |
| 1227 | #address-cells = <1>; |
| 1228 | #size-cells = <0>; |
| 1229 | |
| 1230 | be0_in: port@0 { |
| 1231 | #address-cells = <1>; |
| 1232 | #size-cells = <0>; |
| 1233 | reg = <0>; |
| 1234 | |
| 1235 | be0_in_fe0: endpoint@0 { |
| 1236 | reg = <0>; |
| 1237 | remote-endpoint = <&fe0_out_be0>; |
| 1238 | }; |
| 1239 | |
| 1240 | be0_in_fe1: endpoint@1 { |
| 1241 | reg = <1>; |
| 1242 | remote-endpoint = <&fe1_out_be0>; |
| 1243 | }; |
| 1244 | }; |
| 1245 | |
| 1246 | be0_out: port@1 { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1247 | reg = <1>; |
| 1248 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 1249 | be0_out_drc0: endpoint { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1250 | remote-endpoint = <&drc0_in_be0>; |
| 1251 | }; |
| 1252 | }; |
| 1253 | }; |
| 1254 | }; |
| 1255 | |
| 1256 | drc0: drc@1e70000 { |
| 1257 | compatible = "allwinner,sun6i-a31-drc"; |
| 1258 | reg = <0x01e70000 0x10000>; |
| 1259 | interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>; |
| 1260 | clocks = <&ccu CLK_AHB1_DRC0>, <&ccu CLK_IEP_DRC0>, |
| 1261 | <&ccu CLK_DRAM_DRC0>; |
| 1262 | clock-names = "ahb", "mod", |
| 1263 | "ram"; |
| 1264 | resets = <&ccu RST_AHB1_DRC0>; |
| 1265 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1266 | ports { |
| 1267 | #address-cells = <1>; |
| 1268 | #size-cells = <0>; |
| 1269 | |
| 1270 | drc0_in: port@0 { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1271 | reg = <0>; |
| 1272 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 1273 | drc0_in_be0: endpoint { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1274 | remote-endpoint = <&be0_out_drc0>; |
| 1275 | }; |
| 1276 | }; |
| 1277 | |
| 1278 | drc0_out: port@1 { |
| 1279 | #address-cells = <1>; |
| 1280 | #size-cells = <0>; |
| 1281 | reg = <1>; |
| 1282 | |
| 1283 | drc0_out_tcon0: endpoint@0 { |
| 1284 | reg = <0>; |
| 1285 | remote-endpoint = <&tcon0_in_drc0>; |
| 1286 | }; |
| 1287 | |
| 1288 | drc0_out_tcon1: endpoint@1 { |
| 1289 | reg = <1>; |
| 1290 | remote-endpoint = <&tcon1_in_drc0>; |
| 1291 | }; |
| 1292 | }; |
| 1293 | }; |
| 1294 | }; |
| 1295 | |
| 1296 | rtc: rtc@1f00000 { |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 1297 | #clock-cells = <1>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1298 | compatible = "allwinner,sun6i-a31-rtc"; |
| 1299 | reg = <0x01f00000 0x54>; |
| 1300 | interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>, |
| 1301 | <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 1302 | clocks = <&osc32k>; |
| 1303 | clock-output-names = "osc32k"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1304 | }; |
| 1305 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 1306 | r_intc: interrupt-controller@1f00c00 { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1307 | compatible = "allwinner,sun6i-a31-r-intc"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1308 | interrupt-controller; |
| 1309 | #interrupt-cells = <2>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1310 | reg = <0x01f00c00 0x400>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1311 | interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; |
| 1312 | }; |
| 1313 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1314 | prcm@1f01400 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1315 | compatible = "allwinner,sun6i-a31-prcm"; |
| 1316 | reg = <0x01f01400 0x200>; |
| 1317 | |
| 1318 | ar100: ar100_clk { |
| 1319 | compatible = "allwinner,sun6i-a31-ar100-clk"; |
| 1320 | #clock-cells = <0>; |
Andre Przywara | fa15e50 | 2022-09-13 00:52:52 +0100 | [diff] [blame] | 1321 | clocks = <&rtc CLK_OSC32K>, <&osc24M>, |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1322 | <&ccu CLK_PLL_PERIPH>, |
| 1323 | <&ccu CLK_PLL_PERIPH>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1324 | clock-output-names = "ar100"; |
| 1325 | }; |
| 1326 | |
| 1327 | ahb0: ahb0_clk { |
| 1328 | compatible = "fixed-factor-clock"; |
| 1329 | #clock-cells = <0>; |
| 1330 | clock-div = <1>; |
| 1331 | clock-mult = <1>; |
| 1332 | clocks = <&ar100>; |
| 1333 | clock-output-names = "ahb0"; |
| 1334 | }; |
| 1335 | |
| 1336 | apb0: apb0_clk { |
| 1337 | compatible = "allwinner,sun6i-a31-apb0-clk"; |
| 1338 | #clock-cells = <0>; |
| 1339 | clocks = <&ahb0>; |
| 1340 | clock-output-names = "apb0"; |
| 1341 | }; |
| 1342 | |
| 1343 | apb0_gates: apb0_gates_clk { |
| 1344 | compatible = "allwinner,sun6i-a31-apb0-gates-clk"; |
| 1345 | #clock-cells = <1>; |
| 1346 | clocks = <&apb0>; |
| 1347 | clock-output-names = "apb0_pio", "apb0_ir", |
| 1348 | "apb0_timer", "apb0_p2wi", |
| 1349 | "apb0_uart", "apb0_1wire", |
| 1350 | "apb0_i2c"; |
| 1351 | }; |
| 1352 | |
| 1353 | ir_clk: ir_clk { |
| 1354 | #clock-cells = <0>; |
| 1355 | compatible = "allwinner,sun4i-a10-mod0-clk"; |
Andre Przywara | fa15e50 | 2022-09-13 00:52:52 +0100 | [diff] [blame] | 1356 | clocks = <&rtc CLK_OSC32K>, <&osc24M>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1357 | clock-output-names = "ir"; |
| 1358 | }; |
| 1359 | |
| 1360 | apb0_rst: apb0_rst { |
| 1361 | compatible = "allwinner,sun6i-a31-clock-reset"; |
| 1362 | #reset-cells = <1>; |
| 1363 | }; |
| 1364 | }; |
| 1365 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1366 | cpucfg@1f01c00 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1367 | compatible = "allwinner,sun6i-a31-cpuconfig"; |
| 1368 | reg = <0x01f01c00 0x300>; |
| 1369 | }; |
| 1370 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1371 | ir: ir@1f02000 { |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 1372 | compatible = "allwinner,sun6i-a31-ir"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1373 | clocks = <&apb0_gates 1>, <&ir_clk>; |
| 1374 | clock-names = "apb", "ir"; |
| 1375 | resets = <&apb0_rst 1>; |
| 1376 | interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; |
| 1377 | reg = <0x01f02000 0x40>; |
| 1378 | status = "disabled"; |
| 1379 | }; |
| 1380 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1381 | r_pio: pinctrl@1f02c00 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1382 | compatible = "allwinner,sun6i-a31-r-pinctrl"; |
| 1383 | reg = <0x01f02c00 0x400>; |
| 1384 | interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>, |
| 1385 | <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>; |
Andre Przywara | fa15e50 | 2022-09-13 00:52:52 +0100 | [diff] [blame] | 1386 | clocks = <&apb0_gates 0>, <&osc24M>, <&rtc CLK_OSC32K>; |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1387 | clock-names = "apb", "hosc", "losc"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1388 | gpio-controller; |
| 1389 | interrupt-controller; |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 1390 | #interrupt-cells = <3>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1391 | #gpio-cells = <3>; |
| 1392 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 1393 | s_ir_rx_pin: s-ir-rx-pin { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1394 | pins = "PL4"; |
| 1395 | function = "s_ir"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1396 | }; |
| 1397 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 1398 | s_p2wi_pins: s-p2wi-pins { |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1399 | pins = "PL0", "PL1"; |
| 1400 | function = "s_p2wi"; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1401 | }; |
| 1402 | }; |
| 1403 | |
Jagan Teki | 1e09744 | 2018-08-05 00:40:09 +0530 | [diff] [blame] | 1404 | p2wi: i2c@1f03400 { |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1405 | compatible = "allwinner,sun6i-a31-p2wi"; |
| 1406 | reg = <0x01f03400 0x400>; |
| 1407 | interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; |
| 1408 | clocks = <&apb0_gates 3>; |
| 1409 | clock-frequency = <100000>; |
| 1410 | resets = <&apb0_rst 3>; |
| 1411 | pinctrl-names = "default"; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 1412 | pinctrl-0 = <&s_p2wi_pins>; |
Hans de Goede | db325e8 | 2015-04-15 19:03:49 +0200 | [diff] [blame] | 1413 | status = "disabled"; |
| 1414 | #address-cells = <1>; |
| 1415 | #size-cells = <0>; |
| 1416 | }; |
| 1417 | }; |
| 1418 | }; |