1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2724ba675SRob Herring 3724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 4724ba675SRob Herring#include <dt-bindings/interrupt-controller/irq.h> 5724ba675SRob Herring#include <dt-bindings/interrupt-controller/arm-gic.h> 6724ba675SRob Herring#include <dt-bindings/pinctrl/rockchip.h> 7724ba675SRob Herring#include <dt-bindings/clock/rk3228-cru.h> 8724ba675SRob Herring#include <dt-bindings/thermal/thermal.h> 9724ba675SRob Herring#include <dt-bindings/power/rk3228-power.h> 10724ba675SRob Herring 11724ba675SRob Herring/ { 12724ba675SRob Herring #address-cells = <1>; 13724ba675SRob Herring #size-cells = <1>; 14724ba675SRob Herring 15724ba675SRob Herring interrupt-parent = <&gic>; 16724ba675SRob Herring 17724ba675SRob Herring aliases { 1804c521c3SJohan Jonker gpio0 = &gpio0; 1904c521c3SJohan Jonker gpio1 = &gpio1; 2004c521c3SJohan Jonker gpio2 = &gpio2; 2104c521c3SJohan Jonker gpio3 = &gpio3; 22724ba675SRob Herring serial0 = &uart0; 23724ba675SRob Herring serial1 = &uart1; 24724ba675SRob Herring serial2 = &uart2; 25724ba675SRob Herring spi0 = &spi0; 26724ba675SRob Herring }; 27724ba675SRob Herring 28724ba675SRob Herring cpus { 29724ba675SRob Herring #address-cells = <1>; 30724ba675SRob Herring #size-cells = <0>; 31724ba675SRob Herring 32724ba675SRob Herring cpu0: cpu@f00 { 33724ba675SRob Herring device_type = "cpu"; 34724ba675SRob Herring compatible = "arm,cortex-a7"; 35724ba675SRob Herring reg = <0xf00>; 36724ba675SRob Herring resets = <&cru SRST_CORE0>; 37724ba675SRob Herring operating-points-v2 = <&cpu0_opp_table>; 38724ba675SRob Herring #cooling-cells = <2>; /* min followed by max */ 39724ba675SRob Herring clock-latency = <40000>; 40724ba675SRob Herring clocks = <&cru ARMCLK>; 41724ba675SRob Herring enable-method = "psci"; 42724ba675SRob Herring }; 43724ba675SRob Herring 44724ba675SRob Herring cpu1: cpu@f01 { 45724ba675SRob Herring device_type = "cpu"; 46724ba675SRob Herring compatible = "arm,cortex-a7"; 47724ba675SRob Herring reg = <0xf01>; 48724ba675SRob Herring resets = <&cru SRST_CORE1>; 49724ba675SRob Herring operating-points-v2 = <&cpu0_opp_table>; 50724ba675SRob Herring #cooling-cells = <2>; /* min followed by max */ 51724ba675SRob Herring enable-method = "psci"; 52724ba675SRob Herring }; 53724ba675SRob Herring 54724ba675SRob Herring cpu2: cpu@f02 { 55724ba675SRob Herring device_type = "cpu"; 56724ba675SRob Herring compatible = "arm,cortex-a7"; 57724ba675SRob Herring reg = <0xf02>; 58724ba675SRob Herring resets = <&cru SRST_CORE2>; 59724ba675SRob Herring operating-points-v2 = <&cpu0_opp_table>; 60724ba675SRob Herring #cooling-cells = <2>; /* min followed by max */ 61724ba675SRob Herring enable-method = "psci"; 62724ba675SRob Herring }; 63724ba675SRob Herring 64724ba675SRob Herring cpu3: cpu@f03 { 65724ba675SRob Herring device_type = "cpu"; 66724ba675SRob Herring compatible = "arm,cortex-a7"; 67724ba675SRob Herring reg = <0xf03>; 68724ba675SRob Herring resets = <&cru SRST_CORE3>; 69724ba675SRob Herring operating-points-v2 = <&cpu0_opp_table>; 70724ba675SRob Herring #cooling-cells = <2>; /* min followed by max */ 71724ba675SRob Herring enable-method = "psci"; 72724ba675SRob Herring }; 73724ba675SRob Herring }; 74724ba675SRob Herring 75724ba675SRob Herring cpu0_opp_table: opp-table-0 { 76724ba675SRob Herring compatible = "operating-points-v2"; 77724ba675SRob Herring opp-shared; 78724ba675SRob Herring 79724ba675SRob Herring opp-408000000 { 80724ba675SRob Herring opp-hz = /bits/ 64 <408000000>; 81724ba675SRob Herring opp-microvolt = <950000>; 82724ba675SRob Herring clock-latency-ns = <40000>; 83724ba675SRob Herring opp-suspend; 84724ba675SRob Herring }; 85724ba675SRob Herring opp-600000000 { 86724ba675SRob Herring opp-hz = /bits/ 64 <600000000>; 87724ba675SRob Herring opp-microvolt = <975000>; 88724ba675SRob Herring }; 89724ba675SRob Herring opp-816000000 { 90724ba675SRob Herring opp-hz = /bits/ 64 <816000000>; 91724ba675SRob Herring opp-microvolt = <1000000>; 92724ba675SRob Herring }; 93724ba675SRob Herring opp-1008000000 { 94724ba675SRob Herring opp-hz = /bits/ 64 <1008000000>; 95724ba675SRob Herring opp-microvolt = <1175000>; 96724ba675SRob Herring }; 97724ba675SRob Herring opp-1200000000 { 98724ba675SRob Herring opp-hz = /bits/ 64 <1200000000>; 99724ba675SRob Herring opp-microvolt = <1275000>; 100724ba675SRob Herring }; 101724ba675SRob Herring }; 102724ba675SRob Herring 103724ba675SRob Herring arm-pmu { 104724ba675SRob Herring compatible = "arm,cortex-a7-pmu"; 105724ba675SRob Herring interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>, 106724ba675SRob Herring <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>, 107724ba675SRob Herring <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>, 108724ba675SRob Herring <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; 109724ba675SRob Herring interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; 110724ba675SRob Herring }; 111724ba675SRob Herring 112724ba675SRob Herring psci { 113724ba675SRob Herring compatible = "arm,psci-1.0", "arm,psci-0.2"; 114724ba675SRob Herring method = "smc"; 115724ba675SRob Herring }; 116724ba675SRob Herring 117724ba675SRob Herring timer { 118724ba675SRob Herring compatible = "arm,armv7-timer"; 119724ba675SRob Herring arm,cpu-registers-not-fw-configured; 120724ba675SRob Herring interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, 121724ba675SRob Herring <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, 122724ba675SRob Herring <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, 123724ba675SRob Herring <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; 124724ba675SRob Herring clock-frequency = <24000000>; 125724ba675SRob Herring }; 126724ba675SRob Herring 127724ba675SRob Herring xin24m: oscillator { 128724ba675SRob Herring compatible = "fixed-clock"; 129724ba675SRob Herring clock-frequency = <24000000>; 130724ba675SRob Herring clock-output-names = "xin24m"; 131724ba675SRob Herring #clock-cells = <0>; 132724ba675SRob Herring }; 133724ba675SRob Herring 134724ba675SRob Herring display_subsystem: display-subsystem { 135724ba675SRob Herring compatible = "rockchip,display-subsystem"; 136724ba675SRob Herring ports = <&vop_out>; 137724ba675SRob Herring }; 138724ba675SRob Herring 139724ba675SRob Herring i2s1: i2s1@100b0000 { 140724ba675SRob Herring compatible = "rockchip,rk3228-i2s", "rockchip,rk3066-i2s"; 141724ba675SRob Herring reg = <0x100b0000 0x4000>; 142724ba675SRob Herring interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; 143724ba675SRob Herring clock-names = "i2s_clk", "i2s_hclk"; 144724ba675SRob Herring clocks = <&cru SCLK_I2S1>, <&cru HCLK_I2S1_8CH>; 145724ba675SRob Herring dmas = <&pdma 14>, <&pdma 15>; 146724ba675SRob Herring dma-names = "tx", "rx"; 147724ba675SRob Herring pinctrl-names = "default"; 148724ba675SRob Herring pinctrl-0 = <&i2s1_bus>; 149724ba675SRob Herring status = "disabled"; 150724ba675SRob Herring }; 151724ba675SRob Herring 152724ba675SRob Herring i2s0: i2s0@100c0000 { 153724ba675SRob Herring compatible = "rockchip,rk3228-i2s", "rockchip,rk3066-i2s"; 154724ba675SRob Herring reg = <0x100c0000 0x4000>; 155724ba675SRob Herring interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; 156724ba675SRob Herring clock-names = "i2s_clk", "i2s_hclk"; 157724ba675SRob Herring clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0_8CH>; 158724ba675SRob Herring dmas = <&pdma 11>, <&pdma 12>; 159724ba675SRob Herring dma-names = "tx", "rx"; 160724ba675SRob Herring status = "disabled"; 161724ba675SRob Herring }; 162724ba675SRob Herring 163724ba675SRob Herring spdif: spdif@100d0000 { 164724ba675SRob Herring compatible = "rockchip,rk3228-spdif"; 165724ba675SRob Herring reg = <0x100d0000 0x1000>; 166724ba675SRob Herring interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; 167724ba675SRob Herring clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF_8CH>; 168724ba675SRob Herring clock-names = "mclk", "hclk"; 169724ba675SRob Herring dmas = <&pdma 10>; 170724ba675SRob Herring dma-names = "tx"; 171724ba675SRob Herring pinctrl-names = "default"; 172724ba675SRob Herring pinctrl-0 = <&spdif_tx>; 173724ba675SRob Herring status = "disabled"; 174724ba675SRob Herring }; 175724ba675SRob Herring 176724ba675SRob Herring i2s2: i2s2@100e0000 { 177724ba675SRob Herring compatible = "rockchip,rk3228-i2s", "rockchip,rk3066-i2s"; 178724ba675SRob Herring reg = <0x100e0000 0x4000>; 179724ba675SRob Herring interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; 180724ba675SRob Herring clock-names = "i2s_clk", "i2s_hclk"; 181724ba675SRob Herring clocks = <&cru SCLK_I2S2>, <&cru HCLK_I2S2_2CH>; 182724ba675SRob Herring dmas = <&pdma 0>, <&pdma 1>; 183724ba675SRob Herring dma-names = "tx", "rx"; 184724ba675SRob Herring status = "disabled"; 185724ba675SRob Herring }; 186724ba675SRob Herring 187724ba675SRob Herring grf: syscon@11000000 { 188724ba675SRob Herring compatible = "rockchip,rk3228-grf", "syscon", "simple-mfd"; 189724ba675SRob Herring reg = <0x11000000 0x1000>; 190724ba675SRob Herring #address-cells = <1>; 191724ba675SRob Herring #size-cells = <1>; 192724ba675SRob Herring 193724ba675SRob Herring io_domains: io-domains { 194724ba675SRob Herring compatible = "rockchip,rk3228-io-voltage-domain"; 195724ba675SRob Herring status = "disabled"; 196724ba675SRob Herring }; 197724ba675SRob Herring 198724ba675SRob Herring power: power-controller { 199724ba675SRob Herring compatible = "rockchip,rk3228-power-controller"; 200724ba675SRob Herring #power-domain-cells = <1>; 201724ba675SRob Herring #address-cells = <1>; 202724ba675SRob Herring #size-cells = <0>; 203724ba675SRob Herring 204724ba675SRob Herring power-domain@RK3228_PD_VIO { 205724ba675SRob Herring reg = <RK3228_PD_VIO>; 206724ba675SRob Herring clocks = <&cru ACLK_HDCP>, 207724ba675SRob Herring <&cru SCLK_HDCP>, 208724ba675SRob Herring <&cru ACLK_IEP>, 209724ba675SRob Herring <&cru HCLK_IEP>, 210724ba675SRob Herring <&cru ACLK_RGA>, 211724ba675SRob Herring <&cru HCLK_RGA>, 212724ba675SRob Herring <&cru SCLK_RGA>; 213724ba675SRob Herring pm_qos = <&qos_hdcp>, 214724ba675SRob Herring <&qos_iep>, 215724ba675SRob Herring <&qos_rga_r>, 216724ba675SRob Herring <&qos_rga_w>; 217724ba675SRob Herring #power-domain-cells = <0>; 218724ba675SRob Herring }; 219724ba675SRob Herring 220724ba675SRob Herring power-domain@RK3228_PD_VOP { 221724ba675SRob Herring reg = <RK3228_PD_VOP>; 222724ba675SRob Herring clocks = <&cru ACLK_VOP>, 223724ba675SRob Herring <&cru DCLK_VOP>, 224724ba675SRob Herring <&cru HCLK_VOP>; 225724ba675SRob Herring pm_qos = <&qos_vop>; 226724ba675SRob Herring #power-domain-cells = <0>; 227724ba675SRob Herring }; 228724ba675SRob Herring 229724ba675SRob Herring power-domain@RK3228_PD_VPU { 230724ba675SRob Herring reg = <RK3228_PD_VPU>; 231724ba675SRob Herring clocks = <&cru ACLK_VPU>, 232724ba675SRob Herring <&cru HCLK_VPU>; 233724ba675SRob Herring pm_qos = <&qos_vpu>; 234724ba675SRob Herring #power-domain-cells = <0>; 235724ba675SRob Herring }; 236724ba675SRob Herring 237724ba675SRob Herring power-domain@RK3228_PD_RKVDEC { 238724ba675SRob Herring reg = <RK3228_PD_RKVDEC>; 239724ba675SRob Herring clocks = <&cru ACLK_RKVDEC>, 240724ba675SRob Herring <&cru HCLK_RKVDEC>, 241724ba675SRob Herring <&cru SCLK_VDEC_CABAC>, 242724ba675SRob Herring <&cru SCLK_VDEC_CORE>; 243724ba675SRob Herring pm_qos = <&qos_rkvdec_r>, 244724ba675SRob Herring <&qos_rkvdec_w>; 245724ba675SRob Herring #power-domain-cells = <0>; 246724ba675SRob Herring }; 247724ba675SRob Herring 248724ba675SRob Herring power-domain@RK3228_PD_GPU { 249724ba675SRob Herring reg = <RK3228_PD_GPU>; 250724ba675SRob Herring clocks = <&cru ACLK_GPU>; 251724ba675SRob Herring pm_qos = <&qos_gpu>; 252724ba675SRob Herring #power-domain-cells = <0>; 253724ba675SRob Herring }; 254724ba675SRob Herring }; 255724ba675SRob Herring 256724ba675SRob Herring u2phy0: usb2phy@760 { 257724ba675SRob Herring compatible = "rockchip,rk3228-usb2phy"; 258724ba675SRob Herring reg = <0x0760 0x0c>; 259724ba675SRob Herring clocks = <&cru SCLK_OTGPHY0>; 260724ba675SRob Herring clock-names = "phyclk"; 261724ba675SRob Herring clock-output-names = "usb480m_phy0"; 262724ba675SRob Herring #clock-cells = <0>; 263724ba675SRob Herring status = "disabled"; 264724ba675SRob Herring 265724ba675SRob Herring u2phy0_otg: otg-port { 266724ba675SRob Herring interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>, 267724ba675SRob Herring <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>, 268724ba675SRob Herring <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; 269724ba675SRob Herring interrupt-names = "otg-bvalid", "otg-id", 270724ba675SRob Herring "linestate"; 271724ba675SRob Herring #phy-cells = <0>; 272724ba675SRob Herring status = "disabled"; 273724ba675SRob Herring }; 274724ba675SRob Herring 275724ba675SRob Herring u2phy0_host: host-port { 276724ba675SRob Herring interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; 277724ba675SRob Herring interrupt-names = "linestate"; 278724ba675SRob Herring #phy-cells = <0>; 279724ba675SRob Herring status = "disabled"; 280724ba675SRob Herring }; 281724ba675SRob Herring }; 282724ba675SRob Herring 283724ba675SRob Herring u2phy1: usb2phy@800 { 284724ba675SRob Herring compatible = "rockchip,rk3228-usb2phy"; 285724ba675SRob Herring reg = <0x0800 0x0c>; 286724ba675SRob Herring clocks = <&cru SCLK_OTGPHY1>; 287724ba675SRob Herring clock-names = "phyclk"; 288724ba675SRob Herring clock-output-names = "usb480m_phy1"; 289724ba675SRob Herring #clock-cells = <0>; 290724ba675SRob Herring status = "disabled"; 291724ba675SRob Herring 292724ba675SRob Herring u2phy1_otg: otg-port { 293724ba675SRob Herring interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>; 294724ba675SRob Herring interrupt-names = "linestate"; 295724ba675SRob Herring #phy-cells = <0>; 296724ba675SRob Herring status = "disabled"; 297724ba675SRob Herring }; 298724ba675SRob Herring 299724ba675SRob Herring u2phy1_host: host-port { 300724ba675SRob Herring interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>; 301724ba675SRob Herring interrupt-names = "linestate"; 302724ba675SRob Herring #phy-cells = <0>; 303724ba675SRob Herring status = "disabled"; 304724ba675SRob Herring }; 305724ba675SRob Herring }; 306724ba675SRob Herring }; 307724ba675SRob Herring 308724ba675SRob Herring uart0: serial@11010000 { 309724ba675SRob Herring compatible = "snps,dw-apb-uart"; 310724ba675SRob Herring reg = <0x11010000 0x100>; 311724ba675SRob Herring interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>; 312724ba675SRob Herring clock-frequency = <24000000>; 313724ba675SRob Herring clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>; 314724ba675SRob Herring clock-names = "baudclk", "apb_pclk"; 315724ba675SRob Herring pinctrl-names = "default"; 316724ba675SRob Herring pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; 317724ba675SRob Herring reg-shift = <2>; 318724ba675SRob Herring reg-io-width = <4>; 319724ba675SRob Herring status = "disabled"; 320724ba675SRob Herring }; 321724ba675SRob Herring 322724ba675SRob Herring uart1: serial@11020000 { 323724ba675SRob Herring compatible = "snps,dw-apb-uart"; 324724ba675SRob Herring reg = <0x11020000 0x100>; 325724ba675SRob Herring interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>; 326724ba675SRob Herring clock-frequency = <24000000>; 327724ba675SRob Herring clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>; 328724ba675SRob Herring clock-names = "baudclk", "apb_pclk"; 329724ba675SRob Herring pinctrl-names = "default"; 330724ba675SRob Herring pinctrl-0 = <&uart1_xfer>; 331724ba675SRob Herring reg-shift = <2>; 332724ba675SRob Herring reg-io-width = <4>; 333724ba675SRob Herring status = "disabled"; 334724ba675SRob Herring }; 335724ba675SRob Herring 336724ba675SRob Herring uart2: serial@11030000 { 337724ba675SRob Herring compatible = "snps,dw-apb-uart"; 338724ba675SRob Herring reg = <0x11030000 0x100>; 339724ba675SRob Herring interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>; 340724ba675SRob Herring clock-frequency = <24000000>; 341724ba675SRob Herring clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>; 342724ba675SRob Herring clock-names = "baudclk", "apb_pclk"; 343724ba675SRob Herring pinctrl-names = "default"; 344724ba675SRob Herring pinctrl-0 = <&uart2_xfer>; 345724ba675SRob Herring reg-shift = <2>; 346724ba675SRob Herring reg-io-width = <4>; 347724ba675SRob Herring status = "disabled"; 348724ba675SRob Herring }; 349724ba675SRob Herring 350724ba675SRob Herring efuse: efuse@11040000 { 351724ba675SRob Herring compatible = "rockchip,rk3228-efuse"; 352724ba675SRob Herring reg = <0x11040000 0x20>; 353724ba675SRob Herring clocks = <&cru PCLK_EFUSE_256>; 354724ba675SRob Herring clock-names = "pclk_efuse"; 355724ba675SRob Herring #address-cells = <1>; 356724ba675SRob Herring #size-cells = <1>; 357724ba675SRob Herring 358724ba675SRob Herring /* Data cells */ 359724ba675SRob Herring efuse_id: id@7 { 360724ba675SRob Herring reg = <0x7 0x10>; 361724ba675SRob Herring }; 362724ba675SRob Herring cpu_leakage: cpu_leakage@17 { 363724ba675SRob Herring reg = <0x17 0x1>; 364724ba675SRob Herring }; 365724ba675SRob Herring }; 366724ba675SRob Herring 367724ba675SRob Herring i2c0: i2c@11050000 { 368724ba675SRob Herring compatible = "rockchip,rk3228-i2c"; 369724ba675SRob Herring reg = <0x11050000 0x1000>; 370724ba675SRob Herring interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>; 371724ba675SRob Herring #address-cells = <1>; 372724ba675SRob Herring #size-cells = <0>; 373724ba675SRob Herring clock-names = "i2c"; 374724ba675SRob Herring clocks = <&cru PCLK_I2C0>; 375724ba675SRob Herring pinctrl-names = "default"; 376724ba675SRob Herring pinctrl-0 = <&i2c0_xfer>; 377724ba675SRob Herring status = "disabled"; 378724ba675SRob Herring }; 379724ba675SRob Herring 380724ba675SRob Herring i2c1: i2c@11060000 { 381724ba675SRob Herring compatible = "rockchip,rk3228-i2c"; 382724ba675SRob Herring reg = <0x11060000 0x1000>; 383724ba675SRob Herring interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; 384724ba675SRob Herring #address-cells = <1>; 385724ba675SRob Herring #size-cells = <0>; 386724ba675SRob Herring clock-names = "i2c"; 387724ba675SRob Herring clocks = <&cru PCLK_I2C1>; 388724ba675SRob Herring pinctrl-names = "default"; 389724ba675SRob Herring pinctrl-0 = <&i2c1_xfer>; 390724ba675SRob Herring status = "disabled"; 391724ba675SRob Herring }; 392724ba675SRob Herring 393724ba675SRob Herring i2c2: i2c@11070000 { 394724ba675SRob Herring compatible = "rockchip,rk3228-i2c"; 395724ba675SRob Herring reg = <0x11070000 0x1000>; 396724ba675SRob Herring interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>; 397724ba675SRob Herring #address-cells = <1>; 398724ba675SRob Herring #size-cells = <0>; 399724ba675SRob Herring clock-names = "i2c"; 400724ba675SRob Herring clocks = <&cru PCLK_I2C2>; 401724ba675SRob Herring pinctrl-names = "default"; 402724ba675SRob Herring pinctrl-0 = <&i2c2_xfer>; 403724ba675SRob Herring status = "disabled"; 404724ba675SRob Herring }; 405724ba675SRob Herring 406724ba675SRob Herring i2c3: i2c@11080000 { 407724ba675SRob Herring compatible = "rockchip,rk3228-i2c"; 408724ba675SRob Herring reg = <0x11080000 0x1000>; 409724ba675SRob Herring interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; 410724ba675SRob Herring #address-cells = <1>; 411724ba675SRob Herring #size-cells = <0>; 412724ba675SRob Herring clock-names = "i2c"; 413724ba675SRob Herring clocks = <&cru PCLK_I2C3>; 414724ba675SRob Herring pinctrl-names = "default"; 415724ba675SRob Herring pinctrl-0 = <&i2c3_xfer>; 416724ba675SRob Herring status = "disabled"; 417724ba675SRob Herring }; 418724ba675SRob Herring 419724ba675SRob Herring spi0: spi@11090000 { 420724ba675SRob Herring compatible = "rockchip,rk3228-spi"; 421724ba675SRob Herring reg = <0x11090000 0x1000>; 422724ba675SRob Herring interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>; 423724ba675SRob Herring #address-cells = <1>; 424724ba675SRob Herring #size-cells = <0>; 425724ba675SRob Herring clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>; 426724ba675SRob Herring clock-names = "spiclk", "apb_pclk"; 427724ba675SRob Herring pinctrl-names = "default"; 428724ba675SRob Herring pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0 &spi0_cs1>; 429724ba675SRob Herring status = "disabled"; 430724ba675SRob Herring }; 431724ba675SRob Herring 432724ba675SRob Herring wdt: watchdog@110a0000 { 433724ba675SRob Herring compatible = "rockchip,rk3228-wdt", "snps,dw-wdt"; 434724ba675SRob Herring reg = <0x110a0000 0x100>; 435724ba675SRob Herring interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; 436724ba675SRob Herring clocks = <&cru PCLK_CPU>; 437724ba675SRob Herring status = "disabled"; 438724ba675SRob Herring }; 439724ba675SRob Herring 440724ba675SRob Herring pwm0: pwm@110b0000 { 441724ba675SRob Herring compatible = "rockchip,rk3288-pwm"; 442724ba675SRob Herring reg = <0x110b0000 0x10>; 443724ba675SRob Herring #pwm-cells = <3>; 444724ba675SRob Herring clocks = <&cru PCLK_PWM>; 445724ba675SRob Herring pinctrl-names = "default"; 446724ba675SRob Herring pinctrl-0 = <&pwm0_pin>; 447724ba675SRob Herring status = "disabled"; 448724ba675SRob Herring }; 449724ba675SRob Herring 450724ba675SRob Herring pwm1: pwm@110b0010 { 451724ba675SRob Herring compatible = "rockchip,rk3288-pwm"; 452724ba675SRob Herring reg = <0x110b0010 0x10>; 453724ba675SRob Herring #pwm-cells = <3>; 454724ba675SRob Herring clocks = <&cru PCLK_PWM>; 455724ba675SRob Herring pinctrl-names = "default"; 456724ba675SRob Herring pinctrl-0 = <&pwm1_pin>; 457724ba675SRob Herring status = "disabled"; 458724ba675SRob Herring }; 459724ba675SRob Herring 460724ba675SRob Herring pwm2: pwm@110b0020 { 461724ba675SRob Herring compatible = "rockchip,rk3288-pwm"; 462724ba675SRob Herring reg = <0x110b0020 0x10>; 463724ba675SRob Herring #pwm-cells = <3>; 464724ba675SRob Herring clocks = <&cru PCLK_PWM>; 465724ba675SRob Herring pinctrl-names = "default"; 466724ba675SRob Herring pinctrl-0 = <&pwm2_pin>; 467724ba675SRob Herring status = "disabled"; 468724ba675SRob Herring }; 469724ba675SRob Herring 470724ba675SRob Herring pwm3: pwm@110b0030 { 471724ba675SRob Herring compatible = "rockchip,rk3288-pwm"; 472724ba675SRob Herring reg = <0x110b0030 0x10>; 473724ba675SRob Herring #pwm-cells = <2>; 474724ba675SRob Herring clocks = <&cru PCLK_PWM>; 475724ba675SRob Herring pinctrl-names = "default"; 476724ba675SRob Herring pinctrl-0 = <&pwm3_pin>; 477724ba675SRob Herring status = "disabled"; 478724ba675SRob Herring }; 479724ba675SRob Herring 480724ba675SRob Herring timer: timer@110c0000 { 481724ba675SRob Herring compatible = "rockchip,rk3228-timer", "rockchip,rk3288-timer"; 482724ba675SRob Herring reg = <0x110c0000 0x20>; 483724ba675SRob Herring interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>; 484724ba675SRob Herring clocks = <&cru PCLK_TIMER>, <&xin24m>; 485724ba675SRob Herring clock-names = "pclk", "timer"; 486724ba675SRob Herring }; 487724ba675SRob Herring 488724ba675SRob Herring cru: clock-controller@110e0000 { 489724ba675SRob Herring compatible = "rockchip,rk3228-cru"; 490724ba675SRob Herring reg = <0x110e0000 0x1000>; 491724ba675SRob Herring clocks = <&xin24m>; 492724ba675SRob Herring clock-names = "xin24m"; 493724ba675SRob Herring rockchip,grf = <&grf>; 494724ba675SRob Herring #clock-cells = <1>; 495724ba675SRob Herring #reset-cells = <1>; 496724ba675SRob Herring assigned-clocks = 497724ba675SRob Herring <&cru PLL_GPLL>, <&cru ARMCLK>, 498724ba675SRob Herring <&cru PLL_CPLL>, <&cru ACLK_PERI>, 499724ba675SRob Herring <&cru HCLK_PERI>, <&cru PCLK_PERI>, 500724ba675SRob Herring <&cru ACLK_CPU>, <&cru HCLK_CPU>, 501724ba675SRob Herring <&cru PCLK_CPU>; 502724ba675SRob Herring assigned-clock-rates = 503724ba675SRob Herring <594000000>, <816000000>, 504724ba675SRob Herring <500000000>, <150000000>, 505724ba675SRob Herring <150000000>, <75000000>, 506724ba675SRob Herring <150000000>, <150000000>, 507724ba675SRob Herring <75000000>; 508724ba675SRob Herring }; 509724ba675SRob Herring 510724ba675SRob Herring pdma: dma-controller@110f0000 { 511724ba675SRob Herring compatible = "arm,pl330", "arm,primecell"; 512724ba675SRob Herring reg = <0x110f0000 0x4000>; 513724ba675SRob Herring interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>, 514724ba675SRob Herring <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; 515724ba675SRob Herring #dma-cells = <1>; 516724ba675SRob Herring arm,pl330-periph-burst; 517724ba675SRob Herring clocks = <&cru ACLK_DMAC>; 518724ba675SRob Herring clock-names = "apb_pclk"; 519724ba675SRob Herring }; 520724ba675SRob Herring 521724ba675SRob Herring thermal-zones { 522724ba675SRob Herring cpu_thermal: cpu-thermal { 523724ba675SRob Herring polling-delay-passive = <100>; /* milliseconds */ 524724ba675SRob Herring polling-delay = <5000>; /* milliseconds */ 525724ba675SRob Herring 526724ba675SRob Herring thermal-sensors = <&tsadc 0>; 527724ba675SRob Herring 528724ba675SRob Herring trips { 529724ba675SRob Herring cpu_alert0: cpu_alert0 { 530724ba675SRob Herring temperature = <70000>; /* millicelsius */ 531724ba675SRob Herring hysteresis = <2000>; /* millicelsius */ 532724ba675SRob Herring type = "passive"; 533724ba675SRob Herring }; 534724ba675SRob Herring cpu_alert1: cpu_alert1 { 535724ba675SRob Herring temperature = <75000>; /* millicelsius */ 536724ba675SRob Herring hysteresis = <2000>; /* millicelsius */ 537724ba675SRob Herring type = "passive"; 538724ba675SRob Herring }; 539724ba675SRob Herring cpu_crit: cpu_crit { 540724ba675SRob Herring temperature = <90000>; /* millicelsius */ 541724ba675SRob Herring hysteresis = <2000>; /* millicelsius */ 542724ba675SRob Herring type = "critical"; 543724ba675SRob Herring }; 544724ba675SRob Herring }; 545724ba675SRob Herring 546724ba675SRob Herring cooling-maps { 547724ba675SRob Herring map0 { 548724ba675SRob Herring trip = <&cpu_alert0>; 549724ba675SRob Herring cooling-device = 550724ba675SRob Herring <&cpu0 THERMAL_NO_LIMIT 6>, 551724ba675SRob Herring <&cpu1 THERMAL_NO_LIMIT 6>, 552724ba675SRob Herring <&cpu2 THERMAL_NO_LIMIT 6>, 553724ba675SRob Herring <&cpu3 THERMAL_NO_LIMIT 6>; 554724ba675SRob Herring }; 555724ba675SRob Herring map1 { 556724ba675SRob Herring trip = <&cpu_alert1>; 557724ba675SRob Herring cooling-device = 558724ba675SRob Herring <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 559724ba675SRob Herring <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 560724ba675SRob Herring <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 561724ba675SRob Herring <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 562724ba675SRob Herring }; 563724ba675SRob Herring }; 564724ba675SRob Herring }; 565724ba675SRob Herring }; 566724ba675SRob Herring 567724ba675SRob Herring tsadc: tsadc@11150000 { 568724ba675SRob Herring compatible = "rockchip,rk3228-tsadc"; 569724ba675SRob Herring reg = <0x11150000 0x100>; 570724ba675SRob Herring interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>; 571724ba675SRob Herring clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>; 572724ba675SRob Herring clock-names = "tsadc", "apb_pclk"; 573724ba675SRob Herring assigned-clocks = <&cru SCLK_TSADC>; 574724ba675SRob Herring assigned-clock-rates = <32768>; 575724ba675SRob Herring resets = <&cru SRST_TSADC>; 576724ba675SRob Herring reset-names = "tsadc-apb"; 577724ba675SRob Herring pinctrl-names = "init", "default", "sleep"; 578724ba675SRob Herring pinctrl-0 = <&otp_pin>; 579724ba675SRob Herring pinctrl-1 = <&otp_out>; 580724ba675SRob Herring pinctrl-2 = <&otp_pin>; 581724ba675SRob Herring #thermal-sensor-cells = <1>; 582724ba675SRob Herring rockchip,hw-tshut-temp = <95000>; 583724ba675SRob Herring status = "disabled"; 584724ba675SRob Herring }; 585724ba675SRob Herring 586724ba675SRob Herring hdmi_phy: hdmi-phy@12030000 { 587724ba675SRob Herring compatible = "rockchip,rk3228-hdmi-phy"; 588724ba675SRob Herring reg = <0x12030000 0x10000>; 589724ba675SRob Herring clocks = <&cru PCLK_HDMI_PHY>, <&xin24m>, <&cru DCLK_HDMI_PHY>; 590724ba675SRob Herring clock-names = "sysclk", "refoclk", "refpclk"; 591724ba675SRob Herring #clock-cells = <0>; 592724ba675SRob Herring clock-output-names = "hdmiphy_phy"; 593724ba675SRob Herring #phy-cells = <0>; 594724ba675SRob Herring status = "disabled"; 595724ba675SRob Herring }; 596724ba675SRob Herring 597724ba675SRob Herring gpu: gpu@20000000 { 598724ba675SRob Herring compatible = "rockchip,rk3228-mali", "arm,mali-400"; 599724ba675SRob Herring reg = <0x20000000 0x10000>; 600724ba675SRob Herring interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>, 601724ba675SRob Herring <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>, 602724ba675SRob Herring <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>, 603724ba675SRob Herring <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>, 604724ba675SRob Herring <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>, 605724ba675SRob Herring <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>; 606724ba675SRob Herring interrupt-names = "gp", 607724ba675SRob Herring "gpmmu", 608724ba675SRob Herring "pp0", 609724ba675SRob Herring "ppmmu0", 610724ba675SRob Herring "pp1", 611724ba675SRob Herring "ppmmu1"; 612724ba675SRob Herring clocks = <&cru ACLK_GPU>, <&cru ACLK_GPU>; 613724ba675SRob Herring clock-names = "bus", "core"; 614724ba675SRob Herring power-domains = <&power RK3228_PD_GPU>; 615724ba675SRob Herring resets = <&cru SRST_GPU_A>; 616724ba675SRob Herring status = "disabled"; 617724ba675SRob Herring }; 618724ba675SRob Herring 619724ba675SRob Herring vpu: video-codec@20020000 { 620724ba675SRob Herring compatible = "rockchip,rk3228-vpu", "rockchip,rk3399-vpu"; 621724ba675SRob Herring reg = <0x20020000 0x800>; 622724ba675SRob Herring interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>, 623724ba675SRob Herring <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; 624724ba675SRob Herring interrupt-names = "vepu", "vdpu"; 625724ba675SRob Herring clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>; 626724ba675SRob Herring clock-names = "aclk", "hclk"; 627724ba675SRob Herring iommus = <&vpu_mmu>; 628724ba675SRob Herring power-domains = <&power RK3228_PD_VPU>; 629724ba675SRob Herring }; 630724ba675SRob Herring 631724ba675SRob Herring vpu_mmu: iommu@20020800 { 632724ba675SRob Herring compatible = "rockchip,iommu"; 633724ba675SRob Herring reg = <0x20020800 0x100>; 634724ba675SRob Herring interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; 635724ba675SRob Herring clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>; 636724ba675SRob Herring clock-names = "aclk", "iface"; 637724ba675SRob Herring power-domains = <&power RK3228_PD_VPU>; 638724ba675SRob Herring #iommu-cells = <0>; 639724ba675SRob Herring }; 640724ba675SRob Herring 641724ba675SRob Herring vdec: video-codec@20030000 { 642724ba675SRob Herring compatible = "rockchip,rk3228-vdec", "rockchip,rk3399-vdec"; 643724ba675SRob Herring reg = <0x20030000 0x480>; 644724ba675SRob Herring interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; 645724ba675SRob Herring clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>, 646724ba675SRob Herring <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>; 647724ba675SRob Herring clock-names = "axi", "ahb", "cabac", "core"; 648724ba675SRob Herring assigned-clocks = <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>; 649724ba675SRob Herring assigned-clock-rates = <300000000>, <300000000>; 650724ba675SRob Herring iommus = <&vdec_mmu>; 651724ba675SRob Herring power-domains = <&power RK3228_PD_RKVDEC>; 652724ba675SRob Herring }; 653724ba675SRob Herring 654724ba675SRob Herring vdec_mmu: iommu@20030480 { 655724ba675SRob Herring compatible = "rockchip,iommu"; 656724ba675SRob Herring reg = <0x20030480 0x40>, <0x200304c0 0x40>; 657724ba675SRob Herring interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; 658724ba675SRob Herring clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>; 659724ba675SRob Herring clock-names = "aclk", "iface"; 660724ba675SRob Herring power-domains = <&power RK3228_PD_RKVDEC>; 661724ba675SRob Herring #iommu-cells = <0>; 662724ba675SRob Herring }; 663724ba675SRob Herring 664724ba675SRob Herring vop: vop@20050000 { 665724ba675SRob Herring compatible = "rockchip,rk3228-vop"; 666724ba675SRob Herring reg = <0x20050000 0x1ffc>; 667724ba675SRob Herring interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 668724ba675SRob Herring clocks = <&cru ACLK_VOP>, <&cru DCLK_VOP>, <&cru HCLK_VOP>; 669724ba675SRob Herring clock-names = "aclk_vop", "dclk_vop", "hclk_vop"; 670724ba675SRob Herring resets = <&cru SRST_VOP_A>, <&cru SRST_VOP_H>, <&cru SRST_VOP_D>; 671724ba675SRob Herring reset-names = "axi", "ahb", "dclk"; 672724ba675SRob Herring iommus = <&vop_mmu>; 673724ba675SRob Herring power-domains = <&power RK3228_PD_VOP>; 674724ba675SRob Herring status = "disabled"; 675724ba675SRob Herring 676724ba675SRob Herring vop_out: port { 677724ba675SRob Herring #address-cells = <1>; 678724ba675SRob Herring #size-cells = <0>; 679724ba675SRob Herring 680724ba675SRob Herring vop_out_hdmi: endpoint@0 { 681724ba675SRob Herring reg = <0>; 682724ba675SRob Herring remote-endpoint = <&hdmi_in_vop>; 683724ba675SRob Herring }; 684724ba675SRob Herring }; 685724ba675SRob Herring }; 686724ba675SRob Herring 687724ba675SRob Herring vop_mmu: iommu@20053f00 { 688724ba675SRob Herring compatible = "rockchip,iommu"; 689724ba675SRob Herring reg = <0x20053f00 0x100>; 690724ba675SRob Herring interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 691724ba675SRob Herring clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>; 692724ba675SRob Herring clock-names = "aclk", "iface"; 693724ba675SRob Herring power-domains = <&power RK3228_PD_VOP>; 694724ba675SRob Herring #iommu-cells = <0>; 695724ba675SRob Herring status = "disabled"; 696724ba675SRob Herring }; 697724ba675SRob Herring 698724ba675SRob Herring rga: rga@20060000 { 699724ba675SRob Herring compatible = "rockchip,rk3228-rga", "rockchip,rk3288-rga"; 700724ba675SRob Herring reg = <0x20060000 0x1000>; 701724ba675SRob Herring interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; 702724ba675SRob Herring clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA>; 703724ba675SRob Herring clock-names = "aclk", "hclk", "sclk"; 704724ba675SRob Herring power-domains = <&power RK3228_PD_VIO>; 705724ba675SRob Herring resets = <&cru SRST_RGA>, <&cru SRST_RGA_A>, <&cru SRST_RGA_H>; 706724ba675SRob Herring reset-names = "core", "axi", "ahb"; 707724ba675SRob Herring }; 708724ba675SRob Herring 709724ba675SRob Herring iep_mmu: iommu@20070800 { 710724ba675SRob Herring compatible = "rockchip,iommu"; 711724ba675SRob Herring reg = <0x20070800 0x100>; 712724ba675SRob Herring interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>; 713724ba675SRob Herring clocks = <&cru ACLK_IEP>, <&cru HCLK_IEP>; 714724ba675SRob Herring clock-names = "aclk", "iface"; 715724ba675SRob Herring power-domains = <&power RK3228_PD_VIO>; 716724ba675SRob Herring #iommu-cells = <0>; 717724ba675SRob Herring status = "disabled"; 718724ba675SRob Herring }; 719724ba675SRob Herring 720724ba675SRob Herring hdmi: hdmi@200a0000 { 721724ba675SRob Herring compatible = "rockchip,rk3228-dw-hdmi"; 722724ba675SRob Herring reg = <0x200a0000 0x20000>; 723724ba675SRob Herring reg-io-width = <4>; 724724ba675SRob Herring interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>; 725724ba675SRob Herring assigned-clocks = <&cru SCLK_HDMI_PHY>; 726724ba675SRob Herring assigned-clock-parents = <&hdmi_phy>; 727724ba675SRob Herring clocks = <&cru PCLK_HDMI_CTRL>, <&cru SCLK_HDMI_HDCP>, <&cru SCLK_HDMI_CEC>; 728724ba675SRob Herring clock-names = "iahb", "isfr", "cec"; 729724ba675SRob Herring pinctrl-names = "default"; 730724ba675SRob Herring pinctrl-0 = <&hdmii2c_xfer &hdmi_hpd &hdmi_cec>; 731724ba675SRob Herring resets = <&cru SRST_HDMI_P>; 732724ba675SRob Herring reset-names = "hdmi"; 733724ba675SRob Herring phys = <&hdmi_phy>; 734724ba675SRob Herring phy-names = "hdmi"; 735724ba675SRob Herring rockchip,grf = <&grf>; 736724ba675SRob Herring status = "disabled"; 737724ba675SRob Herring 738724ba675SRob Herring ports { 739724ba675SRob Herring #address-cells = <1>; 740724ba675SRob Herring #size-cells = <0>; 741*15a5ed03SJohan Jonker 742*15a5ed03SJohan Jonker hdmi_in: port@0 { 743724ba675SRob Herring reg = <0>; 744*15a5ed03SJohan Jonker 745*15a5ed03SJohan Jonker hdmi_in_vop: endpoint { 746724ba675SRob Herring remote-endpoint = <&vop_out_hdmi>; 747724ba675SRob Herring }; 748724ba675SRob Herring }; 749*15a5ed03SJohan Jonker 750*15a5ed03SJohan Jonker hdmi_out: port@1 { 751*15a5ed03SJohan Jonker reg = <1>; 752*15a5ed03SJohan Jonker }; 753724ba675SRob Herring }; 754724ba675SRob Herring }; 755724ba675SRob Herring 756724ba675SRob Herring sdmmc: mmc@30000000 { 757724ba675SRob Herring compatible = "rockchip,rk3228-dw-mshc", "rockchip,rk3288-dw-mshc"; 758724ba675SRob Herring reg = <0x30000000 0x4000>; 759724ba675SRob Herring interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; 760724ba675SRob Herring clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>, 761724ba675SRob Herring <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>; 762724ba675SRob Herring clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; 763724ba675SRob Herring fifo-depth = <0x100>; 764724ba675SRob Herring pinctrl-names = "default"; 765724ba675SRob Herring pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>; 766724ba675SRob Herring status = "disabled"; 767724ba675SRob Herring }; 768724ba675SRob Herring 769724ba675SRob Herring sdio: mmc@30010000 { 770724ba675SRob Herring compatible = "rockchip,rk3228-dw-mshc", "rockchip,rk3288-dw-mshc"; 771724ba675SRob Herring reg = <0x30010000 0x4000>; 772724ba675SRob Herring interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; 773724ba675SRob Herring clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>, 774724ba675SRob Herring <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>; 775724ba675SRob Herring clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; 776724ba675SRob Herring fifo-depth = <0x100>; 777724ba675SRob Herring pinctrl-names = "default"; 778724ba675SRob Herring pinctrl-0 = <&sdio_clk &sdio_cmd &sdio_bus4>; 779724ba675SRob Herring status = "disabled"; 780724ba675SRob Herring }; 781724ba675SRob Herring 782724ba675SRob Herring emmc: mmc@30020000 { 783724ba675SRob Herring compatible = "rockchip,rk3228-dw-mshc", "rockchip,rk3288-dw-mshc"; 784724ba675SRob Herring reg = <0x30020000 0x4000>; 785724ba675SRob Herring interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; 786724ba675SRob Herring clock-frequency = <37500000>; 787724ba675SRob Herring max-frequency = <37500000>; 788724ba675SRob Herring clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>, 789724ba675SRob Herring <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>; 790724ba675SRob Herring clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; 791724ba675SRob Herring bus-width = <8>; 792724ba675SRob Herring rockchip,default-sample-phase = <158>; 793724ba675SRob Herring fifo-depth = <0x100>; 794724ba675SRob Herring pinctrl-names = "default"; 795724ba675SRob Herring pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>; 796724ba675SRob Herring resets = <&cru SRST_EMMC>; 797724ba675SRob Herring reset-names = "reset"; 798724ba675SRob Herring status = "disabled"; 799724ba675SRob Herring }; 800724ba675SRob Herring 801724ba675SRob Herring usb_otg: usb@30040000 { 802724ba675SRob Herring compatible = "rockchip,rk3228-usb", "rockchip,rk3066-usb", 803724ba675SRob Herring "snps,dwc2"; 804724ba675SRob Herring reg = <0x30040000 0x40000>; 805724ba675SRob Herring interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; 806724ba675SRob Herring clocks = <&cru HCLK_OTG>; 807724ba675SRob Herring clock-names = "otg"; 808724ba675SRob Herring dr_mode = "otg"; 809724ba675SRob Herring g-np-tx-fifo-size = <16>; 810724ba675SRob Herring g-rx-fifo-size = <280>; 811724ba675SRob Herring g-tx-fifo-size = <256 128 128 64 32 16>; 812724ba675SRob Herring phys = <&u2phy0_otg>; 813724ba675SRob Herring phy-names = "usb2-phy"; 814724ba675SRob Herring status = "disabled"; 815724ba675SRob Herring }; 816724ba675SRob Herring 817724ba675SRob Herring usb_host0_ehci: usb@30080000 { 818724ba675SRob Herring compatible = "generic-ehci"; 819724ba675SRob Herring reg = <0x30080000 0x20000>; 820724ba675SRob Herring interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; 821724ba675SRob Herring clocks = <&cru HCLK_HOST0>, <&u2phy0>; 822724ba675SRob Herring phys = <&u2phy0_host>; 823724ba675SRob Herring phy-names = "usb"; 824724ba675SRob Herring status = "disabled"; 825724ba675SRob Herring }; 826724ba675SRob Herring 827724ba675SRob Herring usb_host0_ohci: usb@300a0000 { 828724ba675SRob Herring compatible = "generic-ohci"; 829724ba675SRob Herring reg = <0x300a0000 0x20000>; 830724ba675SRob Herring interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; 831724ba675SRob Herring clocks = <&cru HCLK_HOST0>, <&u2phy0>; 832724ba675SRob Herring phys = <&u2phy0_host>; 833724ba675SRob Herring phy-names = "usb"; 834724ba675SRob Herring status = "disabled"; 835724ba675SRob Herring }; 836724ba675SRob Herring 837724ba675SRob Herring usb_host1_ehci: usb@300c0000 { 838724ba675SRob Herring compatible = "generic-ehci"; 839724ba675SRob Herring reg = <0x300c0000 0x20000>; 840724ba675SRob Herring interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>; 841724ba675SRob Herring clocks = <&cru HCLK_HOST1>, <&u2phy1>; 842724ba675SRob Herring phys = <&u2phy1_otg>; 843724ba675SRob Herring phy-names = "usb"; 844724ba675SRob Herring status = "disabled"; 845724ba675SRob Herring }; 846724ba675SRob Herring 847724ba675SRob Herring usb_host1_ohci: usb@300e0000 { 848724ba675SRob Herring compatible = "generic-ohci"; 849724ba675SRob Herring reg = <0x300e0000 0x20000>; 850724ba675SRob Herring interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; 851724ba675SRob Herring clocks = <&cru HCLK_HOST1>, <&u2phy1>; 852724ba675SRob Herring phys = <&u2phy1_otg>; 853724ba675SRob Herring phy-names = "usb"; 854724ba675SRob Herring status = "disabled"; 855724ba675SRob Herring }; 856724ba675SRob Herring 857724ba675SRob Herring usb_host2_ehci: usb@30100000 { 858724ba675SRob Herring compatible = "generic-ehci"; 859724ba675SRob Herring reg = <0x30100000 0x20000>; 860724ba675SRob Herring interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>; 861724ba675SRob Herring clocks = <&cru HCLK_HOST2>, <&u2phy1>; 862724ba675SRob Herring phys = <&u2phy1_host>; 863724ba675SRob Herring phy-names = "usb"; 864724ba675SRob Herring status = "disabled"; 865724ba675SRob Herring }; 866724ba675SRob Herring 867724ba675SRob Herring usb_host2_ohci: usb@30120000 { 868724ba675SRob Herring compatible = "generic-ohci"; 869724ba675SRob Herring reg = <0x30120000 0x20000>; 870724ba675SRob Herring interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>; 871724ba675SRob Herring clocks = <&cru HCLK_HOST2>, <&u2phy1>; 872724ba675SRob Herring phys = <&u2phy1_host>; 873724ba675SRob Herring phy-names = "usb"; 874724ba675SRob Herring status = "disabled"; 875724ba675SRob Herring }; 876724ba675SRob Herring 877724ba675SRob Herring gmac: ethernet@30200000 { 878724ba675SRob Herring compatible = "rockchip,rk3228-gmac"; 879724ba675SRob Herring reg = <0x30200000 0x10000>; 880724ba675SRob Herring interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>; 881724ba675SRob Herring interrupt-names = "macirq"; 882724ba675SRob Herring clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>, 883724ba675SRob Herring <&cru SCLK_MAC_TX>, <&cru SCLK_MAC_REF>, 884724ba675SRob Herring <&cru SCLK_MAC_REFOUT>, <&cru ACLK_GMAC>, 885724ba675SRob Herring <&cru PCLK_GMAC>; 886724ba675SRob Herring clock-names = "stmmaceth", "mac_clk_rx", 887724ba675SRob Herring "mac_clk_tx", "clk_mac_ref", 888724ba675SRob Herring "clk_mac_refout", "aclk_mac", 889724ba675SRob Herring "pclk_mac"; 890724ba675SRob Herring resets = <&cru SRST_GMAC>; 891724ba675SRob Herring reset-names = "stmmaceth"; 892724ba675SRob Herring rockchip,grf = <&grf>; 893724ba675SRob Herring status = "disabled"; 894724ba675SRob Herring }; 895724ba675SRob Herring 896724ba675SRob Herring qos_iep: qos@31030080 { 897724ba675SRob Herring compatible = "rockchip,rk3228-qos", "syscon"; 898724ba675SRob Herring reg = <0x31030080 0x20>; 899724ba675SRob Herring }; 900724ba675SRob Herring 901724ba675SRob Herring qos_rga_w: qos@31030100 { 902724ba675SRob Herring compatible = "rockchip,rk3228-qos", "syscon"; 903724ba675SRob Herring reg = <0x31030100 0x20>; 904724ba675SRob Herring }; 905724ba675SRob Herring 906724ba675SRob Herring qos_hdcp: qos@31030180 { 907724ba675SRob Herring compatible = "rockchip,rk3228-qos", "syscon"; 908724ba675SRob Herring reg = <0x31030180 0x20>; 909724ba675SRob Herring }; 910724ba675SRob Herring 911724ba675SRob Herring qos_rga_r: qos@31030200 { 912724ba675SRob Herring compatible = "rockchip,rk3228-qos", "syscon"; 913724ba675SRob Herring reg = <0x31030200 0x20>; 914724ba675SRob Herring }; 915724ba675SRob Herring 916724ba675SRob Herring qos_vpu: qos@31040000 { 917724ba675SRob Herring compatible = "rockchip,rk3228-qos", "syscon"; 918724ba675SRob Herring reg = <0x31040000 0x20>; 919724ba675SRob Herring }; 920724ba675SRob Herring 921724ba675SRob Herring qos_gpu: qos@31050000 { 922724ba675SRob Herring compatible = "rockchip,rk3228-qos", "syscon"; 923724ba675SRob Herring reg = <0x31050000 0x20>; 924724ba675SRob Herring }; 925724ba675SRob Herring 926724ba675SRob Herring qos_vop: qos@31060000 { 927724ba675SRob Herring compatible = "rockchip,rk3228-qos", "syscon"; 928724ba675SRob Herring reg = <0x31060000 0x20>; 929724ba675SRob Herring }; 930724ba675SRob Herring 931724ba675SRob Herring qos_rkvdec_r: qos@31070000 { 932724ba675SRob Herring compatible = "rockchip,rk3228-qos", "syscon"; 933724ba675SRob Herring reg = <0x31070000 0x20>; 934724ba675SRob Herring }; 935724ba675SRob Herring 936724ba675SRob Herring qos_rkvdec_w: qos@31070080 { 937724ba675SRob Herring compatible = "rockchip,rk3228-qos", "syscon"; 938724ba675SRob Herring reg = <0x31070080 0x20>; 939724ba675SRob Herring }; 940724ba675SRob Herring 941724ba675SRob Herring gic: interrupt-controller@32010000 { 942724ba675SRob Herring compatible = "arm,gic-400"; 943724ba675SRob Herring interrupt-controller; 944724ba675SRob Herring #interrupt-cells = <3>; 945724ba675SRob Herring #address-cells = <0>; 946724ba675SRob Herring 947724ba675SRob Herring reg = <0x32011000 0x1000>, 948724ba675SRob Herring <0x32012000 0x2000>, 949724ba675SRob Herring <0x32014000 0x2000>, 950724ba675SRob Herring <0x32016000 0x2000>; 951724ba675SRob Herring interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; 952724ba675SRob Herring }; 953724ba675SRob Herring 954724ba675SRob Herring pinctrl: pinctrl { 955724ba675SRob Herring compatible = "rockchip,rk3228-pinctrl"; 956724ba675SRob Herring rockchip,grf = <&grf>; 957724ba675SRob Herring #address-cells = <1>; 958724ba675SRob Herring #size-cells = <1>; 959724ba675SRob Herring ranges; 960724ba675SRob Herring 961724ba675SRob Herring gpio0: gpio@11110000 { 962724ba675SRob Herring compatible = "rockchip,gpio-bank"; 963724ba675SRob Herring reg = <0x11110000 0x100>; 964724ba675SRob Herring interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>; 965724ba675SRob Herring clocks = <&cru PCLK_GPIO0>; 966724ba675SRob Herring 967724ba675SRob Herring gpio-controller; 968724ba675SRob Herring #gpio-cells = <2>; 969724ba675SRob Herring 970724ba675SRob Herring interrupt-controller; 971724ba675SRob Herring #interrupt-cells = <2>; 972724ba675SRob Herring }; 973724ba675SRob Herring 974724ba675SRob Herring gpio1: gpio@11120000 { 975724ba675SRob Herring compatible = "rockchip,gpio-bank"; 976724ba675SRob Herring reg = <0x11120000 0x100>; 977724ba675SRob Herring interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>; 978724ba675SRob Herring clocks = <&cru PCLK_GPIO1>; 979724ba675SRob Herring 980724ba675SRob Herring gpio-controller; 981724ba675SRob Herring #gpio-cells = <2>; 982724ba675SRob Herring 983724ba675SRob Herring interrupt-controller; 984724ba675SRob Herring #interrupt-cells = <2>; 985724ba675SRob Herring }; 986724ba675SRob Herring 987724ba675SRob Herring gpio2: gpio@11130000 { 988724ba675SRob Herring compatible = "rockchip,gpio-bank"; 989724ba675SRob Herring reg = <0x11130000 0x100>; 990724ba675SRob Herring interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>; 991724ba675SRob Herring clocks = <&cru PCLK_GPIO2>; 992724ba675SRob Herring 993724ba675SRob Herring gpio-controller; 994724ba675SRob Herring #gpio-cells = <2>; 995724ba675SRob Herring 996724ba675SRob Herring interrupt-controller; 997724ba675SRob Herring #interrupt-cells = <2>; 998724ba675SRob Herring }; 999724ba675SRob Herring 1000724ba675SRob Herring gpio3: gpio@11140000 { 1001724ba675SRob Herring compatible = "rockchip,gpio-bank"; 1002724ba675SRob Herring reg = <0x11140000 0x100>; 1003724ba675SRob Herring interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>; 1004724ba675SRob Herring clocks = <&cru PCLK_GPIO3>; 1005724ba675SRob Herring 1006724ba675SRob Herring gpio-controller; 1007724ba675SRob Herring #gpio-cells = <2>; 1008724ba675SRob Herring 1009724ba675SRob Herring interrupt-controller; 1010724ba675SRob Herring #interrupt-cells = <2>; 1011724ba675SRob Herring }; 1012724ba675SRob Herring 1013724ba675SRob Herring pcfg_pull_up: pcfg-pull-up { 1014724ba675SRob Herring bias-pull-up; 1015724ba675SRob Herring }; 1016724ba675SRob Herring 1017724ba675SRob Herring pcfg_pull_down: pcfg-pull-down { 1018724ba675SRob Herring bias-pull-down; 1019724ba675SRob Herring }; 1020724ba675SRob Herring 1021724ba675SRob Herring pcfg_pull_none: pcfg-pull-none { 1022724ba675SRob Herring bias-disable; 1023724ba675SRob Herring }; 1024724ba675SRob Herring 1025724ba675SRob Herring pcfg_pull_none_drv_12ma: pcfg-pull-none-drv-12ma { 1026724ba675SRob Herring drive-strength = <12>; 1027724ba675SRob Herring }; 1028724ba675SRob Herring 1029724ba675SRob Herring sdmmc { 1030724ba675SRob Herring sdmmc_clk: sdmmc-clk { 1031724ba675SRob Herring rockchip,pins = <1 RK_PC0 1 &pcfg_pull_none_drv_12ma>; 1032724ba675SRob Herring }; 1033724ba675SRob Herring 1034724ba675SRob Herring sdmmc_cmd: sdmmc-cmd { 1035724ba675SRob Herring rockchip,pins = <1 RK_PB7 1 &pcfg_pull_none_drv_12ma>; 1036724ba675SRob Herring }; 1037724ba675SRob Herring 1038724ba675SRob Herring sdmmc_bus4: sdmmc-bus4 { 1039724ba675SRob Herring rockchip,pins = <1 RK_PC2 1 &pcfg_pull_none_drv_12ma>, 1040724ba675SRob Herring <1 RK_PC3 1 &pcfg_pull_none_drv_12ma>, 1041724ba675SRob Herring <1 RK_PC4 1 &pcfg_pull_none_drv_12ma>, 1042724ba675SRob Herring <1 RK_PC5 1 &pcfg_pull_none_drv_12ma>; 1043724ba675SRob Herring }; 1044724ba675SRob Herring }; 1045724ba675SRob Herring 1046724ba675SRob Herring sdio { 1047724ba675SRob Herring sdio_clk: sdio-clk { 1048724ba675SRob Herring rockchip,pins = <3 RK_PA0 1 &pcfg_pull_none_drv_12ma>; 1049724ba675SRob Herring }; 1050724ba675SRob Herring 1051724ba675SRob Herring sdio_cmd: sdio-cmd { 1052724ba675SRob Herring rockchip,pins = <3 RK_PA1 1 &pcfg_pull_none_drv_12ma>; 1053724ba675SRob Herring }; 1054724ba675SRob Herring 1055724ba675SRob Herring sdio_bus4: sdio-bus4 { 1056724ba675SRob Herring rockchip,pins = <3 RK_PA2 1 &pcfg_pull_none_drv_12ma>, 1057724ba675SRob Herring <3 RK_PA3 1 &pcfg_pull_none_drv_12ma>, 1058724ba675SRob Herring <3 RK_PA4 1 &pcfg_pull_none_drv_12ma>, 1059724ba675SRob Herring <3 RK_PA5 1 &pcfg_pull_none_drv_12ma>; 1060724ba675SRob Herring }; 1061724ba675SRob Herring }; 1062724ba675SRob Herring 1063724ba675SRob Herring emmc { 1064724ba675SRob Herring emmc_clk: emmc-clk { 1065724ba675SRob Herring rockchip,pins = <2 RK_PA7 2 &pcfg_pull_none>; 1066724ba675SRob Herring }; 1067724ba675SRob Herring 1068724ba675SRob Herring emmc_cmd: emmc-cmd { 1069724ba675SRob Herring rockchip,pins = <1 RK_PC6 2 &pcfg_pull_none>; 1070724ba675SRob Herring }; 1071724ba675SRob Herring 1072724ba675SRob Herring emmc_bus8: emmc-bus8 { 1073724ba675SRob Herring rockchip,pins = <1 RK_PD0 2 &pcfg_pull_none>, 1074724ba675SRob Herring <1 RK_PD1 2 &pcfg_pull_none>, 1075724ba675SRob Herring <1 RK_PD2 2 &pcfg_pull_none>, 1076724ba675SRob Herring <1 RK_PD3 2 &pcfg_pull_none>, 1077724ba675SRob Herring <1 RK_PD4 2 &pcfg_pull_none>, 1078724ba675SRob Herring <1 RK_PD5 2 &pcfg_pull_none>, 1079724ba675SRob Herring <1 RK_PD6 2 &pcfg_pull_none>, 1080724ba675SRob Herring <1 RK_PD7 2 &pcfg_pull_none>; 1081724ba675SRob Herring }; 1082724ba675SRob Herring }; 1083724ba675SRob Herring 1084724ba675SRob Herring gmac { 1085724ba675SRob Herring rgmii_pins: rgmii-pins { 1086724ba675SRob Herring rockchip,pins = <2 RK_PB6 1 &pcfg_pull_none>, 1087724ba675SRob Herring <2 RK_PB4 1 &pcfg_pull_none>, 1088724ba675SRob Herring <2 RK_PD1 1 &pcfg_pull_none>, 1089724ba675SRob Herring <2 RK_PC3 1 &pcfg_pull_none_drv_12ma>, 1090724ba675SRob Herring <2 RK_PC2 1 &pcfg_pull_none_drv_12ma>, 1091724ba675SRob Herring <2 RK_PC6 1 &pcfg_pull_none_drv_12ma>, 1092724ba675SRob Herring <2 RK_PC7 1 &pcfg_pull_none_drv_12ma>, 1093724ba675SRob Herring <2 RK_PB1 1 &pcfg_pull_none_drv_12ma>, 1094724ba675SRob Herring <2 RK_PB5 1 &pcfg_pull_none_drv_12ma>, 1095724ba675SRob Herring <2 RK_PC1 1 &pcfg_pull_none>, 1096724ba675SRob Herring <2 RK_PC0 1 &pcfg_pull_none>, 1097724ba675SRob Herring <2 RK_PC5 2 &pcfg_pull_none>, 1098724ba675SRob Herring <2 RK_PC4 2 &pcfg_pull_none>, 1099724ba675SRob Herring <2 RK_PB3 1 &pcfg_pull_none>, 1100724ba675SRob Herring <2 RK_PB0 1 &pcfg_pull_none>; 1101724ba675SRob Herring }; 1102724ba675SRob Herring 1103724ba675SRob Herring rmii_pins: rmii-pins { 1104724ba675SRob Herring rockchip,pins = <2 RK_PB6 1 &pcfg_pull_none>, 1105724ba675SRob Herring <2 RK_PB4 1 &pcfg_pull_none>, 1106724ba675SRob Herring <2 RK_PD1 1 &pcfg_pull_none>, 1107724ba675SRob Herring <2 RK_PC3 1 &pcfg_pull_none_drv_12ma>, 1108724ba675SRob Herring <2 RK_PC2 1 &pcfg_pull_none_drv_12ma>, 1109724ba675SRob Herring <2 RK_PB5 1 &pcfg_pull_none_drv_12ma>, 1110724ba675SRob Herring <2 RK_PC1 1 &pcfg_pull_none>, 1111724ba675SRob Herring <2 RK_PC0 1 &pcfg_pull_none>, 1112724ba675SRob Herring <2 RK_PB0 1 &pcfg_pull_none>, 1113724ba675SRob Herring <2 RK_PB7 1 &pcfg_pull_none>; 1114724ba675SRob Herring }; 1115724ba675SRob Herring 1116724ba675SRob Herring phy_pins: phy-pins { 1117724ba675SRob Herring rockchip,pins = <2 RK_PB6 2 &pcfg_pull_none>, 1118724ba675SRob Herring <2 RK_PB0 2 &pcfg_pull_none>; 1119724ba675SRob Herring }; 1120724ba675SRob Herring }; 1121724ba675SRob Herring 1122724ba675SRob Herring hdmi { 1123724ba675SRob Herring hdmi_hpd: hdmi-hpd { 1124724ba675SRob Herring rockchip,pins = <0 RK_PB7 1 &pcfg_pull_down>; 1125724ba675SRob Herring }; 1126724ba675SRob Herring 1127724ba675SRob Herring hdmii2c_xfer: hdmii2c-xfer { 1128724ba675SRob Herring rockchip,pins = <0 RK_PA6 2 &pcfg_pull_none>, 1129724ba675SRob Herring <0 RK_PA7 2 &pcfg_pull_none>; 1130724ba675SRob Herring }; 1131724ba675SRob Herring 1132724ba675SRob Herring hdmi_cec: hdmi-cec { 1133724ba675SRob Herring rockchip,pins = <0 RK_PC4 1 &pcfg_pull_none>; 1134724ba675SRob Herring }; 1135724ba675SRob Herring }; 1136724ba675SRob Herring 1137724ba675SRob Herring i2c0 { 1138724ba675SRob Herring i2c0_xfer: i2c0-xfer { 1139724ba675SRob Herring rockchip,pins = <0 RK_PA0 1 &pcfg_pull_none>, 1140724ba675SRob Herring <0 RK_PA1 1 &pcfg_pull_none>; 1141724ba675SRob Herring }; 1142724ba675SRob Herring }; 1143724ba675SRob Herring 1144724ba675SRob Herring i2c1 { 1145724ba675SRob Herring i2c1_xfer: i2c1-xfer { 1146724ba675SRob Herring rockchip,pins = <0 RK_PA2 1 &pcfg_pull_none>, 1147724ba675SRob Herring <0 RK_PA3 1 &pcfg_pull_none>; 1148724ba675SRob Herring }; 1149724ba675SRob Herring }; 1150724ba675SRob Herring 1151724ba675SRob Herring i2c2 { 1152724ba675SRob Herring i2c2_xfer: i2c2-xfer { 1153724ba675SRob Herring rockchip,pins = <2 RK_PC4 1 &pcfg_pull_none>, 1154724ba675SRob Herring <2 RK_PC5 1 &pcfg_pull_none>; 1155724ba675SRob Herring }; 1156724ba675SRob Herring }; 1157724ba675SRob Herring 1158724ba675SRob Herring i2c3 { 1159724ba675SRob Herring i2c3_xfer: i2c3-xfer { 1160724ba675SRob Herring rockchip,pins = <0 RK_PA6 1 &pcfg_pull_none>, 1161724ba675SRob Herring <0 RK_PA7 1 &pcfg_pull_none>; 1162724ba675SRob Herring }; 1163724ba675SRob Herring }; 1164724ba675SRob Herring 1165724ba675SRob Herring spi0 { 1166724ba675SRob Herring spi0_clk: spi0-clk { 1167724ba675SRob Herring rockchip,pins = <0 RK_PB1 2 &pcfg_pull_up>; 1168724ba675SRob Herring }; 1169724ba675SRob Herring spi0_cs0: spi0-cs0 { 1170724ba675SRob Herring rockchip,pins = <0 RK_PB6 2 &pcfg_pull_up>; 1171724ba675SRob Herring }; 1172724ba675SRob Herring spi0_tx: spi0-tx { 1173724ba675SRob Herring rockchip,pins = <0 RK_PB3 2 &pcfg_pull_up>; 1174724ba675SRob Herring }; 1175724ba675SRob Herring spi0_rx: spi0-rx { 1176724ba675SRob Herring rockchip,pins = <0 RK_PB5 2 &pcfg_pull_up>; 1177724ba675SRob Herring }; 1178724ba675SRob Herring spi0_cs1: spi0-cs1 { 1179724ba675SRob Herring rockchip,pins = <1 RK_PB4 1 &pcfg_pull_up>; 1180724ba675SRob Herring }; 1181724ba675SRob Herring }; 1182724ba675SRob Herring 1183724ba675SRob Herring spi1 { 1184724ba675SRob Herring spi1_clk: spi1-clk { 1185724ba675SRob Herring rockchip,pins = <0 RK_PC7 2 &pcfg_pull_up>; 1186724ba675SRob Herring }; 1187724ba675SRob Herring spi1_cs0: spi1-cs0 { 1188724ba675SRob Herring rockchip,pins = <2 RK_PA2 2 &pcfg_pull_up>; 1189724ba675SRob Herring }; 1190724ba675SRob Herring spi1_rx: spi1-rx { 1191724ba675SRob Herring rockchip,pins = <2 RK_PA0 2 &pcfg_pull_up>; 1192724ba675SRob Herring }; 1193724ba675SRob Herring spi1_tx: spi1-tx { 1194724ba675SRob Herring rockchip,pins = <2 RK_PA1 2 &pcfg_pull_up>; 1195724ba675SRob Herring }; 1196724ba675SRob Herring spi1_cs1: spi1-cs1 { 1197724ba675SRob Herring rockchip,pins = <2 RK_PA3 2 &pcfg_pull_up>; 1198724ba675SRob Herring }; 1199724ba675SRob Herring }; 1200724ba675SRob Herring 1201724ba675SRob Herring i2s1 { 1202724ba675SRob Herring i2s1_bus: i2s1-bus { 1203724ba675SRob Herring rockchip,pins = <0 RK_PB0 1 &pcfg_pull_none>, 1204724ba675SRob Herring <0 RK_PB1 1 &pcfg_pull_none>, 1205724ba675SRob Herring <0 RK_PB3 1 &pcfg_pull_none>, 1206724ba675SRob Herring <0 RK_PB4 1 &pcfg_pull_none>, 1207724ba675SRob Herring <0 RK_PB5 1 &pcfg_pull_none>, 1208724ba675SRob Herring <0 RK_PB6 1 &pcfg_pull_none>, 1209724ba675SRob Herring <1 RK_PA2 2 &pcfg_pull_none>, 1210724ba675SRob Herring <1 RK_PA4 2 &pcfg_pull_none>, 1211724ba675SRob Herring <1 RK_PA5 2 &pcfg_pull_none>; 1212724ba675SRob Herring }; 1213724ba675SRob Herring }; 1214724ba675SRob Herring 1215724ba675SRob Herring pwm0 { 1216724ba675SRob Herring pwm0_pin: pwm0-pin { 1217724ba675SRob Herring rockchip,pins = <3 RK_PC5 1 &pcfg_pull_none>; 1218724ba675SRob Herring }; 1219724ba675SRob Herring }; 1220724ba675SRob Herring 1221724ba675SRob Herring pwm1 { 1222724ba675SRob Herring pwm1_pin: pwm1-pin { 1223724ba675SRob Herring rockchip,pins = <0 RK_PD6 2 &pcfg_pull_none>; 1224724ba675SRob Herring }; 1225724ba675SRob Herring }; 1226724ba675SRob Herring 1227724ba675SRob Herring pwm2 { 1228724ba675SRob Herring pwm2_pin: pwm2-pin { 1229724ba675SRob Herring rockchip,pins = <1 RK_PB4 2 &pcfg_pull_none>; 1230724ba675SRob Herring }; 1231724ba675SRob Herring }; 1232724ba675SRob Herring 1233724ba675SRob Herring pwm3 { 1234724ba675SRob Herring pwm3_pin: pwm3-pin { 1235724ba675SRob Herring rockchip,pins = <1 RK_PB3 2 &pcfg_pull_none>; 1236724ba675SRob Herring }; 1237724ba675SRob Herring }; 1238724ba675SRob Herring 1239724ba675SRob Herring spdif { 1240724ba675SRob Herring spdif_tx: spdif-tx { 1241724ba675SRob Herring rockchip,pins = <3 RK_PD7 2 &pcfg_pull_none>; 1242724ba675SRob Herring }; 1243724ba675SRob Herring }; 1244724ba675SRob Herring 1245724ba675SRob Herring tsadc { 1246724ba675SRob Herring otp_pin: otp-pin { 1247724ba675SRob Herring rockchip,pins = <0 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; 1248724ba675SRob Herring }; 1249724ba675SRob Herring 1250724ba675SRob Herring otp_out: otp-out { 1251724ba675SRob Herring rockchip,pins = <0 RK_PD0 2 &pcfg_pull_none>; 1252724ba675SRob Herring }; 1253724ba675SRob Herring }; 1254724ba675SRob Herring 1255724ba675SRob Herring uart0 { 1256724ba675SRob Herring uart0_xfer: uart0-xfer { 1257724ba675SRob Herring rockchip,pins = <2 RK_PD2 1 &pcfg_pull_none>, 1258724ba675SRob Herring <2 RK_PD3 1 &pcfg_pull_none>; 1259724ba675SRob Herring }; 1260724ba675SRob Herring 1261724ba675SRob Herring uart0_cts: uart0-cts { 1262724ba675SRob Herring rockchip,pins = <2 RK_PD5 1 &pcfg_pull_none>; 1263724ba675SRob Herring }; 1264724ba675SRob Herring 1265724ba675SRob Herring uart0_rts: uart0-rts { 1266724ba675SRob Herring rockchip,pins = <0 RK_PC1 1 &pcfg_pull_none>; 1267724ba675SRob Herring }; 1268724ba675SRob Herring }; 1269724ba675SRob Herring 1270724ba675SRob Herring uart1 { 1271724ba675SRob Herring uart1_xfer: uart1-xfer { 1272724ba675SRob Herring rockchip,pins = <1 RK_PB1 1 &pcfg_pull_none>, 1273724ba675SRob Herring <1 RK_PB2 1 &pcfg_pull_none>; 1274724ba675SRob Herring }; 1275724ba675SRob Herring 1276724ba675SRob Herring uart1_cts: uart1-cts { 1277724ba675SRob Herring rockchip,pins = <1 RK_PB0 1 &pcfg_pull_none>; 1278724ba675SRob Herring }; 1279724ba675SRob Herring 1280724ba675SRob Herring uart1_rts: uart1-rts { 1281724ba675SRob Herring rockchip,pins = <1 RK_PB3 1 &pcfg_pull_none>; 1282724ba675SRob Herring }; 1283724ba675SRob Herring }; 1284724ba675SRob Herring 1285724ba675SRob Herring uart2 { 1286724ba675SRob Herring uart2_xfer: uart2-xfer { 1287724ba675SRob Herring rockchip,pins = <1 RK_PC2 2 &pcfg_pull_up>, 1288724ba675SRob Herring <1 RK_PC3 2 &pcfg_pull_none>; 1289724ba675SRob Herring }; 1290724ba675SRob Herring 1291724ba675SRob Herring uart21_xfer: uart21-xfer { 1292724ba675SRob Herring rockchip,pins = <1 RK_PB2 2 &pcfg_pull_up>, 1293724ba675SRob Herring <1 RK_PB1 2 &pcfg_pull_none>; 1294724ba675SRob Herring }; 1295724ba675SRob Herring 1296724ba675SRob Herring uart2_cts: uart2-cts { 1297724ba675SRob Herring rockchip,pins = <0 RK_PD1 1 &pcfg_pull_none>; 1298724ba675SRob Herring }; 1299724ba675SRob Herring 1300724ba675SRob Herring uart2_rts: uart2-rts { 1301724ba675SRob Herring rockchip,pins = <0 RK_PD0 1 &pcfg_pull_none>; 1302724ba675SRob Herring }; 1303724ba675SRob Herring }; 1304724ba675SRob Herring }; 1305724ba675SRob Herring}; 1306