Clément Péron | 012af55 | 2019-12-09 19:20:22 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
Clément Péron | cabbaed7 | 2019-12-14 14:26:42 +0100 | [diff] [blame] | 2 | // Copyright (C) 2017 Icenowy Zheng <icenowy@aosc.io> |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 3 | |
| 4 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
Icenowy Zheng | 95beb93 | 2018-04-03 21:40:24 +0800 | [diff] [blame] | 5 | #include <dt-bindings/clock/sun50i-h6-ccu.h> |
Chen-Yu Tsai | de2b555 | 2018-07-13 00:04:51 +0800 | [diff] [blame] | 6 | #include <dt-bindings/clock/sun50i-h6-r-ccu.h> |
Jernej Skrabec | 209065c | 2018-11-04 19:27:04 +0100 | [diff] [blame] | 7 | #include <dt-bindings/clock/sun8i-de2.h> |
| 8 | #include <dt-bindings/clock/sun8i-tcon-top.h> |
Icenowy Zheng | 95beb93 | 2018-04-03 21:40:24 +0800 | [diff] [blame] | 9 | #include <dt-bindings/reset/sun50i-h6-ccu.h> |
Chen-Yu Tsai | de2b555 | 2018-07-13 00:04:51 +0800 | [diff] [blame] | 10 | #include <dt-bindings/reset/sun50i-h6-r-ccu.h> |
Jernej Skrabec | 209065c | 2018-11-04 19:27:04 +0100 | [diff] [blame] | 11 | #include <dt-bindings/reset/sun8i-de2.h> |
Ondrej Jirman | d7cfb66 | 2019-12-19 09:28:22 -0800 | [diff] [blame] | 12 | #include <dt-bindings/thermal/thermal.h> |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 13 | |
| 14 | / { |
| 15 | interrupt-parent = <&gic>; |
| 16 | #address-cells = <1>; |
| 17 | #size-cells = <1>; |
| 18 | |
| 19 | cpus { |
| 20 | #address-cells = <1>; |
| 21 | #size-cells = <0>; |
| 22 | |
| 23 | cpu0: cpu@0 { |
Rob Herring | 31af04c | 2019-01-14 11:45:33 -0600 | [diff] [blame] | 24 | compatible = "arm,cortex-a53"; |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 25 | device_type = "cpu"; |
| 26 | reg = <0>; |
| 27 | enable-method = "psci"; |
Yangtao Li | 8a3a953 | 2020-04-20 15:00:13 +0200 | [diff] [blame^] | 28 | clocks = <&ccu CLK_CPUX>; |
| 29 | clock-latency-ns = <244144>; /* 8 32k periods */ |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 30 | }; |
| 31 | |
| 32 | cpu1: cpu@1 { |
Rob Herring | 31af04c | 2019-01-14 11:45:33 -0600 | [diff] [blame] | 33 | compatible = "arm,cortex-a53"; |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 34 | device_type = "cpu"; |
| 35 | reg = <1>; |
| 36 | enable-method = "psci"; |
Yangtao Li | 8a3a953 | 2020-04-20 15:00:13 +0200 | [diff] [blame^] | 37 | clocks = <&ccu CLK_CPUX>; |
| 38 | clock-latency-ns = <244144>; /* 8 32k periods */ |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 39 | }; |
| 40 | |
| 41 | cpu2: cpu@2 { |
Rob Herring | 31af04c | 2019-01-14 11:45:33 -0600 | [diff] [blame] | 42 | compatible = "arm,cortex-a53"; |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 43 | device_type = "cpu"; |
| 44 | reg = <2>; |
| 45 | enable-method = "psci"; |
Yangtao Li | 8a3a953 | 2020-04-20 15:00:13 +0200 | [diff] [blame^] | 46 | clocks = <&ccu CLK_CPUX>; |
| 47 | clock-latency-ns = <244144>; /* 8 32k periods */ |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 48 | }; |
| 49 | |
| 50 | cpu3: cpu@3 { |
Rob Herring | 31af04c | 2019-01-14 11:45:33 -0600 | [diff] [blame] | 51 | compatible = "arm,cortex-a53"; |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 52 | device_type = "cpu"; |
| 53 | reg = <3>; |
| 54 | enable-method = "psci"; |
Yangtao Li | 8a3a953 | 2020-04-20 15:00:13 +0200 | [diff] [blame^] | 55 | clocks = <&ccu CLK_CPUX>; |
| 56 | clock-latency-ns = <244144>; /* 8 32k periods */ |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 57 | }; |
| 58 | }; |
| 59 | |
Jernej Skrabec | 209065c | 2018-11-04 19:27:04 +0100 | [diff] [blame] | 60 | de: display-engine { |
| 61 | compatible = "allwinner,sun50i-h6-display-engine"; |
| 62 | allwinner,pipelines = <&mixer0>; |
| 63 | status = "disabled"; |
| 64 | }; |
| 65 | |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 66 | osc24M: osc24M_clk { |
| 67 | #clock-cells = <0>; |
| 68 | compatible = "fixed-clock"; |
| 69 | clock-frequency = <24000000>; |
| 70 | clock-output-names = "osc24M"; |
| 71 | }; |
| 72 | |
Andre Przywara | 7aa9b9e | 2019-11-21 01:18:33 +0000 | [diff] [blame] | 73 | pmu { |
Maxime Ripard | 4c7eeb9 | 2020-02-10 10:56:00 +0100 | [diff] [blame] | 74 | compatible = "arm,cortex-a53-pmu"; |
Andre Przywara | 7aa9b9e | 2019-11-21 01:18:33 +0000 | [diff] [blame] | 75 | interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>, |
| 76 | <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>, |
| 77 | <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>, |
| 78 | <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>; |
| 79 | interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; |
| 80 | }; |
| 81 | |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 82 | psci { |
| 83 | compatible = "arm,psci-0.2"; |
| 84 | method = "smc"; |
| 85 | }; |
| 86 | |
| 87 | timer { |
| 88 | compatible = "arm,armv8-timer"; |
| 89 | interrupts = <GIC_PPI 13 |
| 90 | (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, |
| 91 | <GIC_PPI 14 |
| 92 | (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, |
| 93 | <GIC_PPI 11 |
| 94 | (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, |
| 95 | <GIC_PPI 10 |
| 96 | (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; |
| 97 | }; |
| 98 | |
| 99 | soc { |
| 100 | compatible = "simple-bus"; |
| 101 | #address-cells = <1>; |
| 102 | #size-cells = <1>; |
| 103 | ranges; |
| 104 | |
Maxime Ripard | 275b631 | 2019-04-16 10:57:46 +0200 | [diff] [blame] | 105 | bus@1000000 { |
Jernej Skrabec | 209065c | 2018-11-04 19:27:04 +0100 | [diff] [blame] | 106 | compatible = "allwinner,sun50i-h6-de3", |
| 107 | "allwinner,sun50i-a64-de2"; |
| 108 | reg = <0x1000000 0x400000>; |
| 109 | allwinner,sram = <&de2_sram 1>; |
| 110 | #address-cells = <1>; |
| 111 | #size-cells = <1>; |
| 112 | ranges = <0 0x1000000 0x400000>; |
| 113 | |
| 114 | display_clocks: clock@0 { |
| 115 | compatible = "allwinner,sun50i-h6-de3-clk"; |
| 116 | reg = <0x0 0x10000>; |
| 117 | clocks = <&ccu CLK_DE>, |
| 118 | <&ccu CLK_BUS_DE>; |
| 119 | clock-names = "mod", |
| 120 | "bus"; |
| 121 | resets = <&ccu RST_BUS_DE>; |
| 122 | #clock-cells = <1>; |
| 123 | #reset-cells = <1>; |
| 124 | }; |
| 125 | |
| 126 | mixer0: mixer@100000 { |
| 127 | compatible = "allwinner,sun50i-h6-de3-mixer-0"; |
| 128 | reg = <0x100000 0x100000>; |
| 129 | clocks = <&display_clocks CLK_BUS_MIXER0>, |
| 130 | <&display_clocks CLK_MIXER0>; |
| 131 | clock-names = "bus", |
| 132 | "mod"; |
| 133 | resets = <&display_clocks RST_MIXER0>; |
| 134 | |
| 135 | ports { |
| 136 | #address-cells = <1>; |
| 137 | #size-cells = <0>; |
| 138 | |
| 139 | mixer0_out: port@1 { |
| 140 | reg = <1>; |
| 141 | |
| 142 | mixer0_out_tcon_top_mixer0: endpoint { |
| 143 | remote-endpoint = <&tcon_top_mixer0_in_mixer0>; |
| 144 | }; |
| 145 | }; |
| 146 | }; |
| 147 | }; |
| 148 | }; |
| 149 | |
Jernej Skrabec | b542570 | 2019-01-28 21:55:04 +0100 | [diff] [blame] | 150 | video-codec@1c0e000 { |
| 151 | compatible = "allwinner,sun50i-h6-video-engine"; |
| 152 | reg = <0x01c0e000 0x2000>; |
| 153 | clocks = <&ccu CLK_BUS_VE>, <&ccu CLK_VE>, |
| 154 | <&ccu CLK_MBUS_VE>; |
| 155 | clock-names = "ahb", "mod", "ram"; |
| 156 | resets = <&ccu RST_BUS_VE>; |
| 157 | interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>; |
| 158 | allwinner,sram = <&ve_sram 1>; |
| 159 | }; |
| 160 | |
Clément Péron | 4acc24b | 2019-10-30 16:07:41 +0100 | [diff] [blame] | 161 | gpu: gpu@1800000 { |
| 162 | compatible = "allwinner,sun50i-h6-mali", |
| 163 | "arm,mali-t720"; |
| 164 | reg = <0x01800000 0x4000>; |
| 165 | interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>, |
| 166 | <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>, |
| 167 | <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>; |
| 168 | interrupt-names = "job", "mmu", "gpu"; |
| 169 | clocks = <&ccu CLK_GPU>, <&ccu CLK_BUS_GPU>; |
| 170 | clock-names = "core", "bus"; |
| 171 | resets = <&ccu RST_BUS_GPU>; |
| 172 | status = "disabled"; |
| 173 | }; |
| 174 | |
Corentin Labbe | 709b86f | 2019-10-23 22:05:10 +0200 | [diff] [blame] | 175 | crypto: crypto@1904000 { |
| 176 | compatible = "allwinner,sun50i-h6-crypto"; |
| 177 | reg = <0x01904000 0x1000>; |
| 178 | interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>; |
| 179 | clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>, <&ccu CLK_MBUS_CE>; |
| 180 | clock-names = "bus", "mod", "ram"; |
| 181 | resets = <&ccu RST_BUS_CE>; |
| 182 | }; |
| 183 | |
Icenowy Zheng | b2ad66f | 2018-09-02 09:26:18 +0200 | [diff] [blame] | 184 | syscon: syscon@3000000 { |
| 185 | compatible = "allwinner,sun50i-h6-system-control", |
| 186 | "allwinner,sun50i-a64-system-control"; |
| 187 | reg = <0x03000000 0x1000>; |
| 188 | #address-cells = <1>; |
| 189 | #size-cells = <1>; |
| 190 | ranges; |
| 191 | |
| 192 | sram_c: sram@28000 { |
| 193 | compatible = "mmio-sram"; |
| 194 | reg = <0x00028000 0x1e000>; |
| 195 | #address-cells = <1>; |
| 196 | #size-cells = <1>; |
| 197 | ranges = <0 0x00028000 0x1e000>; |
| 198 | |
| 199 | de2_sram: sram-section@0 { |
| 200 | compatible = "allwinner,sun50i-h6-sram-c", |
| 201 | "allwinner,sun50i-a64-sram-c"; |
| 202 | reg = <0x0000 0x1e000>; |
| 203 | }; |
| 204 | }; |
Jernej Skrabec | 24dd8ae | 2019-01-28 21:55:03 +0100 | [diff] [blame] | 205 | |
| 206 | sram_c1: sram@1a00000 { |
| 207 | compatible = "mmio-sram"; |
| 208 | reg = <0x01a00000 0x200000>; |
| 209 | #address-cells = <1>; |
| 210 | #size-cells = <1>; |
| 211 | ranges = <0 0x01a00000 0x200000>; |
| 212 | |
| 213 | ve_sram: sram-section@0 { |
| 214 | compatible = "allwinner,sun50i-h6-sram-c1", |
| 215 | "allwinner,sun4i-a10-sram-c1"; |
| 216 | reg = <0x000000 0x200000>; |
| 217 | }; |
| 218 | }; |
Icenowy Zheng | b2ad66f | 2018-09-02 09:26:18 +0200 | [diff] [blame] | 219 | }; |
| 220 | |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 221 | ccu: clock@3001000 { |
| 222 | compatible = "allwinner,sun50i-h6-ccu"; |
| 223 | reg = <0x03001000 0x1000>; |
Ondrej Jirman | 4cdc12a | 2019-08-20 17:19:34 +0200 | [diff] [blame] | 224 | clocks = <&osc24M>, <&rtc 0>, <&rtc 2>; |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 225 | clock-names = "hosc", "losc", "iosc"; |
| 226 | #clock-cells = <1>; |
| 227 | #reset-cells = <1>; |
| 228 | }; |
| 229 | |
Jernej Skrabec | 9164665 | 2019-06-11 23:40:55 +0200 | [diff] [blame] | 230 | dma: dma-controller@3002000 { |
| 231 | compatible = "allwinner,sun50i-h6-dma"; |
| 232 | reg = <0x03002000 0x1000>; |
| 233 | interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>; |
| 234 | clocks = <&ccu CLK_BUS_DMA>, <&ccu CLK_MBUS_DMA>; |
| 235 | clock-names = "bus", "mbus"; |
| 236 | dma-channels = <16>; |
| 237 | dma-requests = <46>; |
| 238 | resets = <&ccu RST_BUS_DMA>; |
| 239 | #dma-cells = <1>; |
| 240 | }; |
| 241 | |
Samuel Holland | e7d5260 | 2020-02-22 22:08:53 -0600 | [diff] [blame] | 242 | msgbox: mailbox@3003000 { |
| 243 | compatible = "allwinner,sun50i-h6-msgbox", |
| 244 | "allwinner,sun6i-a31-msgbox"; |
| 245 | reg = <0x03003000 0x1000>; |
| 246 | clocks = <&ccu CLK_BUS_MSGBOX>; |
| 247 | resets = <&ccu RST_BUS_MSGBOX>; |
| 248 | interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>; |
| 249 | #mbox-cells = <1>; |
| 250 | }; |
| 251 | |
Maxime Ripard | 042c805 | 2019-07-22 16:08:17 +0200 | [diff] [blame] | 252 | sid: efuse@3006000 { |
Yangtao Li | fcf041f | 2019-04-04 13:01:46 -0400 | [diff] [blame] | 253 | compatible = "allwinner,sun50i-h6-sid"; |
| 254 | reg = <0x03006000 0x400>; |
Ondrej Jirman | d7cfb66 | 2019-12-19 09:28:22 -0800 | [diff] [blame] | 255 | #address-cells = <1>; |
| 256 | #size-cells = <1>; |
| 257 | |
| 258 | ths_calibration: thermal-sensor-calibration@14 { |
| 259 | reg = <0x14 0x8>; |
| 260 | }; |
Yangtao Li | fcf041f | 2019-04-04 13:01:46 -0400 | [diff] [blame] | 261 | }; |
| 262 | |
Clément Péron | b6cebb1 | 2019-05-23 17:10:48 +0200 | [diff] [blame] | 263 | watchdog: watchdog@30090a0 { |
| 264 | compatible = "allwinner,sun50i-h6-wdt", |
| 265 | "allwinner,sun6i-a31-wdt"; |
| 266 | reg = <0x030090a0 0x20>; |
| 267 | interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 9e1975f | 2019-08-21 16:38:35 +0200 | [diff] [blame] | 268 | clocks = <&osc24M>; |
Clément Péron | b6cebb1 | 2019-05-23 17:10:48 +0200 | [diff] [blame] | 269 | /* Broken on some H6 boards */ |
| 270 | status = "disabled"; |
| 271 | }; |
| 272 | |
Jernej Skrabec | 88432f5 | 2019-11-19 18:53:18 +0100 | [diff] [blame] | 273 | pwm: pwm@300a000 { |
| 274 | compatible = "allwinner,sun50i-h6-pwm"; |
| 275 | reg = <0x0300a000 0x400>; |
| 276 | clocks = <&osc24M>, <&ccu CLK_BUS_PWM>; |
| 277 | clock-names = "mod", "bus"; |
| 278 | resets = <&ccu RST_BUS_PWM>; |
| 279 | #pwm-cells = <3>; |
| 280 | status = "disabled"; |
| 281 | }; |
| 282 | |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 283 | pio: pinctrl@300b000 { |
| 284 | compatible = "allwinner,sun50i-h6-pinctrl"; |
| 285 | reg = <0x0300b000 0x400>; |
| 286 | interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>, |
| 287 | <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>, |
| 288 | <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>, |
| 289 | <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>; |
Ondrej Jirman | 4cdc12a | 2019-08-20 17:19:34 +0200 | [diff] [blame] | 290 | clocks = <&ccu CLK_APB1>, <&osc24M>, <&rtc 0>; |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 291 | clock-names = "apb", "hosc", "losc"; |
| 292 | gpio-controller; |
| 293 | #gpio-cells = <3>; |
| 294 | interrupt-controller; |
| 295 | #interrupt-cells = <3>; |
| 296 | |
Maxime Ripard | 54eac67b | 2019-03-25 14:52:51 +0100 | [diff] [blame] | 297 | ext_rgmii_pins: rgmii-pins { |
Icenowy Zheng | c8ced55 | 2018-11-03 20:32:37 +0800 | [diff] [blame] | 298 | pins = "PD0", "PD1", "PD2", "PD3", "PD4", |
| 299 | "PD5", "PD7", "PD8", "PD9", "PD10", |
| 300 | "PD11", "PD12", "PD13", "PD19", "PD20"; |
| 301 | function = "emac"; |
| 302 | drive-strength = <40>; |
| 303 | }; |
| 304 | |
Jernej Skrabec | 209065c | 2018-11-04 19:27:04 +0100 | [diff] [blame] | 305 | hdmi_pins: hdmi-pins { |
| 306 | pins = "PH8", "PH9", "PH10"; |
| 307 | function = "hdmi"; |
| 308 | }; |
| 309 | |
Bhushan Shah | 89336e1 | 2019-08-16 14:13:09 +0530 | [diff] [blame] | 310 | i2c0_pins: i2c0-pins { |
| 311 | pins = "PD25", "PD26"; |
| 312 | function = "i2c0"; |
| 313 | }; |
| 314 | |
| 315 | i2c1_pins: i2c1-pins { |
| 316 | pins = "PH5", "PH6"; |
| 317 | function = "i2c1"; |
| 318 | }; |
| 319 | |
| 320 | i2c2_pins: i2c2-pins { |
| 321 | pins = "PD23", "PD24"; |
| 322 | function = "i2c2"; |
| 323 | }; |
| 324 | |
Icenowy Zheng | 8f54bd15 | 2018-07-19 12:28:09 +0800 | [diff] [blame] | 325 | mmc0_pins: mmc0-pins { |
| 326 | pins = "PF0", "PF1", "PF2", "PF3", |
| 327 | "PF4", "PF5"; |
| 328 | function = "mmc0"; |
| 329 | drive-strength = <30>; |
| 330 | bias-pull-up; |
| 331 | }; |
| 332 | |
Ondrej Jirman | 7cf875b | 2019-04-13 18:54:18 +0200 | [diff] [blame] | 333 | /omit-if-no-ref/ |
| 334 | mmc1_pins: mmc1-pins { |
| 335 | pins = "PG0", "PG1", "PG2", "PG3", |
| 336 | "PG4", "PG5"; |
| 337 | function = "mmc1"; |
| 338 | drive-strength = <30>; |
| 339 | bias-pull-up; |
| 340 | }; |
| 341 | |
Icenowy Zheng | 8f54bd15 | 2018-07-19 12:28:09 +0800 | [diff] [blame] | 342 | mmc2_pins: mmc2-pins { |
| 343 | pins = "PC1", "PC4", "PC5", "PC6", |
| 344 | "PC7", "PC8", "PC9", "PC10", |
| 345 | "PC11", "PC12", "PC13", "PC14"; |
| 346 | function = "mmc2"; |
| 347 | drive-strength = <30>; |
| 348 | bias-pull-up; |
| 349 | }; |
| 350 | |
Andre Przywara | 30bd02b | 2020-01-16 23:11:46 +0000 | [diff] [blame] | 351 | /omit-if-no-ref/ |
| 352 | spi0_pins: spi0-pins { |
| 353 | pins = "PC0", "PC2", "PC3"; |
| 354 | function = "spi0"; |
| 355 | }; |
| 356 | |
| 357 | /* pin shared with MMC2-CMD (eMMC) */ |
| 358 | /omit-if-no-ref/ |
| 359 | spi0_cs_pin: spi0-cs-pin { |
| 360 | pins = "PC5"; |
| 361 | function = "spi0"; |
| 362 | }; |
| 363 | |
| 364 | /omit-if-no-ref/ |
| 365 | spi1_pins: spi1-pins { |
| 366 | pins = "PH4", "PH5", "PH6"; |
| 367 | function = "spi1"; |
| 368 | }; |
| 369 | |
| 370 | /omit-if-no-ref/ |
| 371 | spi1_cs_pin: spi1-cs-pin { |
| 372 | pins = "PH3"; |
| 373 | function = "spi1"; |
| 374 | }; |
| 375 | |
Clément Péron | f95b598 | 2019-08-12 12:51:14 +0200 | [diff] [blame] | 376 | spdif_tx_pin: spdif-tx-pin { |
| 377 | pins = "PH7"; |
| 378 | function = "spdif"; |
| 379 | }; |
| 380 | |
Maxime Ripard | 54eac67b | 2019-03-25 14:52:51 +0100 | [diff] [blame] | 381 | uart0_ph_pins: uart0-ph-pins { |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 382 | pins = "PH0", "PH1"; |
| 383 | function = "uart0"; |
| 384 | }; |
Ondrej Jirman | cd380e0 | 2019-10-07 22:31:51 +0200 | [diff] [blame] | 385 | |
| 386 | uart1_pins: uart1-pins { |
| 387 | pins = "PG6", "PG7"; |
| 388 | function = "uart1"; |
| 389 | }; |
| 390 | |
| 391 | uart1_rts_cts_pins: uart1-rts-cts-pins { |
| 392 | pins = "PG8", "PG9"; |
| 393 | function = "uart1"; |
| 394 | }; |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 395 | }; |
| 396 | |
Chen-Yu Tsai | 52d9bcb | 2019-01-28 00:39:30 +0800 | [diff] [blame] | 397 | gic: interrupt-controller@3021000 { |
| 398 | compatible = "arm,gic-400"; |
| 399 | reg = <0x03021000 0x1000>, |
| 400 | <0x03022000 0x2000>, |
| 401 | <0x03024000 0x2000>, |
| 402 | <0x03026000 0x2000>; |
| 403 | interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; |
| 404 | interrupt-controller; |
| 405 | #interrupt-cells = <3>; |
| 406 | }; |
| 407 | |
Icenowy Zheng | 8f54bd15 | 2018-07-19 12:28:09 +0800 | [diff] [blame] | 408 | mmc0: mmc@4020000 { |
| 409 | compatible = "allwinner,sun50i-h6-mmc", |
| 410 | "allwinner,sun50i-a64-mmc"; |
| 411 | reg = <0x04020000 0x1000>; |
| 412 | clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>; |
| 413 | clock-names = "ahb", "mmc"; |
| 414 | resets = <&ccu RST_BUS_MMC0>; |
| 415 | reset-names = "ahb"; |
| 416 | interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>; |
Clément Péron | 6ba2e45 | 2019-04-08 17:27:50 +0200 | [diff] [blame] | 417 | pinctrl-names = "default"; |
| 418 | pinctrl-0 = <&mmc0_pins>; |
Icenowy Zheng | 8f54bd15 | 2018-07-19 12:28:09 +0800 | [diff] [blame] | 419 | status = "disabled"; |
| 420 | #address-cells = <1>; |
| 421 | #size-cells = <0>; |
| 422 | }; |
| 423 | |
| 424 | mmc1: mmc@4021000 { |
| 425 | compatible = "allwinner,sun50i-h6-mmc", |
| 426 | "allwinner,sun50i-a64-mmc"; |
| 427 | reg = <0x04021000 0x1000>; |
| 428 | clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>; |
| 429 | clock-names = "ahb", "mmc"; |
| 430 | resets = <&ccu RST_BUS_MMC1>; |
| 431 | reset-names = "ahb"; |
| 432 | interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>; |
Ondrej Jirman | 7cf875b | 2019-04-13 18:54:18 +0200 | [diff] [blame] | 433 | pinctrl-names = "default"; |
| 434 | pinctrl-0 = <&mmc1_pins>; |
Icenowy Zheng | 8f54bd15 | 2018-07-19 12:28:09 +0800 | [diff] [blame] | 435 | status = "disabled"; |
| 436 | #address-cells = <1>; |
| 437 | #size-cells = <0>; |
| 438 | }; |
| 439 | |
| 440 | mmc2: mmc@4022000 { |
| 441 | compatible = "allwinner,sun50i-h6-emmc", |
| 442 | "allwinner,sun50i-a64-emmc"; |
| 443 | reg = <0x04022000 0x1000>; |
| 444 | clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>; |
| 445 | clock-names = "ahb", "mmc"; |
| 446 | resets = <&ccu RST_BUS_MMC2>; |
| 447 | reset-names = "ahb"; |
| 448 | interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; |
Clément Péron | 6ba2e45 | 2019-04-08 17:27:50 +0200 | [diff] [blame] | 449 | pinctrl-names = "default"; |
| 450 | pinctrl-0 = <&mmc2_pins>; |
Icenowy Zheng | 8f54bd15 | 2018-07-19 12:28:09 +0800 | [diff] [blame] | 451 | status = "disabled"; |
| 452 | #address-cells = <1>; |
| 453 | #size-cells = <0>; |
| 454 | }; |
| 455 | |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 456 | uart0: serial@5000000 { |
| 457 | compatible = "snps,dw-apb-uart"; |
| 458 | reg = <0x05000000 0x400>; |
| 459 | interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; |
| 460 | reg-shift = <2>; |
| 461 | reg-io-width = <4>; |
Icenowy Zheng | 95beb93 | 2018-04-03 21:40:24 +0800 | [diff] [blame] | 462 | clocks = <&ccu CLK_BUS_UART0>; |
| 463 | resets = <&ccu RST_BUS_UART0>; |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 464 | status = "disabled"; |
| 465 | }; |
| 466 | |
| 467 | uart1: serial@5000400 { |
| 468 | compatible = "snps,dw-apb-uart"; |
| 469 | reg = <0x05000400 0x400>; |
| 470 | interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; |
| 471 | reg-shift = <2>; |
| 472 | reg-io-width = <4>; |
Icenowy Zheng | 95beb93 | 2018-04-03 21:40:24 +0800 | [diff] [blame] | 473 | clocks = <&ccu CLK_BUS_UART1>; |
| 474 | resets = <&ccu RST_BUS_UART1>; |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 475 | status = "disabled"; |
| 476 | }; |
| 477 | |
| 478 | uart2: serial@5000800 { |
| 479 | compatible = "snps,dw-apb-uart"; |
| 480 | reg = <0x05000800 0x400>; |
| 481 | interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; |
| 482 | reg-shift = <2>; |
| 483 | reg-io-width = <4>; |
Icenowy Zheng | 95beb93 | 2018-04-03 21:40:24 +0800 | [diff] [blame] | 484 | clocks = <&ccu CLK_BUS_UART2>; |
| 485 | resets = <&ccu RST_BUS_UART2>; |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 486 | status = "disabled"; |
| 487 | }; |
| 488 | |
| 489 | uart3: serial@5000c00 { |
| 490 | compatible = "snps,dw-apb-uart"; |
| 491 | reg = <0x05000c00 0x400>; |
| 492 | interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; |
| 493 | reg-shift = <2>; |
| 494 | reg-io-width = <4>; |
Icenowy Zheng | 95beb93 | 2018-04-03 21:40:24 +0800 | [diff] [blame] | 495 | clocks = <&ccu CLK_BUS_UART3>; |
| 496 | resets = <&ccu RST_BUS_UART3>; |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 497 | status = "disabled"; |
| 498 | }; |
Icenowy Zheng | 05bdee3 | 2018-05-04 02:38:42 +0800 | [diff] [blame] | 499 | |
Bhushan Shah | 89336e1 | 2019-08-16 14:13:09 +0530 | [diff] [blame] | 500 | i2c0: i2c@5002000 { |
| 501 | compatible = "allwinner,sun50i-h6-i2c", |
| 502 | "allwinner,sun6i-a31-i2c"; |
| 503 | reg = <0x05002000 0x400>; |
| 504 | interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; |
| 505 | clocks = <&ccu CLK_BUS_I2C0>; |
| 506 | resets = <&ccu RST_BUS_I2C0>; |
| 507 | pinctrl-names = "default"; |
| 508 | pinctrl-0 = <&i2c0_pins>; |
| 509 | status = "disabled"; |
| 510 | #address-cells = <1>; |
| 511 | #size-cells = <0>; |
| 512 | }; |
| 513 | |
| 514 | i2c1: i2c@5002400 { |
| 515 | compatible = "allwinner,sun50i-h6-i2c", |
| 516 | "allwinner,sun6i-a31-i2c"; |
| 517 | reg = <0x05002400 0x400>; |
| 518 | interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>; |
| 519 | clocks = <&ccu CLK_BUS_I2C1>; |
| 520 | resets = <&ccu RST_BUS_I2C1>; |
| 521 | pinctrl-names = "default"; |
| 522 | pinctrl-0 = <&i2c1_pins>; |
| 523 | status = "disabled"; |
| 524 | #address-cells = <1>; |
| 525 | #size-cells = <0>; |
| 526 | }; |
| 527 | |
| 528 | i2c2: i2c@5002800 { |
| 529 | compatible = "allwinner,sun50i-h6-i2c", |
| 530 | "allwinner,sun6i-a31-i2c"; |
| 531 | reg = <0x05002800 0x400>; |
| 532 | interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; |
| 533 | clocks = <&ccu CLK_BUS_I2C2>; |
| 534 | resets = <&ccu RST_BUS_I2C2>; |
| 535 | pinctrl-names = "default"; |
| 536 | pinctrl-0 = <&i2c2_pins>; |
| 537 | status = "disabled"; |
| 538 | #address-cells = <1>; |
| 539 | #size-cells = <0>; |
| 540 | }; |
| 541 | |
Andre Przywara | 30bd02b | 2020-01-16 23:11:46 +0000 | [diff] [blame] | 542 | spi0: spi@5010000 { |
| 543 | compatible = "allwinner,sun50i-h6-spi", |
| 544 | "allwinner,sun8i-h3-spi"; |
| 545 | reg = <0x05010000 0x1000>; |
| 546 | interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; |
| 547 | clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>; |
| 548 | clock-names = "ahb", "mod"; |
| 549 | dmas = <&dma 22>, <&dma 22>; |
| 550 | dma-names = "rx", "tx"; |
| 551 | resets = <&ccu RST_BUS_SPI0>; |
| 552 | status = "disabled"; |
| 553 | #address-cells = <1>; |
| 554 | #size-cells = <0>; |
| 555 | }; |
| 556 | |
| 557 | spi1: spi@5011000 { |
| 558 | compatible = "allwinner,sun50i-h6-spi", |
| 559 | "allwinner,sun8i-h3-spi"; |
| 560 | reg = <0x05011000 0x1000>; |
| 561 | interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; |
| 562 | clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>; |
| 563 | clock-names = "ahb", "mod"; |
| 564 | dmas = <&dma 23>, <&dma 23>; |
| 565 | dma-names = "rx", "tx"; |
| 566 | resets = <&ccu RST_BUS_SPI1>; |
| 567 | status = "disabled"; |
| 568 | #address-cells = <1>; |
| 569 | #size-cells = <0>; |
| 570 | }; |
| 571 | |
Icenowy Zheng | c8ced55 | 2018-11-03 20:32:37 +0800 | [diff] [blame] | 572 | emac: ethernet@5020000 { |
Icenowy Zheng | 29ce4e4 | 2018-11-15 11:15:51 +0800 | [diff] [blame] | 573 | compatible = "allwinner,sun50i-h6-emac", |
| 574 | "allwinner,sun50i-a64-emac"; |
Icenowy Zheng | c8ced55 | 2018-11-03 20:32:37 +0800 | [diff] [blame] | 575 | syscon = <&syscon>; |
| 576 | reg = <0x05020000 0x10000>; |
| 577 | interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; |
| 578 | interrupt-names = "macirq"; |
| 579 | resets = <&ccu RST_BUS_EMAC>; |
| 580 | reset-names = "stmmaceth"; |
| 581 | clocks = <&ccu CLK_BUS_EMAC>; |
| 582 | clock-names = "stmmaceth"; |
| 583 | status = "disabled"; |
| 584 | |
| 585 | mdio: mdio { |
| 586 | compatible = "snps,dwmac-mdio"; |
| 587 | #address-cells = <1>; |
| 588 | #size-cells = <0>; |
| 589 | }; |
| 590 | }; |
| 591 | |
Clément Péron | f95b598 | 2019-08-12 12:51:14 +0200 | [diff] [blame] | 592 | spdif: spdif@5093000 { |
| 593 | #sound-dai-cells = <0>; |
| 594 | compatible = "allwinner,sun50i-h6-spdif"; |
| 595 | reg = <0x05093000 0x400>; |
| 596 | interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; |
| 597 | clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>; |
| 598 | clock-names = "apb", "spdif"; |
| 599 | resets = <&ccu RST_BUS_SPDIF>; |
| 600 | dmas = <&dma 2>; |
| 601 | dma-names = "tx"; |
| 602 | pinctrl-names = "default"; |
| 603 | pinctrl-0 = <&spdif_tx_pin>; |
| 604 | status = "disabled"; |
| 605 | }; |
| 606 | |
Icenowy Zheng | eabb3d4 | 2018-10-04 20:28:49 +0800 | [diff] [blame] | 607 | usb2otg: usb@5100000 { |
| 608 | compatible = "allwinner,sun50i-h6-musb", |
| 609 | "allwinner,sun8i-a33-musb"; |
| 610 | reg = <0x05100000 0x0400>; |
| 611 | clocks = <&ccu CLK_BUS_OTG>; |
| 612 | resets = <&ccu RST_BUS_OTG>; |
| 613 | interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; |
| 614 | interrupt-names = "mc"; |
| 615 | phys = <&usb2phy 0>; |
| 616 | phy-names = "usb"; |
| 617 | extcon = <&usb2phy 0>; |
| 618 | status = "disabled"; |
| 619 | }; |
| 620 | |
| 621 | usb2phy: phy@5100400 { |
| 622 | compatible = "allwinner,sun50i-h6-usb-phy"; |
| 623 | reg = <0x05100400 0x24>, |
| 624 | <0x05101800 0x4>, |
| 625 | <0x05311800 0x4>; |
| 626 | reg-names = "phy_ctrl", |
| 627 | "pmu0", |
| 628 | "pmu3"; |
| 629 | clocks = <&ccu CLK_USB_PHY0>, |
| 630 | <&ccu CLK_USB_PHY3>; |
| 631 | clock-names = "usb0_phy", |
| 632 | "usb3_phy"; |
| 633 | resets = <&ccu RST_USB_PHY0>, |
| 634 | <&ccu RST_USB_PHY3>; |
| 635 | reset-names = "usb0_reset", |
| 636 | "usb3_reset"; |
| 637 | status = "disabled"; |
| 638 | #phy-cells = <1>; |
| 639 | }; |
| 640 | |
| 641 | ehci0: usb@5101000 { |
| 642 | compatible = "allwinner,sun50i-h6-ehci", "generic-ehci"; |
| 643 | reg = <0x05101000 0x100>; |
| 644 | interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>; |
| 645 | clocks = <&ccu CLK_BUS_OHCI0>, |
| 646 | <&ccu CLK_BUS_EHCI0>, |
| 647 | <&ccu CLK_USB_OHCI0>; |
| 648 | resets = <&ccu RST_BUS_OHCI0>, |
| 649 | <&ccu RST_BUS_EHCI0>; |
| 650 | status = "disabled"; |
| 651 | }; |
| 652 | |
| 653 | ohci0: usb@5101400 { |
| 654 | compatible = "allwinner,sun50i-h6-ohci", "generic-ohci"; |
| 655 | reg = <0x05101400 0x100>; |
| 656 | interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; |
| 657 | clocks = <&ccu CLK_BUS_OHCI0>, |
| 658 | <&ccu CLK_USB_OHCI0>; |
| 659 | resets = <&ccu RST_BUS_OHCI0>; |
| 660 | status = "disabled"; |
| 661 | }; |
| 662 | |
Icenowy Zheng | 0b6f701 | 2019-10-20 15:42:28 +0200 | [diff] [blame] | 663 | dwc3: dwc3@5200000 { |
| 664 | compatible = "snps,dwc3"; |
| 665 | reg = <0x05200000 0x10000>; |
| 666 | interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; |
| 667 | clocks = <&ccu CLK_BUS_XHCI>, |
| 668 | <&ccu CLK_BUS_XHCI>, |
| 669 | <&rtc 0>; |
| 670 | clock-names = "ref", "bus_early", "suspend"; |
| 671 | resets = <&ccu RST_BUS_XHCI>; |
| 672 | /* |
| 673 | * The datasheet of the chip doesn't declare the |
| 674 | * peripheral function, and there's no boards known |
| 675 | * to have a USB Type-B port routed to the port. |
| 676 | * In addition, no one has tested the peripheral |
| 677 | * function yet. |
| 678 | * So set the dr_mode to "host" in the DTSI file. |
| 679 | */ |
| 680 | dr_mode = "host"; |
| 681 | phys = <&usb3phy>; |
| 682 | phy-names = "usb3-phy"; |
| 683 | status = "disabled"; |
| 684 | }; |
| 685 | |
| 686 | usb3phy: phy@5210000 { |
| 687 | compatible = "allwinner,sun50i-h6-usb3-phy"; |
| 688 | reg = <0x5210000 0x10000>; |
| 689 | clocks = <&ccu CLK_USB_PHY1>; |
| 690 | resets = <&ccu RST_USB_PHY1>; |
| 691 | #phy-cells = <0>; |
| 692 | status = "disabled"; |
| 693 | }; |
| 694 | |
Icenowy Zheng | eabb3d4 | 2018-10-04 20:28:49 +0800 | [diff] [blame] | 695 | ehci3: usb@5311000 { |
| 696 | compatible = "allwinner,sun50i-h6-ehci", "generic-ehci"; |
| 697 | reg = <0x05311000 0x100>; |
| 698 | interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; |
| 699 | clocks = <&ccu CLK_BUS_OHCI3>, |
| 700 | <&ccu CLK_BUS_EHCI3>, |
| 701 | <&ccu CLK_USB_OHCI3>; |
| 702 | resets = <&ccu RST_BUS_OHCI3>, |
| 703 | <&ccu RST_BUS_EHCI3>; |
| 704 | phys = <&usb2phy 3>; |
Maxime Ripard | e6064cf | 2019-10-02 13:26:50 +0200 | [diff] [blame] | 705 | phy-names = "usb"; |
Icenowy Zheng | eabb3d4 | 2018-10-04 20:28:49 +0800 | [diff] [blame] | 706 | status = "disabled"; |
| 707 | }; |
| 708 | |
| 709 | ohci3: usb@5311400 { |
| 710 | compatible = "allwinner,sun50i-h6-ohci", "generic-ohci"; |
| 711 | reg = <0x05311400 0x100>; |
| 712 | interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; |
| 713 | clocks = <&ccu CLK_BUS_OHCI3>, |
| 714 | <&ccu CLK_USB_OHCI3>; |
| 715 | resets = <&ccu RST_BUS_OHCI3>; |
| 716 | phys = <&usb2phy 3>; |
Maxime Ripard | e6064cf | 2019-10-02 13:26:50 +0200 | [diff] [blame] | 717 | phy-names = "usb"; |
Icenowy Zheng | eabb3d4 | 2018-10-04 20:28:49 +0800 | [diff] [blame] | 718 | status = "disabled"; |
| 719 | }; |
| 720 | |
Jernej Skrabec | 209065c | 2018-11-04 19:27:04 +0100 | [diff] [blame] | 721 | hdmi: hdmi@6000000 { |
| 722 | compatible = "allwinner,sun50i-h6-dw-hdmi"; |
| 723 | reg = <0x06000000 0x10000>; |
| 724 | reg-io-width = <1>; |
| 725 | interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>; |
| 726 | clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_SLOW>, |
| 727 | <&ccu CLK_HDMI>, <&ccu CLK_HDMI_CEC>, |
| 728 | <&ccu CLK_HDCP>, <&ccu CLK_BUS_HDCP>; |
| 729 | clock-names = "iahb", "isfr", "tmds", "cec", "hdcp", |
| 730 | "hdcp-bus"; |
| 731 | resets = <&ccu RST_BUS_HDMI_SUB>, <&ccu RST_BUS_HDCP>; |
| 732 | reset-names = "ctrl", "hdcp"; |
| 733 | phys = <&hdmi_phy>; |
Maxime Ripard | d40113f | 2019-07-23 10:44:07 +0200 | [diff] [blame] | 734 | phy-names = "phy"; |
Jernej Skrabec | 209065c | 2018-11-04 19:27:04 +0100 | [diff] [blame] | 735 | pinctrl-names = "default"; |
| 736 | pinctrl-0 = <&hdmi_pins>; |
| 737 | status = "disabled"; |
| 738 | |
| 739 | ports { |
| 740 | #address-cells = <1>; |
| 741 | #size-cells = <0>; |
| 742 | |
| 743 | hdmi_in: port@0 { |
| 744 | reg = <0>; |
| 745 | |
| 746 | hdmi_in_tcon_top: endpoint { |
| 747 | remote-endpoint = <&tcon_top_hdmi_out_hdmi>; |
| 748 | }; |
| 749 | }; |
| 750 | |
| 751 | hdmi_out: port@1 { |
| 752 | reg = <1>; |
| 753 | }; |
| 754 | }; |
| 755 | }; |
| 756 | |
| 757 | hdmi_phy: hdmi-phy@6010000 { |
| 758 | compatible = "allwinner,sun50i-h6-hdmi-phy"; |
| 759 | reg = <0x06010000 0x10000>; |
| 760 | clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_SLOW>; |
| 761 | clock-names = "bus", "mod"; |
| 762 | resets = <&ccu RST_BUS_HDMI>; |
| 763 | reset-names = "phy"; |
| 764 | #phy-cells = <0>; |
| 765 | }; |
| 766 | |
| 767 | tcon_top: tcon-top@6510000 { |
| 768 | compatible = "allwinner,sun50i-h6-tcon-top"; |
| 769 | reg = <0x06510000 0x1000>; |
| 770 | clocks = <&ccu CLK_BUS_TCON_TOP>, |
| 771 | <&ccu CLK_TCON_TV0>; |
| 772 | clock-names = "bus", |
| 773 | "tcon-tv0"; |
| 774 | clock-output-names = "tcon-top-tv0"; |
| 775 | resets = <&ccu RST_BUS_TCON_TOP>; |
Jernej Skrabec | 209065c | 2018-11-04 19:27:04 +0100 | [diff] [blame] | 776 | #clock-cells = <1>; |
| 777 | |
| 778 | ports { |
| 779 | #address-cells = <1>; |
| 780 | #size-cells = <0>; |
| 781 | |
| 782 | tcon_top_mixer0_in: port@0 { |
| 783 | #address-cells = <1>; |
| 784 | #size-cells = <0>; |
| 785 | reg = <0>; |
| 786 | |
| 787 | tcon_top_mixer0_in_mixer0: endpoint@0 { |
| 788 | reg = <0>; |
| 789 | remote-endpoint = <&mixer0_out_tcon_top_mixer0>; |
| 790 | }; |
| 791 | }; |
| 792 | |
| 793 | tcon_top_mixer0_out: port@1 { |
| 794 | #address-cells = <1>; |
| 795 | #size-cells = <0>; |
| 796 | reg = <1>; |
| 797 | |
| 798 | tcon_top_mixer0_out_tcon_tv: endpoint@2 { |
| 799 | reg = <2>; |
| 800 | remote-endpoint = <&tcon_tv_in_tcon_top_mixer0>; |
| 801 | }; |
| 802 | }; |
| 803 | |
| 804 | tcon_top_hdmi_in: port@4 { |
| 805 | #address-cells = <1>; |
| 806 | #size-cells = <0>; |
| 807 | reg = <4>; |
| 808 | |
| 809 | tcon_top_hdmi_in_tcon_tv: endpoint@0 { |
| 810 | reg = <0>; |
| 811 | remote-endpoint = <&tcon_tv_out_tcon_top>; |
| 812 | }; |
| 813 | }; |
| 814 | |
| 815 | tcon_top_hdmi_out: port@5 { |
| 816 | reg = <5>; |
| 817 | |
| 818 | tcon_top_hdmi_out_hdmi: endpoint { |
| 819 | remote-endpoint = <&hdmi_in_tcon_top>; |
| 820 | }; |
| 821 | }; |
| 822 | }; |
| 823 | }; |
| 824 | |
| 825 | tcon_tv: lcd-controller@6515000 { |
| 826 | compatible = "allwinner,sun50i-h6-tcon-tv", |
| 827 | "allwinner,sun8i-r40-tcon-tv"; |
| 828 | reg = <0x06515000 0x1000>; |
| 829 | interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>; |
| 830 | clocks = <&ccu CLK_BUS_TCON_TV0>, |
| 831 | <&tcon_top CLK_TCON_TOP_TV0>; |
| 832 | clock-names = "ahb", |
| 833 | "tcon-ch1"; |
| 834 | resets = <&ccu RST_BUS_TCON_TV0>; |
| 835 | reset-names = "lcd"; |
| 836 | |
| 837 | ports { |
| 838 | #address-cells = <1>; |
| 839 | #size-cells = <0>; |
| 840 | |
| 841 | tcon_tv_in: port@0 { |
| 842 | reg = <0>; |
| 843 | |
| 844 | tcon_tv_in_tcon_top_mixer0: endpoint { |
| 845 | remote-endpoint = <&tcon_top_mixer0_out_tcon_tv>; |
| 846 | }; |
| 847 | }; |
| 848 | |
| 849 | tcon_tv_out: port@1 { |
| 850 | #address-cells = <1>; |
| 851 | #size-cells = <0>; |
| 852 | reg = <1>; |
| 853 | |
| 854 | tcon_tv_out_tcon_top: endpoint@1 { |
| 855 | reg = <1>; |
| 856 | remote-endpoint = <&tcon_top_hdmi_in_tcon_tv>; |
| 857 | }; |
| 858 | }; |
| 859 | }; |
| 860 | }; |
| 861 | |
Ondrej Jirman | 4cdc12a | 2019-08-20 17:19:34 +0200 | [diff] [blame] | 862 | rtc: rtc@7000000 { |
| 863 | compatible = "allwinner,sun50i-h6-rtc"; |
| 864 | reg = <0x07000000 0x400>; |
| 865 | interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>, |
| 866 | <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>; |
| 867 | clock-output-names = "osc32k", "osc32k-out", "iosc"; |
Ondrej Jirman | 4cdc12a | 2019-08-20 17:19:34 +0200 | [diff] [blame] | 868 | #clock-cells = <1>; |
| 869 | }; |
| 870 | |
Icenowy Zheng | 05bdee3 | 2018-05-04 02:38:42 +0800 | [diff] [blame] | 871 | r_ccu: clock@7010000 { |
| 872 | compatible = "allwinner,sun50i-h6-r-ccu"; |
| 873 | reg = <0x07010000 0x400>; |
Ondrej Jirman | 4cdc12a | 2019-08-20 17:19:34 +0200 | [diff] [blame] | 874 | clocks = <&osc24M>, <&rtc 0>, <&rtc 2>, |
Icenowy Zheng | 05bdee3 | 2018-05-04 02:38:42 +0800 | [diff] [blame] | 875 | <&ccu CLK_PLL_PERIPH0>; |
| 876 | clock-names = "hosc", "losc", "iosc", "pll-periph"; |
| 877 | #clock-cells = <1>; |
| 878 | #reset-cells = <1>; |
| 879 | }; |
Icenowy Zheng | 71f9bdb | 2018-05-04 02:38:44 +0800 | [diff] [blame] | 880 | |
Clément Péron | ae3ceed | 2019-05-23 17:10:49 +0200 | [diff] [blame] | 881 | r_watchdog: watchdog@7020400 { |
| 882 | compatible = "allwinner,sun50i-h6-wdt", |
| 883 | "allwinner,sun6i-a31-wdt"; |
| 884 | reg = <0x07020400 0x20>; |
| 885 | interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>; |
Maxime Ripard | 9e1975f | 2019-08-21 16:38:35 +0200 | [diff] [blame] | 886 | clocks = <&osc24M>; |
Clément Péron | ae3ceed | 2019-05-23 17:10:49 +0200 | [diff] [blame] | 887 | }; |
| 888 | |
Icenowy Zheng | 1ecefb8 | 2018-05-04 02:38:45 +0800 | [diff] [blame] | 889 | r_intc: interrupt-controller@7021000 { |
| 890 | compatible = "allwinner,sun50i-h6-r-intc", |
| 891 | "allwinner,sun6i-a31-r-intc"; |
| 892 | interrupt-controller; |
| 893 | #interrupt-cells = <2>; |
| 894 | reg = <0x07021000 0x400>; |
| 895 | interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>; |
| 896 | }; |
| 897 | |
Icenowy Zheng | 71f9bdb | 2018-05-04 02:38:44 +0800 | [diff] [blame] | 898 | r_pio: pinctrl@7022000 { |
| 899 | compatible = "allwinner,sun50i-h6-r-pinctrl"; |
| 900 | reg = <0x07022000 0x400>; |
| 901 | interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>, |
| 902 | <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>; |
Ondrej Jirman | 4cdc12a | 2019-08-20 17:19:34 +0200 | [diff] [blame] | 903 | clocks = <&r_ccu CLK_R_APB1>, <&osc24M>, <&rtc 0>; |
Icenowy Zheng | 71f9bdb | 2018-05-04 02:38:44 +0800 | [diff] [blame] | 904 | clock-names = "apb", "hosc", "losc"; |
| 905 | gpio-controller; |
| 906 | #gpio-cells = <3>; |
| 907 | interrupt-controller; |
| 908 | #interrupt-cells = <3>; |
Icenowy Zheng | e9a2336 | 2018-05-04 02:38:46 +0800 | [diff] [blame] | 909 | |
Maxime Ripard | 54eac67b | 2019-03-25 14:52:51 +0100 | [diff] [blame] | 910 | r_i2c_pins: r-i2c-pins { |
Icenowy Zheng | e9a2336 | 2018-05-04 02:38:46 +0800 | [diff] [blame] | 911 | pins = "PL0", "PL1"; |
| 912 | function = "s_i2c"; |
| 913 | }; |
Clément Péron | 9267811 | 2019-06-08 01:10:58 +0200 | [diff] [blame] | 914 | |
| 915 | r_ir_rx_pin: r-ir-rx-pin { |
| 916 | pins = "PL9"; |
| 917 | function = "s_cir_rx"; |
| 918 | }; |
| 919 | }; |
| 920 | |
| 921 | r_ir: ir@7040000 { |
| 922 | compatible = "allwinner,sun50i-h6-ir", |
| 923 | "allwinner,sun6i-a31-ir"; |
| 924 | reg = <0x07040000 0x400>; |
| 925 | interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>; |
| 926 | clocks = <&r_ccu CLK_R_APB1_IR>, |
| 927 | <&r_ccu CLK_IR>; |
| 928 | clock-names = "apb", "ir"; |
| 929 | resets = <&r_ccu RST_R_APB1_IR>; |
| 930 | pinctrl-names = "default"; |
| 931 | pinctrl-0 = <&r_ir_rx_pin>; |
| 932 | status = "disabled"; |
Icenowy Zheng | e9a2336 | 2018-05-04 02:38:46 +0800 | [diff] [blame] | 933 | }; |
| 934 | |
| 935 | r_i2c: i2c@7081400 { |
Bhushan Shah | 89336e1 | 2019-08-16 14:13:09 +0530 | [diff] [blame] | 936 | compatible = "allwinner,sun50i-h6-i2c", |
| 937 | "allwinner,sun6i-a31-i2c"; |
Icenowy Zheng | e9a2336 | 2018-05-04 02:38:46 +0800 | [diff] [blame] | 938 | reg = <0x07081400 0x400>; |
| 939 | interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | de2b555 | 2018-07-13 00:04:51 +0800 | [diff] [blame] | 940 | clocks = <&r_ccu CLK_R_APB2_I2C>; |
| 941 | resets = <&r_ccu RST_R_APB2_I2C>; |
Icenowy Zheng | e9a2336 | 2018-05-04 02:38:46 +0800 | [diff] [blame] | 942 | pinctrl-names = "default"; |
| 943 | pinctrl-0 = <&r_i2c_pins>; |
| 944 | status = "disabled"; |
| 945 | #address-cells = <1>; |
| 946 | #size-cells = <0>; |
Icenowy Zheng | 71f9bdb | 2018-05-04 02:38:44 +0800 | [diff] [blame] | 947 | }; |
Ondrej Jirman | d7cfb66 | 2019-12-19 09:28:22 -0800 | [diff] [blame] | 948 | |
| 949 | ths: thermal-sensor@5070400 { |
| 950 | compatible = "allwinner,sun50i-h6-ths"; |
| 951 | reg = <0x05070400 0x100>; |
| 952 | interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; |
| 953 | clocks = <&ccu CLK_BUS_THS>; |
| 954 | clock-names = "bus"; |
| 955 | resets = <&ccu RST_BUS_THS>; |
| 956 | nvmem-cells = <&ths_calibration>; |
| 957 | nvmem-cell-names = "calibration"; |
| 958 | #thermal-sensor-cells = <1>; |
| 959 | }; |
| 960 | }; |
| 961 | |
| 962 | thermal-zones { |
| 963 | cpu-thermal { |
| 964 | polling-delay-passive = <0>; |
| 965 | polling-delay = <0>; |
| 966 | thermal-sensors = <&ths 0>; |
| 967 | }; |
| 968 | |
| 969 | gpu-thermal { |
| 970 | polling-delay-passive = <0>; |
| 971 | polling-delay = <0>; |
| 972 | thermal-sensors = <&ths 1>; |
| 973 | }; |
Icenowy Zheng | e54be32 | 2018-03-16 22:02:14 +0800 | [diff] [blame] | 974 | }; |
| 975 | }; |