1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2c66ec88fSEmmanuel Vadot/* 3c66ec88fSEmmanuel Vadot * dts file for Hisilicon Hi6220 SoC 4c66ec88fSEmmanuel Vadot * 55956d97fSEmmanuel Vadot * Copyright (C) 2015, HiSilicon Ltd. 6c66ec88fSEmmanuel Vadot */ 7c66ec88fSEmmanuel Vadot 8c66ec88fSEmmanuel Vadot#include <dt-bindings/interrupt-controller/arm-gic.h> 9c66ec88fSEmmanuel Vadot#include <dt-bindings/reset/hisi,hi6220-resets.h> 10c66ec88fSEmmanuel Vadot#include <dt-bindings/clock/hi6220-clock.h> 11c66ec88fSEmmanuel Vadot#include <dt-bindings/pinctrl/hisi.h> 12c66ec88fSEmmanuel Vadot#include <dt-bindings/thermal/thermal.h> 13c66ec88fSEmmanuel Vadot 14c66ec88fSEmmanuel Vadot/ { 15c66ec88fSEmmanuel Vadot compatible = "hisilicon,hi6220"; 16c66ec88fSEmmanuel Vadot interrupt-parent = <&gic>; 17c66ec88fSEmmanuel Vadot #address-cells = <2>; 18c66ec88fSEmmanuel Vadot #size-cells = <2>; 19c66ec88fSEmmanuel Vadot 20c66ec88fSEmmanuel Vadot psci { 21c66ec88fSEmmanuel Vadot compatible = "arm,psci-0.2"; 22c66ec88fSEmmanuel Vadot method = "smc"; 23c66ec88fSEmmanuel Vadot }; 24c66ec88fSEmmanuel Vadot 25c66ec88fSEmmanuel Vadot cpus { 26c66ec88fSEmmanuel Vadot #address-cells = <2>; 27c66ec88fSEmmanuel Vadot #size-cells = <0>; 28c66ec88fSEmmanuel Vadot 29c66ec88fSEmmanuel Vadot cpu-map { 30c66ec88fSEmmanuel Vadot cluster0 { 31c66ec88fSEmmanuel Vadot core0 { 32c66ec88fSEmmanuel Vadot cpu = <&cpu0>; 33c66ec88fSEmmanuel Vadot }; 34c66ec88fSEmmanuel Vadot core1 { 35c66ec88fSEmmanuel Vadot cpu = <&cpu1>; 36c66ec88fSEmmanuel Vadot }; 37c66ec88fSEmmanuel Vadot core2 { 38c66ec88fSEmmanuel Vadot cpu = <&cpu2>; 39c66ec88fSEmmanuel Vadot }; 40c66ec88fSEmmanuel Vadot core3 { 41c66ec88fSEmmanuel Vadot cpu = <&cpu3>; 42c66ec88fSEmmanuel Vadot }; 43c66ec88fSEmmanuel Vadot }; 44c66ec88fSEmmanuel Vadot cluster1 { 45c66ec88fSEmmanuel Vadot core0 { 46c66ec88fSEmmanuel Vadot cpu = <&cpu4>; 47c66ec88fSEmmanuel Vadot }; 48c66ec88fSEmmanuel Vadot core1 { 49c66ec88fSEmmanuel Vadot cpu = <&cpu5>; 50c66ec88fSEmmanuel Vadot }; 51c66ec88fSEmmanuel Vadot core2 { 52c66ec88fSEmmanuel Vadot cpu = <&cpu6>; 53c66ec88fSEmmanuel Vadot }; 54c66ec88fSEmmanuel Vadot core3 { 55c66ec88fSEmmanuel Vadot cpu = <&cpu7>; 56c66ec88fSEmmanuel Vadot }; 57c66ec88fSEmmanuel Vadot }; 58c66ec88fSEmmanuel Vadot }; 59c66ec88fSEmmanuel Vadot 60c66ec88fSEmmanuel Vadot idle-states { 61c66ec88fSEmmanuel Vadot entry-method = "psci"; 62c66ec88fSEmmanuel Vadot 63c66ec88fSEmmanuel Vadot CPU_SLEEP: cpu-sleep { 64c66ec88fSEmmanuel Vadot compatible = "arm,idle-state"; 65c66ec88fSEmmanuel Vadot local-timer-stop; 66c66ec88fSEmmanuel Vadot arm,psci-suspend-param = <0x0010000>; 67c66ec88fSEmmanuel Vadot entry-latency-us = <700>; 68c66ec88fSEmmanuel Vadot exit-latency-us = <250>; 69c66ec88fSEmmanuel Vadot min-residency-us = <1000>; 70c66ec88fSEmmanuel Vadot }; 71c66ec88fSEmmanuel Vadot 72c66ec88fSEmmanuel Vadot CLUSTER_SLEEP: cluster-sleep { 73c66ec88fSEmmanuel Vadot compatible = "arm,idle-state"; 74c66ec88fSEmmanuel Vadot local-timer-stop; 75c66ec88fSEmmanuel Vadot arm,psci-suspend-param = <0x1010000>; 76c66ec88fSEmmanuel Vadot entry-latency-us = <1000>; 77c66ec88fSEmmanuel Vadot exit-latency-us = <700>; 78c66ec88fSEmmanuel Vadot min-residency-us = <2700>; 79c66ec88fSEmmanuel Vadot wakeup-latency-us = <1500>; 80c66ec88fSEmmanuel Vadot }; 81c66ec88fSEmmanuel Vadot }; 82c66ec88fSEmmanuel Vadot 83c66ec88fSEmmanuel Vadot cpu0: cpu@0 { 84c66ec88fSEmmanuel Vadot compatible = "arm,cortex-a53"; 85c66ec88fSEmmanuel Vadot device_type = "cpu"; 86c66ec88fSEmmanuel Vadot reg = <0x0 0x0>; 87c66ec88fSEmmanuel Vadot enable-method = "psci"; 88c66ec88fSEmmanuel Vadot next-level-cache = <&CLUSTER0_L2>; 89c66ec88fSEmmanuel Vadot clocks = <&stub_clock 0>; 90c66ec88fSEmmanuel Vadot operating-points-v2 = <&cpu_opp_table>; 91c66ec88fSEmmanuel Vadot cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; 92c66ec88fSEmmanuel Vadot #cooling-cells = <2>; /* min followed by max */ 93c66ec88fSEmmanuel Vadot dynamic-power-coefficient = <311>; 94c66ec88fSEmmanuel Vadot }; 95c66ec88fSEmmanuel Vadot 96c66ec88fSEmmanuel Vadot cpu1: cpu@1 { 97c66ec88fSEmmanuel Vadot compatible = "arm,cortex-a53"; 98c66ec88fSEmmanuel Vadot device_type = "cpu"; 99c66ec88fSEmmanuel Vadot reg = <0x0 0x1>; 100c66ec88fSEmmanuel Vadot enable-method = "psci"; 101c66ec88fSEmmanuel Vadot next-level-cache = <&CLUSTER0_L2>; 102c66ec88fSEmmanuel Vadot clocks = <&stub_clock 0>; 103c66ec88fSEmmanuel Vadot operating-points-v2 = <&cpu_opp_table>; 104c66ec88fSEmmanuel Vadot cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; 105c66ec88fSEmmanuel Vadot #cooling-cells = <2>; /* min followed by max */ 106c66ec88fSEmmanuel Vadot dynamic-power-coefficient = <311>; 107c66ec88fSEmmanuel Vadot }; 108c66ec88fSEmmanuel Vadot 109c66ec88fSEmmanuel Vadot cpu2: cpu@2 { 110c66ec88fSEmmanuel Vadot compatible = "arm,cortex-a53"; 111c66ec88fSEmmanuel Vadot device_type = "cpu"; 112c66ec88fSEmmanuel Vadot reg = <0x0 0x2>; 113c66ec88fSEmmanuel Vadot enable-method = "psci"; 114c66ec88fSEmmanuel Vadot next-level-cache = <&CLUSTER0_L2>; 115c66ec88fSEmmanuel Vadot clocks = <&stub_clock 0>; 116c66ec88fSEmmanuel Vadot operating-points-v2 = <&cpu_opp_table>; 117c66ec88fSEmmanuel Vadot cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; 118c66ec88fSEmmanuel Vadot #cooling-cells = <2>; /* min followed by max */ 119c66ec88fSEmmanuel Vadot dynamic-power-coefficient = <311>; 120c66ec88fSEmmanuel Vadot }; 121c66ec88fSEmmanuel Vadot 122c66ec88fSEmmanuel Vadot cpu3: cpu@3 { 123c66ec88fSEmmanuel Vadot compatible = "arm,cortex-a53"; 124c66ec88fSEmmanuel Vadot device_type = "cpu"; 125c66ec88fSEmmanuel Vadot reg = <0x0 0x3>; 126c66ec88fSEmmanuel Vadot enable-method = "psci"; 127c66ec88fSEmmanuel Vadot next-level-cache = <&CLUSTER0_L2>; 128c66ec88fSEmmanuel Vadot clocks = <&stub_clock 0>; 129c66ec88fSEmmanuel Vadot operating-points-v2 = <&cpu_opp_table>; 130c66ec88fSEmmanuel Vadot cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; 131c66ec88fSEmmanuel Vadot #cooling-cells = <2>; /* min followed by max */ 132c66ec88fSEmmanuel Vadot dynamic-power-coefficient = <311>; 133c66ec88fSEmmanuel Vadot }; 134c66ec88fSEmmanuel Vadot 135c66ec88fSEmmanuel Vadot cpu4: cpu@100 { 136c66ec88fSEmmanuel Vadot compatible = "arm,cortex-a53"; 137c66ec88fSEmmanuel Vadot device_type = "cpu"; 138c66ec88fSEmmanuel Vadot reg = <0x0 0x100>; 139c66ec88fSEmmanuel Vadot enable-method = "psci"; 140c66ec88fSEmmanuel Vadot next-level-cache = <&CLUSTER1_L2>; 141c66ec88fSEmmanuel Vadot clocks = <&stub_clock 0>; 142c66ec88fSEmmanuel Vadot operating-points-v2 = <&cpu_opp_table>; 143c66ec88fSEmmanuel Vadot cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; 144c66ec88fSEmmanuel Vadot #cooling-cells = <2>; /* min followed by max */ 145c66ec88fSEmmanuel Vadot dynamic-power-coefficient = <311>; 146c66ec88fSEmmanuel Vadot }; 147c66ec88fSEmmanuel Vadot 148c66ec88fSEmmanuel Vadot cpu5: cpu@101 { 149c66ec88fSEmmanuel Vadot compatible = "arm,cortex-a53"; 150c66ec88fSEmmanuel Vadot device_type = "cpu"; 151c66ec88fSEmmanuel Vadot reg = <0x0 0x101>; 152c66ec88fSEmmanuel Vadot enable-method = "psci"; 153c66ec88fSEmmanuel Vadot next-level-cache = <&CLUSTER1_L2>; 154c66ec88fSEmmanuel Vadot clocks = <&stub_clock 0>; 155c66ec88fSEmmanuel Vadot operating-points-v2 = <&cpu_opp_table>; 156c66ec88fSEmmanuel Vadot cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; 157c66ec88fSEmmanuel Vadot #cooling-cells = <2>; /* min followed by max */ 158c66ec88fSEmmanuel Vadot dynamic-power-coefficient = <311>; 159c66ec88fSEmmanuel Vadot }; 160c66ec88fSEmmanuel Vadot 161c66ec88fSEmmanuel Vadot cpu6: cpu@102 { 162c66ec88fSEmmanuel Vadot compatible = "arm,cortex-a53"; 163c66ec88fSEmmanuel Vadot device_type = "cpu"; 164c66ec88fSEmmanuel Vadot reg = <0x0 0x102>; 165c66ec88fSEmmanuel Vadot enable-method = "psci"; 166c66ec88fSEmmanuel Vadot next-level-cache = <&CLUSTER1_L2>; 167c66ec88fSEmmanuel Vadot clocks = <&stub_clock 0>; 168c66ec88fSEmmanuel Vadot operating-points-v2 = <&cpu_opp_table>; 169c66ec88fSEmmanuel Vadot cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; 170c66ec88fSEmmanuel Vadot #cooling-cells = <2>; /* min followed by max */ 171c66ec88fSEmmanuel Vadot dynamic-power-coefficient = <311>; 172c66ec88fSEmmanuel Vadot }; 173c66ec88fSEmmanuel Vadot 174c66ec88fSEmmanuel Vadot cpu7: cpu@103 { 175c66ec88fSEmmanuel Vadot compatible = "arm,cortex-a53"; 176c66ec88fSEmmanuel Vadot device_type = "cpu"; 177c66ec88fSEmmanuel Vadot reg = <0x0 0x103>; 178c66ec88fSEmmanuel Vadot enable-method = "psci"; 179c66ec88fSEmmanuel Vadot next-level-cache = <&CLUSTER1_L2>; 180c66ec88fSEmmanuel Vadot clocks = <&stub_clock 0>; 181c66ec88fSEmmanuel Vadot operating-points-v2 = <&cpu_opp_table>; 182c66ec88fSEmmanuel Vadot cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; 183c66ec88fSEmmanuel Vadot #cooling-cells = <2>; /* min followed by max */ 184c66ec88fSEmmanuel Vadot dynamic-power-coefficient = <311>; 185c66ec88fSEmmanuel Vadot }; 186c66ec88fSEmmanuel Vadot 187c66ec88fSEmmanuel Vadot CLUSTER0_L2: l2-cache0 { 188c66ec88fSEmmanuel Vadot compatible = "cache"; 1898bab661aSEmmanuel Vadot cache-level = <2>; 190f126890aSEmmanuel Vadot cache-unified; 191c66ec88fSEmmanuel Vadot }; 192c66ec88fSEmmanuel Vadot 193c66ec88fSEmmanuel Vadot CLUSTER1_L2: l2-cache1 { 194c66ec88fSEmmanuel Vadot compatible = "cache"; 1958bab661aSEmmanuel Vadot cache-level = <2>; 196f126890aSEmmanuel Vadot cache-unified; 197c66ec88fSEmmanuel Vadot }; 198c66ec88fSEmmanuel Vadot }; 199c66ec88fSEmmanuel Vadot 2008cc087a1SEmmanuel Vadot cpu_opp_table: opp-table-0 { 201c66ec88fSEmmanuel Vadot compatible = "operating-points-v2"; 202c66ec88fSEmmanuel Vadot opp-shared; 203c66ec88fSEmmanuel Vadot 204c66ec88fSEmmanuel Vadot opp00 { 205c66ec88fSEmmanuel Vadot opp-hz = /bits/ 64 <208000000>; 206c66ec88fSEmmanuel Vadot opp-microvolt = <1040000>; 207c66ec88fSEmmanuel Vadot clock-latency-ns = <500000>; 208c66ec88fSEmmanuel Vadot }; 209c66ec88fSEmmanuel Vadot opp01 { 210c66ec88fSEmmanuel Vadot opp-hz = /bits/ 64 <432000000>; 211c66ec88fSEmmanuel Vadot opp-microvolt = <1040000>; 212c66ec88fSEmmanuel Vadot clock-latency-ns = <500000>; 213c66ec88fSEmmanuel Vadot }; 214c66ec88fSEmmanuel Vadot opp02 { 215c66ec88fSEmmanuel Vadot opp-hz = /bits/ 64 <729000000>; 216c66ec88fSEmmanuel Vadot opp-microvolt = <1090000>; 217c66ec88fSEmmanuel Vadot clock-latency-ns = <500000>; 218c66ec88fSEmmanuel Vadot }; 219c66ec88fSEmmanuel Vadot opp03 { 220c66ec88fSEmmanuel Vadot opp-hz = /bits/ 64 <960000000>; 221c66ec88fSEmmanuel Vadot opp-microvolt = <1180000>; 222c66ec88fSEmmanuel Vadot clock-latency-ns = <500000>; 223c66ec88fSEmmanuel Vadot }; 224c66ec88fSEmmanuel Vadot opp04 { 225c66ec88fSEmmanuel Vadot opp-hz = /bits/ 64 <1200000000>; 226c66ec88fSEmmanuel Vadot opp-microvolt = <1330000>; 227c66ec88fSEmmanuel Vadot clock-latency-ns = <500000>; 228c66ec88fSEmmanuel Vadot }; 229c66ec88fSEmmanuel Vadot }; 230c66ec88fSEmmanuel Vadot 231c66ec88fSEmmanuel Vadot gic: interrupt-controller@f6801000 { 232c66ec88fSEmmanuel Vadot compatible = "arm,gic-400"; 233c66ec88fSEmmanuel Vadot reg = <0x0 0xf6801000 0 0x1000>, /* GICD */ 234c66ec88fSEmmanuel Vadot <0x0 0xf6802000 0 0x2000>, /* GICC */ 235c66ec88fSEmmanuel Vadot <0x0 0xf6804000 0 0x2000>, /* GICH */ 236c66ec88fSEmmanuel Vadot <0x0 0xf6806000 0 0x2000>; /* GICV */ 237c66ec88fSEmmanuel Vadot #address-cells = <0>; 238c66ec88fSEmmanuel Vadot #interrupt-cells = <3>; 239c66ec88fSEmmanuel Vadot interrupt-controller; 240c66ec88fSEmmanuel Vadot interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>; 241c66ec88fSEmmanuel Vadot }; 242c66ec88fSEmmanuel Vadot 243c66ec88fSEmmanuel Vadot timer { 244c66ec88fSEmmanuel Vadot compatible = "arm,armv8-timer"; 245c66ec88fSEmmanuel Vadot interrupt-parent = <&gic>; 246c66ec88fSEmmanuel Vadot interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, 247c66ec88fSEmmanuel Vadot <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, 248c66ec88fSEmmanuel Vadot <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, 249c66ec88fSEmmanuel Vadot <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>; 250c66ec88fSEmmanuel Vadot }; 251c66ec88fSEmmanuel Vadot 252c66ec88fSEmmanuel Vadot soc { 253c66ec88fSEmmanuel Vadot compatible = "simple-bus"; 254c66ec88fSEmmanuel Vadot #address-cells = <2>; 255c66ec88fSEmmanuel Vadot #size-cells = <2>; 256c66ec88fSEmmanuel Vadot ranges; 257c66ec88fSEmmanuel Vadot 258c66ec88fSEmmanuel Vadot sram: sram@fff80000 { 259c66ec88fSEmmanuel Vadot compatible = "hisilicon,hi6220-sramctrl", "syscon"; 260c66ec88fSEmmanuel Vadot reg = <0x0 0xfff80000 0x0 0x12000>; 261c66ec88fSEmmanuel Vadot }; 262c66ec88fSEmmanuel Vadot 263c66ec88fSEmmanuel Vadot ao_ctrl: ao_ctrl@f7800000 { 264c66ec88fSEmmanuel Vadot compatible = "hisilicon,hi6220-aoctrl", "syscon"; 265c66ec88fSEmmanuel Vadot reg = <0x0 0xf7800000 0x0 0x2000>; 266c66ec88fSEmmanuel Vadot #clock-cells = <1>; 267c66ec88fSEmmanuel Vadot #reset-cells = <1>; 268c66ec88fSEmmanuel Vadot }; 269c66ec88fSEmmanuel Vadot 270c66ec88fSEmmanuel Vadot sys_ctrl: sys_ctrl@f7030000 { 271c66ec88fSEmmanuel Vadot compatible = "hisilicon,hi6220-sysctrl", "syscon"; 272c66ec88fSEmmanuel Vadot reg = <0x0 0xf7030000 0x0 0x2000>; 273c66ec88fSEmmanuel Vadot #clock-cells = <1>; 274c66ec88fSEmmanuel Vadot #reset-cells = <1>; 275c66ec88fSEmmanuel Vadot }; 276c66ec88fSEmmanuel Vadot 277c66ec88fSEmmanuel Vadot media_ctrl: media_ctrl@f4410000 { 278c66ec88fSEmmanuel Vadot compatible = "hisilicon,hi6220-mediactrl", "syscon"; 279c66ec88fSEmmanuel Vadot reg = <0x0 0xf4410000 0x0 0x1000>; 280c66ec88fSEmmanuel Vadot #clock-cells = <1>; 281c66ec88fSEmmanuel Vadot #reset-cells = <1>; 282c66ec88fSEmmanuel Vadot }; 283c66ec88fSEmmanuel Vadot 284c66ec88fSEmmanuel Vadot pm_ctrl: pm_ctrl@f7032000 { 285c66ec88fSEmmanuel Vadot compatible = "hisilicon,hi6220-pmctrl", "syscon"; 286c66ec88fSEmmanuel Vadot reg = <0x0 0xf7032000 0x0 0x1000>; 287c66ec88fSEmmanuel Vadot #clock-cells = <1>; 288c66ec88fSEmmanuel Vadot }; 289c66ec88fSEmmanuel Vadot 290c66ec88fSEmmanuel Vadot acpu_sctrl: acpu_sctrl@f6504000 { 291c66ec88fSEmmanuel Vadot compatible = "hisilicon,hi6220-acpu-sctrl", "syscon"; 292c66ec88fSEmmanuel Vadot reg = <0x0 0xf6504000 0x0 0x1000>; 293c66ec88fSEmmanuel Vadot #clock-cells = <1>; 294c66ec88fSEmmanuel Vadot }; 295c66ec88fSEmmanuel Vadot 296c66ec88fSEmmanuel Vadot medianoc_ade: medianoc_ade@f4520000 { 297c66ec88fSEmmanuel Vadot compatible = "syscon"; 298c66ec88fSEmmanuel Vadot reg = <0x0 0xf4520000 0x0 0x4000>; 299c66ec88fSEmmanuel Vadot }; 300c66ec88fSEmmanuel Vadot 301c66ec88fSEmmanuel Vadot stub_clock: stub_clock { 302c66ec88fSEmmanuel Vadot compatible = "hisilicon,hi6220-stub-clk"; 303c66ec88fSEmmanuel Vadot hisilicon,hi6220-clk-sram = <&sram>; 304c66ec88fSEmmanuel Vadot #clock-cells = <1>; 305c66ec88fSEmmanuel Vadot mbox-names = "mbox-tx"; 306c66ec88fSEmmanuel Vadot mboxes = <&mailbox 1 0 11>; 307c66ec88fSEmmanuel Vadot }; 308c66ec88fSEmmanuel Vadot 309c66ec88fSEmmanuel Vadot uart0: serial@f8015000 { /* console */ 310c66ec88fSEmmanuel Vadot compatible = "arm,pl011", "arm,primecell"; 311c66ec88fSEmmanuel Vadot reg = <0x0 0xf8015000 0x0 0x1000>; 312c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>; 313c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl HI6220_UART0_PCLK>, 314c66ec88fSEmmanuel Vadot <&ao_ctrl HI6220_UART0_PCLK>; 315c66ec88fSEmmanuel Vadot clock-names = "uartclk", "apb_pclk"; 316c66ec88fSEmmanuel Vadot }; 317c66ec88fSEmmanuel Vadot 318c66ec88fSEmmanuel Vadot uart1: serial@f7111000 { 319c66ec88fSEmmanuel Vadot compatible = "arm,pl011", "arm,primecell"; 320c66ec88fSEmmanuel Vadot reg = <0x0 0xf7111000 0x0 0x1000>; 321c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; 322c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl HI6220_UART1_PCLK>, 323c66ec88fSEmmanuel Vadot <&sys_ctrl HI6220_UART1_PCLK>; 324c66ec88fSEmmanuel Vadot clock-names = "uartclk", "apb_pclk"; 325c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 326c66ec88fSEmmanuel Vadot pinctrl-0 = <&uart1_pmx_func &uart1_cfg_func1 &uart1_cfg_func2>; 327c66ec88fSEmmanuel Vadot dmas = <&dma0 8 &dma0 9>; 328c66ec88fSEmmanuel Vadot dma-names = "rx", "tx"; 329c66ec88fSEmmanuel Vadot status = "disabled"; 330c66ec88fSEmmanuel Vadot }; 331c66ec88fSEmmanuel Vadot 332c66ec88fSEmmanuel Vadot uart2: serial@f7112000 { 333c66ec88fSEmmanuel Vadot compatible = "arm,pl011", "arm,primecell"; 334c66ec88fSEmmanuel Vadot reg = <0x0 0xf7112000 0x0 0x1000>; 335c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>; 336c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl HI6220_UART2_PCLK>, 337c66ec88fSEmmanuel Vadot <&sys_ctrl HI6220_UART2_PCLK>; 338c66ec88fSEmmanuel Vadot clock-names = "uartclk", "apb_pclk"; 339c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 340c66ec88fSEmmanuel Vadot pinctrl-0 = <&uart2_pmx_func &uart2_cfg_func>; 341c66ec88fSEmmanuel Vadot status = "disabled"; 342c66ec88fSEmmanuel Vadot }; 343c66ec88fSEmmanuel Vadot 344c66ec88fSEmmanuel Vadot uart3: serial@f7113000 { 345c66ec88fSEmmanuel Vadot compatible = "arm,pl011", "arm,primecell"; 346c66ec88fSEmmanuel Vadot reg = <0x0 0xf7113000 0x0 0x1000>; 347c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; 348c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl HI6220_UART3_PCLK>, 349c66ec88fSEmmanuel Vadot <&sys_ctrl HI6220_UART3_PCLK>; 350c66ec88fSEmmanuel Vadot clock-names = "uartclk", "apb_pclk"; 351c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 352c66ec88fSEmmanuel Vadot pinctrl-0 = <&uart3_pmx_func &uart3_cfg_func>; 353c66ec88fSEmmanuel Vadot status = "disabled"; 354c66ec88fSEmmanuel Vadot }; 355c66ec88fSEmmanuel Vadot 356c66ec88fSEmmanuel Vadot uart4: serial@f7114000 { 357c66ec88fSEmmanuel Vadot compatible = "arm,pl011", "arm,primecell"; 358c66ec88fSEmmanuel Vadot reg = <0x0 0xf7114000 0x0 0x1000>; 359c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; 360c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl HI6220_UART4_PCLK>, 361c66ec88fSEmmanuel Vadot <&sys_ctrl HI6220_UART4_PCLK>; 362c66ec88fSEmmanuel Vadot clock-names = "uartclk", "apb_pclk"; 363c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 364c66ec88fSEmmanuel Vadot pinctrl-0 = <&uart4_pmx_func &uart4_cfg_func>; 365c66ec88fSEmmanuel Vadot status = "disabled"; 366c66ec88fSEmmanuel Vadot }; 367c66ec88fSEmmanuel Vadot 368c66ec88fSEmmanuel Vadot dma0: dma@f7370000 { 369c66ec88fSEmmanuel Vadot compatible = "hisilicon,k3-dma-1.0"; 370c66ec88fSEmmanuel Vadot reg = <0x0 0xf7370000 0x0 0x1000>; 371c66ec88fSEmmanuel Vadot #dma-cells = <1>; 372c66ec88fSEmmanuel Vadot dma-channels = <15>; 373c66ec88fSEmmanuel Vadot dma-requests = <32>; 374c66ec88fSEmmanuel Vadot interrupts = <0 84 4>; 375c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl HI6220_EDMAC_ACLK>; 376c66ec88fSEmmanuel Vadot dma-no-cci; 377c66ec88fSEmmanuel Vadot dma-type = "hi6220_dma"; 3786be33864SEmmanuel Vadot status = "okay"; 379c66ec88fSEmmanuel Vadot }; 380c66ec88fSEmmanuel Vadot 381c66ec88fSEmmanuel Vadot dual_timer0: timer@f8008000 { 382c66ec88fSEmmanuel Vadot compatible = "arm,sp804", "arm,primecell"; 383c66ec88fSEmmanuel Vadot reg = <0x0 0xf8008000 0x0 0x1000>; 384c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>, 385c66ec88fSEmmanuel Vadot <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; 386c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl HI6220_TIMER0_PCLK>, 387c66ec88fSEmmanuel Vadot <&ao_ctrl HI6220_TIMER0_PCLK>, 388c66ec88fSEmmanuel Vadot <&ao_ctrl HI6220_TIMER0_PCLK>; 389c66ec88fSEmmanuel Vadot clock-names = "timer1", "timer2", "apb_pclk"; 390c66ec88fSEmmanuel Vadot }; 391c66ec88fSEmmanuel Vadot 392c66ec88fSEmmanuel Vadot rtc0: rtc@f8003000 { 393c66ec88fSEmmanuel Vadot compatible = "arm,pl031", "arm,primecell"; 394c66ec88fSEmmanuel Vadot reg = <0x0 0xf8003000 0x0 0x1000>; 395c66ec88fSEmmanuel Vadot interrupts = <0 12 4>; 396c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl HI6220_RTC0_PCLK>; 397c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 398c66ec88fSEmmanuel Vadot }; 399c66ec88fSEmmanuel Vadot 400c66ec88fSEmmanuel Vadot rtc1: rtc@f8004000 { 401c66ec88fSEmmanuel Vadot compatible = "arm,pl031", "arm,primecell"; 402c66ec88fSEmmanuel Vadot reg = <0x0 0xf8004000 0x0 0x1000>; 403c66ec88fSEmmanuel Vadot interrupts = <0 8 4>; 404c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl HI6220_RTC1_PCLK>; 405c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 406c66ec88fSEmmanuel Vadot }; 407c66ec88fSEmmanuel Vadot 408c66ec88fSEmmanuel Vadot pmx0: pinmux@f7010000 { 409c66ec88fSEmmanuel Vadot compatible = "pinctrl-single"; 410c66ec88fSEmmanuel Vadot reg = <0x0 0xf7010000 0x0 0x27c>; 411c66ec88fSEmmanuel Vadot #address-cells = <1>; 412f126890aSEmmanuel Vadot #size-cells = <0>; 413c66ec88fSEmmanuel Vadot #pinctrl-cells = <1>; 414c66ec88fSEmmanuel Vadot #gpio-range-cells = <3>; 415c66ec88fSEmmanuel Vadot pinctrl-single,register-width = <32>; 416c66ec88fSEmmanuel Vadot pinctrl-single,function-mask = <7>; 417c66ec88fSEmmanuel Vadot pinctrl-single,gpio-range = < 418c66ec88fSEmmanuel Vadot &range 80 8 MUX_M0 /* gpio 3: [0..7] */ 419c66ec88fSEmmanuel Vadot &range 88 8 MUX_M0 /* gpio 4: [0..7] */ 420c66ec88fSEmmanuel Vadot &range 96 8 MUX_M0 /* gpio 5: [0..7] */ 421c66ec88fSEmmanuel Vadot &range 104 8 MUX_M0 /* gpio 6: [0..7] */ 422c66ec88fSEmmanuel Vadot &range 112 8 MUX_M0 /* gpio 7: [0..7] */ 423c66ec88fSEmmanuel Vadot &range 120 2 MUX_M0 /* gpio 8: [0..1] */ 424c66ec88fSEmmanuel Vadot &range 2 6 MUX_M1 /* gpio 8: [2..7] */ 425c66ec88fSEmmanuel Vadot &range 8 8 MUX_M1 /* gpio 9: [0..7] */ 426c66ec88fSEmmanuel Vadot &range 0 1 MUX_M1 /* gpio 10: [0] */ 427c66ec88fSEmmanuel Vadot &range 16 7 MUX_M1 /* gpio 10: [1..7] */ 428c66ec88fSEmmanuel Vadot &range 23 3 MUX_M1 /* gpio 11: [0..2] */ 429c66ec88fSEmmanuel Vadot &range 28 5 MUX_M1 /* gpio 11: [3..7] */ 430c66ec88fSEmmanuel Vadot &range 33 3 MUX_M1 /* gpio 12: [0..2] */ 431c66ec88fSEmmanuel Vadot &range 43 5 MUX_M1 /* gpio 12: [3..7] */ 432c66ec88fSEmmanuel Vadot &range 48 8 MUX_M1 /* gpio 13: [0..7] */ 433c66ec88fSEmmanuel Vadot &range 56 8 MUX_M1 /* gpio 14: [0..7] */ 434c66ec88fSEmmanuel Vadot &range 74 6 MUX_M1 /* gpio 15: [0..5] */ 435c66ec88fSEmmanuel Vadot &range 122 1 MUX_M1 /* gpio 15: [6] */ 436c66ec88fSEmmanuel Vadot &range 126 1 MUX_M1 /* gpio 15: [7] */ 437c66ec88fSEmmanuel Vadot &range 127 8 MUX_M1 /* gpio 16: [0..7] */ 438c66ec88fSEmmanuel Vadot &range 135 8 MUX_M1 /* gpio 17: [0..7] */ 439c66ec88fSEmmanuel Vadot &range 143 8 MUX_M1 /* gpio 18: [0..7] */ 440c66ec88fSEmmanuel Vadot &range 151 8 MUX_M1 /* gpio 19: [0..7] */ 441c66ec88fSEmmanuel Vadot >; 442c66ec88fSEmmanuel Vadot range: gpio-range { 443c66ec88fSEmmanuel Vadot #pinctrl-single,gpio-range-cells = <3>; 444c66ec88fSEmmanuel Vadot }; 445c66ec88fSEmmanuel Vadot }; 446c66ec88fSEmmanuel Vadot 447c66ec88fSEmmanuel Vadot pmx1: pinmux@f7010800 { 448c66ec88fSEmmanuel Vadot compatible = "pinconf-single"; 449c66ec88fSEmmanuel Vadot reg = <0x0 0xf7010800 0x0 0x28c>; 450c66ec88fSEmmanuel Vadot #address-cells = <1>; 451f126890aSEmmanuel Vadot #size-cells = <0>; 452c66ec88fSEmmanuel Vadot #pinctrl-cells = <1>; 453c66ec88fSEmmanuel Vadot pinctrl-single,register-width = <32>; 454c66ec88fSEmmanuel Vadot }; 455c66ec88fSEmmanuel Vadot 456c66ec88fSEmmanuel Vadot pmx2: pinmux@f8001800 { 457c66ec88fSEmmanuel Vadot compatible = "pinconf-single"; 458c66ec88fSEmmanuel Vadot reg = <0x0 0xf8001800 0x0 0x78>; 459c66ec88fSEmmanuel Vadot #address-cells = <1>; 460f126890aSEmmanuel Vadot #size-cells = <0>; 461c66ec88fSEmmanuel Vadot #pinctrl-cells = <1>; 462c66ec88fSEmmanuel Vadot pinctrl-single,register-width = <32>; 463c66ec88fSEmmanuel Vadot }; 464c66ec88fSEmmanuel Vadot 465c66ec88fSEmmanuel Vadot gpio0: gpio@f8011000 { 466c66ec88fSEmmanuel Vadot compatible = "arm,pl061", "arm,primecell"; 467c66ec88fSEmmanuel Vadot reg = <0x0 0xf8011000 0x0 0x1000>; 468c66ec88fSEmmanuel Vadot interrupts = <0 52 0x4>; 469c66ec88fSEmmanuel Vadot gpio-controller; 470c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 471c66ec88fSEmmanuel Vadot interrupt-controller; 472c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 473c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl 2>; 474c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 475c66ec88fSEmmanuel Vadot }; 476c66ec88fSEmmanuel Vadot 477c66ec88fSEmmanuel Vadot gpio1: gpio@f8012000 { 478c66ec88fSEmmanuel Vadot compatible = "arm,pl061", "arm,primecell"; 479c66ec88fSEmmanuel Vadot reg = <0x0 0xf8012000 0x0 0x1000>; 480c66ec88fSEmmanuel Vadot interrupts = <0 53 0x4>; 481c66ec88fSEmmanuel Vadot gpio-controller; 482c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 483c66ec88fSEmmanuel Vadot interrupt-controller; 484c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 485c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl 2>; 486c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 487c66ec88fSEmmanuel Vadot }; 488c66ec88fSEmmanuel Vadot 489c66ec88fSEmmanuel Vadot gpio2: gpio@f8013000 { 490c66ec88fSEmmanuel Vadot compatible = "arm,pl061", "arm,primecell"; 491c66ec88fSEmmanuel Vadot reg = <0x0 0xf8013000 0x0 0x1000>; 492c66ec88fSEmmanuel Vadot interrupts = <0 54 0x4>; 493c66ec88fSEmmanuel Vadot gpio-controller; 494c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 495c66ec88fSEmmanuel Vadot interrupt-controller; 496c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 497c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl 2>; 498c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 499c66ec88fSEmmanuel Vadot }; 500c66ec88fSEmmanuel Vadot 501c66ec88fSEmmanuel Vadot gpio3: gpio@f8014000 { 502c66ec88fSEmmanuel Vadot compatible = "arm,pl061", "arm,primecell"; 503c66ec88fSEmmanuel Vadot reg = <0x0 0xf8014000 0x0 0x1000>; 504c66ec88fSEmmanuel Vadot interrupts = <0 55 0x4>; 505c66ec88fSEmmanuel Vadot gpio-controller; 506c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 507c66ec88fSEmmanuel Vadot gpio-ranges = <&pmx0 0 80 8>; 508c66ec88fSEmmanuel Vadot interrupt-controller; 509c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 510c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl 2>; 511c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 512c66ec88fSEmmanuel Vadot }; 513c66ec88fSEmmanuel Vadot 514c66ec88fSEmmanuel Vadot gpio4: gpio@f7020000 { 515c66ec88fSEmmanuel Vadot compatible = "arm,pl061", "arm,primecell"; 516c66ec88fSEmmanuel Vadot reg = <0x0 0xf7020000 0x0 0x1000>; 517c66ec88fSEmmanuel Vadot interrupts = <0 56 0x4>; 518c66ec88fSEmmanuel Vadot gpio-controller; 519c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 520c66ec88fSEmmanuel Vadot gpio-ranges = <&pmx0 0 88 8>; 521c66ec88fSEmmanuel Vadot interrupt-controller; 522c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 523c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl 2>; 524c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 525c66ec88fSEmmanuel Vadot }; 526c66ec88fSEmmanuel Vadot 527c66ec88fSEmmanuel Vadot gpio5: gpio@f7021000 { 528c66ec88fSEmmanuel Vadot compatible = "arm,pl061", "arm,primecell"; 529c66ec88fSEmmanuel Vadot reg = <0x0 0xf7021000 0x0 0x1000>; 530c66ec88fSEmmanuel Vadot interrupts = <0 57 0x4>; 531c66ec88fSEmmanuel Vadot gpio-controller; 532c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 533c66ec88fSEmmanuel Vadot gpio-ranges = <&pmx0 0 96 8>; 534c66ec88fSEmmanuel Vadot interrupt-controller; 535c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 536c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl 2>; 537c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 538c66ec88fSEmmanuel Vadot }; 539c66ec88fSEmmanuel Vadot 540c66ec88fSEmmanuel Vadot gpio6: gpio@f7022000 { 541c66ec88fSEmmanuel Vadot compatible = "arm,pl061", "arm,primecell"; 542c66ec88fSEmmanuel Vadot reg = <0x0 0xf7022000 0x0 0x1000>; 543c66ec88fSEmmanuel Vadot interrupts = <0 58 0x4>; 544c66ec88fSEmmanuel Vadot gpio-controller; 545c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 546c66ec88fSEmmanuel Vadot gpio-ranges = <&pmx0 0 104 8>; 547c66ec88fSEmmanuel Vadot interrupt-controller; 548c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 549c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl 2>; 550c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 551c66ec88fSEmmanuel Vadot }; 552c66ec88fSEmmanuel Vadot 553c66ec88fSEmmanuel Vadot gpio7: gpio@f7023000 { 554c66ec88fSEmmanuel Vadot compatible = "arm,pl061", "arm,primecell"; 555c66ec88fSEmmanuel Vadot reg = <0x0 0xf7023000 0x0 0x1000>; 556c66ec88fSEmmanuel Vadot interrupts = <0 59 0x4>; 557c66ec88fSEmmanuel Vadot gpio-controller; 558c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 559c66ec88fSEmmanuel Vadot gpio-ranges = <&pmx0 0 112 8>; 560c66ec88fSEmmanuel Vadot interrupt-controller; 561c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 562c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl 2>; 563c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 564c66ec88fSEmmanuel Vadot }; 565c66ec88fSEmmanuel Vadot 566c66ec88fSEmmanuel Vadot gpio8: gpio@f7024000 { 567c66ec88fSEmmanuel Vadot compatible = "arm,pl061", "arm,primecell"; 568c66ec88fSEmmanuel Vadot reg = <0x0 0xf7024000 0x0 0x1000>; 569c66ec88fSEmmanuel Vadot interrupts = <0 60 0x4>; 570c66ec88fSEmmanuel Vadot gpio-controller; 571c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 572c66ec88fSEmmanuel Vadot gpio-ranges = <&pmx0 0 120 2 &pmx0 2 2 6>; 573c66ec88fSEmmanuel Vadot interrupt-controller; 574c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 575c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl 2>; 576c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 577c66ec88fSEmmanuel Vadot }; 578c66ec88fSEmmanuel Vadot 579c66ec88fSEmmanuel Vadot gpio9: gpio@f7025000 { 580c66ec88fSEmmanuel Vadot compatible = "arm,pl061", "arm,primecell"; 581c66ec88fSEmmanuel Vadot reg = <0x0 0xf7025000 0x0 0x1000>; 582c66ec88fSEmmanuel Vadot interrupts = <0 61 0x4>; 583c66ec88fSEmmanuel Vadot gpio-controller; 584c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 585c66ec88fSEmmanuel Vadot gpio-ranges = <&pmx0 0 8 8>; 586c66ec88fSEmmanuel Vadot interrupt-controller; 587c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 588c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl 2>; 589c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 590c66ec88fSEmmanuel Vadot }; 591c66ec88fSEmmanuel Vadot 592c66ec88fSEmmanuel Vadot gpio10: gpio@f7026000 { 593c66ec88fSEmmanuel Vadot compatible = "arm,pl061", "arm,primecell"; 594c66ec88fSEmmanuel Vadot reg = <0x0 0xf7026000 0x0 0x1000>; 595c66ec88fSEmmanuel Vadot interrupts = <0 62 0x4>; 596c66ec88fSEmmanuel Vadot gpio-controller; 597c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 598c66ec88fSEmmanuel Vadot gpio-ranges = <&pmx0 0 0 1 &pmx0 1 16 7>; 599c66ec88fSEmmanuel Vadot interrupt-controller; 600c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 601c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl 2>; 602c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 603c66ec88fSEmmanuel Vadot }; 604c66ec88fSEmmanuel Vadot 605c66ec88fSEmmanuel Vadot gpio11: gpio@f7027000 { 606c66ec88fSEmmanuel Vadot compatible = "arm,pl061", "arm,primecell"; 607c66ec88fSEmmanuel Vadot reg = <0x0 0xf7027000 0x0 0x1000>; 608c66ec88fSEmmanuel Vadot interrupts = <0 63 0x4>; 609c66ec88fSEmmanuel Vadot gpio-controller; 610c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 611c66ec88fSEmmanuel Vadot gpio-ranges = <&pmx0 0 23 3 &pmx0 3 28 5>; 612c66ec88fSEmmanuel Vadot interrupt-controller; 613c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 614c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl 2>; 615c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 616c66ec88fSEmmanuel Vadot }; 617c66ec88fSEmmanuel Vadot 618c66ec88fSEmmanuel Vadot gpio12: gpio@f7028000 { 619c66ec88fSEmmanuel Vadot compatible = "arm,pl061", "arm,primecell"; 620c66ec88fSEmmanuel Vadot reg = <0x0 0xf7028000 0x0 0x1000>; 621c66ec88fSEmmanuel Vadot interrupts = <0 64 0x4>; 622c66ec88fSEmmanuel Vadot gpio-controller; 623c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 624c66ec88fSEmmanuel Vadot gpio-ranges = <&pmx0 0 33 3 &pmx0 3 43 5>; 625c66ec88fSEmmanuel Vadot interrupt-controller; 626c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 627c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl 2>; 628c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 629c66ec88fSEmmanuel Vadot }; 630c66ec88fSEmmanuel Vadot 631c66ec88fSEmmanuel Vadot gpio13: gpio@f7029000 { 632c66ec88fSEmmanuel Vadot compatible = "arm,pl061", "arm,primecell"; 633c66ec88fSEmmanuel Vadot reg = <0x0 0xf7029000 0x0 0x1000>; 634c66ec88fSEmmanuel Vadot interrupts = <0 65 0x4>; 635c66ec88fSEmmanuel Vadot gpio-controller; 636c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 637c66ec88fSEmmanuel Vadot gpio-ranges = <&pmx0 0 48 8>; 638c66ec88fSEmmanuel Vadot interrupt-controller; 639c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 640c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl 2>; 641c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 642c66ec88fSEmmanuel Vadot }; 643c66ec88fSEmmanuel Vadot 644c66ec88fSEmmanuel Vadot gpio14: gpio@f702a000 { 645c66ec88fSEmmanuel Vadot compatible = "arm,pl061", "arm,primecell"; 646c66ec88fSEmmanuel Vadot reg = <0x0 0xf702a000 0x0 0x1000>; 647c66ec88fSEmmanuel Vadot interrupts = <0 66 0x4>; 648c66ec88fSEmmanuel Vadot gpio-controller; 649c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 650c66ec88fSEmmanuel Vadot gpio-ranges = <&pmx0 0 56 8>; 651c66ec88fSEmmanuel Vadot interrupt-controller; 652c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 653c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl 2>; 654c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 655c66ec88fSEmmanuel Vadot }; 656c66ec88fSEmmanuel Vadot 657c66ec88fSEmmanuel Vadot gpio15: gpio@f702b000 { 658c66ec88fSEmmanuel Vadot compatible = "arm,pl061", "arm,primecell"; 659c66ec88fSEmmanuel Vadot reg = <0x0 0xf702b000 0x0 0x1000>; 660c66ec88fSEmmanuel Vadot interrupts = <0 67 0x4>; 661c66ec88fSEmmanuel Vadot gpio-controller; 662c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 663c66ec88fSEmmanuel Vadot gpio-ranges = < 664c66ec88fSEmmanuel Vadot &pmx0 0 74 6 665c66ec88fSEmmanuel Vadot &pmx0 6 122 1 666c66ec88fSEmmanuel Vadot &pmx0 7 126 1 667c66ec88fSEmmanuel Vadot >; 668c66ec88fSEmmanuel Vadot interrupt-controller; 669c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 670c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl 2>; 671c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 672c66ec88fSEmmanuel Vadot }; 673c66ec88fSEmmanuel Vadot 674c66ec88fSEmmanuel Vadot gpio16: gpio@f702c000 { 675c66ec88fSEmmanuel Vadot compatible = "arm,pl061", "arm,primecell"; 676c66ec88fSEmmanuel Vadot reg = <0x0 0xf702c000 0x0 0x1000>; 677c66ec88fSEmmanuel Vadot interrupts = <0 68 0x4>; 678c66ec88fSEmmanuel Vadot gpio-controller; 679c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 680c66ec88fSEmmanuel Vadot gpio-ranges = <&pmx0 0 127 8>; 681c66ec88fSEmmanuel Vadot interrupt-controller; 682c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 683c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl 2>; 684c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 685c66ec88fSEmmanuel Vadot }; 686c66ec88fSEmmanuel Vadot 687c66ec88fSEmmanuel Vadot gpio17: gpio@f702d000 { 688c66ec88fSEmmanuel Vadot compatible = "arm,pl061", "arm,primecell"; 689c66ec88fSEmmanuel Vadot reg = <0x0 0xf702d000 0x0 0x1000>; 690c66ec88fSEmmanuel Vadot interrupts = <0 69 0x4>; 691c66ec88fSEmmanuel Vadot gpio-controller; 692c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 693c66ec88fSEmmanuel Vadot gpio-ranges = <&pmx0 0 135 8>; 694c66ec88fSEmmanuel Vadot interrupt-controller; 695c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 696c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl 2>; 697c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 698c66ec88fSEmmanuel Vadot }; 699c66ec88fSEmmanuel Vadot 700c66ec88fSEmmanuel Vadot gpio18: gpio@f702e000 { 701c66ec88fSEmmanuel Vadot compatible = "arm,pl061", "arm,primecell"; 702c66ec88fSEmmanuel Vadot reg = <0x0 0xf702e000 0x0 0x1000>; 703c66ec88fSEmmanuel Vadot interrupts = <0 70 0x4>; 704c66ec88fSEmmanuel Vadot gpio-controller; 705c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 706c66ec88fSEmmanuel Vadot gpio-ranges = <&pmx0 0 143 8>; 707c66ec88fSEmmanuel Vadot interrupt-controller; 708c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 709c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl 2>; 710c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 711c66ec88fSEmmanuel Vadot }; 712c66ec88fSEmmanuel Vadot 713c66ec88fSEmmanuel Vadot gpio19: gpio@f702f000 { 714c66ec88fSEmmanuel Vadot compatible = "arm,pl061", "arm,primecell"; 715c66ec88fSEmmanuel Vadot reg = <0x0 0xf702f000 0x0 0x1000>; 716c66ec88fSEmmanuel Vadot interrupts = <0 71 0x4>; 717c66ec88fSEmmanuel Vadot gpio-controller; 718c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 719c66ec88fSEmmanuel Vadot gpio-ranges = <&pmx0 0 151 8>; 720c66ec88fSEmmanuel Vadot interrupt-controller; 721c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 722c66ec88fSEmmanuel Vadot clocks = <&ao_ctrl 2>; 723c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 724c66ec88fSEmmanuel Vadot }; 725c66ec88fSEmmanuel Vadot 726c66ec88fSEmmanuel Vadot spi0: spi@f7106000 { 727c66ec88fSEmmanuel Vadot compatible = "arm,pl022", "arm,primecell"; 728c66ec88fSEmmanuel Vadot reg = <0x0 0xf7106000 0x0 0x1000>; 729c66ec88fSEmmanuel Vadot interrupts = <0 50 4>; 730c66ec88fSEmmanuel Vadot bus-id = <0>; 731c66ec88fSEmmanuel Vadot enable-dma = <0>; 7325def4c47SEmmanuel Vadot clocks = <&sys_ctrl HI6220_SPI_CLK>, <&sys_ctrl HI6220_SPI_CLK>; 7335def4c47SEmmanuel Vadot clock-names = "sspclk", "apb_pclk"; 734c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 735c66ec88fSEmmanuel Vadot pinctrl-0 = <&spi0_pmx_func &spi0_cfg_func>; 736c66ec88fSEmmanuel Vadot num-cs = <1>; 737c66ec88fSEmmanuel Vadot cs-gpios = <&gpio6 2 0>; 738c66ec88fSEmmanuel Vadot status = "disabled"; 739c66ec88fSEmmanuel Vadot }; 740c66ec88fSEmmanuel Vadot 741c66ec88fSEmmanuel Vadot i2c0: i2c@f7100000 { 742c66ec88fSEmmanuel Vadot compatible = "snps,designware-i2c"; 743c66ec88fSEmmanuel Vadot reg = <0x0 0xf7100000 0x0 0x1000>; 744c66ec88fSEmmanuel Vadot interrupts = <0 44 4>; 745c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl HI6220_I2C0_CLK>; 746c66ec88fSEmmanuel Vadot i2c-sda-hold-time-ns = <300>; 747c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 748c66ec88fSEmmanuel Vadot pinctrl-0 = <&i2c0_pmx_func &i2c0_cfg_func>; 749c66ec88fSEmmanuel Vadot status = "disabled"; 750c66ec88fSEmmanuel Vadot }; 751c66ec88fSEmmanuel Vadot 752c66ec88fSEmmanuel Vadot i2c1: i2c@f7101000 { 753c66ec88fSEmmanuel Vadot compatible = "snps,designware-i2c"; 754c66ec88fSEmmanuel Vadot reg = <0x0 0xf7101000 0x0 0x1000>; 755c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl HI6220_I2C1_CLK>; 756c66ec88fSEmmanuel Vadot interrupts = <0 45 4>; 757c66ec88fSEmmanuel Vadot i2c-sda-hold-time-ns = <300>; 758c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 759c66ec88fSEmmanuel Vadot pinctrl-0 = <&i2c1_pmx_func &i2c1_cfg_func>; 760c66ec88fSEmmanuel Vadot status = "disabled"; 761c66ec88fSEmmanuel Vadot }; 762c66ec88fSEmmanuel Vadot 763c66ec88fSEmmanuel Vadot i2c2: i2c@f7102000 { 764c66ec88fSEmmanuel Vadot compatible = "snps,designware-i2c"; 765c66ec88fSEmmanuel Vadot reg = <0x0 0xf7102000 0x0 0x1000>; 766c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl HI6220_I2C2_CLK>; 767c66ec88fSEmmanuel Vadot interrupts = <0 46 4>; 768c66ec88fSEmmanuel Vadot i2c-sda-hold-time-ns = <300>; 769c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 770c66ec88fSEmmanuel Vadot pinctrl-0 = <&i2c2_pmx_func &i2c2_cfg_func>; 771c66ec88fSEmmanuel Vadot status = "disabled"; 772c66ec88fSEmmanuel Vadot }; 773c66ec88fSEmmanuel Vadot 774c66ec88fSEmmanuel Vadot usb_phy: usbphy { 775c66ec88fSEmmanuel Vadot compatible = "hisilicon,hi6220-usb-phy"; 776c66ec88fSEmmanuel Vadot #phy-cells = <0>; 777c66ec88fSEmmanuel Vadot phy-supply = <®_5v_hub>; 778c66ec88fSEmmanuel Vadot hisilicon,peripheral-syscon = <&sys_ctrl>; 779c66ec88fSEmmanuel Vadot }; 780c66ec88fSEmmanuel Vadot 781c66ec88fSEmmanuel Vadot usb: usb@f72c0000 { 782c66ec88fSEmmanuel Vadot compatible = "hisilicon,hi6220-usb"; 783c66ec88fSEmmanuel Vadot reg = <0x0 0xf72c0000 0x0 0x40000>; 784c66ec88fSEmmanuel Vadot phys = <&usb_phy>; 785c66ec88fSEmmanuel Vadot phy-names = "usb2-phy"; 786c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl HI6220_USBOTG_HCLK>; 787c66ec88fSEmmanuel Vadot clock-names = "otg"; 788c66ec88fSEmmanuel Vadot dr_mode = "otg"; 789c66ec88fSEmmanuel Vadot g-rx-fifo-size = <512>; 790c66ec88fSEmmanuel Vadot g-np-tx-fifo-size = <128>; 791c66ec88fSEmmanuel Vadot g-tx-fifo-size = <128 128 128 128 128 128 128 128 792c66ec88fSEmmanuel Vadot 16 16 16 16 16 16 16>; 793c66ec88fSEmmanuel Vadot interrupts = <0 77 0x4>; 794c66ec88fSEmmanuel Vadot }; 795c66ec88fSEmmanuel Vadot 796c66ec88fSEmmanuel Vadot mailbox: mailbox@f7510000 { 797c66ec88fSEmmanuel Vadot compatible = "hisilicon,hi6220-mbox"; 798c66ec88fSEmmanuel Vadot reg = <0x0 0xf7510000 0x0 0x1000>, /* IPC_S */ 799c66ec88fSEmmanuel Vadot <0x0 0x06dff800 0x0 0x0800>; /* Mailbox buffer */ 800c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>; 801c66ec88fSEmmanuel Vadot #mbox-cells = <3>; 802c66ec88fSEmmanuel Vadot }; 803c66ec88fSEmmanuel Vadot 804c66ec88fSEmmanuel Vadot dwmmc_0: dwmmc0@f723d000 { 805c66ec88fSEmmanuel Vadot compatible = "hisilicon,hi6220-dw-mshc"; 806c66ec88fSEmmanuel Vadot reg = <0x0 0xf723d000 0x0 0x1000>; 807c66ec88fSEmmanuel Vadot interrupts = <0x0 0x48 0x4>; 808c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl 2>, <&sys_ctrl 1>; 809c66ec88fSEmmanuel Vadot clock-names = "ciu", "biu"; 810c66ec88fSEmmanuel Vadot resets = <&sys_ctrl PERIPH_RSTDIS0_MMC0>; 811c66ec88fSEmmanuel Vadot reset-names = "reset"; 812c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 813c66ec88fSEmmanuel Vadot pinctrl-0 = <&emmc_pmx_func &emmc_clk_cfg_func 814c66ec88fSEmmanuel Vadot &emmc_cfg_func &emmc_rst_cfg_func>; 815c66ec88fSEmmanuel Vadot }; 816c66ec88fSEmmanuel Vadot 817c66ec88fSEmmanuel Vadot dwmmc_1: dwmmc1@f723e000 { 818c66ec88fSEmmanuel Vadot compatible = "hisilicon,hi6220-dw-mshc"; 819c66ec88fSEmmanuel Vadot hisilicon,peripheral-syscon = <&ao_ctrl>; 820c66ec88fSEmmanuel Vadot reg = <0x0 0xf723e000 0x0 0x1000>; 821c66ec88fSEmmanuel Vadot interrupts = <0x0 0x49 0x4>; 822c66ec88fSEmmanuel Vadot #address-cells = <0x1>; 823c66ec88fSEmmanuel Vadot #size-cells = <0x0>; 824c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl 4>, <&sys_ctrl 3>; 825c66ec88fSEmmanuel Vadot clock-names = "ciu", "biu"; 826c66ec88fSEmmanuel Vadot resets = <&sys_ctrl PERIPH_RSTDIS0_MMC1>; 827c66ec88fSEmmanuel Vadot reset-names = "reset"; 828c66ec88fSEmmanuel Vadot pinctrl-names = "default", "idle"; 829c66ec88fSEmmanuel Vadot pinctrl-0 = <&sd_pmx_func &sd_clk_cfg_func &sd_cfg_func>; 830c66ec88fSEmmanuel Vadot pinctrl-1 = <&sd_pmx_idle &sd_clk_cfg_idle &sd_cfg_idle>; 831c66ec88fSEmmanuel Vadot }; 832c66ec88fSEmmanuel Vadot 833c66ec88fSEmmanuel Vadot dwmmc_2: dwmmc2@f723f000 { 834c66ec88fSEmmanuel Vadot compatible = "hisilicon,hi6220-dw-mshc"; 835c66ec88fSEmmanuel Vadot reg = <0x0 0xf723f000 0x0 0x1000>; 836c66ec88fSEmmanuel Vadot interrupts = <0x0 0x4a 0x4>; 837c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl HI6220_MMC2_CIUCLK>, <&sys_ctrl HI6220_MMC2_CLK>; 838c66ec88fSEmmanuel Vadot clock-names = "ciu", "biu"; 839c66ec88fSEmmanuel Vadot resets = <&sys_ctrl PERIPH_RSTDIS0_MMC2>; 840c66ec88fSEmmanuel Vadot reset-names = "reset"; 841c66ec88fSEmmanuel Vadot pinctrl-names = "default", "idle"; 842c66ec88fSEmmanuel Vadot pinctrl-0 = <&sdio_pmx_func &sdio_clk_cfg_func &sdio_cfg_func>; 843c66ec88fSEmmanuel Vadot pinctrl-1 = <&sdio_pmx_idle &sdio_clk_cfg_idle &sdio_cfg_idle>; 844c66ec88fSEmmanuel Vadot }; 845c66ec88fSEmmanuel Vadot 846c66ec88fSEmmanuel Vadot watchdog0: watchdog@f8005000 { 8478cc087a1SEmmanuel Vadot compatible = "arm,sp805", "arm,primecell"; 848c66ec88fSEmmanuel Vadot reg = <0x0 0xf8005000 0x0 0x1000>; 849c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; 8506be33864SEmmanuel Vadot clocks = <&ao_ctrl HI6220_WDT0_PCLK>, 8516be33864SEmmanuel Vadot <&ao_ctrl HI6220_WDT0_PCLK>; 8526be33864SEmmanuel Vadot clock-names = "wdog_clk", "apb_pclk"; 853c66ec88fSEmmanuel Vadot }; 854c66ec88fSEmmanuel Vadot 855*7d0873ebSEmmanuel Vadot tsensor: tsensor@f7030700 { 856c66ec88fSEmmanuel Vadot compatible = "hisilicon,tsensor"; 857c66ec88fSEmmanuel Vadot reg = <0x0 0xf7030700 0x0 0x1000>; 858c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; 859c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl 22>; 860c66ec88fSEmmanuel Vadot clock-names = "thermal_clk"; 861c66ec88fSEmmanuel Vadot #thermal-sensor-cells = <1>; 862c66ec88fSEmmanuel Vadot }; 863c66ec88fSEmmanuel Vadot 864c66ec88fSEmmanuel Vadot i2s0: i2s@f7118000 { 865c66ec88fSEmmanuel Vadot compatible = "hisilicon,hi6210-i2s"; 866c66ec88fSEmmanuel Vadot reg = <0x0 0xf7118000 0x0 0x8000>; /* i2s unit */ 867c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>; /* 155 "DigACodec_intr"-32 */ 868c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl HI6220_DACODEC_PCLK>, 869c66ec88fSEmmanuel Vadot <&sys_ctrl HI6220_BBPPLL0_DIV>; 870c66ec88fSEmmanuel Vadot clock-names = "dacodec", "i2s-base"; 871c66ec88fSEmmanuel Vadot dmas = <&dma0 15 &dma0 14>; 872c66ec88fSEmmanuel Vadot dma-names = "rx", "tx"; 873c66ec88fSEmmanuel Vadot hisilicon,sysctrl-syscon = <&sys_ctrl>; 874c66ec88fSEmmanuel Vadot #sound-dai-cells = <1>; 875c66ec88fSEmmanuel Vadot }; 876c66ec88fSEmmanuel Vadot 877c66ec88fSEmmanuel Vadot thermal-zones { 878c66ec88fSEmmanuel Vadot 8795def4c47SEmmanuel Vadot cls0: cls0-thermal { 880c66ec88fSEmmanuel Vadot polling-delay = <1000>; 881c66ec88fSEmmanuel Vadot polling-delay-passive = <100>; 882c66ec88fSEmmanuel Vadot sustainable-power = <3326>; 883c66ec88fSEmmanuel Vadot 884c66ec88fSEmmanuel Vadot /* sensor ID */ 885c66ec88fSEmmanuel Vadot thermal-sensors = <&tsensor 2>; 886c66ec88fSEmmanuel Vadot 887c66ec88fSEmmanuel Vadot trips { 8885def4c47SEmmanuel Vadot threshold: trip-point0 { 889c66ec88fSEmmanuel Vadot temperature = <65000>; 890c66ec88fSEmmanuel Vadot hysteresis = <0>; 891c66ec88fSEmmanuel Vadot type = "passive"; 892c66ec88fSEmmanuel Vadot }; 893c66ec88fSEmmanuel Vadot 8945def4c47SEmmanuel Vadot target: trip-point1 { 895c66ec88fSEmmanuel Vadot temperature = <75000>; 896c66ec88fSEmmanuel Vadot hysteresis = <0>; 897c66ec88fSEmmanuel Vadot type = "passive"; 898c66ec88fSEmmanuel Vadot }; 899c66ec88fSEmmanuel Vadot }; 900c66ec88fSEmmanuel Vadot 901c66ec88fSEmmanuel Vadot cooling-maps { 902c66ec88fSEmmanuel Vadot map0 { 903c66ec88fSEmmanuel Vadot trip = <&target>; 904c66ec88fSEmmanuel Vadot cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 905c66ec88fSEmmanuel Vadot <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 906c66ec88fSEmmanuel Vadot <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 907c66ec88fSEmmanuel Vadot <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 908c66ec88fSEmmanuel Vadot <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 909c66ec88fSEmmanuel Vadot <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 910c66ec88fSEmmanuel Vadot <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 911c66ec88fSEmmanuel Vadot <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 912c66ec88fSEmmanuel Vadot }; 913c66ec88fSEmmanuel Vadot }; 914c66ec88fSEmmanuel Vadot }; 915c66ec88fSEmmanuel Vadot }; 916c66ec88fSEmmanuel Vadot 917c66ec88fSEmmanuel Vadot ade: ade@f4100000 { 918c66ec88fSEmmanuel Vadot compatible = "hisilicon,hi6220-ade"; 919c66ec88fSEmmanuel Vadot reg = <0x0 0xf4100000 0x0 0x7800>; 920c66ec88fSEmmanuel Vadot reg-names = "ade_base"; 921c66ec88fSEmmanuel Vadot hisilicon,noc-syscon = <&medianoc_ade>; 922c66ec88fSEmmanuel Vadot resets = <&media_ctrl MEDIA_ADE>; 923c66ec88fSEmmanuel Vadot interrupts = <0 115 4>; /* ldi interrupt */ 924c66ec88fSEmmanuel Vadot 925c66ec88fSEmmanuel Vadot clocks = <&media_ctrl HI6220_ADE_CORE>, 926c66ec88fSEmmanuel Vadot <&media_ctrl HI6220_CODEC_JPEG>, 927c66ec88fSEmmanuel Vadot <&media_ctrl HI6220_ADE_PIX_SRC>; 928c66ec88fSEmmanuel Vadot /*clock name*/ 929c66ec88fSEmmanuel Vadot clock-names = "clk_ade_core", 930c66ec88fSEmmanuel Vadot "clk_codec_jpeg", 931c66ec88fSEmmanuel Vadot "clk_ade_pix"; 932c66ec88fSEmmanuel Vadot 933c66ec88fSEmmanuel Vadot assigned-clocks = <&media_ctrl HI6220_ADE_CORE>, 934c66ec88fSEmmanuel Vadot <&media_ctrl HI6220_CODEC_JPEG>; 935c66ec88fSEmmanuel Vadot assigned-clock-rates = <360000000>, <288000000>; 936c66ec88fSEmmanuel Vadot dma-coherent; 937c66ec88fSEmmanuel Vadot status = "disabled"; 938c66ec88fSEmmanuel Vadot 939c66ec88fSEmmanuel Vadot port { 940c66ec88fSEmmanuel Vadot ade_out: endpoint { 941c66ec88fSEmmanuel Vadot remote-endpoint = <&dsi_in>; 942c66ec88fSEmmanuel Vadot }; 943c66ec88fSEmmanuel Vadot }; 944c66ec88fSEmmanuel Vadot }; 945c66ec88fSEmmanuel Vadot 946c66ec88fSEmmanuel Vadot dsi: dsi@f4107800 { 947c66ec88fSEmmanuel Vadot compatible = "hisilicon,hi6220-dsi"; 948c66ec88fSEmmanuel Vadot reg = <0x0 0xf4107800 0x0 0x100>; 949c66ec88fSEmmanuel Vadot clocks = <&media_ctrl HI6220_DSI_PCLK>; 950c66ec88fSEmmanuel Vadot clock-names = "pclk"; 951c66ec88fSEmmanuel Vadot status = "disabled"; 952c66ec88fSEmmanuel Vadot 953c66ec88fSEmmanuel Vadot ports { 954c66ec88fSEmmanuel Vadot #address-cells = <1>; 955c66ec88fSEmmanuel Vadot #size-cells = <0>; 956c66ec88fSEmmanuel Vadot 957c66ec88fSEmmanuel Vadot /* 0 for input port */ 958c66ec88fSEmmanuel Vadot port@0 { 959c66ec88fSEmmanuel Vadot reg = <0>; 960c66ec88fSEmmanuel Vadot dsi_in: endpoint { 961c66ec88fSEmmanuel Vadot remote-endpoint = <&ade_out>; 962c66ec88fSEmmanuel Vadot }; 963c66ec88fSEmmanuel Vadot }; 964c66ec88fSEmmanuel Vadot }; 965c66ec88fSEmmanuel Vadot }; 966c66ec88fSEmmanuel Vadot 967c66ec88fSEmmanuel Vadot debug@f6590000 { 968c66ec88fSEmmanuel Vadot compatible = "arm,coresight-cpu-debug","arm,primecell"; 969c66ec88fSEmmanuel Vadot reg = <0 0xf6590000 0 0x1000>; 970c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl HI6220_DAPB_CLK>; 971c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 972c66ec88fSEmmanuel Vadot cpu = <&cpu0>; 973c66ec88fSEmmanuel Vadot }; 974c66ec88fSEmmanuel Vadot 975c66ec88fSEmmanuel Vadot debug@f6592000 { 976c66ec88fSEmmanuel Vadot compatible = "arm,coresight-cpu-debug","arm,primecell"; 977c66ec88fSEmmanuel Vadot reg = <0 0xf6592000 0 0x1000>; 978c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl HI6220_DAPB_CLK>; 979c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 980c66ec88fSEmmanuel Vadot cpu = <&cpu1>; 981c66ec88fSEmmanuel Vadot }; 982c66ec88fSEmmanuel Vadot 983c66ec88fSEmmanuel Vadot debug@f6594000 { 984c66ec88fSEmmanuel Vadot compatible = "arm,coresight-cpu-debug","arm,primecell"; 985c66ec88fSEmmanuel Vadot reg = <0 0xf6594000 0 0x1000>; 986c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl HI6220_DAPB_CLK>; 987c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 988c66ec88fSEmmanuel Vadot cpu = <&cpu2>; 989c66ec88fSEmmanuel Vadot }; 990c66ec88fSEmmanuel Vadot 991c66ec88fSEmmanuel Vadot debug@f6596000 { 992c66ec88fSEmmanuel Vadot compatible = "arm,coresight-cpu-debug","arm,primecell"; 993c66ec88fSEmmanuel Vadot reg = <0 0xf6596000 0 0x1000>; 994c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl HI6220_DAPB_CLK>; 995c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 996c66ec88fSEmmanuel Vadot cpu = <&cpu3>; 997c66ec88fSEmmanuel Vadot }; 998c66ec88fSEmmanuel Vadot 999c66ec88fSEmmanuel Vadot debug@f65d0000 { 1000c66ec88fSEmmanuel Vadot compatible = "arm,coresight-cpu-debug","arm,primecell"; 1001c66ec88fSEmmanuel Vadot reg = <0 0xf65d0000 0 0x1000>; 1002c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl HI6220_DAPB_CLK>; 1003c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 1004c66ec88fSEmmanuel Vadot cpu = <&cpu4>; 1005c66ec88fSEmmanuel Vadot }; 1006c66ec88fSEmmanuel Vadot 1007c66ec88fSEmmanuel Vadot debug@f65d2000 { 1008c66ec88fSEmmanuel Vadot compatible = "arm,coresight-cpu-debug","arm,primecell"; 1009c66ec88fSEmmanuel Vadot reg = <0 0xf65d2000 0 0x1000>; 1010c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl HI6220_DAPB_CLK>; 1011c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 1012c66ec88fSEmmanuel Vadot cpu = <&cpu5>; 1013c66ec88fSEmmanuel Vadot }; 1014c66ec88fSEmmanuel Vadot 1015c66ec88fSEmmanuel Vadot debug@f65d4000 { 1016c66ec88fSEmmanuel Vadot compatible = "arm,coresight-cpu-debug","arm,primecell"; 1017c66ec88fSEmmanuel Vadot reg = <0 0xf65d4000 0 0x1000>; 1018c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl HI6220_DAPB_CLK>; 1019c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 1020c66ec88fSEmmanuel Vadot cpu = <&cpu6>; 1021c66ec88fSEmmanuel Vadot }; 1022c66ec88fSEmmanuel Vadot 1023c66ec88fSEmmanuel Vadot debug@f65d6000 { 1024c66ec88fSEmmanuel Vadot compatible = "arm,coresight-cpu-debug","arm,primecell"; 1025c66ec88fSEmmanuel Vadot reg = <0 0xf65d6000 0 0x1000>; 1026c66ec88fSEmmanuel Vadot clocks = <&sys_ctrl HI6220_DAPB_CLK>; 1027c66ec88fSEmmanuel Vadot clock-names = "apb_pclk"; 1028c66ec88fSEmmanuel Vadot cpu = <&cpu7>; 1029c66ec88fSEmmanuel Vadot }; 1030c66ec88fSEmmanuel Vadot 1031c66ec88fSEmmanuel Vadot mali: gpu@f4080000 { 1032c66ec88fSEmmanuel Vadot compatible = "hisilicon,hi6220-mali", "arm,mali-450"; 1033c66ec88fSEmmanuel Vadot reg = <0x0 0xf4080000 0x0 0x00040000>; 1034c66ec88fSEmmanuel Vadot interrupt-parent = <&gic>; 1035c66ec88fSEmmanuel Vadot interrupts = <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>, 1036c66ec88fSEmmanuel Vadot <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>, 1037c66ec88fSEmmanuel Vadot <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>, 1038c66ec88fSEmmanuel Vadot <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>, 1039c66ec88fSEmmanuel Vadot <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>, 1040c66ec88fSEmmanuel Vadot <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>, 1041c66ec88fSEmmanuel Vadot <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>, 1042c66ec88fSEmmanuel Vadot <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>, 1043c66ec88fSEmmanuel Vadot <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>, 1044c66ec88fSEmmanuel Vadot <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>, 1045c66ec88fSEmmanuel Vadot <GIC_PPI 126 IRQ_TYPE_LEVEL_HIGH>; 1046c66ec88fSEmmanuel Vadot 1047c66ec88fSEmmanuel Vadot interrupt-names = "gp", 1048c66ec88fSEmmanuel Vadot "gpmmu", 1049c66ec88fSEmmanuel Vadot "pp", 1050c66ec88fSEmmanuel Vadot "pp0", 1051c66ec88fSEmmanuel Vadot "ppmmu0", 1052c66ec88fSEmmanuel Vadot "pp1", 1053c66ec88fSEmmanuel Vadot "ppmmu1", 1054c66ec88fSEmmanuel Vadot "pp2", 1055c66ec88fSEmmanuel Vadot "ppmmu2", 1056c66ec88fSEmmanuel Vadot "pp3", 1057c66ec88fSEmmanuel Vadot "ppmmu3"; 1058c66ec88fSEmmanuel Vadot clocks = <&media_ctrl HI6220_G3D_CLK>, 1059c66ec88fSEmmanuel Vadot <&media_ctrl HI6220_G3D_PCLK>; 10605def4c47SEmmanuel Vadot clock-names = "bus", "core"; 1061c66ec88fSEmmanuel Vadot assigned-clocks = <&media_ctrl HI6220_G3D_CLK>, 1062c66ec88fSEmmanuel Vadot <&media_ctrl HI6220_G3D_PCLK>; 1063c66ec88fSEmmanuel Vadot assigned-clock-rates = <500000000>, <144000000>; 1064c66ec88fSEmmanuel Vadot reset-names = "ao_g3d", "media_g3d"; 1065c66ec88fSEmmanuel Vadot resets = <&ao_ctrl AO_G3D>, <&media_ctrl MEDIA_G3D>; 1066c66ec88fSEmmanuel Vadot }; 1067c66ec88fSEmmanuel Vadot }; 1068c66ec88fSEmmanuel Vadot}; 1069c66ec88fSEmmanuel Vadot 1070c66ec88fSEmmanuel Vadot#include "hi6220-coresight.dtsi" 1071