1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) !! 1 /* 2 // Copyright (C) 2016 ARM Ltd. !! 2 * Copyright (C) 2016 ARM Ltd. 3 // based on the Allwinner H3 dtsi: !! 3 * based on the Allwinner H3 dtsi: 4 // Copyright (C) 2015 Jens Kuske <jenskuske@ !! 4 * Copyright (C) 2015 Jens Kuske <jenskuske@gmail.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 * >> 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 */ 5 44 6 #include <dt-bindings/clock/sun50i-a64-ccu.h> 45 #include <dt-bindings/clock/sun50i-a64-ccu.h> 7 #include <dt-bindings/clock/sun6i-rtc.h> << 8 #include <dt-bindings/clock/sun8i-de2.h> 46 #include <dt-bindings/clock/sun8i-de2.h> 9 #include <dt-bindings/clock/sun8i-r-ccu.h> 47 #include <dt-bindings/clock/sun8i-r-ccu.h> 10 #include <dt-bindings/interrupt-controller/arm 48 #include <dt-bindings/interrupt-controller/arm-gic.h> 11 #include <dt-bindings/reset/sun50i-a64-ccu.h> 49 #include <dt-bindings/reset/sun50i-a64-ccu.h> 12 #include <dt-bindings/reset/sun8i-de2.h> 50 #include <dt-bindings/reset/sun8i-de2.h> 13 #include <dt-bindings/reset/sun8i-r-ccu.h> 51 #include <dt-bindings/reset/sun8i-r-ccu.h> 14 #include <dt-bindings/thermal/thermal.h> << 15 52 16 / { 53 / { 17 interrupt-parent = <&gic>; 54 interrupt-parent = <&gic>; 18 #address-cells = <1>; 55 #address-cells = <1>; 19 #size-cells = <1>; 56 #size-cells = <1>; 20 57 21 chosen { 58 chosen { 22 #address-cells = <1>; 59 #address-cells = <1>; 23 #size-cells = <1>; 60 #size-cells = <1>; 24 ranges; 61 ranges; 25 62 26 simplefb_lcd: framebuffer-lcd 63 simplefb_lcd: framebuffer-lcd { 27 compatible = "allwinne 64 compatible = "allwinner,simple-framebuffer", 28 "simple-f 65 "simple-framebuffer"; 29 allwinner,pipeline = " 66 allwinner,pipeline = "mixer0-lcd0"; 30 clocks = <&ccu CLK_TCO 67 clocks = <&ccu CLK_TCON0>, 31 <&display_clo 68 <&display_clocks CLK_MIXER0>; 32 status = "disabled"; 69 status = "disabled"; 33 }; 70 }; 34 71 35 simplefb_hdmi: framebuffer-hdm 72 simplefb_hdmi: framebuffer-hdmi { 36 compatible = "allwinne 73 compatible = "allwinner,simple-framebuffer", 37 "simple-f 74 "simple-framebuffer"; 38 allwinner,pipeline = " 75 allwinner,pipeline = "mixer1-lcd1-hdmi"; 39 clocks = <&display_clo 76 clocks = <&display_clocks CLK_MIXER1>, 40 <&ccu CLK_TCO 77 <&ccu CLK_TCON1>, <&ccu CLK_HDMI>; 41 status = "disabled"; 78 status = "disabled"; 42 }; 79 }; 43 }; 80 }; 44 81 45 cpus { 82 cpus { 46 #address-cells = <1>; 83 #address-cells = <1>; 47 #size-cells = <0>; 84 #size-cells = <0>; 48 85 49 cpu0: cpu@0 { 86 cpu0: cpu@0 { 50 compatible = "arm,cort 87 compatible = "arm,cortex-a53"; 51 device_type = "cpu"; 88 device_type = "cpu"; 52 reg = <0>; 89 reg = <0>; 53 enable-method = "psci" 90 enable-method = "psci"; 54 clocks = <&ccu CLK_CPU !! 91 next-level-cache = <&L2>; 55 clock-names = "cpu"; << 56 #cooling-cells = <2>; << 57 i-cache-size = <0x8000 << 58 i-cache-line-size = <6 << 59 i-cache-sets = <256>; << 60 d-cache-size = <0x8000 << 61 d-cache-line-size = <6 << 62 d-cache-sets = <128>; << 63 next-level-cache = <&l << 64 }; 92 }; 65 93 66 cpu1: cpu@1 { 94 cpu1: cpu@1 { 67 compatible = "arm,cort 95 compatible = "arm,cortex-a53"; 68 device_type = "cpu"; 96 device_type = "cpu"; 69 reg = <1>; 97 reg = <1>; 70 enable-method = "psci" 98 enable-method = "psci"; 71 clocks = <&ccu CLK_CPU !! 99 next-level-cache = <&L2>; 72 clock-names = "cpu"; << 73 #cooling-cells = <2>; << 74 i-cache-size = <0x8000 << 75 i-cache-line-size = <6 << 76 i-cache-sets = <256>; << 77 d-cache-size = <0x8000 << 78 d-cache-line-size = <6 << 79 d-cache-sets = <128>; << 80 next-level-cache = <&l << 81 }; 100 }; 82 101 83 cpu2: cpu@2 { 102 cpu2: cpu@2 { 84 compatible = "arm,cort 103 compatible = "arm,cortex-a53"; 85 device_type = "cpu"; 104 device_type = "cpu"; 86 reg = <2>; 105 reg = <2>; 87 enable-method = "psci" 106 enable-method = "psci"; 88 clocks = <&ccu CLK_CPU !! 107 next-level-cache = <&L2>; 89 clock-names = "cpu"; << 90 #cooling-cells = <2>; << 91 i-cache-size = <0x8000 << 92 i-cache-line-size = <6 << 93 i-cache-sets = <256>; << 94 d-cache-size = <0x8000 << 95 d-cache-line-size = <6 << 96 d-cache-sets = <128>; << 97 next-level-cache = <&l << 98 }; 108 }; 99 109 100 cpu3: cpu@3 { 110 cpu3: cpu@3 { 101 compatible = "arm,cort 111 compatible = "arm,cortex-a53"; 102 device_type = "cpu"; 112 device_type = "cpu"; 103 reg = <3>; 113 reg = <3>; 104 enable-method = "psci" 114 enable-method = "psci"; 105 clocks = <&ccu CLK_CPU !! 115 next-level-cache = <&L2>; 106 clock-names = "cpu"; << 107 #cooling-cells = <2>; << 108 i-cache-size = <0x8000 << 109 i-cache-line-size = <6 << 110 i-cache-sets = <256>; << 111 d-cache-size = <0x8000 << 112 d-cache-line-size = <6 << 113 d-cache-sets = <128>; << 114 next-level-cache = <&l << 115 }; 116 }; 116 117 117 l2_cache: l2-cache { !! 118 L2: l2-cache { 118 compatible = "cache"; 119 compatible = "cache"; 119 cache-level = <2>; 120 cache-level = <2>; 120 cache-unified; << 121 cache-size = <0x80000> << 122 cache-line-size = <64> << 123 cache-sets = <512>; << 124 }; 121 }; 125 }; 122 }; 126 123 127 de: display-engine { 124 de: display-engine { 128 compatible = "allwinner,sun50i 125 compatible = "allwinner,sun50i-a64-display-engine"; 129 allwinner,pipelines = <&mixer0 126 allwinner,pipelines = <&mixer0>, 130 <&mixer1 127 <&mixer1>; 131 status = "disabled"; 128 status = "disabled"; 132 }; 129 }; 133 130 134 gpu_opp_table: opp-table-gpu { !! 131 osc24M: osc24M_clk { 135 compatible = "operating-points << 136 << 137 opp-432000000 { << 138 opp-hz = /bits/ 64 <43 << 139 }; << 140 }; << 141 << 142 osc24M: osc24M-clk { << 143 #clock-cells = <0>; 132 #clock-cells = <0>; 144 compatible = "fixed-clock"; 133 compatible = "fixed-clock"; 145 clock-frequency = <24000000>; 134 clock-frequency = <24000000>; 146 clock-output-names = "osc24M"; 135 clock-output-names = "osc24M"; 147 }; 136 }; 148 137 149 osc32k: osc32k-clk { !! 138 osc32k: osc32k_clk { 150 #clock-cells = <0>; 139 #clock-cells = <0>; 151 compatible = "fixed-clock"; 140 compatible = "fixed-clock"; 152 clock-frequency = <32768>; 141 clock-frequency = <32768>; 153 clock-output-names = "ext-osc3 142 clock-output-names = "ext-osc32k"; 154 }; 143 }; 155 144 156 pmu { 145 pmu { 157 compatible = "arm,cortex-a53-p 146 compatible = "arm,cortex-a53-pmu"; 158 interrupts = <GIC_SPI 116 IRQ_ !! 147 interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>, 159 <GIC_SPI 117 IRQ_ !! 148 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>, 160 <GIC_SPI 118 IRQ_ !! 149 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>, 161 <GIC_SPI 119 IRQ_ !! 150 <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>; 162 interrupt-affinity = <&cpu0>, 151 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; 163 }; 152 }; 164 153 165 psci { 154 psci { 166 compatible = "arm,psci-0.2"; 155 compatible = "arm,psci-0.2"; 167 method = "smc"; 156 method = "smc"; 168 }; 157 }; 169 158 170 sound: sound { 159 sound: sound { 171 #address-cells = <1>; << 172 #size-cells = <0>; << 173 compatible = "simple-audio-car 160 compatible = "simple-audio-card"; 174 simple-audio-card,name = "sun5 161 simple-audio-card,name = "sun50i-a64-audio"; >> 162 simple-audio-card,format = "i2s"; >> 163 simple-audio-card,frame-master = <&cpudai>; >> 164 simple-audio-card,bitclock-master = <&cpudai>; >> 165 simple-audio-card,mclk-fs = <128>; 175 simple-audio-card,aux-devs = < 166 simple-audio-card,aux-devs = <&codec_analog>; 176 simple-audio-card,routing = 167 simple-audio-card,routing = 177 "Left DAC", "D !! 168 "Left DAC", "AIF1 Slot 0 Left", 178 "Right DAC", " !! 169 "Right DAC", "AIF1 Slot 0 Right", 179 "ADCL", "Left !! 170 "AIF1 Slot 0 Left ADC", "Left ADC", 180 "ADCR", "Right !! 171 "AIF1 Slot 0 Right ADC", "Right ADC"; 181 status = "disabled"; 172 status = "disabled"; 182 173 183 simple-audio-card,dai-link@0 { !! 174 cpudai: simple-audio-card,cpu { 184 format = "i2s"; !! 175 sound-dai = <&dai>; 185 frame-master = <&link0 !! 176 }; 186 bitclock-master = <&li << 187 mclk-fs = <128>; << 188 177 189 link0_cpu: cpu { !! 178 link_codec: simple-audio-card,codec { 190 sound-dai = <& !! 179 sound-dai = <&codec>; 191 }; !! 180 }; >> 181 }; 192 182 193 link0_codec: codec { !! 183 sound_spdif { 194 sound-dai = <& !! 184 compatible = "simple-audio-card"; 195 }; !! 185 simple-audio-card,name = "On-board SPDIF"; >> 186 >> 187 simple-audio-card,cpu { >> 188 sound-dai = <&spdif>; 196 }; 189 }; >> 190 >> 191 simple-audio-card,codec { >> 192 sound-dai = <&spdif_out>; >> 193 }; >> 194 }; >> 195 >> 196 spdif_out: spdif-out { >> 197 #sound-dai-cells = <0>; >> 198 compatible = "linux,spdif-dit"; 197 }; 199 }; 198 200 199 timer { 201 timer { 200 compatible = "arm,armv8-timer" 202 compatible = "arm,armv8-timer"; 201 allwinner,erratum-unknown1; 203 allwinner,erratum-unknown1; 202 arm,no-tick-in-suspend; << 203 interrupts = <GIC_PPI 13 204 interrupts = <GIC_PPI 13 204 (GIC_CPU_MASK_SIMPLE(4 205 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, 205 <GIC_PPI 14 206 <GIC_PPI 14 206 (GIC_CPU_MASK_SIMPLE(4 207 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, 207 <GIC_PPI 11 208 <GIC_PPI 11 208 (GIC_CPU_MASK_SIMPLE(4 209 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, 209 <GIC_PPI 10 210 <GIC_PPI 10 210 (GIC_CPU_MASK_SIMPLE(4 211 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; 211 }; 212 }; 212 213 213 thermal-zones { << 214 cpu_thermal: cpu0-thermal { << 215 /* milliseconds */ << 216 polling-delay-passive << 217 polling-delay = <0>; << 218 thermal-sensors = <&th << 219 << 220 cooling-maps { << 221 map0 { << 222 trip = << 223 coolin << 224 << 225 << 226 << 227 }; << 228 map1 { << 229 trip = << 230 coolin << 231 << 232 << 233 << 234 }; << 235 }; << 236 << 237 trips { << 238 cpu_alert0: cp << 239 /* mil << 240 temper << 241 hyster << 242 type = << 243 }; << 244 << 245 cpu_alert1: cp << 246 /* mil << 247 temper << 248 hyster << 249 type = << 250 }; << 251 << 252 cpu_crit: cpu- << 253 /* mil << 254 temper << 255 hyster << 256 type = << 257 }; << 258 }; << 259 }; << 260 << 261 gpu0_thermal: gpu0-thermal { << 262 /* milliseconds */ << 263 polling-delay-passive << 264 polling-delay = <0>; << 265 thermal-sensors = <&th << 266 << 267 trips { << 268 gpu0_crit: gpu << 269 temper << 270 hyster << 271 type = << 272 }; << 273 }; << 274 }; << 275 << 276 gpu1_thermal: gpu1-thermal { << 277 /* milliseconds */ << 278 polling-delay-passive << 279 polling-delay = <0>; << 280 thermal-sensors = <&th << 281 << 282 trips { << 283 gpu1_crit: gpu << 284 temper << 285 hyster << 286 type = << 287 }; << 288 }; << 289 }; << 290 }; << 291 << 292 soc { 214 soc { 293 compatible = "simple-bus"; 215 compatible = "simple-bus"; 294 #address-cells = <1>; 216 #address-cells = <1>; 295 #size-cells = <1>; 217 #size-cells = <1>; 296 ranges; 218 ranges; 297 219 298 bus@1000000 { 220 bus@1000000 { 299 compatible = "allwinne 221 compatible = "allwinner,sun50i-a64-de2"; 300 reg = <0x1000000 0x400 222 reg = <0x1000000 0x400000>; 301 allwinner,sram = <&de2 223 allwinner,sram = <&de2_sram 1>; 302 #address-cells = <1>; 224 #address-cells = <1>; 303 #size-cells = <1>; 225 #size-cells = <1>; 304 ranges = <0 0x1000000 226 ranges = <0 0x1000000 0x400000>; 305 227 306 display_clocks: clock@ 228 display_clocks: clock@0 { 307 compatible = " 229 compatible = "allwinner,sun50i-a64-de2-clk"; 308 reg = <0x0 0x1 !! 230 reg = <0x0 0x100000>; 309 clocks = <&ccu !! 231 clocks = <&ccu CLK_DE>, 310 <&ccu !! 232 <&ccu CLK_BUS_DE>; 311 clock-names = !! 233 clock-names = "mod", 312 !! 234 "bus"; 313 resets = <&ccu 235 resets = <&ccu RST_BUS_DE>; 314 #clock-cells = 236 #clock-cells = <1>; 315 #reset-cells = 237 #reset-cells = <1>; 316 }; 238 }; 317 239 318 rotate: rotate@20000 { << 319 compatible = " << 320 " << 321 reg = <0x20000 << 322 interrupts = < << 323 clocks = <&dis << 324 <&dis << 325 clock-names = << 326 << 327 resets = <&dis << 328 }; << 329 << 330 mixer0: mixer@100000 { 240 mixer0: mixer@100000 { 331 compatible = " 241 compatible = "allwinner,sun50i-a64-de2-mixer-0"; 332 reg = <0x10000 242 reg = <0x100000 0x100000>; 333 clocks = <&dis 243 clocks = <&display_clocks CLK_BUS_MIXER0>, 334 <&dis 244 <&display_clocks CLK_MIXER0>; 335 clock-names = 245 clock-names = "bus", 336 246 "mod"; 337 resets = <&dis 247 resets = <&display_clocks RST_MIXER0>; 338 248 339 ports { 249 ports { 340 #addre 250 #address-cells = <1>; 341 #size- 251 #size-cells = <0>; 342 252 343 mixer0 253 mixer0_out: port@1 { 344 254 #address-cells = <1>; 345 255 #size-cells = <0>; 346 256 reg = <1>; 347 257 348 258 mixer0_out_tcon0: endpoint@0 { 349 259 reg = <0>; 350 260 remote-endpoint = <&tcon0_in_mixer0>; 351 261 }; 352 262 353 263 mixer0_out_tcon1: endpoint@1 { 354 264 reg = <1>; 355 265 remote-endpoint = <&tcon1_in_mixer0>; 356 266 }; 357 }; 267 }; 358 }; 268 }; 359 }; 269 }; 360 270 361 mixer1: mixer@200000 { 271 mixer1: mixer@200000 { 362 compatible = " 272 compatible = "allwinner,sun50i-a64-de2-mixer-1"; 363 reg = <0x20000 273 reg = <0x200000 0x100000>; 364 clocks = <&dis 274 clocks = <&display_clocks CLK_BUS_MIXER1>, 365 <&dis 275 <&display_clocks CLK_MIXER1>; 366 clock-names = 276 clock-names = "bus", 367 277 "mod"; 368 resets = <&dis 278 resets = <&display_clocks RST_MIXER1>; 369 279 370 ports { 280 ports { 371 #addre 281 #address-cells = <1>; 372 #size- 282 #size-cells = <0>; 373 283 374 mixer1 284 mixer1_out: port@1 { 375 285 #address-cells = <1>; 376 286 #size-cells = <0>; 377 287 reg = <1>; 378 288 379 289 mixer1_out_tcon0: endpoint@0 { 380 290 reg = <0>; 381 291 remote-endpoint = <&tcon0_in_mixer1>; 382 292 }; 383 293 384 294 mixer1_out_tcon1: endpoint@1 { 385 295 reg = <1>; 386 296 remote-endpoint = <&tcon1_in_mixer1>; 387 297 }; 388 }; 298 }; 389 }; 299 }; 390 }; 300 }; 391 }; 301 }; 392 302 393 syscon: syscon@1c00000 { 303 syscon: syscon@1c00000 { 394 compatible = "allwinne 304 compatible = "allwinner,sun50i-a64-system-control"; 395 reg = <0x01c00000 0x10 305 reg = <0x01c00000 0x1000>; 396 #address-cells = <1>; 306 #address-cells = <1>; 397 #size-cells = <1>; 307 #size-cells = <1>; 398 ranges; 308 ranges; 399 309 400 sram_c: sram@18000 { 310 sram_c: sram@18000 { 401 compatible = " 311 compatible = "mmio-sram"; 402 reg = <0x00018 312 reg = <0x00018000 0x28000>; 403 #address-cells 313 #address-cells = <1>; 404 #size-cells = 314 #size-cells = <1>; 405 ranges = <0 0x 315 ranges = <0 0x00018000 0x28000>; 406 316 407 de2_sram: sram 317 de2_sram: sram-section@0 { 408 compat 318 compatible = "allwinner,sun50i-a64-sram-c"; 409 reg = 319 reg = <0x0000 0x28000>; 410 }; 320 }; 411 }; 321 }; 412 322 413 sram_c1: sram@1d00000 323 sram_c1: sram@1d00000 { 414 compatible = " 324 compatible = "mmio-sram"; 415 reg = <0x01d00 325 reg = <0x01d00000 0x40000>; 416 #address-cells 326 #address-cells = <1>; 417 #size-cells = 327 #size-cells = <1>; 418 ranges = <0 0x 328 ranges = <0 0x01d00000 0x40000>; 419 329 420 ve_sram: sram- 330 ve_sram: sram-section@0 { 421 compat 331 compatible = "allwinner,sun50i-a64-sram-c1", 422 332 "allwinner,sun4i-a10-sram-c1"; 423 reg = 333 reg = <0x000000 0x40000>; 424 }; 334 }; 425 }; 335 }; 426 }; 336 }; 427 337 428 dma: dma-controller@1c02000 { 338 dma: dma-controller@1c02000 { 429 compatible = "allwinne 339 compatible = "allwinner,sun50i-a64-dma"; 430 reg = <0x01c02000 0x10 340 reg = <0x01c02000 0x1000>; 431 interrupts = <GIC_SPI 341 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; 432 clocks = <&ccu CLK_BUS 342 clocks = <&ccu CLK_BUS_DMA>; 433 dma-channels = <8>; 343 dma-channels = <8>; 434 dma-requests = <27>; 344 dma-requests = <27>; 435 resets = <&ccu RST_BUS 345 resets = <&ccu RST_BUS_DMA>; 436 #dma-cells = <1>; 346 #dma-cells = <1>; 437 }; 347 }; 438 348 439 tcon0: lcd-controller@1c0c000 349 tcon0: lcd-controller@1c0c000 { 440 compatible = "allwinne 350 compatible = "allwinner,sun50i-a64-tcon-lcd", 441 "allwinne 351 "allwinner,sun8i-a83t-tcon-lcd"; 442 reg = <0x01c0c000 0x10 352 reg = <0x01c0c000 0x1000>; 443 interrupts = <GIC_SPI 353 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; 444 clocks = <&ccu CLK_BUS 354 clocks = <&ccu CLK_BUS_TCON0>, <&ccu CLK_TCON0>; 445 clock-names = "ahb", " 355 clock-names = "ahb", "tcon-ch0"; 446 clock-output-names = " !! 356 clock-output-names = "tcon-pixel-clock"; 447 #clock-cells = <0>; 357 #clock-cells = <0>; 448 resets = <&ccu RST_BUS 358 resets = <&ccu RST_BUS_TCON0>, <&ccu RST_BUS_LVDS>; 449 reset-names = "lcd", " 359 reset-names = "lcd", "lvds"; 450 360 451 ports { 361 ports { 452 #address-cells 362 #address-cells = <1>; 453 #size-cells = 363 #size-cells = <0>; 454 364 455 tcon0_in: port 365 tcon0_in: port@0 { 456 #addre 366 #address-cells = <1>; 457 #size- 367 #size-cells = <0>; 458 reg = 368 reg = <0>; 459 369 460 tcon0_ 370 tcon0_in_mixer0: endpoint@0 { 461 371 reg = <0>; 462 372 remote-endpoint = <&mixer0_out_tcon0>; 463 }; 373 }; 464 374 465 tcon0_ 375 tcon0_in_mixer1: endpoint@1 { 466 376 reg = <1>; 467 377 remote-endpoint = <&mixer1_out_tcon0>; 468 }; 378 }; 469 }; 379 }; 470 380 471 tcon0_out: por 381 tcon0_out: port@1 { 472 #addre 382 #address-cells = <1>; 473 #size- 383 #size-cells = <0>; 474 reg = 384 reg = <1>; 475 << 476 tcon0_ << 477 << 478 << 479 << 480 }; << 481 }; 385 }; 482 }; 386 }; 483 }; 387 }; 484 388 485 tcon1: lcd-controller@1c0d000 389 tcon1: lcd-controller@1c0d000 { 486 compatible = "allwinne 390 compatible = "allwinner,sun50i-a64-tcon-tv", 487 "allwinne 391 "allwinner,sun8i-a83t-tcon-tv"; 488 reg = <0x01c0d000 0x10 392 reg = <0x01c0d000 0x1000>; 489 interrupts = <GIC_SPI 393 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>; 490 clocks = <&ccu CLK_BUS 394 clocks = <&ccu CLK_BUS_TCON1>, <&ccu CLK_TCON1>; 491 clock-names = "ahb", " 395 clock-names = "ahb", "tcon-ch1"; 492 resets = <&ccu RST_BUS 396 resets = <&ccu RST_BUS_TCON1>; 493 reset-names = "lcd"; 397 reset-names = "lcd"; 494 398 495 ports { 399 ports { 496 #address-cells 400 #address-cells = <1>; 497 #size-cells = 401 #size-cells = <0>; 498 402 499 tcon1_in: port 403 tcon1_in: port@0 { 500 #addre 404 #address-cells = <1>; 501 #size- 405 #size-cells = <0>; 502 reg = 406 reg = <0>; 503 407 504 tcon1_ 408 tcon1_in_mixer0: endpoint@0 { 505 409 reg = <0>; 506 410 remote-endpoint = <&mixer0_out_tcon1>; 507 }; 411 }; 508 412 509 tcon1_ 413 tcon1_in_mixer1: endpoint@1 { 510 414 reg = <1>; 511 415 remote-endpoint = <&mixer1_out_tcon1>; 512 }; 416 }; 513 }; 417 }; 514 418 515 tcon1_out: por 419 tcon1_out: port@1 { 516 #addre 420 #address-cells = <1>; 517 #size- 421 #size-cells = <0>; 518 reg = 422 reg = <1>; 519 423 520 tcon1_ 424 tcon1_out_hdmi: endpoint@1 { 521 425 reg = <1>; 522 426 remote-endpoint = <&hdmi_in_tcon1>; 523 }; 427 }; 524 }; 428 }; 525 }; 429 }; 526 }; 430 }; 527 431 528 video-codec@1c0e000 { 432 video-codec@1c0e000 { 529 compatible = "allwinne 433 compatible = "allwinner,sun50i-a64-video-engine"; 530 reg = <0x01c0e000 0x10 434 reg = <0x01c0e000 0x1000>; 531 clocks = <&ccu CLK_BUS 435 clocks = <&ccu CLK_BUS_VE>, <&ccu CLK_VE>, 532 <&ccu CLK_DRA 436 <&ccu CLK_DRAM_VE>; 533 clock-names = "ahb", " 437 clock-names = "ahb", "mod", "ram"; 534 resets = <&ccu RST_BUS 438 resets = <&ccu RST_BUS_VE>; 535 interrupts = <GIC_SPI 439 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>; 536 allwinner,sram = <&ve_ 440 allwinner,sram = <&ve_sram 1>; 537 }; 441 }; 538 442 539 mmc0: mmc@1c0f000 { 443 mmc0: mmc@1c0f000 { 540 compatible = "allwinne 444 compatible = "allwinner,sun50i-a64-mmc"; 541 reg = <0x01c0f000 0x10 445 reg = <0x01c0f000 0x1000>; 542 clocks = <&ccu CLK_BUS 446 clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>; 543 clock-names = "ahb", " 447 clock-names = "ahb", "mmc"; 544 resets = <&ccu RST_BUS 448 resets = <&ccu RST_BUS_MMC0>; 545 reset-names = "ahb"; 449 reset-names = "ahb"; 546 interrupts = <GIC_SPI 450 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; 547 max-frequency = <15000 451 max-frequency = <150000000>; 548 status = "disabled"; 452 status = "disabled"; 549 #address-cells = <1>; 453 #address-cells = <1>; 550 #size-cells = <0>; 454 #size-cells = <0>; 551 }; 455 }; 552 456 553 mmc1: mmc@1c10000 { 457 mmc1: mmc@1c10000 { 554 compatible = "allwinne 458 compatible = "allwinner,sun50i-a64-mmc"; 555 reg = <0x01c10000 0x10 459 reg = <0x01c10000 0x1000>; 556 clocks = <&ccu CLK_BUS 460 clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>; 557 clock-names = "ahb", " 461 clock-names = "ahb", "mmc"; 558 resets = <&ccu RST_BUS 462 resets = <&ccu RST_BUS_MMC1>; 559 reset-names = "ahb"; 463 reset-names = "ahb"; 560 interrupts = <GIC_SPI 464 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; 561 max-frequency = <15000 465 max-frequency = <150000000>; 562 status = "disabled"; 466 status = "disabled"; 563 #address-cells = <1>; 467 #address-cells = <1>; 564 #size-cells = <0>; 468 #size-cells = <0>; 565 }; 469 }; 566 470 567 mmc2: mmc@1c11000 { 471 mmc2: mmc@1c11000 { 568 compatible = "allwinne 472 compatible = "allwinner,sun50i-a64-emmc"; 569 reg = <0x01c11000 0x10 473 reg = <0x01c11000 0x1000>; 570 clocks = <&ccu CLK_BUS 474 clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>; 571 clock-names = "ahb", " 475 clock-names = "ahb", "mmc"; 572 resets = <&ccu RST_BUS 476 resets = <&ccu RST_BUS_MMC2>; 573 reset-names = "ahb"; 477 reset-names = "ahb"; 574 interrupts = <GIC_SPI 478 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; 575 max-frequency = <15000 !! 479 max-frequency = <200000000>; 576 status = "disabled"; 480 status = "disabled"; 577 #address-cells = <1>; 481 #address-cells = <1>; 578 #size-cells = <0>; 482 #size-cells = <0>; 579 }; 483 }; 580 484 581 sid: eeprom@1c14000 { 485 sid: eeprom@1c14000 { 582 compatible = "allwinne 486 compatible = "allwinner,sun50i-a64-sid"; 583 reg = <0x1c14000 0x400 487 reg = <0x1c14000 0x400>; 584 #address-cells = <1>; << 585 #size-cells = <1>; << 586 << 587 ths_calibration: therm << 588 reg = <0x34 0x << 589 }; << 590 }; << 591 << 592 crypto: crypto@1c15000 { << 593 compatible = "allwinne << 594 reg = <0x01c15000 0x10 << 595 interrupts = <GIC_SPI << 596 clocks = <&ccu CLK_BUS << 597 clock-names = "bus", " << 598 resets = <&ccu RST_BUS << 599 }; << 600 << 601 msgbox: mailbox@1c17000 { << 602 compatible = "allwinne << 603 "allwinne << 604 reg = <0x01c17000 0x10 << 605 clocks = <&ccu CLK_BUS << 606 resets = <&ccu RST_BUS << 607 interrupts = <GIC_SPI << 608 #mbox-cells = <1>; << 609 }; 488 }; 610 489 611 usb_otg: usb@1c19000 { 490 usb_otg: usb@1c19000 { 612 compatible = "allwinne 491 compatible = "allwinner,sun8i-a33-musb"; 613 reg = <0x01c19000 0x04 492 reg = <0x01c19000 0x0400>; 614 clocks = <&ccu CLK_BUS 493 clocks = <&ccu CLK_BUS_OTG>; 615 resets = <&ccu RST_BUS 494 resets = <&ccu RST_BUS_OTG>; 616 interrupts = <GIC_SPI 495 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; 617 interrupt-names = "mc" 496 interrupt-names = "mc"; 618 phys = <&usbphy 0>; 497 phys = <&usbphy 0>; 619 phy-names = "usb"; 498 phy-names = "usb"; 620 extcon = <&usbphy 0>; 499 extcon = <&usbphy 0>; 621 dr_mode = "otg"; 500 dr_mode = "otg"; 622 status = "disabled"; 501 status = "disabled"; 623 }; 502 }; 624 503 625 usbphy: phy@1c19400 { 504 usbphy: phy@1c19400 { 626 compatible = "allwinne 505 compatible = "allwinner,sun50i-a64-usb-phy"; 627 reg = <0x01c19400 0x14 506 reg = <0x01c19400 0x14>, 628 <0x01c1a800 0x4> 507 <0x01c1a800 0x4>, 629 <0x01c1b800 0x4> 508 <0x01c1b800 0x4>; 630 reg-names = "phy_ctrl" 509 reg-names = "phy_ctrl", 631 "pmu0", 510 "pmu0", 632 "pmu1"; 511 "pmu1"; 633 clocks = <&ccu CLK_USB 512 clocks = <&ccu CLK_USB_PHY0>, 634 <&ccu CLK_USB 513 <&ccu CLK_USB_PHY1>; 635 clock-names = "usb0_ph 514 clock-names = "usb0_phy", 636 "usb1_ph 515 "usb1_phy"; 637 resets = <&ccu RST_USB 516 resets = <&ccu RST_USB_PHY0>, 638 <&ccu RST_USB 517 <&ccu RST_USB_PHY1>; 639 reset-names = "usb0_re 518 reset-names = "usb0_reset", 640 "usb1_re 519 "usb1_reset"; 641 status = "disabled"; 520 status = "disabled"; 642 #phy-cells = <1>; 521 #phy-cells = <1>; 643 }; 522 }; 644 523 645 ehci0: usb@1c1a000 { 524 ehci0: usb@1c1a000 { 646 compatible = "allwinne 525 compatible = "allwinner,sun50i-a64-ehci", "generic-ehci"; 647 reg = <0x01c1a000 0x10 526 reg = <0x01c1a000 0x100>; 648 interrupts = <GIC_SPI 527 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; 649 clocks = <&ccu CLK_BUS 528 clocks = <&ccu CLK_BUS_OHCI0>, 650 <&ccu CLK_BUS 529 <&ccu CLK_BUS_EHCI0>, 651 <&ccu CLK_USB 530 <&ccu CLK_USB_OHCI0>; 652 resets = <&ccu RST_BUS 531 resets = <&ccu RST_BUS_OHCI0>, 653 <&ccu RST_BUS 532 <&ccu RST_BUS_EHCI0>; 654 phys = <&usbphy 0>; << 655 phy-names = "usb"; << 656 status = "disabled"; 533 status = "disabled"; 657 }; 534 }; 658 535 659 ohci0: usb@1c1a400 { 536 ohci0: usb@1c1a400 { 660 compatible = "allwinne 537 compatible = "allwinner,sun50i-a64-ohci", "generic-ohci"; 661 reg = <0x01c1a400 0x10 538 reg = <0x01c1a400 0x100>; 662 interrupts = <GIC_SPI 539 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; 663 clocks = <&ccu CLK_BUS 540 clocks = <&ccu CLK_BUS_OHCI0>, 664 <&ccu CLK_USB 541 <&ccu CLK_USB_OHCI0>; 665 resets = <&ccu RST_BUS 542 resets = <&ccu RST_BUS_OHCI0>; 666 phys = <&usbphy 0>; << 667 phy-names = "usb"; << 668 status = "disabled"; 543 status = "disabled"; 669 }; 544 }; 670 545 671 ehci1: usb@1c1b000 { 546 ehci1: usb@1c1b000 { 672 compatible = "allwinne 547 compatible = "allwinner,sun50i-a64-ehci", "generic-ehci"; 673 reg = <0x01c1b000 0x10 548 reg = <0x01c1b000 0x100>; 674 interrupts = <GIC_SPI 549 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; 675 clocks = <&ccu CLK_BUS 550 clocks = <&ccu CLK_BUS_OHCI1>, 676 <&ccu CLK_BUS 551 <&ccu CLK_BUS_EHCI1>, 677 <&ccu CLK_USB 552 <&ccu CLK_USB_OHCI1>; 678 resets = <&ccu RST_BUS 553 resets = <&ccu RST_BUS_OHCI1>, 679 <&ccu RST_BUS 554 <&ccu RST_BUS_EHCI1>; 680 phys = <&usbphy 1>; 555 phys = <&usbphy 1>; 681 phy-names = "usb"; << 682 status = "disabled"; 556 status = "disabled"; 683 }; 557 }; 684 558 685 ohci1: usb@1c1b400 { 559 ohci1: usb@1c1b400 { 686 compatible = "allwinne 560 compatible = "allwinner,sun50i-a64-ohci", "generic-ohci"; 687 reg = <0x01c1b400 0x10 561 reg = <0x01c1b400 0x100>; 688 interrupts = <GIC_SPI 562 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>; 689 clocks = <&ccu CLK_BUS 563 clocks = <&ccu CLK_BUS_OHCI1>, 690 <&ccu CLK_USB 564 <&ccu CLK_USB_OHCI1>; 691 resets = <&ccu RST_BUS 565 resets = <&ccu RST_BUS_OHCI1>; 692 phys = <&usbphy 1>; 566 phys = <&usbphy 1>; 693 phy-names = "usb"; << 694 status = "disabled"; 567 status = "disabled"; 695 }; 568 }; 696 569 697 ccu: clock@1c20000 { 570 ccu: clock@1c20000 { 698 compatible = "allwinne 571 compatible = "allwinner,sun50i-a64-ccu"; 699 reg = <0x01c20000 0x40 572 reg = <0x01c20000 0x400>; 700 clocks = <&osc24M>, <& !! 573 clocks = <&osc24M>, <&rtc 0>; 701 clock-names = "hosc", 574 clock-names = "hosc", "losc"; 702 #clock-cells = <1>; 575 #clock-cells = <1>; 703 #reset-cells = <1>; 576 #reset-cells = <1>; 704 }; 577 }; 705 578 706 pio: pinctrl@1c20800 { 579 pio: pinctrl@1c20800 { 707 compatible = "allwinne 580 compatible = "allwinner,sun50i-a64-pinctrl"; 708 reg = <0x01c20800 0x40 581 reg = <0x01c20800 0x400>; 709 interrupt-parent = <&r << 710 interrupts = <GIC_SPI 582 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>, 711 <GIC_SPI 583 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>, 712 <GIC_SPI 584 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; 713 clocks = <&ccu CLK_BUS !! 585 clocks = <&ccu 58>, <&osc24M>, <&rtc 0>; 714 <&rtc CLK_OSC << 715 clock-names = "apb", " 586 clock-names = "apb", "hosc", "losc"; 716 gpio-controller; 587 gpio-controller; 717 #gpio-cells = <3>; 588 #gpio-cells = <3>; 718 interrupt-controller; 589 interrupt-controller; 719 #interrupt-cells = <3> 590 #interrupt-cells = <3>; 720 591 721 /omit-if-no-ref/ << 722 aif2_pins: aif2-pins { << 723 pins = "PB4", << 724 function = "ai << 725 }; << 726 << 727 /omit-if-no-ref/ << 728 aif3_pins: aif3-pins { << 729 pins = "PG10", << 730 function = "ai << 731 }; << 732 << 733 csi_pins: csi-pins { 592 csi_pins: csi-pins { 734 pins = "PE0", 593 pins = "PE0", "PE2", "PE3", "PE4", "PE5", "PE6", 735 "PE7", 594 "PE7", "PE8", "PE9", "PE10", "PE11"; 736 function = "cs 595 function = "csi"; 737 }; 596 }; 738 597 739 /omit-if-no-ref/ 598 /omit-if-no-ref/ 740 csi_mclk_pin: csi-mclk 599 csi_mclk_pin: csi-mclk-pin { 741 pins = "PE1"; 600 pins = "PE1"; 742 function = "cs 601 function = "csi"; 743 }; 602 }; 744 603 745 i2c0_pins: i2c0-pins { 604 i2c0_pins: i2c0-pins { 746 pins = "PH0", 605 pins = "PH0", "PH1"; 747 function = "i2 606 function = "i2c0"; 748 }; 607 }; 749 608 750 i2c1_pins: i2c1-pins { 609 i2c1_pins: i2c1-pins { 751 pins = "PH2", 610 pins = "PH2", "PH3"; 752 function = "i2 611 function = "i2c1"; 753 }; 612 }; 754 613 755 i2c2_pins: i2c2-pins { << 756 pins = "PE14", << 757 function = "i2 << 758 }; << 759 << 760 /omit-if-no-ref/ << 761 lcd_rgb666_pins: lcd-r << 762 pins = "PD0", << 763 "PD5", << 764 "PD10", << 765 "PD14", << 766 "PD18", << 767 function = "lc << 768 }; << 769 << 770 mmc0_pins: mmc0-pins { 614 mmc0_pins: mmc0-pins { 771 pins = "PF0", 615 pins = "PF0", "PF1", "PF2", "PF3", 772 "PF4", 616 "PF4", "PF5"; 773 function = "mm 617 function = "mmc0"; 774 drive-strength 618 drive-strength = <30>; 775 bias-pull-up; 619 bias-pull-up; 776 }; 620 }; 777 621 778 mmc1_pins: mmc1-pins { 622 mmc1_pins: mmc1-pins { 779 pins = "PG0", 623 pins = "PG0", "PG1", "PG2", "PG3", 780 "PG4", 624 "PG4", "PG5"; 781 function = "mm 625 function = "mmc1"; 782 drive-strength 626 drive-strength = <30>; 783 bias-pull-up; 627 bias-pull-up; 784 }; 628 }; 785 629 786 mmc2_pins: mmc2-pins { 630 mmc2_pins: mmc2-pins { 787 pins = "PC5", 631 pins = "PC5", "PC6", "PC8", "PC9", 788 "PC10", 632 "PC10","PC11", "PC12", "PC13", 789 "PC14", 633 "PC14", "PC15", "PC16"; 790 function = "mm 634 function = "mmc2"; 791 drive-strength 635 drive-strength = <30>; 792 bias-pull-up; 636 bias-pull-up; 793 }; 637 }; 794 638 795 mmc2_ds_pin: mmc2-ds-p 639 mmc2_ds_pin: mmc2-ds-pin { 796 pins = "PC1"; 640 pins = "PC1"; 797 function = "mm 641 function = "mmc2"; 798 drive-strength 642 drive-strength = <30>; 799 bias-pull-up; 643 bias-pull-up; 800 }; 644 }; 801 645 802 pwm_pin: pwm-pin { 646 pwm_pin: pwm-pin { 803 pins = "PD22"; 647 pins = "PD22"; 804 function = "pw 648 function = "pwm"; 805 }; 649 }; 806 650 807 rmii_pins: rmii-pins { 651 rmii_pins: rmii-pins { 808 pins = "PD10", 652 pins = "PD10", "PD11", "PD13", "PD14", "PD17", 809 "PD18", 653 "PD18", "PD19", "PD20", "PD22", "PD23"; 810 function = "em 654 function = "emac"; 811 drive-strength 655 drive-strength = <40>; 812 }; 656 }; 813 657 814 rgmii_pins: rgmii-pins 658 rgmii_pins: rgmii-pins { 815 pins = "PD8", 659 pins = "PD8", "PD9", "PD10", "PD11", "PD12", 816 "PD13", 660 "PD13", "PD15", "PD16", "PD17", "PD18", 817 "PD19", 661 "PD19", "PD20", "PD21", "PD22", "PD23"; 818 function = "em 662 function = "emac"; 819 drive-strength 663 drive-strength = <40>; 820 }; 664 }; 821 665 822 spdif_tx_pin: spdif-tx 666 spdif_tx_pin: spdif-tx-pin { 823 pins = "PH8"; 667 pins = "PH8"; 824 function = "sp 668 function = "spdif"; 825 }; 669 }; 826 670 827 spi0_pins: spi0-pins { 671 spi0_pins: spi0-pins { 828 pins = "PC0", 672 pins = "PC0", "PC1", "PC2", "PC3"; 829 function = "sp 673 function = "spi0"; 830 }; 674 }; 831 675 832 spi1_pins: spi1-pins { 676 spi1_pins: spi1-pins { 833 pins = "PD0", 677 pins = "PD0", "PD1", "PD2", "PD3"; 834 function = "sp 678 function = "spi1"; 835 }; 679 }; 836 680 837 uart0_pb_pins: uart0-p 681 uart0_pb_pins: uart0-pb-pins { 838 pins = "PB8", 682 pins = "PB8", "PB9"; 839 function = "ua 683 function = "uart0"; 840 }; 684 }; 841 685 842 uart1_pins: uart1-pins 686 uart1_pins: uart1-pins { 843 pins = "PG6", 687 pins = "PG6", "PG7"; 844 function = "ua 688 function = "uart1"; 845 }; 689 }; 846 690 847 uart1_rts_cts_pins: ua 691 uart1_rts_cts_pins: uart1-rts-cts-pins { 848 pins = "PG8", 692 pins = "PG8", "PG9"; 849 function = "ua 693 function = "uart1"; 850 }; 694 }; 851 695 852 uart2_pins: uart2-pins 696 uart2_pins: uart2-pins { 853 pins = "PB0", 697 pins = "PB0", "PB1"; 854 function = "ua 698 function = "uart2"; 855 }; 699 }; 856 700 857 uart3_pins: uart3-pins 701 uart3_pins: uart3-pins { 858 pins = "PD0", 702 pins = "PD0", "PD1"; 859 function = "ua 703 function = "uart3"; 860 }; 704 }; 861 705 862 uart4_pins: uart4-pins 706 uart4_pins: uart4-pins { 863 pins = "PD2", 707 pins = "PD2", "PD3"; 864 function = "ua 708 function = "uart4"; 865 }; 709 }; 866 710 867 uart4_rts_cts_pins: ua 711 uart4_rts_cts_pins: uart4-rts-cts-pins { 868 pins = "PD4", 712 pins = "PD4", "PD5"; 869 function = "ua 713 function = "uart4"; 870 }; 714 }; 871 }; 715 }; 872 716 873 timer@1c20c00 { << 874 compatible = "allwinne << 875 "allwinne << 876 reg = <0x01c20c00 0xa0 << 877 interrupts = <GIC_SPI << 878 <GIC_SPI << 879 clocks = <&osc24M>; << 880 }; << 881 << 882 wdt0: watchdog@1c20ca0 { << 883 compatible = "allwinne << 884 "allwinne << 885 reg = <0x01c20ca0 0x20 << 886 interrupts = <GIC_SPI << 887 clocks = <&osc24M>; << 888 }; << 889 << 890 spdif: spdif@1c21000 { 717 spdif: spdif@1c21000 { 891 #sound-dai-cells = <0> 718 #sound-dai-cells = <0>; 892 compatible = "allwinne 719 compatible = "allwinner,sun50i-a64-spdif", 893 "allwinne 720 "allwinner,sun8i-h3-spdif"; 894 reg = <0x01c21000 0x40 721 reg = <0x01c21000 0x400>; 895 interrupts = <GIC_SPI 722 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; 896 clocks = <&ccu CLK_BUS 723 clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>; 897 resets = <&ccu RST_BUS 724 resets = <&ccu RST_BUS_SPDIF>; 898 clock-names = "apb", " 725 clock-names = "apb", "spdif"; 899 dmas = <&dma 2>; 726 dmas = <&dma 2>; 900 dma-names = "tx"; 727 dma-names = "tx"; 901 pinctrl-names = "defau 728 pinctrl-names = "default"; 902 pinctrl-0 = <&spdif_tx 729 pinctrl-0 = <&spdif_tx_pin>; 903 status = "disabled"; 730 status = "disabled"; 904 }; 731 }; 905 732 906 lradc: lradc@1c21800 { << 907 compatible = "allwinne << 908 "allwinne << 909 reg = <0x01c21800 0x40 << 910 interrupt-parent = <&r << 911 interrupts = <GIC_SPI << 912 status = "disabled"; << 913 }; << 914 << 915 i2s0: i2s@1c22000 { 733 i2s0: i2s@1c22000 { 916 #sound-dai-cells = <0> 734 #sound-dai-cells = <0>; 917 compatible = "allwinne 735 compatible = "allwinner,sun50i-a64-i2s", 918 "allwinne 736 "allwinner,sun8i-h3-i2s"; 919 reg = <0x01c22000 0x40 737 reg = <0x01c22000 0x400>; 920 interrupts = <GIC_SPI 738 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; 921 clocks = <&ccu CLK_BUS 739 clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>; 922 clock-names = "apb", " 740 clock-names = "apb", "mod"; 923 resets = <&ccu RST_BUS 741 resets = <&ccu RST_BUS_I2S0>; 924 dma-names = "rx", "tx" 742 dma-names = "rx", "tx"; 925 dmas = <&dma 3>, <&dma 743 dmas = <&dma 3>, <&dma 3>; 926 status = "disabled"; 744 status = "disabled"; 927 }; 745 }; 928 746 929 i2s1: i2s@1c22400 { 747 i2s1: i2s@1c22400 { 930 #sound-dai-cells = <0> 748 #sound-dai-cells = <0>; 931 compatible = "allwinne 749 compatible = "allwinner,sun50i-a64-i2s", 932 "allwinne 750 "allwinner,sun8i-h3-i2s"; 933 reg = <0x01c22400 0x40 751 reg = <0x01c22400 0x400>; 934 interrupts = <GIC_SPI 752 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; 935 clocks = <&ccu CLK_BUS 753 clocks = <&ccu CLK_BUS_I2S1>, <&ccu CLK_I2S1>; 936 clock-names = "apb", " 754 clock-names = "apb", "mod"; 937 resets = <&ccu RST_BUS 755 resets = <&ccu RST_BUS_I2S1>; 938 dma-names = "rx", "tx" 756 dma-names = "rx", "tx"; 939 dmas = <&dma 4>, <&dma 757 dmas = <&dma 4>, <&dma 4>; 940 status = "disabled"; 758 status = "disabled"; 941 }; 759 }; 942 760 943 i2s2: i2s@1c22800 { << 944 #sound-dai-cells = <0> << 945 compatible = "allwinne << 946 "allwinne << 947 reg = <0x01c22800 0x40 << 948 interrupts = <GIC_SPI << 949 clocks = <&ccu CLK_BUS << 950 clock-names = "apb", " << 951 resets = <&ccu RST_BUS << 952 dma-names = "rx", "tx" << 953 dmas = <&dma 27>, <&dm << 954 status = "disabled"; << 955 }; << 956 << 957 dai: dai@1c22c00 { 761 dai: dai@1c22c00 { 958 #sound-dai-cells = <0> 762 #sound-dai-cells = <0>; 959 compatible = "allwinne 763 compatible = "allwinner,sun50i-a64-codec-i2s"; 960 reg = <0x01c22c00 0x20 764 reg = <0x01c22c00 0x200>; 961 interrupts = <GIC_SPI 765 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; 962 clocks = <&ccu CLK_BUS 766 clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>; 963 clock-names = "apb", " 767 clock-names = "apb", "mod"; 964 resets = <&ccu RST_BUS 768 resets = <&ccu RST_BUS_CODEC>; 965 dmas = <&dma 15>, <&dm 769 dmas = <&dma 15>, <&dma 15>; 966 dma-names = "rx", "tx" 770 dma-names = "rx", "tx"; 967 status = "disabled"; 771 status = "disabled"; 968 }; 772 }; 969 773 970 codec: codec@1c22e00 { 774 codec: codec@1c22e00 { 971 #sound-dai-cells = <1> !! 775 #sound-dai-cells = <0>; 972 compatible = "allwinne !! 776 compatible = "allwinner,sun8i-a33-codec"; 973 "allwinne << 974 reg = <0x01c22e00 0x60 777 reg = <0x01c22e00 0x600>; 975 interrupts = <GIC_SPI 778 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; 976 clocks = <&ccu CLK_BUS 779 clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>; 977 clock-names = "bus", " 780 clock-names = "bus", "mod"; 978 status = "disabled"; 781 status = "disabled"; 979 }; 782 }; 980 783 981 ths: thermal-sensor@1c25000 { << 982 compatible = "allwinne << 983 reg = <0x01c25000 0x10 << 984 clocks = <&ccu CLK_BUS << 985 clock-names = "bus", " << 986 interrupts = <GIC_SPI << 987 resets = <&ccu RST_BUS << 988 nvmem-cells = <&ths_ca << 989 nvmem-cell-names = "ca << 990 #thermal-sensor-cells << 991 }; << 992 << 993 uart0: serial@1c28000 { 784 uart0: serial@1c28000 { 994 compatible = "snps,dw- 785 compatible = "snps,dw-apb-uart"; 995 reg = <0x01c28000 0x40 786 reg = <0x01c28000 0x400>; 996 interrupts = <GIC_SPI 787 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; 997 reg-shift = <2>; 788 reg-shift = <2>; 998 reg-io-width = <4>; 789 reg-io-width = <4>; 999 clocks = <&ccu CLK_BUS 790 clocks = <&ccu CLK_BUS_UART0>; 1000 resets = <&ccu RST_BU 791 resets = <&ccu RST_BUS_UART0>; 1001 status = "disabled"; 792 status = "disabled"; 1002 }; 793 }; 1003 794 1004 uart1: serial@1c28400 { 795 uart1: serial@1c28400 { 1005 compatible = "snps,dw 796 compatible = "snps,dw-apb-uart"; 1006 reg = <0x01c28400 0x4 797 reg = <0x01c28400 0x400>; 1007 interrupts = <GIC_SPI 798 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; 1008 reg-shift = <2>; 799 reg-shift = <2>; 1009 reg-io-width = <4>; 800 reg-io-width = <4>; 1010 clocks = <&ccu CLK_BU 801 clocks = <&ccu CLK_BUS_UART1>; 1011 resets = <&ccu RST_BU 802 resets = <&ccu RST_BUS_UART1>; 1012 status = "disabled"; 803 status = "disabled"; 1013 }; 804 }; 1014 805 1015 uart2: serial@1c28800 { 806 uart2: serial@1c28800 { 1016 compatible = "snps,dw 807 compatible = "snps,dw-apb-uart"; 1017 reg = <0x01c28800 0x4 808 reg = <0x01c28800 0x400>; 1018 interrupts = <GIC_SPI 809 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; 1019 reg-shift = <2>; 810 reg-shift = <2>; 1020 reg-io-width = <4>; 811 reg-io-width = <4>; 1021 clocks = <&ccu CLK_BU 812 clocks = <&ccu CLK_BUS_UART2>; 1022 resets = <&ccu RST_BU 813 resets = <&ccu RST_BUS_UART2>; 1023 status = "disabled"; 814 status = "disabled"; 1024 }; 815 }; 1025 816 1026 uart3: serial@1c28c00 { 817 uart3: serial@1c28c00 { 1027 compatible = "snps,dw 818 compatible = "snps,dw-apb-uart"; 1028 reg = <0x01c28c00 0x4 819 reg = <0x01c28c00 0x400>; 1029 interrupts = <GIC_SPI 820 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; 1030 reg-shift = <2>; 821 reg-shift = <2>; 1031 reg-io-width = <4>; 822 reg-io-width = <4>; 1032 clocks = <&ccu CLK_BU 823 clocks = <&ccu CLK_BUS_UART3>; 1033 resets = <&ccu RST_BU 824 resets = <&ccu RST_BUS_UART3>; 1034 status = "disabled"; 825 status = "disabled"; 1035 }; 826 }; 1036 827 1037 uart4: serial@1c29000 { 828 uart4: serial@1c29000 { 1038 compatible = "snps,dw 829 compatible = "snps,dw-apb-uart"; 1039 reg = <0x01c29000 0x4 830 reg = <0x01c29000 0x400>; 1040 interrupts = <GIC_SPI 831 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; 1041 reg-shift = <2>; 832 reg-shift = <2>; 1042 reg-io-width = <4>; 833 reg-io-width = <4>; 1043 clocks = <&ccu CLK_BU 834 clocks = <&ccu CLK_BUS_UART4>; 1044 resets = <&ccu RST_BU 835 resets = <&ccu RST_BUS_UART4>; 1045 status = "disabled"; 836 status = "disabled"; 1046 }; 837 }; 1047 838 1048 i2c0: i2c@1c2ac00 { 839 i2c0: i2c@1c2ac00 { 1049 compatible = "allwinn 840 compatible = "allwinner,sun6i-a31-i2c"; 1050 reg = <0x01c2ac00 0x4 841 reg = <0x01c2ac00 0x400>; 1051 interrupts = <GIC_SPI 842 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; 1052 clocks = <&ccu CLK_BU 843 clocks = <&ccu CLK_BUS_I2C0>; 1053 resets = <&ccu RST_BU 844 resets = <&ccu RST_BUS_I2C0>; 1054 pinctrl-names = "defa << 1055 pinctrl-0 = <&i2c0_pi << 1056 status = "disabled"; 845 status = "disabled"; 1057 #address-cells = <1>; 846 #address-cells = <1>; 1058 #size-cells = <0>; 847 #size-cells = <0>; 1059 }; 848 }; 1060 849 1061 i2c1: i2c@1c2b000 { 850 i2c1: i2c@1c2b000 { 1062 compatible = "allwinn 851 compatible = "allwinner,sun6i-a31-i2c"; 1063 reg = <0x01c2b000 0x4 852 reg = <0x01c2b000 0x400>; 1064 interrupts = <GIC_SPI 853 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; 1065 clocks = <&ccu CLK_BU 854 clocks = <&ccu CLK_BUS_I2C1>; 1066 resets = <&ccu RST_BU 855 resets = <&ccu RST_BUS_I2C1>; 1067 pinctrl-names = "defa << 1068 pinctrl-0 = <&i2c1_pi << 1069 status = "disabled"; 856 status = "disabled"; 1070 #address-cells = <1>; 857 #address-cells = <1>; 1071 #size-cells = <0>; 858 #size-cells = <0>; 1072 }; 859 }; 1073 860 1074 i2c2: i2c@1c2b400 { 861 i2c2: i2c@1c2b400 { 1075 compatible = "allwinn 862 compatible = "allwinner,sun6i-a31-i2c"; 1076 reg = <0x01c2b400 0x4 863 reg = <0x01c2b400 0x400>; 1077 interrupts = <GIC_SPI 864 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; 1078 clocks = <&ccu CLK_BU 865 clocks = <&ccu CLK_BUS_I2C2>; 1079 resets = <&ccu RST_BU 866 resets = <&ccu RST_BUS_I2C2>; 1080 pinctrl-names = "defa << 1081 pinctrl-0 = <&i2c2_pi << 1082 status = "disabled"; 867 status = "disabled"; 1083 #address-cells = <1>; 868 #address-cells = <1>; 1084 #size-cells = <0>; 869 #size-cells = <0>; 1085 }; 870 }; 1086 871 >> 872 1087 spi0: spi@1c68000 { 873 spi0: spi@1c68000 { 1088 compatible = "allwinn 874 compatible = "allwinner,sun8i-h3-spi"; 1089 reg = <0x01c68000 0x1 875 reg = <0x01c68000 0x1000>; 1090 interrupts = <GIC_SPI 876 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; 1091 clocks = <&ccu CLK_BU 877 clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>; 1092 clock-names = "ahb", 878 clock-names = "ahb", "mod"; 1093 dmas = <&dma 23>, <&d 879 dmas = <&dma 23>, <&dma 23>; 1094 dma-names = "rx", "tx 880 dma-names = "rx", "tx"; 1095 pinctrl-names = "defa 881 pinctrl-names = "default"; 1096 pinctrl-0 = <&spi0_pi 882 pinctrl-0 = <&spi0_pins>; 1097 resets = <&ccu RST_BU 883 resets = <&ccu RST_BUS_SPI0>; 1098 status = "disabled"; 884 status = "disabled"; 1099 num-cs = <1>; 885 num-cs = <1>; 1100 #address-cells = <1>; 886 #address-cells = <1>; 1101 #size-cells = <0>; 887 #size-cells = <0>; 1102 }; 888 }; 1103 889 1104 spi1: spi@1c69000 { 890 spi1: spi@1c69000 { 1105 compatible = "allwinn 891 compatible = "allwinner,sun8i-h3-spi"; 1106 reg = <0x01c69000 0x1 892 reg = <0x01c69000 0x1000>; 1107 interrupts = <GIC_SPI 893 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>; 1108 clocks = <&ccu CLK_BU 894 clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>; 1109 clock-names = "ahb", 895 clock-names = "ahb", "mod"; 1110 dmas = <&dma 24>, <&d 896 dmas = <&dma 24>, <&dma 24>; 1111 dma-names = "rx", "tx 897 dma-names = "rx", "tx"; 1112 pinctrl-names = "defa 898 pinctrl-names = "default"; 1113 pinctrl-0 = <&spi1_pi 899 pinctrl-0 = <&spi1_pins>; 1114 resets = <&ccu RST_BU 900 resets = <&ccu RST_BUS_SPI1>; 1115 status = "disabled"; 901 status = "disabled"; 1116 num-cs = <1>; 902 num-cs = <1>; 1117 #address-cells = <1>; 903 #address-cells = <1>; 1118 #size-cells = <0>; 904 #size-cells = <0>; 1119 }; 905 }; 1120 906 1121 emac: ethernet@1c30000 { 907 emac: ethernet@1c30000 { 1122 compatible = "allwinn 908 compatible = "allwinner,sun50i-a64-emac"; 1123 syscon = <&syscon>; 909 syscon = <&syscon>; 1124 reg = <0x01c30000 0x1 910 reg = <0x01c30000 0x10000>; 1125 interrupts = <GIC_SPI 911 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; 1126 interrupt-names = "ma 912 interrupt-names = "macirq"; 1127 resets = <&ccu RST_BU 913 resets = <&ccu RST_BUS_EMAC>; 1128 reset-names = "stmmac 914 reset-names = "stmmaceth"; 1129 clocks = <&ccu CLK_BU 915 clocks = <&ccu CLK_BUS_EMAC>; 1130 clock-names = "stmmac 916 clock-names = "stmmaceth"; 1131 status = "disabled"; 917 status = "disabled"; 1132 918 1133 mdio: mdio { 919 mdio: mdio { 1134 compatible = 920 compatible = "snps,dwmac-mdio"; 1135 #address-cell 921 #address-cells = <1>; 1136 #size-cells = 922 #size-cells = <0>; 1137 }; 923 }; 1138 }; 924 }; 1139 925 1140 mali: gpu@1c40000 { 926 mali: gpu@1c40000 { 1141 compatible = "allwinn 927 compatible = "allwinner,sun50i-a64-mali", "arm,mali-400"; 1142 reg = <0x01c40000 0x1 928 reg = <0x01c40000 0x10000>; 1143 interrupts = <GIC_SPI 929 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>, 1144 <GIC_SPI 930 <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>, 1145 <GIC_SPI 931 <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>, 1146 <GIC_SPI 932 <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>, 1147 <GIC_SPI 933 <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>, 1148 <GIC_SPI 934 <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>, 1149 <GIC_SPI 935 <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>; 1150 interrupt-names = "gp 936 interrupt-names = "gp", 1151 "gp 937 "gpmmu", 1152 "pp 938 "pp0", 1153 "pp 939 "ppmmu0", 1154 "pp 940 "pp1", 1155 "pp 941 "ppmmu1", 1156 "pm 942 "pmu"; 1157 clocks = <&ccu CLK_BU 943 clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>; 1158 clock-names = "bus", 944 clock-names = "bus", "core"; 1159 resets = <&ccu RST_BU 945 resets = <&ccu RST_BUS_GPU>; 1160 operating-points-v2 = << 1161 }; 946 }; 1162 947 1163 gic: interrupt-controller@1c8 948 gic: interrupt-controller@1c81000 { 1164 compatible = "arm,gic 949 compatible = "arm,gic-400"; 1165 reg = <0x01c81000 0x1 950 reg = <0x01c81000 0x1000>, 1166 <0x01c82000 0x2 951 <0x01c82000 0x2000>, 1167 <0x01c84000 0x2 952 <0x01c84000 0x2000>, 1168 <0x01c86000 0x2 953 <0x01c86000 0x2000>; 1169 interrupts = <GIC_PPI 954 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; 1170 interrupt-controller; 955 interrupt-controller; 1171 #interrupt-cells = <3 956 #interrupt-cells = <3>; 1172 }; 957 }; 1173 958 1174 pwm: pwm@1c21400 { 959 pwm: pwm@1c21400 { 1175 compatible = "allwinn 960 compatible = "allwinner,sun50i-a64-pwm", 1176 "allwinn 961 "allwinner,sun5i-a13-pwm"; 1177 reg = <0x01c21400 0x4 962 reg = <0x01c21400 0x400>; 1178 clocks = <&osc24M>; 963 clocks = <&osc24M>; 1179 pinctrl-names = "defa 964 pinctrl-names = "default"; 1180 pinctrl-0 = <&pwm_pin 965 pinctrl-0 = <&pwm_pin>; 1181 #pwm-cells = <3>; 966 #pwm-cells = <3>; 1182 status = "disabled"; 967 status = "disabled"; 1183 }; 968 }; 1184 969 1185 mbus: dram-controller@1c62000 << 1186 compatible = "allwinn << 1187 reg = <0x01c62000 0x1 << 1188 <0x01c63000 0x1 << 1189 reg-names = "mbus", " << 1190 clocks = <&ccu CLK_MB << 1191 <&ccu CLK_DR << 1192 <&ccu CLK_BU << 1193 clock-names = "mbus", << 1194 interrupts = <GIC_SPI << 1195 #address-cells = <1>; << 1196 #size-cells = <1>; << 1197 dma-ranges = <0x00000 << 1198 #interconnect-cells = << 1199 }; << 1200 << 1201 csi: csi@1cb0000 { 970 csi: csi@1cb0000 { 1202 compatible = "allwinn 971 compatible = "allwinner,sun50i-a64-csi"; 1203 reg = <0x01cb0000 0x1 972 reg = <0x01cb0000 0x1000>; 1204 interrupts = <GIC_SPI 973 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>; 1205 clocks = <&ccu CLK_BU 974 clocks = <&ccu CLK_BUS_CSI>, 1206 <&ccu CLK_CS 975 <&ccu CLK_CSI_SCLK>, 1207 <&ccu CLK_DR 976 <&ccu CLK_DRAM_CSI>; 1208 clock-names = "bus", 977 clock-names = "bus", "mod", "ram"; 1209 resets = <&ccu RST_BU 978 resets = <&ccu RST_BUS_CSI>; 1210 pinctrl-names = "defa 979 pinctrl-names = "default"; 1211 pinctrl-0 = <&csi_pin 980 pinctrl-0 = <&csi_pins>; 1212 status = "disabled"; 981 status = "disabled"; 1213 }; 982 }; 1214 983 1215 dsi: dsi@1ca0000 { << 1216 compatible = "allwinn << 1217 reg = <0x01ca0000 0x1 << 1218 interrupts = <GIC_SPI << 1219 clocks = <&ccu CLK_BU << 1220 resets = <&ccu RST_BU << 1221 phys = <&dphy>; << 1222 phy-names = "dphy"; << 1223 status = "disabled"; << 1224 #address-cells = <1>; << 1225 #size-cells = <0>; << 1226 << 1227 port { << 1228 dsi_in_tcon0: << 1229 remot << 1230 }; << 1231 }; << 1232 }; << 1233 << 1234 dphy: d-phy@1ca1000 { << 1235 compatible = "allwinn << 1236 "allwinn << 1237 reg = <0x01ca1000 0x1 << 1238 interrupts = <GIC_SPI << 1239 clocks = <&ccu CLK_BU << 1240 <&ccu CLK_DS << 1241 clock-names = "bus", << 1242 resets = <&ccu RST_BU << 1243 status = "disabled"; << 1244 #phy-cells = <0>; << 1245 }; << 1246 << 1247 deinterlace: deinterlace@1e00 << 1248 compatible = "allwinn << 1249 "allwinn << 1250 reg = <0x01e00000 0x2 << 1251 clocks = <&ccu CLK_BU << 1252 <&ccu CLK_DE << 1253 <&ccu CLK_DR << 1254 clock-names = "bus", << 1255 resets = <&ccu RST_BU << 1256 interrupts = <GIC_SPI << 1257 interconnects = <&mbu << 1258 interconnect-names = << 1259 }; << 1260 << 1261 hdmi: hdmi@1ee0000 { 984 hdmi: hdmi@1ee0000 { 1262 compatible = "allwinn 985 compatible = "allwinner,sun50i-a64-dw-hdmi", 1263 "allwinn 986 "allwinner,sun8i-a83t-dw-hdmi"; 1264 reg = <0x01ee0000 0x1 987 reg = <0x01ee0000 0x10000>; 1265 reg-io-width = <1>; 988 reg-io-width = <1>; 1266 interrupts = <GIC_SPI 989 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>; 1267 clocks = <&ccu CLK_BU 990 clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>, 1268 <&ccu CLK_HD !! 991 <&ccu CLK_HDMI>; 1269 clock-names = "iahb", !! 992 clock-names = "iahb", "isfr", "tmds"; 1270 resets = <&ccu RST_BU 993 resets = <&ccu RST_BUS_HDMI1>; 1271 reset-names = "ctrl"; 994 reset-names = "ctrl"; 1272 phys = <&hdmi_phy>; 995 phys = <&hdmi_phy>; 1273 phy-names = "phy"; !! 996 phy-names = "hdmi-phy"; 1274 status = "disabled"; 997 status = "disabled"; 1275 998 1276 ports { 999 ports { 1277 #address-cell 1000 #address-cells = <1>; 1278 #size-cells = 1001 #size-cells = <0>; 1279 1002 1280 hdmi_in: port 1003 hdmi_in: port@0 { 1281 reg = 1004 reg = <0>; 1282 1005 1283 hdmi_ 1006 hdmi_in_tcon1: endpoint { 1284 1007 remote-endpoint = <&tcon1_out_hdmi>; 1285 }; 1008 }; 1286 }; 1009 }; 1287 1010 1288 hdmi_out: por 1011 hdmi_out: port@1 { 1289 reg = 1012 reg = <1>; 1290 }; 1013 }; 1291 }; 1014 }; 1292 }; 1015 }; 1293 1016 1294 hdmi_phy: hdmi-phy@1ef0000 { 1017 hdmi_phy: hdmi-phy@1ef0000 { 1295 compatible = "allwinn 1018 compatible = "allwinner,sun50i-a64-hdmi-phy"; 1296 reg = <0x01ef0000 0x1 1019 reg = <0x01ef0000 0x10000>; 1297 clocks = <&ccu CLK_BU 1020 clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>, 1298 <&ccu CLK_PL !! 1021 <&ccu 7>; 1299 clock-names = "bus", 1022 clock-names = "bus", "mod", "pll-0"; 1300 resets = <&ccu RST_BU 1023 resets = <&ccu RST_BUS_HDMI0>; 1301 reset-names = "phy"; 1024 reset-names = "phy"; 1302 #phy-cells = <0>; 1025 #phy-cells = <0>; 1303 }; 1026 }; 1304 1027 1305 rtc: rtc@1f00000 { 1028 rtc: rtc@1f00000 { 1306 compatible = "allwinn 1029 compatible = "allwinner,sun50i-a64-rtc", 1307 "allwinn 1030 "allwinner,sun8i-h3-rtc"; 1308 reg = <0x01f00000 0x4 1031 reg = <0x01f00000 0x400>; 1309 interrupt-parent = <& << 1310 interrupts = <GIC_SPI 1032 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>, 1311 <GIC_SPI 1033 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; 1312 clock-output-names = 1034 clock-output-names = "osc32k", "osc32k-out", "iosc"; 1313 clocks = <&osc32k>; 1035 clocks = <&osc32k>; 1314 #clock-cells = <1>; 1036 #clock-cells = <1>; 1315 }; 1037 }; 1316 1038 1317 r_intc: interrupt-controller@ 1039 r_intc: interrupt-controller@1f00c00 { 1318 compatible = "allwinn 1040 compatible = "allwinner,sun50i-a64-r-intc", 1319 "allwinn 1041 "allwinner,sun6i-a31-r-intc"; 1320 interrupt-controller; 1042 interrupt-controller; 1321 #interrupt-cells = <3 !! 1043 #interrupt-cells = <2>; 1322 reg = <0x01f00c00 0x4 1044 reg = <0x01f00c00 0x400>; 1323 interrupts = <GIC_SPI 1045 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 1324 }; 1046 }; 1325 1047 1326 r_ccu: clock@1f01400 { 1048 r_ccu: clock@1f01400 { 1327 compatible = "allwinn 1049 compatible = "allwinner,sun50i-a64-r-ccu"; 1328 reg = <0x01f01400 0x1 1050 reg = <0x01f01400 0x100>; 1329 clocks = <&osc24M>, < !! 1051 clocks = <&osc24M>, <&rtc 0>, <&rtc 2>, <&ccu 11>; 1330 <&ccu CLK_PL << 1331 clock-names = "hosc", 1052 clock-names = "hosc", "losc", "iosc", "pll-periph"; 1332 #clock-cells = <1>; 1053 #clock-cells = <1>; 1333 #reset-cells = <1>; 1054 #reset-cells = <1>; 1334 }; 1055 }; 1335 1056 1336 codec_analog: codec-analog@1f 1057 codec_analog: codec-analog@1f015c0 { 1337 compatible = "allwinn 1058 compatible = "allwinner,sun50i-a64-codec-analog"; 1338 reg = <0x01f015c0 0x4 1059 reg = <0x01f015c0 0x4>; 1339 status = "disabled"; 1060 status = "disabled"; 1340 }; 1061 }; 1341 1062 1342 r_i2c: i2c@1f02400 { 1063 r_i2c: i2c@1f02400 { 1343 compatible = "allwinn 1064 compatible = "allwinner,sun50i-a64-i2c", 1344 "allwinn 1065 "allwinner,sun6i-a31-i2c"; 1345 reg = <0x01f02400 0x4 1066 reg = <0x01f02400 0x400>; 1346 interrupts = <GIC_SPI 1067 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>; 1347 clocks = <&r_ccu CLK_ 1068 clocks = <&r_ccu CLK_APB0_I2C>; 1348 resets = <&r_ccu RST_ 1069 resets = <&r_ccu RST_APB0_I2C>; 1349 status = "disabled"; 1070 status = "disabled"; 1350 #address-cells = <1>; 1071 #address-cells = <1>; 1351 #size-cells = <0>; 1072 #size-cells = <0>; 1352 }; 1073 }; 1353 1074 1354 r_ir: ir@1f02000 { << 1355 compatible = "allwinn << 1356 "allwinn << 1357 reg = <0x01f02000 0x4 << 1358 clocks = <&r_ccu CLK_ << 1359 clock-names = "apb", << 1360 resets = <&r_ccu RST_ << 1361 interrupts = <GIC_SPI << 1362 pinctrl-names = "defa << 1363 pinctrl-0 = <&r_ir_rx << 1364 status = "disabled"; << 1365 }; << 1366 << 1367 r_pwm: pwm@1f03800 { 1075 r_pwm: pwm@1f03800 { 1368 compatible = "allwinn 1076 compatible = "allwinner,sun50i-a64-pwm", 1369 "allwinn 1077 "allwinner,sun5i-a13-pwm"; 1370 reg = <0x01f03800 0x4 1078 reg = <0x01f03800 0x400>; 1371 clocks = <&osc24M>; 1079 clocks = <&osc24M>; 1372 pinctrl-names = "defa 1080 pinctrl-names = "default"; 1373 pinctrl-0 = <&r_pwm_p 1081 pinctrl-0 = <&r_pwm_pin>; 1374 #pwm-cells = <3>; 1082 #pwm-cells = <3>; 1375 status = "disabled"; 1083 status = "disabled"; 1376 }; 1084 }; 1377 1085 1378 r_pio: pinctrl@1f02c00 { 1086 r_pio: pinctrl@1f02c00 { 1379 compatible = "allwinn 1087 compatible = "allwinner,sun50i-a64-r-pinctrl"; 1380 reg = <0x01f02c00 0x4 1088 reg = <0x01f02c00 0x400>; 1381 interrupt-parent = <& << 1382 interrupts = <GIC_SPI 1089 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>; 1383 clocks = <&r_ccu CLK_ 1090 clocks = <&r_ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>; 1384 clock-names = "apb", 1091 clock-names = "apb", "hosc", "losc"; 1385 gpio-controller; 1092 gpio-controller; 1386 #gpio-cells = <3>; 1093 #gpio-cells = <3>; 1387 interrupt-controller; 1094 interrupt-controller; 1388 #interrupt-cells = <3 1095 #interrupt-cells = <3>; 1389 1096 1390 r_i2c_pl89_pins: r-i2 1097 r_i2c_pl89_pins: r-i2c-pl89-pins { 1391 pins = "PL8", 1098 pins = "PL8", "PL9"; 1392 function = "s 1099 function = "s_i2c"; 1393 }; 1100 }; 1394 1101 1395 r_ir_rx_pin: r-ir-rx- << 1396 pins = "PL11" << 1397 function = "s << 1398 }; << 1399 << 1400 r_pwm_pin: r-pwm-pin 1102 r_pwm_pin: r-pwm-pin { 1401 pins = "PL10" 1103 pins = "PL10"; 1402 function = "s 1104 function = "s_pwm"; 1403 }; 1105 }; 1404 1106 1405 r_rsb_pins: r-rsb-pin 1107 r_rsb_pins: r-rsb-pins { 1406 pins = "PL0", 1108 pins = "PL0", "PL1"; 1407 function = "s 1109 function = "s_rsb"; 1408 }; 1110 }; 1409 }; 1111 }; 1410 1112 1411 r_rsb: rsb@1f03400 { 1113 r_rsb: rsb@1f03400 { 1412 compatible = "allwinn 1114 compatible = "allwinner,sun8i-a23-rsb"; 1413 reg = <0x01f03400 0x4 1115 reg = <0x01f03400 0x400>; 1414 interrupts = <GIC_SPI 1116 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; 1415 clocks = <&r_ccu 6>; 1117 clocks = <&r_ccu 6>; 1416 clock-frequency = <30 1118 clock-frequency = <3000000>; 1417 resets = <&r_ccu 2>; 1119 resets = <&r_ccu 2>; 1418 pinctrl-names = "defa 1120 pinctrl-names = "default"; 1419 pinctrl-0 = <&r_rsb_p 1121 pinctrl-0 = <&r_rsb_pins>; 1420 status = "disabled"; 1122 status = "disabled"; 1421 #address-cells = <1>; 1123 #address-cells = <1>; 1422 #size-cells = <0>; 1124 #size-cells = <0>; >> 1125 }; >> 1126 >> 1127 wdt0: watchdog@1c20ca0 { >> 1128 compatible = "allwinner,sun50i-a64-wdt", >> 1129 "allwinner,sun6i-a31-wdt"; >> 1130 reg = <0x01c20ca0 0x20>; >> 1131 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; 1423 }; 1132 }; 1424 }; 1133 }; 1425 }; 1134 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.