Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014 Chen-Yu Tsai |
| 3 | * |
| 4 | * Chen-Yu Tsai <wens@csie.org> |
| 5 | * |
| 6 | * This file is dual-licensed: you can use it either under the terms |
| 7 | * of the GPL or the X11 license, at your option. Note that this dual |
| 8 | * licensing only applies to this file, and not this project as a |
| 9 | * whole. |
| 10 | * |
| 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 | * |
| 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 | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 45 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 46 | |
Andre Przywara | fa15e50 | 2022-09-13 00:52:52 +0100 | [diff] [blame^] | 47 | #include <dt-bindings/clock/sun6i-rtc.h> |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 48 | #include <dt-bindings/clock/sun8i-a23-a33-ccu.h> |
| 49 | #include <dt-bindings/reset/sun8i-a23-a33-ccu.h> |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 50 | |
| 51 | / { |
| 52 | interrupt-parent = <&gic>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 53 | #address-cells = <1>; |
| 54 | #size-cells = <1>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 55 | |
| 56 | chosen { |
| 57 | #address-cells = <1>; |
| 58 | #size-cells = <1>; |
| 59 | ranges; |
| 60 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 61 | simplefb_lcd: framebuffer-lcd0 { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 62 | compatible = "allwinner,simple-framebuffer", |
| 63 | "simple-framebuffer"; |
| 64 | allwinner,pipeline = "de_be0-lcd0"; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 65 | clocks = <&ccu CLK_BUS_LCD>, <&ccu CLK_BUS_DE_BE>, |
| 66 | <&ccu CLK_LCD_CH0>, <&ccu CLK_DE_BE>, |
| 67 | <&ccu CLK_DRAM_DE_BE>, <&ccu CLK_DRC>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 68 | status = "disabled"; |
| 69 | }; |
| 70 | }; |
| 71 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 72 | de: display-engine { |
| 73 | /* compatible gets set in SoC specific dtsi file */ |
| 74 | allwinner,pipelines = <&fe0>; |
| 75 | status = "disabled"; |
| 76 | }; |
| 77 | |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 78 | timer { |
| 79 | compatible = "arm,armv7-timer"; |
| 80 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 81 | <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 82 | <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 83 | <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; |
| 84 | clock-frequency = <24000000>; |
| 85 | arm,cpu-registers-not-fw-configured; |
| 86 | }; |
| 87 | |
| 88 | cpus { |
| 89 | enable-method = "allwinner,sun8i-a23"; |
| 90 | #address-cells = <1>; |
| 91 | #size-cells = <0>; |
| 92 | |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 93 | cpu0: cpu@0 { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 94 | compatible = "arm,cortex-a7"; |
| 95 | device_type = "cpu"; |
| 96 | reg = <0>; |
| 97 | }; |
| 98 | |
| 99 | cpu@1 { |
| 100 | compatible = "arm,cortex-a7"; |
| 101 | device_type = "cpu"; |
| 102 | reg = <1>; |
| 103 | }; |
| 104 | }; |
| 105 | |
| 106 | clocks { |
| 107 | #address-cells = <1>; |
| 108 | #size-cells = <1>; |
| 109 | ranges; |
| 110 | |
| 111 | osc24M: osc24M_clk { |
| 112 | #clock-cells = <0>; |
| 113 | compatible = "fixed-clock"; |
| 114 | clock-frequency = <24000000>; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 115 | clock-accuracy = <50000>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 116 | clock-output-names = "osc24M"; |
| 117 | }; |
| 118 | |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 119 | ext_osc32k: ext_osc32k_clk { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 120 | #clock-cells = <0>; |
| 121 | compatible = "fixed-clock"; |
| 122 | clock-frequency = <32768>; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 123 | clock-accuracy = <50000>; |
| 124 | clock-output-names = "ext-osc32k"; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 125 | }; |
| 126 | }; |
| 127 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 128 | soc { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 129 | compatible = "simple-bus"; |
| 130 | #address-cells = <1>; |
| 131 | #size-cells = <1>; |
| 132 | ranges; |
| 133 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 134 | system-control@1c00000 { |
| 135 | compatible = "allwinner,sun8i-a23-system-control"; |
| 136 | reg = <0x01c00000 0x30>; |
| 137 | #address-cells = <1>; |
| 138 | #size-cells = <1>; |
| 139 | ranges; |
| 140 | |
| 141 | sram_c: sram@1d00000 { |
| 142 | compatible = "mmio-sram"; |
| 143 | reg = <0x01d00000 0x80000>; |
| 144 | #address-cells = <1>; |
| 145 | #size-cells = <1>; |
| 146 | ranges = <0 0x01d00000 0x80000>; |
| 147 | |
| 148 | ve_sram: sram-section@0 { |
| 149 | compatible = "allwinner,sun8i-a23-sram-c1", |
| 150 | "allwinner,sun4i-a10-sram-c1"; |
| 151 | reg = <0x000000 0x80000>; |
| 152 | }; |
| 153 | }; |
| 154 | }; |
| 155 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 156 | dma: dma-controller@1c02000 { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 157 | compatible = "allwinner,sun8i-a23-dma"; |
| 158 | reg = <0x01c02000 0x1000>; |
| 159 | interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 160 | clocks = <&ccu CLK_BUS_DMA>; |
| 161 | resets = <&ccu RST_BUS_DMA>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 162 | #dma-cells = <1>; |
| 163 | }; |
| 164 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 165 | nfc: nand-controller@1c03000 { |
| 166 | compatible = "allwinner,sun8i-a23-nand-controller"; |
| 167 | reg = <0x01c03000 0x1000>; |
| 168 | interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>; |
| 169 | clocks = <&ccu CLK_BUS_NAND>, <&ccu CLK_NAND>; |
| 170 | clock-names = "ahb", "mod"; |
| 171 | resets = <&ccu RST_BUS_NAND>; |
| 172 | reset-names = "ahb"; |
| 173 | dmas = <&dma 5>; |
| 174 | dma-names = "rxtx"; |
| 175 | pinctrl-names = "default"; |
| 176 | pinctrl-0 = <&nand_pins &nand_cs0_pin &nand_rb0_pin>; |
| 177 | status = "disabled"; |
| 178 | #address-cells = <1>; |
| 179 | #size-cells = <0>; |
| 180 | }; |
| 181 | |
| 182 | tcon0: lcd-controller@1c0c000 { |
| 183 | /* compatible gets set in SoC specific dtsi file */ |
| 184 | reg = <0x01c0c000 0x1000>; |
| 185 | interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; |
| 186 | dmas = <&dma 12>; |
| 187 | clocks = <&ccu CLK_BUS_LCD>, |
| 188 | <&ccu CLK_LCD_CH0>, |
| 189 | <&ccu 13>; |
| 190 | clock-names = "ahb", |
| 191 | "tcon-ch0", |
| 192 | "lvds-alt"; |
| 193 | clock-output-names = "tcon-pixel-clock"; |
| 194 | #clock-cells = <0>; |
| 195 | resets = <&ccu RST_BUS_LCD>, |
| 196 | <&ccu RST_BUS_LVDS>; |
| 197 | reset-names = "lcd", |
| 198 | "lvds"; |
| 199 | status = "disabled"; |
| 200 | |
| 201 | ports { |
| 202 | #address-cells = <1>; |
| 203 | #size-cells = <0>; |
| 204 | |
| 205 | tcon0_in: port@0 { |
| 206 | reg = <0>; |
| 207 | |
| 208 | tcon0_in_drc0: endpoint { |
| 209 | remote-endpoint = <&drc0_out_tcon0>; |
| 210 | }; |
| 211 | }; |
| 212 | |
| 213 | tcon0_out: port@1 { |
| 214 | reg = <1>; |
| 215 | }; |
| 216 | }; |
| 217 | }; |
| 218 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 219 | mmc0: mmc@1c0f000 { |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 220 | compatible = "allwinner,sun7i-a20-mmc"; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 221 | reg = <0x01c0f000 0x1000>; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 222 | clocks = <&ccu CLK_BUS_MMC0>, |
| 223 | <&ccu CLK_MMC0>, |
| 224 | <&ccu CLK_MMC0_OUTPUT>, |
| 225 | <&ccu CLK_MMC0_SAMPLE>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 226 | clock-names = "ahb", |
| 227 | "mmc", |
| 228 | "output", |
| 229 | "sample"; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 230 | resets = <&ccu RST_BUS_MMC0>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 231 | reset-names = "ahb"; |
| 232 | interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 233 | pinctrl-names = "default"; |
| 234 | pinctrl-0 = <&mmc0_pins>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 235 | status = "disabled"; |
| 236 | #address-cells = <1>; |
| 237 | #size-cells = <0>; |
| 238 | }; |
| 239 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 240 | mmc1: mmc@1c10000 { |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 241 | compatible = "allwinner,sun7i-a20-mmc"; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 242 | reg = <0x01c10000 0x1000>; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 243 | clocks = <&ccu CLK_BUS_MMC1>, |
| 244 | <&ccu CLK_MMC1>, |
| 245 | <&ccu CLK_MMC1_OUTPUT>, |
| 246 | <&ccu CLK_MMC1_SAMPLE>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 247 | clock-names = "ahb", |
| 248 | "mmc", |
| 249 | "output", |
| 250 | "sample"; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 251 | resets = <&ccu RST_BUS_MMC1>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 252 | reset-names = "ahb"; |
| 253 | interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; |
| 254 | status = "disabled"; |
| 255 | #address-cells = <1>; |
| 256 | #size-cells = <0>; |
| 257 | }; |
| 258 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 259 | mmc2: mmc@1c11000 { |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 260 | compatible = "allwinner,sun7i-a20-mmc"; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 261 | reg = <0x01c11000 0x1000>; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 262 | clocks = <&ccu CLK_BUS_MMC2>, |
| 263 | <&ccu CLK_MMC2>, |
| 264 | <&ccu CLK_MMC2_OUTPUT>, |
| 265 | <&ccu CLK_MMC2_SAMPLE>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 266 | clock-names = "ahb", |
| 267 | "mmc", |
| 268 | "output", |
| 269 | "sample"; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 270 | resets = <&ccu RST_BUS_MMC2>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 271 | reset-names = "ahb"; |
| 272 | interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; |
| 273 | status = "disabled"; |
| 274 | #address-cells = <1>; |
| 275 | #size-cells = <0>; |
| 276 | }; |
| 277 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 278 | usb_otg: usb@1c19000 { |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 279 | /* compatible gets set in SoC specific dtsi file */ |
| 280 | reg = <0x01c19000 0x0400>; |
| 281 | clocks = <&ccu CLK_BUS_OTG>; |
| 282 | resets = <&ccu RST_BUS_OTG>; |
| 283 | interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; |
| 284 | interrupt-names = "mc"; |
| 285 | phys = <&usbphy 0>; |
| 286 | phy-names = "usb"; |
| 287 | extcon = <&usbphy 0>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 288 | dr_mode = "otg"; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 289 | status = "disabled"; |
| 290 | }; |
| 291 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 292 | usbphy: phy@1c19400 { |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 293 | /* |
| 294 | * compatible and address regions get set in |
| 295 | * SoC specific dtsi file |
| 296 | */ |
| 297 | clocks = <&ccu CLK_USB_PHY0>, |
| 298 | <&ccu CLK_USB_PHY1>; |
| 299 | clock-names = "usb0_phy", |
| 300 | "usb1_phy"; |
| 301 | resets = <&ccu RST_USB_PHY0>, |
| 302 | <&ccu RST_USB_PHY1>; |
| 303 | reset-names = "usb0_reset", |
| 304 | "usb1_reset"; |
| 305 | status = "disabled"; |
| 306 | #phy-cells = <1>; |
| 307 | }; |
| 308 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 309 | ehci0: usb@1c1a000 { |
Hans de Goede | 0c86ceb | 2015-06-17 21:16:59 +0200 | [diff] [blame] | 310 | compatible = "allwinner,sun8i-a23-ehci", "generic-ehci"; |
| 311 | reg = <0x01c1a000 0x100>; |
| 312 | interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 313 | clocks = <&ccu CLK_BUS_EHCI>; |
| 314 | resets = <&ccu RST_BUS_EHCI>; |
Hans de Goede | 7d83182 | 2015-08-05 17:39:14 +0200 | [diff] [blame] | 315 | phys = <&usbphy 1>; |
| 316 | phy-names = "usb"; |
Hans de Goede | 0c86ceb | 2015-06-17 21:16:59 +0200 | [diff] [blame] | 317 | status = "disabled"; |
| 318 | }; |
| 319 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 320 | ohci0: usb@1c1a400 { |
Hans de Goede | 0c86ceb | 2015-06-17 21:16:59 +0200 | [diff] [blame] | 321 | compatible = "allwinner,sun8i-a23-ohci", "generic-ohci"; |
| 322 | reg = <0x01c1a400 0x100>; |
| 323 | interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 324 | clocks = <&ccu CLK_BUS_OHCI>, <&ccu CLK_USB_OHCI>; |
| 325 | resets = <&ccu RST_BUS_OHCI>; |
Hans de Goede | 7d83182 | 2015-08-05 17:39:14 +0200 | [diff] [blame] | 326 | phys = <&usbphy 1>; |
| 327 | phy-names = "usb"; |
Hans de Goede | 0c86ceb | 2015-06-17 21:16:59 +0200 | [diff] [blame] | 328 | status = "disabled"; |
| 329 | }; |
| 330 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 331 | ccu: clock@1c20000 { |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 332 | reg = <0x01c20000 0x400>; |
Andre Przywara | fa15e50 | 2022-09-13 00:52:52 +0100 | [diff] [blame^] | 333 | clocks = <&osc24M>, <&rtc CLK_OSC32K>; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 334 | clock-names = "hosc", "losc"; |
| 335 | #clock-cells = <1>; |
| 336 | #reset-cells = <1>; |
| 337 | }; |
| 338 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 339 | pio: pinctrl@1c20800 { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 340 | /* compatible gets set in SoC specific dtsi file */ |
| 341 | reg = <0x01c20800 0x400>; |
| 342 | /* interrupts get set in SoC specific dtsi file */ |
Andre Przywara | fa15e50 | 2022-09-13 00:52:52 +0100 | [diff] [blame^] | 343 | clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, |
| 344 | <&rtc CLK_OSC32K>; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 345 | clock-names = "apb", "hosc", "losc"; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 346 | gpio-controller; |
| 347 | interrupt-controller; |
Hans de Goede | 7d83182 | 2015-08-05 17:39:14 +0200 | [diff] [blame] | 348 | #interrupt-cells = <3>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 349 | #gpio-cells = <3>; |
| 350 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 351 | i2c0_pins: i2c0-pins { |
| 352 | pins = "PH2", "PH3"; |
| 353 | function = "i2c0"; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 354 | }; |
| 355 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 356 | i2c1_pins: i2c1-pins { |
| 357 | pins = "PH4", "PH5"; |
| 358 | function = "i2c1"; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 359 | }; |
| 360 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 361 | i2c2_pins: i2c2-pins { |
| 362 | pins = "PE12", "PE13"; |
| 363 | function = "i2c2"; |
| 364 | }; |
| 365 | |
| 366 | lcd_rgb666_pins: lcd-rgb666-pins { |
| 367 | pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", |
| 368 | "PD10", "PD11", "PD12", "PD13", "PD14", "PD15", |
| 369 | "PD18", "PD19", "PD20", "PD21", "PD22", "PD23", |
| 370 | "PD24", "PD25", "PD26", "PD27"; |
| 371 | function = "lcd0"; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 372 | }; |
| 373 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 374 | mmc0_pins: mmc0-pins { |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 375 | pins = "PF0", "PF1", "PF2", |
| 376 | "PF3", "PF4", "PF5"; |
| 377 | function = "mmc0"; |
| 378 | drive-strength = <30>; |
| 379 | bias-pull-up; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 380 | }; |
| 381 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 382 | mmc1_pg_pins: mmc1-pg-pins { |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 383 | pins = "PG0", "PG1", "PG2", |
| 384 | "PG3", "PG4", "PG5"; |
| 385 | function = "mmc1"; |
| 386 | drive-strength = <30>; |
| 387 | bias-pull-up; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 388 | }; |
| 389 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 390 | mmc2_8bit_pins: mmc2-8bit-pins { |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 391 | pins = "PC5", "PC6", "PC8", |
| 392 | "PC9", "PC10", "PC11", |
| 393 | "PC12", "PC13", "PC14", |
| 394 | "PC15", "PC16"; |
| 395 | function = "mmc2"; |
| 396 | drive-strength = <30>; |
| 397 | bias-pull-up; |
Chen-Yu Tsai | 075567e | 2015-06-23 19:57:26 +0800 | [diff] [blame] | 398 | }; |
| 399 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 400 | nand_pins: nand-pins { |
| 401 | pins = "PC0", "PC1", "PC2", "PC5", |
| 402 | "PC8", "PC9", "PC10", "PC11", |
| 403 | "PC12", "PC13", "PC14", "PC15"; |
| 404 | function = "nand0"; |
| 405 | }; |
| 406 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 407 | nand_cs0_pin: nand-cs0-pin { |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 408 | pins = "PC4"; |
| 409 | function = "nand0"; |
| 410 | bias-pull-up; |
| 411 | }; |
| 412 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 413 | nand_cs1_pin: nand-cs1-pin { |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 414 | pins = "PC3"; |
| 415 | function = "nand0"; |
| 416 | bias-pull-up; |
| 417 | }; |
| 418 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 419 | nand_rb0_pin: nand-rb0-pin { |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 420 | pins = "PC6"; |
| 421 | function = "nand0"; |
| 422 | bias-pull-up; |
| 423 | }; |
| 424 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 425 | nand_rb1_pin: nand-rb1-pin { |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 426 | pins = "PC7"; |
| 427 | function = "nand0"; |
| 428 | bias-pull-up; |
| 429 | }; |
| 430 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 431 | pwm0_pin: pwm0-pin { |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 432 | pins = "PH0"; |
| 433 | function = "pwm0"; |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 434 | }; |
| 435 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 436 | uart0_pf_pins: uart0-pf-pins { |
| 437 | pins = "PF2", "PF4"; |
| 438 | function = "uart0"; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 439 | }; |
| 440 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 441 | uart1_pg_pins: uart1-pg-pins { |
| 442 | pins = "PG6", "PG7"; |
| 443 | function = "uart1"; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 444 | }; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 445 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 446 | uart1_cts_rts_pg_pins: uart1-cts-rts-pg-pins { |
| 447 | pins = "PG8", "PG9"; |
| 448 | function = "uart1"; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 449 | }; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 450 | }; |
| 451 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 452 | timer@1c20c00 { |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 453 | compatible = "allwinner,sun8i-a23-timer"; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 454 | reg = <0x01c20c00 0xa0>; |
| 455 | interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>, |
| 456 | <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>; |
| 457 | clocks = <&osc24M>; |
| 458 | }; |
| 459 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 460 | wdt0: watchdog@1c20ca0 { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 461 | compatible = "allwinner,sun6i-a31-wdt"; |
| 462 | reg = <0x01c20ca0 0x20>; |
| 463 | interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 464 | clocks = <&osc24M>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 465 | }; |
| 466 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 467 | pwm: pwm@1c21400 { |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 468 | compatible = "allwinner,sun7i-a20-pwm"; |
| 469 | reg = <0x01c21400 0xc>; |
| 470 | clocks = <&osc24M>; |
| 471 | #pwm-cells = <3>; |
| 472 | status = "disabled"; |
| 473 | }; |
| 474 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 475 | lradc: lradc@1c22800 { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 476 | compatible = "allwinner,sun4i-a10-lradc-keys"; |
| 477 | reg = <0x01c22800 0x100>; |
| 478 | interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>; |
| 479 | status = "disabled"; |
| 480 | }; |
| 481 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 482 | uart0: serial@1c28000 { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 483 | compatible = "snps,dw-apb-uart"; |
| 484 | reg = <0x01c28000 0x400>; |
| 485 | interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; |
| 486 | reg-shift = <2>; |
| 487 | reg-io-width = <4>; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 488 | clocks = <&ccu CLK_BUS_UART0>; |
| 489 | resets = <&ccu RST_BUS_UART0>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 490 | dmas = <&dma 6>, <&dma 6>; |
| 491 | dma-names = "rx", "tx"; |
| 492 | status = "disabled"; |
| 493 | }; |
| 494 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 495 | uart1: serial@1c28400 { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 496 | compatible = "snps,dw-apb-uart"; |
| 497 | reg = <0x01c28400 0x400>; |
| 498 | interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; |
| 499 | reg-shift = <2>; |
| 500 | reg-io-width = <4>; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 501 | clocks = <&ccu CLK_BUS_UART1>; |
| 502 | resets = <&ccu RST_BUS_UART1>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 503 | dmas = <&dma 7>, <&dma 7>; |
| 504 | dma-names = "rx", "tx"; |
| 505 | status = "disabled"; |
| 506 | }; |
| 507 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 508 | uart2: serial@1c28800 { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 509 | compatible = "snps,dw-apb-uart"; |
| 510 | reg = <0x01c28800 0x400>; |
| 511 | interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; |
| 512 | reg-shift = <2>; |
| 513 | reg-io-width = <4>; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 514 | clocks = <&ccu CLK_BUS_UART2>; |
| 515 | resets = <&ccu RST_BUS_UART2>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 516 | dmas = <&dma 8>, <&dma 8>; |
| 517 | dma-names = "rx", "tx"; |
| 518 | status = "disabled"; |
| 519 | }; |
| 520 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 521 | uart3: serial@1c28c00 { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 522 | compatible = "snps,dw-apb-uart"; |
| 523 | reg = <0x01c28c00 0x400>; |
| 524 | interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; |
| 525 | reg-shift = <2>; |
| 526 | reg-io-width = <4>; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 527 | clocks = <&ccu CLK_BUS_UART3>; |
| 528 | resets = <&ccu RST_BUS_UART3>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 529 | dmas = <&dma 9>, <&dma 9>; |
| 530 | dma-names = "rx", "tx"; |
| 531 | status = "disabled"; |
| 532 | }; |
| 533 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 534 | uart4: serial@1c29000 { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 535 | compatible = "snps,dw-apb-uart"; |
| 536 | reg = <0x01c29000 0x400>; |
| 537 | interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; |
| 538 | reg-shift = <2>; |
| 539 | reg-io-width = <4>; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 540 | clocks = <&ccu CLK_BUS_UART4>; |
| 541 | resets = <&ccu RST_BUS_UART4>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 542 | dmas = <&dma 10>, <&dma 10>; |
| 543 | dma-names = "rx", "tx"; |
| 544 | status = "disabled"; |
| 545 | }; |
| 546 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 547 | i2c0: i2c@1c2ac00 { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 548 | compatible = "allwinner,sun6i-a31-i2c"; |
| 549 | reg = <0x01c2ac00 0x400>; |
| 550 | interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 551 | clocks = <&ccu CLK_BUS_I2C0>; |
| 552 | resets = <&ccu RST_BUS_I2C0>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 553 | pinctrl-names = "default"; |
| 554 | pinctrl-0 = <&i2c0_pins>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 555 | status = "disabled"; |
| 556 | #address-cells = <1>; |
| 557 | #size-cells = <0>; |
| 558 | }; |
| 559 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 560 | i2c1: i2c@1c2b000 { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 561 | compatible = "allwinner,sun6i-a31-i2c"; |
| 562 | reg = <0x01c2b000 0x400>; |
| 563 | interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 564 | clocks = <&ccu CLK_BUS_I2C1>; |
| 565 | resets = <&ccu RST_BUS_I2C1>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 566 | pinctrl-names = "default"; |
| 567 | pinctrl-0 = <&i2c1_pins>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 568 | status = "disabled"; |
| 569 | #address-cells = <1>; |
| 570 | #size-cells = <0>; |
| 571 | }; |
| 572 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 573 | i2c2: i2c@1c2b400 { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 574 | compatible = "allwinner,sun6i-a31-i2c"; |
| 575 | reg = <0x01c2b400 0x400>; |
| 576 | interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 577 | clocks = <&ccu CLK_BUS_I2C2>; |
| 578 | resets = <&ccu RST_BUS_I2C2>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 579 | pinctrl-names = "default"; |
| 580 | pinctrl-0 = <&i2c2_pins>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 581 | status = "disabled"; |
| 582 | #address-cells = <1>; |
| 583 | #size-cells = <0>; |
| 584 | }; |
| 585 | |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 586 | mali: gpu@1c40000 { |
| 587 | compatible = "allwinner,sun8i-a23-mali", |
| 588 | "allwinner,sun7i-a20-mali", "arm,mali-400"; |
| 589 | reg = <0x01c40000 0x10000>; |
| 590 | interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>, |
| 591 | <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>, |
| 592 | <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>, |
| 593 | <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>, |
| 594 | <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>, |
| 595 | <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>, |
| 596 | <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>; |
| 597 | interrupt-names = "gp", |
| 598 | "gpmmu", |
| 599 | "pp0", |
| 600 | "ppmmu0", |
| 601 | "pp1", |
| 602 | "ppmmu1", |
| 603 | "pmu"; |
| 604 | clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>; |
| 605 | clock-names = "bus", "core"; |
| 606 | resets = <&ccu RST_BUS_GPU>; |
| 607 | #cooling-cells = <2>; |
| 608 | |
| 609 | assigned-clocks = <&ccu CLK_GPU>; |
| 610 | assigned-clock-rates = <384000000>; |
| 611 | }; |
| 612 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 613 | gic: interrupt-controller@1c81000 { |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 614 | compatible = "arm,gic-400"; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 615 | reg = <0x01c81000 0x1000>, |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 616 | <0x01c82000 0x2000>, |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 617 | <0x01c84000 0x2000>, |
| 618 | <0x01c86000 0x2000>; |
| 619 | interrupt-controller; |
| 620 | #interrupt-cells = <3>; |
| 621 | interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; |
| 622 | }; |
| 623 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 624 | fe0: display-frontend@1e00000 { |
| 625 | /* compatible gets set in SoC specific dtsi file */ |
| 626 | reg = <0x01e00000 0x20000>; |
| 627 | interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>; |
| 628 | clocks = <&ccu CLK_BUS_DE_FE>, <&ccu CLK_DE_FE>, |
| 629 | <&ccu CLK_DRAM_DE_FE>; |
| 630 | clock-names = "ahb", "mod", |
| 631 | "ram"; |
| 632 | resets = <&ccu RST_BUS_DE_FE>; |
| 633 | |
| 634 | ports { |
| 635 | #address-cells = <1>; |
| 636 | #size-cells = <0>; |
| 637 | |
| 638 | fe0_out: port@1 { |
| 639 | reg = <1>; |
| 640 | |
| 641 | fe0_out_be0: endpoint { |
| 642 | remote-endpoint = <&be0_in_fe0>; |
| 643 | }; |
| 644 | }; |
| 645 | }; |
| 646 | }; |
| 647 | |
| 648 | be0: display-backend@1e60000 { |
| 649 | /* compatible gets set in SoC specific dtsi file */ |
| 650 | reg = <0x01e60000 0x10000>; |
| 651 | interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>; |
| 652 | clocks = <&ccu CLK_BUS_DE_BE>, <&ccu CLK_DE_BE>, |
| 653 | <&ccu CLK_DRAM_DE_BE>; |
| 654 | clock-names = "ahb", "mod", |
| 655 | "ram"; |
| 656 | resets = <&ccu RST_BUS_DE_BE>; |
| 657 | |
| 658 | ports { |
| 659 | #address-cells = <1>; |
| 660 | #size-cells = <0>; |
| 661 | |
| 662 | be0_in: port@0 { |
| 663 | reg = <0>; |
| 664 | |
| 665 | be0_in_fe0: endpoint { |
| 666 | remote-endpoint = <&fe0_out_be0>; |
| 667 | }; |
| 668 | }; |
| 669 | |
| 670 | be0_out: port@1 { |
| 671 | reg = <1>; |
| 672 | |
| 673 | be0_out_drc0: endpoint { |
| 674 | remote-endpoint = <&drc0_in_be0>; |
| 675 | }; |
| 676 | }; |
| 677 | }; |
| 678 | }; |
| 679 | |
| 680 | drc0: drc@1e70000 { |
| 681 | /* compatible gets set in SoC specific dtsi file */ |
| 682 | reg = <0x01e70000 0x10000>; |
| 683 | interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>; |
| 684 | clocks = <&ccu CLK_BUS_DRC>, <&ccu CLK_DRC>, |
| 685 | <&ccu CLK_DRAM_DRC>; |
| 686 | clock-names = "ahb", "mod", "ram"; |
| 687 | resets = <&ccu RST_BUS_DRC>; |
| 688 | |
| 689 | ports { |
| 690 | #address-cells = <1>; |
| 691 | #size-cells = <0>; |
| 692 | |
| 693 | drc0_in: port@0 { |
| 694 | reg = <0>; |
| 695 | |
| 696 | drc0_in_be0: endpoint { |
| 697 | remote-endpoint = <&be0_out_drc0>; |
| 698 | }; |
| 699 | }; |
| 700 | |
| 701 | drc0_out: port@1 { |
| 702 | reg = <1>; |
| 703 | |
| 704 | drc0_out_tcon0: endpoint { |
| 705 | remote-endpoint = <&tcon0_in_drc0>; |
| 706 | }; |
| 707 | }; |
| 708 | }; |
| 709 | }; |
| 710 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 711 | rtc: rtc@1f00000 { |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 712 | compatible = "allwinner,sun8i-a23-rtc"; |
| 713 | reg = <0x01f00000 0x400>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 714 | interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>, |
| 715 | <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 716 | clock-output-names = "osc32k", "osc32k-out"; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 717 | clocks = <&ext_osc32k>; |
| 718 | #clock-cells = <1>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 719 | }; |
| 720 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 721 | r_intc: interrupt-controller@1f00c00 { |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 722 | compatible = "allwinner,sun6i-a31-r-intc"; |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 723 | interrupt-controller; |
| 724 | #interrupt-cells = <2>; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 725 | reg = <0x01f00c00 0x400>; |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 726 | interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; |
| 727 | }; |
| 728 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 729 | prcm@1f01400 { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 730 | compatible = "allwinner,sun8i-a23-prcm"; |
| 731 | reg = <0x01f01400 0x200>; |
| 732 | |
| 733 | ar100: ar100_clk { |
| 734 | compatible = "fixed-factor-clock"; |
| 735 | #clock-cells = <0>; |
| 736 | clock-div = <1>; |
| 737 | clock-mult = <1>; |
| 738 | clocks = <&osc24M>; |
| 739 | clock-output-names = "ar100"; |
| 740 | }; |
| 741 | |
| 742 | ahb0: ahb0_clk { |
| 743 | compatible = "fixed-factor-clock"; |
| 744 | #clock-cells = <0>; |
| 745 | clock-div = <1>; |
| 746 | clock-mult = <1>; |
| 747 | clocks = <&ar100>; |
| 748 | clock-output-names = "ahb0"; |
| 749 | }; |
| 750 | |
| 751 | apb0: apb0_clk { |
| 752 | compatible = "allwinner,sun8i-a23-apb0-clk"; |
| 753 | #clock-cells = <0>; |
| 754 | clocks = <&ahb0>; |
| 755 | clock-output-names = "apb0"; |
| 756 | }; |
| 757 | |
| 758 | apb0_gates: apb0_gates_clk { |
| 759 | compatible = "allwinner,sun8i-a23-apb0-gates-clk"; |
| 760 | #clock-cells = <1>; |
| 761 | clocks = <&apb0>; |
| 762 | clock-output-names = "apb0_pio", "apb0_timer", |
| 763 | "apb0_rsb", "apb0_uart", |
| 764 | "apb0_i2c"; |
| 765 | }; |
| 766 | |
| 767 | apb0_rst: apb0_rst { |
| 768 | compatible = "allwinner,sun6i-a31-clock-reset"; |
| 769 | #reset-cells = <1>; |
| 770 | }; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 771 | |
| 772 | codec_analog: codec-analog { |
| 773 | compatible = "allwinner,sun8i-a23-codec-analog"; |
| 774 | }; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 775 | }; |
| 776 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 777 | cpucfg@1f01c00 { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 778 | compatible = "allwinner,sun8i-a23-cpuconfig"; |
| 779 | reg = <0x01f01c00 0x300>; |
| 780 | }; |
| 781 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 782 | r_uart: serial@1f02800 { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 783 | compatible = "snps,dw-apb-uart"; |
| 784 | reg = <0x01f02800 0x400>; |
| 785 | interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>; |
| 786 | reg-shift = <2>; |
| 787 | reg-io-width = <4>; |
| 788 | clocks = <&apb0_gates 4>; |
| 789 | resets = <&apb0_rst 4>; |
| 790 | status = "disabled"; |
| 791 | }; |
| 792 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 793 | r_i2c: i2c@1f02400 { |
| 794 | compatible = "allwinner,sun8i-a23-i2c", |
| 795 | "allwinner,sun6i-a31-i2c"; |
| 796 | reg = <0x01f02400 0x400>; |
| 797 | interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>; |
| 798 | pinctrl-names = "default"; |
| 799 | pinctrl-0 = <&r_i2c_pins>; |
| 800 | clocks = <&apb0_gates 6>; |
| 801 | resets = <&apb0_rst 6>; |
| 802 | status = "disabled"; |
| 803 | #address-cells = <1>; |
| 804 | #size-cells = <0>; |
| 805 | }; |
| 806 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 807 | r_pio: pinctrl@1f02c00 { |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 808 | compatible = "allwinner,sun8i-a23-r-pinctrl"; |
| 809 | reg = <0x01f02c00 0x400>; |
| 810 | interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>; |
Andre Przywara | fa15e50 | 2022-09-13 00:52:52 +0100 | [diff] [blame^] | 811 | clocks = <&apb0_gates 0>, <&osc24M>, <&rtc CLK_OSC32K>; |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 812 | clock-names = "apb", "hosc", "losc"; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 813 | gpio-controller; |
| 814 | interrupt-controller; |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 815 | #interrupt-cells = <3>; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 816 | #gpio-cells = <3>; |
| 817 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 818 | r_i2c_pins: r-i2c-pins { |
| 819 | pins = "PL0", "PL1"; |
| 820 | function = "s_i2c"; |
| 821 | bias-pull-up; |
| 822 | }; |
| 823 | |
| 824 | r_rsb_pins: r-rsb-pins { |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 825 | pins = "PL0", "PL1"; |
| 826 | function = "s_rsb"; |
| 827 | drive-strength = <20>; |
| 828 | bias-pull-up; |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 829 | }; |
| 830 | |
Samuel Holland | 8d6fe61 | 2022-04-27 15:31:24 -0500 | [diff] [blame] | 831 | r_uart_pins_a: r-uart-pins { |
Maxime Ripard | cacb69f | 2017-09-05 20:59:04 +0200 | [diff] [blame] | 832 | pins = "PL2", "PL3"; |
| 833 | function = "s_uart"; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 834 | }; |
| 835 | }; |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 836 | |
Jagan Teki | 72e9498 | 2018-08-05 00:40:11 +0530 | [diff] [blame] | 837 | r_rsb: rsb@1f03400 { |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 838 | compatible = "allwinner,sun8i-a23-rsb"; |
| 839 | reg = <0x01f03400 0x400>; |
| 840 | interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; |
| 841 | clocks = <&apb0_gates 3>; |
| 842 | clock-frequency = <3000000>; |
| 843 | resets = <&apb0_rst 3>; |
| 844 | pinctrl-names = "default"; |
| 845 | pinctrl-0 = <&r_rsb_pins>; |
| 846 | status = "disabled"; |
| 847 | #address-cells = <1>; |
| 848 | #size-cells = <0>; |
| 849 | }; |
Hans de Goede | 6ef1be3 | 2015-06-02 15:53:40 +0200 | [diff] [blame] | 850 | }; |
| 851 | }; |