// SPDX-License-Identifier: (GPL-2.0+ OR MIT) // Copyright (c) 2018 Fuzhou Rockchip Electronics Co., Ltd. #include #include #include #include #include #include #include #include #include #include #include "rk1808-dram-default-timing.dtsi" / { compatible = "rockchip,rk1808"; interrupt-parent = <&gic>; #address-cells = <2>; #size-cells = <2>; aliases { i2c0 = &i2c0; i2c1 = &i2c1; i2c2 = &i2c2; i2c3 = &i2c3; i2c4 = &i2c4; i2c5 = &i2c5; serial0 = &uart0; serial1 = &uart1; serial2 = &uart2; serial3 = &uart3; serial4 = &uart4; serial5 = &uart5; serial6 = &uart6; serial7 = &uart7; spi0 = &spi0; spi1 = &spi1; spi2 = &spi2; }; cpus { #address-cells = <2>; #size-cells = <0>; cpu0: cpu@0 { device_type = "cpu"; compatible = "arm,cortex-a35", "arm,armv8"; reg = <0x0 0x0>; enable-method = "psci"; clocks = <&cru ARMCLK>; operating-points-v2 = <&cpu0_opp_table>; dynamic-power-coefficient = <74>; #cooling-cells = <2>; cpu-idle-states = <&CPU_SLEEP>; power-model { compatible = "simple-power-model"; ref-leakage = <31>; static-coefficient = <100000>; ts = <59740 24105 (-245) 7>; thermal-zone = "soc-thermal"; }; }; cpu1: cpu@1 { device_type = "cpu"; compatible = "arm,cortex-a35", "arm,armv8"; reg = <0x0 0x1>; enable-method = "psci"; clocks = <&cru ARMCLK>; operating-points-v2 = <&cpu0_opp_table>; dynamic-power-coefficient = <74>; cpu-idle-states = <&CPU_SLEEP>; }; idle-states { entry-method = "psci"; CPU_SLEEP: cpu-sleep { compatible = "arm,idle-state"; local-timer-stop; arm,psci-suspend-param = <0x0010000>; entry-latency-us = <120>; exit-latency-us = <250>; min-residency-us = <900>; }; CLUSTER_SLEEP: cluster-sleep { compatible = "arm,idle-state"; local-timer-stop; arm,psci-suspend-param = <0x1010000>; entry-latency-us = <400>; exit-latency-us = <500>; min-residency-us = <2000>; }; }; }; cpu0_opp_table: cpu0-opp-table { compatible = "operating-points-v2"; opp-shared; rockchip,max-volt = <950000>; rockchip,evb-irdrop = <25000>; nvmem-cells = <&cpu_leakage>; nvmem-cell-names = "leakage"; rockchip,pvtm-voltage-sel = < 0 69000 0 69001 74000 1 74001 99999 2 >; rockchip,pvtm-freq = <408000>; rockchip,pvtm-volt = <800000>; rockchip,pvtm-ch = <0 0>; rockchip,pvtm-sample-time = <1000>; rockchip,pvtm-number = <10>; rockchip,pvtm-error = <1000>; rockchip,pvtm-ref-temp = <25>; rockchip,pvtm-temp-prop = <(-20) (-26)>; rockchip,thermal-zone = "soc-thermal"; opp-408000000 { opp-hz = /bits/ 64 <408000000>; opp-microvolt = <750000 750000 950000>; clock-latency-ns = <40000>; opp-suspend; }; opp-600000000 { opp-hz = /bits/ 64 <600000000>; opp-microvolt = <750000 750000 950000>; clock-latency-ns = <40000>; }; opp-816000000 { opp-hz = /bits/ 64 <816000000>; opp-microvolt = <750000 750000 950000>; clock-latency-ns = <40000>; }; opp-1008000000 { opp-hz = /bits/ 64 <1008000000>; opp-microvolt = <750000 750000 950000>; clock-latency-ns = <40000>; }; opp-1200000000 { opp-hz = /bits/ 64 <1200000000>; opp-microvolt = <800000 800000 950000>; opp-microvolt-L0 = <800000 800000 950000>; opp-microvolt-L1 = <750000 750000 950000>; opp-microvolt-L2 = <750000 750000 950000>; clock-latency-ns = <40000>; }; opp-1296000000 { opp-hz = /bits/ 64 <1296000000>; opp-microvolt = <825000 825000 950000>; opp-microvolt-L0 = <825000 825000 950000>; opp-microvolt-L1 = <775000 775000 950000>; opp-microvolt-L2 = <750000 750000 950000>; clock-latency-ns = <40000>; }; opp-1416000000 { opp-hz = /bits/ 64 <1416000000>; opp-microvolt = <850000 850000 950000>; opp-microvolt-L0 = <850000 850000 950000>; opp-microvolt-L1 = <800000 800000 950000>; opp-microvolt-L2 = <775000 775000 950000>; clock-latency-ns = <40000>; }; opp-1512000000 { opp-hz = /bits/ 64 <1512000000>; opp-microvolt = <875000 875000 950000>; opp-microvolt-L0 = <875000 875000 950000>; opp-microvolt-L1 = <825000 825000 950000>; opp-microvolt-L2 = <800000 800000 950000>; clock-latency-ns = <40000>; }; opp-1608000000 { opp-hz = /bits/ 64 <1608000000>; opp-microvolt = <900000 900000 950000>; opp-microvolt-L0 = <900000 900000 950000>; opp-microvolt-L1 = <850000 850000 950000>; opp-microvolt-L2 = <825000 825000 950000>; clock-latency-ns = <40000>; }; }; arm-pmu { compatible = "arm,cortex-a53-pmu"; interrupts = , ; interrupt-affinity = <&cpu0>, <&cpu1>; }; cpuinfo { compatible = "rockchip,cpuinfo"; nvmem-cells = <&efuse_id>, <&efuse_cpu_version>; nvmem-cell-names = "id", "cpu-version"; }; bus_soc: bus-soc { compatible = "rockchip,rk1808-bus"; rockchip,busfreq-policy = "autocs"; soc-bus0 { bus-id = <0>; timer-us = <20>; enable-msk = <0x4077>; status = "okay"; }; soc-bus1 { bus-id = <1>; timer-us = <200>; enable-msk = <0x41ff>; status = "okay"; }; soc-bus2 { bus-id = <2>; timer-us = <200>; enable-msk = <0x4007>; status = "okay"; }; soc-bus3 { bus-id = <3>; timer-us = <200>; enable-msk = <0x4001>; status = "okay"; }; soc-bus4 { bus-id = <4>; timer-us = <200>; enable-msk = <0x4001>; status = "okay"; }; }; gmac_clkin: external-gmac-clock { compatible = "fixed-clock"; clock-frequency = <125000000>; clock-output-names = "gmac_clkin"; #clock-cells = <0>; }; psci { compatible = "arm,psci-1.0"; method = "smc"; }; rockchip_suspend: rockchip-suspend { compatible = "rockchip,pm-rk1808"; status = "disabled"; rockchip,sleep-debug-en = <0>; rockchip,sleep-mode-config = < (0 | RKPM_SLP_ARMOFF | RKPM_SLP_PMU_PMUALIVE_32K | RKPM_SLP_PMU_DIS_OSC | RKPM_SLP_PMIC_LP | RKPM_SLP_32K_EXT ) >; rockchip,wakeup-config = < (0 | RKPM_GPIO_WKUP_EN ) >; }; timer { compatible = "arm,armv8-timer"; interrupts = , , , ; arm,no-tick-in-suspend; }; xin24m: xin24m { compatible = "fixed-clock"; clock-frequency = <24000000>; clock-output-names = "xin24m"; #clock-cells = <0>; }; xin32k: xin32k { compatible = "fixed-clock"; clock-frequency = <32768>; clock-output-names = "xin32k"; #clock-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&clkin_32k>; }; pcie0: pcie@fc400000 { compatible = "rockchip,rk1808-pcie-ep", "snps,dw-pcie"; #address-cells = <3>; #size-cells = <2>; bus-range = <0x0 0x1f>; clocks = <&cru HSCLK_PCIE>, <&cru LSCLK_PCIE>, <&cru ACLK_PCIE>, <&cru PCLK_PCIE>, <&cru SCLK_PCIE_AUX>; clock-names = "hsclk", "lsclk", "aclk", "pclk", "sclk-aux"; interrupts = , , , ; interrupt-names = "sys", "legacy", "msg", "err"; linux,pci-domain = <0>; num-ib-windows = <6>; num-ob-windows = <2>; msi-map = <0x0 &its 0x0 0x1000>; num-lanes = <2>; phys = <&combphy PHY_TYPE_PCIE>; phy-names = "pcie-phy"; pinctrl-names = "default"; pinctrl-0 = <&pcie_clkreq>; power-domains = <&power RK1808_PD_PCIE>; ranges = <0x00000800 0x0 0xf8000000 0x0 0xf8000000 0x0 0x800000 0x83000000 0x0 0xf8800000 0x0 0xf8800000 0x0 0x3700000 0x81000000 0x0 0xfbf00000 0x0 0xfbf00000 0x0 0x100000>; reg = <0x0 0xfc000000 0x0 0x400000>, <0x0 0xfc400000 0x0 0x10000>; reg-names = "pcie-dbi", "pcie-apb"; resets = <&cru SRST_PCIE_NIU_H>, <&cru SRST_PCIE_NIU_L>, <&cru SRST_PCIEGRF_P>, <&cru SRST_PCIECTL_P>, <&cru SRST_PCIECTL_POWERUP>, <&cru SRST_PCIECTL_MST_A>, <&cru SRST_PCIECTL_SLV_A>, <&cru SRST_PCIECTL_DBI_A>, <&cru SRST_PCIECTL_BUTTON>, <&cru SRST_PCIECTL_PE>, <&cru SRST_PCIECTL_CORE>, <&cru SRST_PCIECTL_NSTICKY>, <&cru SRST_PCIECTL_STICKY>, <&cru SRST_PCIECTL_PWR>, <&cru SRST_PCIE_NIU_A>, <&cru SRST_PCIE_NIU_P>, <&cru SRST_PCIEPHY_POR>, <&cru SRST_PCIEPHY_P>, <&cru SRST_PCIEPHY_PIPE>; reset-names = "niu-h", "niu-l", "grf-p", "ctl-p", "ctl-powerup", "ctl-mst-a", "ctl-slv-a", "ctl-dbi-a", "ctl-button", "ctl-pe", "ctl-core", "ctl-nsticky", "ctl-sticky", "ctl-pwr", "ctl-niu-a", "ctl-niu-p", "phy-por", "phy-p", "phy-pipe"; rockchip,usbpciegrf = <&usb_pcie_grf>; rockchip,pmugrf = <&pmugrf>; status = "disabled"; }; usbdrd3: usb { compatible = "rockchip,rk1808-dwc3", "rockchip,rk3399-dwc3"; clocks = <&cru SCLK_USB3_OTG0_REF>, <&cru ACLK_USB3OTG>, <&cru SCLK_USB3_OTG0_SUSPEND>; clock-names = "ref_clk", "bus_clk", "suspend_clk"; assigned-clocks = <&cru SCLK_USB3_OTG0_SUSPEND>; assigned-clock-rates = <24000000>; power-domains = <&power RK1808_PD_PCIE>; resets = <&cru SRST_USB3_OTG_A>; reset-names = "usb3-otg"; #address-cells = <2>; #size-cells = <2>; ranges; status = "disabled"; usbdrd_dwc3: dwc3@fd000000 { compatible = "snps,dwc3"; reg = <0x0 0xfd000000 0x0 0x200000>; interrupts = ; dr_mode = "otg"; phys = <&u2phy_otg>, <&combphy PHY_TYPE_USB3>; phy-names = "usb2-phy", "usb3-phy"; phy_type = "utmi_wide"; snps,dis_enblslpm_quirk; snps,dis-u1u2-quirk; snps,dis-u2-freeclk-exists-quirk; snps,dis_u2_susphy_quirk; snps,dis_u3_susphy_quirk; snps,dis-del-phy-power-chg-quirk; snps,tx-ipgap-linecheck-dis-quirk; snps,xhci-trb-ent-quirk; status = "disabled"; }; }; grf: syscon@fe000000 { compatible = "rockchip,rk1808-grf", "syscon", "simple-mfd"; reg = <0x0 0xfe000000 0x0 0x1000>; #address-cells = <1>; #size-cells = <1>; npu_pvtm: npu-pvtm { compatible = "rockchip,rk1808-npu-pvtm"; clocks = <&cru SCLK_PVTM_NPU>; clock-names = "npu"; status = "okay"; }; rgb: rgb { compatible = "rockchip,rk1808-rgb"; status = "disabled"; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; rgb_in_vop_lite: endpoint { remote-endpoint = <&vop_lite_out_rgb>; }; }; }; }; }; usb2phy_grf: syscon@fe010000 { compatible = "rockchip,rk1808-usb2phy-grf", "syscon", "simple-mfd"; reg = <0x0 0xfe010000 0x0 0x8000>; #address-cells = <1>; #size-cells = <1>; u2phy: usb2-phy@100 { compatible = "rockchip,rk1808-usb2phy"; reg = <0x100 0x10>; clocks = <&cru SCLK_USBPHY_REF>; clock-names = "phyclk"; #clock-cells = <0>; assigned-clocks = <&cru USB480M>; assigned-clock-parents = <&u2phy>; clock-output-names = "usb480m_phy"; status = "disabled"; u2phy_host: host-port { #phy-cells = <0>; interrupts = ; interrupt-names = "linestate"; status = "disabled"; }; u2phy_otg: otg-port { #phy-cells = <0>; interrupts = , , ; interrupt-names = "otg-bvalid", "otg-id", "linestate"; status = "disabled"; }; }; }; combphy_grf: syscon@fe018000 { compatible = "rockchip,usb3phy-grf", "syscon"; reg = <0x0 0xfe018000 0x0 0x8000>; }; pmugrf: syscon@fe020000 { compatible = "rockchip,rk1808-pmugrf", "syscon", "simple-mfd"; reg = <0x0 0xfe020000 0x0 0x1000>; #address-cells = <1>; #size-cells = <1>; pmu_pvtm: pmu-pvtm { compatible = "rockchip,rk1808-pmu-pvtm"; clocks = <&cru SCLK_PVTM_PMU>; clock-names = "pmu"; status = "okay"; }; reboot-mode { compatible = "syscon-reboot-mode"; offset = <0x200>; mode-bootloader = ; mode-charge = ; mode-fastboot = ; mode-loader = ; mode-normal = ; mode-recovery = ; mode-ums = ; }; }; usb_pcie_grf: syscon@fe040000 { compatible = "rockchip,usb-pcie-grf", "syscon"; reg = <0x0 0xfe040000 0x0 0x1000>; }; coregrf: syscon@fe050000 { compatible = "rockchip,rk1808-coregrf", "syscon", "simple-mfd"; reg = <0x0 0xfe050000 0x0 0x1000>; #address-cells = <1>; #size-cells = <1>; pvtm: pvtm { compatible = "rockchip,rk1808-pvtm"; clocks = <&cru SCLK_PVTM_CORE>; clock-names = "core"; status = "okay"; }; }; qos_npu: qos@fe850000 { compatible = "syscon"; reg = <0x0 0xfe850000 0x0 0x20>; }; qos_pcie: qos@fe880000 { compatible = "syscon"; reg = <0x0 0xfe880000 0x0 0x20>; status = "disabled"; }; qos_usb2: qos@fe890000 { compatible = "syscon"; reg = <0x0 0xfe890000 0x0 0x20>; status = "disabled"; }; qos_usb3: qos@fe890080 { compatible = "syscon"; reg = <0x0 0xfe890080 0x0 0x20>; status = "disabled"; }; qos_isp: qos@fe8a0000 { compatible = "syscon"; reg = <0x0 0xfe8a0000 0x0 0x20>; }; qos_rga_rd: qos@fe8a0080 { compatible = "syscon"; reg = <0x0 0xfe8a0080 0x0 0x20>; }; qos_rga_wr: qos@fe8a0100 { compatible = "syscon"; reg = <0x0 0xfe8a0100 0x0 0x20>; }; qos_cif: qos@fe8a0180 { compatible = "syscon"; reg = <0x0 0xfe8a0180 0x0 0x20>; }; qos_vop_raw: qos@fe8b0000 { compatible = "syscon"; reg = <0x0 0xfe8b0000 0x0 0x20>; }; qos_vop_lite: qos@fe8b0080 { compatible = "syscon"; reg = <0x0 0xfe8b0080 0x0 0x20>; }; qos_vpu: qos@fe8c0000 { compatible = "syscon"; reg = <0x0 0xfe8c0000 0x0 0x20>; }; sram: sram@fec00000 { compatible = "mmio-sram"; reg = <0x0 0xfec00000 0x0 0x200000>; #address-cells = <1>; #size-cells = <1>; ranges = <0 0x0 0xfec00000 0x200000>; /* reserved for ddr dvfs and system suspend/resume */ ddr-sram@0 { reg = <0x0 0x8000>; }; /* reserved for vad audio buffer */ vad_sram: vad-sram@1c0000 { reg = <0x1c0000 0x40000>; }; }; hwlock: hwspinlock@ff040000 { compatible = "rockchip,hwspinlock"; reg = <0 0xff040000 0 0x10000>; #hwlock-cells = <1>; }; gic: interrupt-controller@ff100000 { compatible = "arm,gic-v3"; #interrupt-cells = <3>; #address-cells = <2>; #size-cells = <2>; ranges; interrupt-controller; reg = <0x0 0xff100000 0 0x10000>, /* GICD */ <0x0 0xff140000 0 0xc0000>, /* GICR */ <0x0 0xff300000 0 0x10000>, /* GICC */ <0x0 0xff310000 0 0x10000>, /* GICH */ <0x0 0xff320000 0 0x10000>; /* GICV */ interrupts = ; its: interrupt-controller@ff120000 { compatible = "arm,gic-v3-its"; msi-controller; reg = <0x0 0xff120000 0x0 0x20000>; }; }; efuse: efuse@ff260000 { compatible = "rockchip,rk1808-efuse"; reg = <0x0 0xff3b0000 0x0 0x50>; #address-cells = <1>; #size-cells = <1>; clocks = <&cru SCLK_EFUSE_NS>, <&cru PCLK_EFUSE>; clock-names = "sclk_efuse", "pclk_efuse"; assigned-clocks = <&cru SCLK_EFUSE_NS>; assigned-clock-rates = <24000000>; rockchip,efuse-size = <0x20>; /* Data cells */ efuse_id: id@7 { reg = <0x07 0x10>; }; cpu_leakage: cpu-leakage@17 { reg = <0x17 0x1>; }; logic_leakage: logic-leakage@18 { reg = <0x18 0x1>; }; npu_leakage: npu-leakage@19 { reg = <0x19 0x1>; }; efuse_cpu_version: cpu-version@1c { reg = <0x1c 0x1>; bits = <3 3>; }; }; cru: clock-controller@ff350000 { compatible = "rockchip,rk1808-cru"; reg = <0x0 0xff350000 0x0 0x5000>; rockchip,grf = <&grf>; rockchip,pmugrf = <&pmugrf>; #clock-cells = <1>; #reset-cells = <1>; assigned-clocks = <&cru SCLK_32K_IOE>, <&cru PLL_GPLL>, <&cru PLL_CPLL>, <&cru PLL_PPLL>, <&cru ARMCLK>, <&cru MSCLK_PERI>, <&cru LSCLK_PERI>, <&cru HSCLK_BUS_PRE>, <&cru MSCLK_BUS_PRE>, <&cru LSCLK_BUS_PRE>; assigned-clock-parents = <&xin32k>; assigned-clock-rates = <32768>, <1188000000>, <1000000000>, <100000000>, <816000000>, <200000000>, <100000000>, <300000000>, <200000000>, <100000000>; }; mipi_dphy_rx: mipi-dphy-rx@ff360000 { compatible = "rockchip,rk1808-mipi-dphy-rx"; reg = <0x0 0xff360000 0x0 0x4000>; clocks = <&cru PCLK_MIPICSIPHY>; clock-names = "pclk"; power-domains = <&power RK1808_PD_VIO>; rockchip,grf = <&grf>; status = "disabled"; }; mipi_dphy: mipi-dphy@ff370000 { compatible = "rockchip,rk1808-mipi-dphy"; reg = <0x0 0xff370000 0x0 0x500>; clocks = <&cru SCLK_MIPIDSIPHY_REF>, <&cru PCLK_MIPIDSIPHY>; clock-names = "ref", "pclk"; clock-output-names = "mipi_dphy_pll"; #clock-cells = <0>; resets = <&cru SRST_MIPIDSIPHY_P>; reset-names = "apb"; #phy-cells = <0>; rockchip,grf = <&grf>; status = "disabled"; }; combphy: phy@ff380000 { compatible = "rockchip,rk1808-combphy"; reg = <0x0 0xff380000 0x0 0x10000>; #phy-cells = <1>; clocks = <&cru SCLK_PCIEPHY_REF>; clock-names = "refclk"; assigned-clocks = <&cru SCLK_PCIEPHY_REF>; assigned-clock-rates = <25000000>; resets = <&cru SRST_USB3_OTG_A>, <&cru SRST_PCIEPHY_POR>, <&cru SRST_PCIEPHY_P>, <&cru SRST_PCIEPHY_PIPE>; reset-names = "otg-rst", "combphy-por", "combphy-apb", "combphy-pipe"; rockchip,combphygrf = <&combphy_grf>; rockchip,usbpciegrf = <&usb_pcie_grf>; status = "disabled"; }; thermal_zones: thermal-zones { soc_thermal: soc-thermal { polling-delay-passive = <20>; /* milliseconds */ polling-delay = <1000>; /* milliseconds */ sustainable-power = <977>; /* milliwatts */ thermal-sensors = <&tsadc 0>; trips { threshold: trip-point-0 { /* millicelsius */ temperature = <75000>; /* millicelsius */ hysteresis = <2000>; type = "passive"; }; target: trip-point-1 { /* millicelsius */ temperature = <85000>; /* millicelsius */ hysteresis = <2000>; type = "passive"; }; soc_crit: soc-crit { /* millicelsius */ temperature = <115000>; /* millicelsius */ hysteresis = <2000>; type = "critical"; }; }; cooling-maps { map0 { trip = <&target>; cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; contribution = <4096>; }; map1 { trip = <&target>; cooling-device = <&npu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; contribution = <1024>; }; }; }; }; tsadc: tsadc@ff3a0000 { compatible = "rockchip,rk1808-tsadc"; reg = <0x0 0xff3a0000 0x0 0x100>; interrupts = ; rockchip,grf = <&grf>; clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>; clock-names = "tsadc", "apb_pclk"; assigned-clocks = <&cru SCLK_TSADC>; assigned-clock-rates = <650000>; resets = <&cru SRST_TSADC>; reset-names = "tsadc-apb"; #thermal-sensor-cells = <1>; rockchip,hw-tshut-temp = <120000>; status = "disabled"; }; saradc: saradc@ff3c0000 { compatible = "rockchip,rk1808-saradc", "rockchip,rk3399-saradc"; reg = <0x0 0xff3c0000 0x0 0x100>; interrupts = ; #io-channel-cells = <1>; clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>; clock-names = "saradc", "apb_pclk"; resets = <&cru SRST_SARADC_P>; reset-names = "saradc-apb"; status = "disabled"; }; pwm0: pwm@ff3d0000 { compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm"; reg = <0x0 0xff3d0000 0x0 0x10>; #pwm-cells = <3>; pinctrl-names = "active"; pinctrl-0 = <&pwm0_pin>; clocks = <&cru SCLK_PWM0>, <&cru PCLK_PWM0>; clock-names = "pwm", "pclk"; status = "disabled"; }; pwm1: pwm@ff3d0010 { compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm"; reg = <0x0 0xff3d0010 0x0 0x10>; #pwm-cells = <3>; pinctrl-names = "active"; pinctrl-0 = <&pwm1_pin>; clocks = <&cru SCLK_PWM0>, <&cru PCLK_PWM0>; clock-names = "pwm", "pclk"; status = "disabled"; }; pwm2: pwm@ff3d0020 { compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm"; reg = <0x0 0xff3d0020 0x0 0x10>; #pwm-cells = <3>; pinctrl-names = "active"; pinctrl-0 = <&pwm2_pin>; clocks = <&cru SCLK_PWM0>, <&cru PCLK_PWM0>; clock-names = "pwm", "pclk"; status = "disabled"; }; pwm3: pwm@ff3d0030 { compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm"; reg = <0x0 0xff3d0030 0x0 0x10>; #pwm-cells = <3>; pinctrl-names = "active"; pinctrl-0 = <&pwm3_pin>; clocks = <&cru SCLK_PWM0>, <&cru PCLK_PWM0>; clock-names = "pwm", "pclk"; status = "disabled"; }; pwm4: pwm@ff3d8000 { compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm"; reg = <0x0 0xff3d8000 0x0 0x10>; #pwm-cells = <3>; pinctrl-names = "active"; pinctrl-0 = <&pwm4_pin>; clocks = <&cru SCLK_PWM1>, <&cru PCLK_PWM1>; clock-names = "pwm", "pclk"; status = "disabled"; }; pwm5: pwm@ff3d8010 { compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm"; reg = <0x0 0xff3d8010 0x0 0x10>; #pwm-cells = <3>; pinctrl-names = "active"; pinctrl-0 = <&pwm5_pin>; clocks = <&cru SCLK_PWM1>, <&cru PCLK_PWM1>; clock-names = "pwm", "pclk"; status = "disabled"; }; pwm6: pwm@ff3d8020 { compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm"; reg = <0x0 0xff3d8020 0x0 0x10>; #pwm-cells = <3>; pinctrl-names = "active"; pinctrl-0 = <&pwm6_pin>; clocks = <&cru SCLK_PWM1>, <&cru PCLK_PWM1>; clock-names = "pwm", "pclk"; status = "disabled"; }; pwm7: pwm@ff3d8030 { compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm"; reg = <0x0 0xff3d8030 0x0 0x10>; #pwm-cells = <3>; pinctrl-names = "active"; pinctrl-0 = <&pwm7_pin>; clocks = <&cru SCLK_PWM1>, <&cru PCLK_PWM1>; clock-names = "pwm", "pclk"; status = "disabled"; }; pmu: power-management@ff3e0000 { compatible = "rockchip,rk1808-pmu", "syscon", "simple-mfd"; reg = <0x0 0xff3e0000 0x0 0x1000>; power: power-controller { compatible = "rockchip,rk1808-power-controller"; #power-domain-cells = <1>; #address-cells = <1>; #size-cells = <0>; status = "okay"; /* These power domains are grouped by VD_NPU */ pd_npu@RK1808_VD_NPU { reg = ; clocks = <&cru SCLK_NPU>, <&cru ACLK_NPU>, <&cru HCLK_NPU>; pm_qos = <&qos_npu>; }; /* These power domains are grouped by VD_LOGIC */ pd_pcie@RK1808_PD_PCIE { reg = ; clocks = <&cru HSCLK_PCIE>, <&cru LSCLK_PCIE>, <&cru ACLK_PCIE>, <&cru ACLK_PCIE_MST>, <&cru ACLK_PCIE_SLV>, <&cru PCLK_PCIE>, <&cru SCLK_PCIE_AUX>, <&cru SCLK_PCIE_AUX>, <&cru ACLK_USB3OTG>, <&cru HCLK_HOST>, <&cru HCLK_HOST_ARB>, <&cru SCLK_USB3_OTG0_REF>, <&cru SCLK_USB3_OTG0_SUSPEND>; pm_qos = <&qos_pcie>, <&qos_usb2>, <&qos_usb3>; }; pd_vpu@RK1808_PD_VPU { reg = ; clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>; pm_qos = <&qos_vpu>; }; pd_vio@RK1808_PD_VIO { reg = ; clocks = <&cru HSCLK_VIO>, <&cru LSCLK_VIO>, <&cru ACLK_VOPRAW>, <&cru HCLK_VOPRAW>, <&cru ACLK_VOPLITE>, <&cru HCLK_VOPLITE>, <&cru PCLK_DSI_TX>, <&cru PCLK_CSI_TX>, <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru ACLK_ISP>, <&cru HCLK_ISP>, <&cru ACLK_CIF>, <&cru HCLK_CIF>, <&cru PCLK_CSI2HOST>, <&cru DCLK_VOPRAW>, <&cru DCLK_VOPLITE>; pm_qos = <&qos_rga_rd>, <&qos_rga_wr>, <&qos_isp>, <&qos_cif>, <&qos_vop_raw>, <&qos_vop_lite>; }; }; }; i2c0: i2c@ff410000 { compatible = "rockchip,rk3399-i2c"; reg = <0x0 0xff410000 0x0 0x1000>; clocks = <&cru SCLK_PMU_I2C0>, <&cru PCLK_I2C0_PMU>; clock-names = "i2c", "pclk"; interrupts = ; pinctrl-names = "default"; pinctrl-0 = <&i2c0_xfer>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; }; dmac: dmac@ff4e0000 { compatible = "arm,pl330", "arm,primecell"; reg = <0x0 0xff4e0000 0x0 0x4000>; interrupts = ; clocks = <&cru ACLK_DMAC>; clock-names = "apb_pclk"; #dma-cells = <1>; peripherals-req-type-burst; }; uart0: serial@ff430000 { compatible = "rockchip,rk1808-uart", "snps,dw-apb-uart"; reg = <0x0 0xff430000 0x0 0x100>; interrupts = ; clocks = <&cru SCLK_UART0_PMU>, <&cru PCLK_UART0_PMU>; clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; dmas = <&dmac 0>, <&dmac 1>; pinctrl-names = "default"; pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; status = "disabled"; }; i2c1: i2c@ff500000 { compatible = "rockchip,rk3399-i2c"; reg = <0x0 0xff500000 0x0 0x1000>; clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>; clock-names = "i2c", "pclk"; interrupts = ; pinctrl-names = "default"; pinctrl-0 = <&i2c1_xfer>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; }; i2c2: i2c@ff504000 { compatible = "rockchip,rk3399-i2c"; reg = <0x0 0xff504000 0x0 0x1000>; clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>; clock-names = "i2c", "pclk"; interrupts = ; pinctrl-names = "default"; pinctrl-0 = <&i2c2m0_xfer>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; }; i2c3: i2c@ff508000 { compatible = "rockchip,rk3399-i2c"; reg = <0x0 0xff508000 0x0 0x1000>; clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>; clock-names = "i2c", "pclk"; interrupts = ; pinctrl-names = "default"; pinctrl-0 = <&i2c3_xfer>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; }; i2c4: i2c@ff50c000 { compatible = "rockchip,rk3399-i2c"; reg = <0x0 0xff50c000 0x0 0x1000>; clocks = <&cru SCLK_I2C4>, <&cru PCLK_I2C4>; clock-names = "i2c", "pclk"; interrupts = ; pinctrl-names = "default"; pinctrl-0 = <&i2c4_xfer>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; }; i2c5: i2c@ff510000 { compatible = "rockchip,rk3399-i2c"; reg = <0x0 0xff510000 0x0 0x1000>; clocks = <&cru SCLK_I2C5>, <&cru PCLK_I2C5>; clock-names = "i2c", "pclk"; interrupts = ; pinctrl-names = "default"; pinctrl-0 = <&i2c5_xfer>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; }; spi0: spi@ff520000 { compatible = "rockchip,rk1808-spi", "rockchip,rk3066-spi"; reg = <0x0 0xff520000 0x0 0x1000>; interrupts = ; #address-cells = <1>; #size-cells = <0>; clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>; clock-names = "spiclk", "apb_pclk"; dmas = <&dmac 10>, <&dmac 11>; pinctrl-names = "default", "high_speed"; pinctrl-0 = <&spi0_clk &spi0_csn &spi0_miso &spi0_mosi>; pinctrl-1 = <&spi0_clk_hs &spi0_csn &spi0_miso_hs &spi0_mosi_hs>; status = "disabled"; }; spi1: spi@ff530000 { compatible = "rockchip,rk1808-spi", "rockchip,rk3066-spi"; reg = <0x0 0xff530000 0x0 0x1000>; interrupts = ; #address-cells = <1>; #size-cells = <0>; clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>; clock-names = "spiclk", "apb_pclk"; dmas = <&dmac 12>, <&dmac 13>; pinctrl-names = "default", "high_speed"; pinctrl-0 = <&spi1_clk &spi1_csn0 &spi1_csn1 &spi1_miso &spi1_mosi>; pinctrl-1 = <&spi1_clk_hs &spi1_csn0 &spi1_csn1 &spi1_miso_hs &spi1_mosi_hs>; status = "disabled"; }; uart1: serial@ff540000 { compatible = "rockchip,rk1808-uart", "snps,dw-apb-uart"; reg = <0x0 0xff540000 0x0 0x100>; interrupts = ; clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>; clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; dmas = <&dmac 2>, <&dmac 3>; pinctrl-names = "default"; pinctrl-0 = <&uart1m0_xfer &uart1_cts &uart1_rts>; status = "disabled"; }; uart2: serial@ff550000 { compatible = "rockchip,rk1808-uart", "snps,dw-apb-uart"; reg = <0x0 0xff550000 0x0 0x100>; interrupts = ; clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>; clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; dmas = <&dmac 4>, <&dmac 5>; pinctrl-names = "default"; pinctrl-0 = <&uart2m0_xfer>; status = "disabled"; }; uart3: serial@ff560000 { compatible = "rockchip,rk1808-uart", "snps,dw-apb-uart"; reg = <0x0 0xff560000 0x0 0x100>; interrupts = ; clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>; clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; dmas = <&dmac 6>, <&dmac 7>; pinctrl-names = "default"; pinctrl-0 = <&uart3m0_xfer &uart3_ctsm0 &uart3_rtsm0>; status = "disabled"; }; uart4: serial@ff570000 { compatible = "rockchip,rk1808-uart", "snps,dw-apb-uart"; reg = <0x0 0xff570000 0x0 0x100>; interrupts = ; clocks = <&cru SCLK_UART4>, <&cru PCLK_UART4>; clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; dmas = <&dmac 8>, <&dmac 9>; pinctrl-names = "default"; pinctrl-0 = <&uart4_xfer &uart4_cts &uart4_rts>; status = "disabled"; }; spi2: spi@ff580000 { compatible = "rockchip,rk1808-spi", "rockchip,rk3066-spi"; reg = <0x0 0xff580000 0x0 0x1000>; interrupts = ; #address-cells = <1>; #size-cells = <0>; clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>; clock-names = "spiclk", "apb_pclk"; dmas = <&dmac 14>, <&dmac 15>; pinctrl-names = "default", "high_speed"; pinctrl-0 = <&spi2m0_clk &spi2m0_csn &spi2m0_miso &spi2m0_mosi>; pinctrl-1 = <&spi2m0_clk_hs &spi2m0_csn &spi2m0_miso_hs &spi2m0_mosi_hs>; status = "disabled"; }; uart5: serial@ff5a0000 { compatible = "rockchip,rk1808-uart", "snps,dw-apb-uart"; reg = <0x0 0xff5a0000 0x0 0x100>; interrupts = ; clocks = <&cru SCLK_UART5>, <&cru PCLK_UART5>; clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; dmas = <&dmac 25>, <&dmac 26>; pinctrl-names = "default"; pinctrl-0 = <&uart5_xfer>; status = "disabled"; }; uart6: serial@ff5b0000 { compatible = "rockchip,rk1808-uart", "snps,dw-apb-uart"; reg = <0x0 0xff5b0000 0x0 0x100>; interrupts = ; clocks = <&cru SCLK_UART6>, <&cru PCLK_UART6>; clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; dmas = <&dmac 27>, <&dmac 28>; pinctrl-names = "default"; pinctrl-0 = <&uart6_xfer>; status = "disabled"; }; uart7: serial@ff5c0000 { compatible = "rockchip,rk1808-uart", "snps,dw-apb-uart"; reg = <0x0 0xff5c0000 0x0 0x100>; interrupts = ; clocks = <&cru SCLK_UART7>, <&cru PCLK_UART7>; clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; dmas = <&dmac 29>, <&dmac 30>; pinctrl-names = "default"; pinctrl-0 = <&uart7_xfer>; status = "disabled"; }; pwm8: pwm@ff5d0000 { compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm"; reg = <0x0 0xff5d0000 0x0 0x10>; #pwm-cells = <3>; pinctrl-names = "active"; pinctrl-0 = <&pwm8_pin>; clocks = <&cru SCLK_PWM2>, <&cru PCLK_PWM2>; clock-names = "pwm", "pclk"; status = "disabled"; }; pwm9: pwm@fff5d0010 { compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm"; reg = <0x0 0xff5d0010 0x0 0x10>; #pwm-cells = <3>; pinctrl-names = "active"; pinctrl-0 = <&pwm9_pin>; clocks = <&cru SCLK_PWM2>, <&cru PCLK_PWM2>; clock-names = "pwm", "pclk"; status = "disabled"; }; pwm10: pwm@ff5d0020 { compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm"; reg = <0x0 0xff5d0020 0x0 0x10>; #pwm-cells = <3>; pinctrl-names = "active"; pinctrl-0 = <&pwm10_pin>; clocks = <&cru SCLK_PWM2>, <&cru PCLK_PWM2>; clock-names = "pwm", "pclk"; status = "disabled"; }; pwm11: pwm@ff5d0030 { compatible = "rockchip,rk1808-pwm", "rockchip,rk3328-pwm"; reg = <0x0 0xff5d0030 0x0 0x10>; #pwm-cells = <3>; pinctrl-names = "active"; pinctrl-0 = <&pwm11_pin>; clocks = <&cru SCLK_PWM2>, <&cru PCLK_PWM2>; clock-names = "pwm", "pclk"; status = "disabled"; }; rng: rng@ff630000 { compatible = "rockchip,cryptov2-rng"; reg = <0x0 0xff630000 0x0 0x4000>; clocks = <&cru SCLK_CRYPTO>, <&cru SCLK_CRYPTO_APK>, <&cru ACLK_CRYPTO>, <&cru HCLK_CRYPTO>; clock-names = "clk_crypto", "clk_crypto_apk", "aclk_crypto", "hclk_crypto"; resets = <&cru SRST_CRYPTO_CORE>; reset-names = "reset"; status = "disabled"; }; dcf: dcf@ff640000 { compatible = "syscon"; reg = <0x0 0xff640000 0x0 0x1000>; }; rktimer: rktimer@ff700000 { compatible = "rockchip,rk3288-timer"; reg = <0x0 0xff700000 0x0 0x1000>; interrupts = ; clocks = <&cru PCLK_TIMER>, <&cru SCLK_TIMER0>; clock-names = "pclk", "timer"; }; wdt: watchdog@ff720000 { compatible = "snps,dw-wdt"; reg = <0x0 0xff720000 0x0 0x100>; clocks = <&cru PCLK_WDT>; interrupts = ; status = "okay"; }; i2s0: i2s@ff7e0000 { compatible = "rockchip,rk1808-i2s-tdm"; reg = <0x0 0xff7e0000 0x0 0x1000>; interrupts = ; clocks = <&cru SCLK_I2S0_8CH_TX>, <&cru SCLK_I2S0_8CH_RX>, <&cru HCLK_I2S0_8CH>; clock-names = "mclk_tx", "mclk_rx", "hclk"; dmas = <&dmac 16>, <&dmac 17>; dma-names = "tx", "rx"; resets = <&cru SRST_I2S0_TX>, <&cru SRST_I2S0_RX>; reset-names = "tx-m", "rx-m"; rockchip,cru = <&cru>; rockchip,grf = <&grf>; pinctrl-names = "default"; pinctrl-0 = <&i2s0_8ch_sclktx &i2s0_8ch_sclkrx &i2s0_8ch_lrcktx &i2s0_8ch_lrckrx &i2s0_8ch_sdi0 &i2s0_8ch_sdi1 &i2s0_8ch_sdi2 &i2s0_8ch_sdi3 &i2s0_8ch_sdo0 &i2s0_8ch_sdo1 &i2s0_8ch_sdo2 &i2s0_8ch_sdo3 &i2s0_8ch_mclk>; status = "disabled"; }; i2s1: i2s@ff7f0000 { compatible = "rockchip,rk1808-i2s", "rockchip,rk3066-i2s"; reg = <0x0 0xff7f0000 0x0 0x1000>; interrupts = ; clocks = <&cru SCLK_I2S1_2CH>, <&cru HCLK_I2S1_2CH>; clock-names = "i2s_clk", "i2s_hclk"; dmas = <&dmac 18>, <&dmac 19>; dma-names = "tx", "rx"; resets = <&cru SRST_I2S1>, <&cru SRST_I2S1_H>; reset-names = "reset-m", "reset-h"; pinctrl-names = "default"; pinctrl-0 = <&i2s1_2ch_sclk &i2s1_2ch_lrck &i2s1_2ch_sdi &i2s1_2ch_sdo>; status = "disabled"; }; pdm: pdm@ff800000 { compatible = "rockchip,rk1808-pdm", "rockchip,pdm"; reg = <0x0 0xff800000 0x0 0x1000>; clocks = <&cru SCLK_PDM>, <&cru HCLK_PDM>; clock-names = "pdm_clk", "pdm_hclk"; dmas = <&dmac 24>; dma-names = "rx"; resets = <&cru SRST_PDM>; reset-names = "pdm-m"; pinctrl-names = "default"; pinctrl-0 = <&pdm_clk &pdm_clk1 &pdm_sdi0 &pdm_sdi1 &pdm_sdi2 &pdm_sdi3>; status = "disabled"; }; vad: vad@ff810000 { compatible = "rockchip,rk1808-vad"; reg = <0x0 0xff810000 0x0 0x10000>; reg-names = "vad"; clocks = <&cru HCLK_VAD>; clock-names = "hclk"; interrupts = ; rockchip,audio-sram = <&vad_sram>; rockchip,audio-src = <0>; rockchip,det-channel = <0>; rockchip,mode = <1>; status = "disabled"; }; dfi: dfi@ff9c0000 { reg = <0x00 0xff9c0000 0x00 0x400>; compatible = "rockchip,rk1808-dfi"; rockchip,pmugrf = <&pmugrf>; status = "disabled"; }; dmc: dmc { compatible = "rockchip,rk1808-dmc"; dcf_reg = <&dcf>; interrupts = ; interrupt-names = "complete_irq"; devfreq-events = <&dfi>; clocks = <&cru SCLK_DDRCLK>; clock-names = "dmc_clk"; operating-points-v2 = <&dmc_opp_table>; ddr_timing = <&ddr_timing>; upthreshold = <40>; downdifferential = <20>; system-status-freq = < /*system status freq(KHz)*/ SYS_STATUS_NORMAL 924000 SYS_STATUS_REBOOT 450000 SYS_STATUS_SUSPEND 328000 SYS_STATUS_VIDEO_1080P 924000 SYS_STATUS_BOOST 924000 SYS_STATUS_ISP 924000 SYS_STATUS_PERFORMANCE 924000 >; auto-min-freq = <328000>; auto-freq-en = <0>; #cooling-cells = <2>; status = "disabled"; }; dmc_opp_table: dmc-opp-table { compatible = "operating-points-v2"; rockchip,max-volt = <950000>; rockchip,evb-irdrop = <12500>; nvmem-cells = <&logic_leakage>; nvmem-cell-names = "leakage"; opp-192000000 { opp-hz = /bits/ 64 <192000000>; opp-microvolt = <750000>; }; opp-324000000 { opp-hz = /bits/ 64 <324000000>; opp-microvolt = <750000>; }; opp-450000000 { opp-hz = /bits/ 64 <450000000>; opp-microvolt = <750000>; }; opp-528000000 { opp-hz = /bits/ 64 <528000000>; opp-microvolt = <750000>; }; opp-664000000 { opp-hz = /bits/ 64 <664000000>; opp-microvolt = <750000>; }; opp-784000000 { opp-hz = /bits/ 64 <784000000>; opp-microvolt = <750000>; }; opp-924000000 { opp-hz = /bits/ 64 <924000000>; opp-microvolt = <750000>; }; /* 1066M is only for ddr4 */ opp-1066000000 { opp-hz = /bits/ 64 <1066000000>; opp-microvolt = <775000>; status = "disabled"; }; }; rk_rga: rk_rga@ffaf0000 { compatible = "rockchip,rga2"; dev_mode = <0>; reg = <0x0 0xffaf0000 0x0 0x1000>; interrupts = ; clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA>; clock-names = "aclk_rga", "hclk_rga", "clk_rga"; power-domains = <&power RK1808_PD_VIO>; dma-coherent; status = "disabled"; }; cif: cif@ffae0000 { compatible = "rockchip,rk1808-cif"; reg = <0x0 0xffae0000 0x0 0x200>, <0x0 0xffb10000 0x0 0x100>; reg-names = "cif_regs", "csihost_regs"; interrupts = , , ; interrupt-names = "cif-intr", "csi-intr1", "csi-intr2"; clocks = <&cru ACLK_CIF>, <&cru DCLK_CIF>, <&cru HCLK_CIF>, <&cru SCLK_CIF_OUT>, <&cru PCLK_CSI2HOST>; clock-names = "aclk_cif", "dclk_cif", "hclk_cif", "sclk_cif_out", "pclk_csi2host"; resets = <&cru SRST_CIF_A>, <&cru SRST_CIF_H>, <&cru SRST_CIF_I>, <&cru SRST_CIF_D>, <&cru SRST_CIF_PCLKIN>; reset-names = "rst_cif_a", "rst_cif_h", "rst_cif_i", "rst_cif_d", "rst_cif_pclkin"; power-domains = <&power RK1808_PD_VIO>; iommus = <&cif_mmu>; status = "disabled"; }; cif_mmu: iommu@ffae0800 { compatible = "rockchip,iommu"; reg = <0x0 0xffae0800 0x0 0x100>; interrupts = ; interrupt-names = "cif_mmu"; clocks = <&cru ACLK_CIF>, <&cru HCLK_CIF>; clock-names = "aclk", "hclk"; power-domains = <&power RK1808_PD_VIO>; #iommu-cells = <0>; status = "disabled"; }; vop_lite: vop@ffb00000 { compatible = "rockchip,rk1808-vop-lit"; reg = <0x0 0xffb00000 0x0 0x200>; reg-names = "regs"; interrupts = ; clocks = <&cru ACLK_VOPLITE>, <&cru DCLK_VOPLITE>, <&cru HCLK_VOPLITE>; clock-names = "aclk_vop", "dclk_vop", "hclk_vop"; power-domains = <&power RK1808_PD_VIO>; iommus = <&vopl_mmu>; status = "disabled"; vop_lite_out: port { #address-cells = <1>; #size-cells = <0>; vop_lite_out_dsi: endpoint@0 { reg = <0>; remote-endpoint = <&dsi_in_vop_lite>; }; vop_lite_out_rgb: endpoint@1 { reg = <1>; remote-endpoint = <&rgb_in_vop_lite>; }; }; }; vopl_mmu: iommu@ffb00f00 { compatible = "rockchip,iommu"; reg = <0x0 0xffb00f00 0x0 0x100>; interrupts = ; interrupt-names = "vopl_mmu"; clocks = <&cru ACLK_VOPLITE>, <&cru HCLK_VOPLITE>; clock-names = "aclk", "hclk"; power-domains = <&power RK1808_PD_VIO>; #iommu-cells = <0>; status = "disabled"; }; csi_tx: csi@ffb20000 { compatible = "rockchip,rk1808-mipi-csi"; reg = <0x0 0xffb20000 0x0 0x500>; reg-names = "csi_regs"; interrupts = ; clocks = <&cru PCLK_CSI_TX>, <&mipi_dphy>; clock-names = "pclk", "hs_clk"; resets = <&cru SRST_CSITX_P>, <&cru SRST_CSITX_TXBYTEHS>, <&cru SRST_CSITX_TXESC>, <&cru SRST_CSITX_CAM>, <&cru SRST_CSITX_I>; reset-names = "tx_apb", "tx_bytehs", "tx_esc", "tx_cam", "tx_i"; phys = <&mipi_dphy>; phy-names = "mipi_dphy"; power-domains = <&power RK1808_PD_VIO>; rockchip,grf = <&grf>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; ports { port { csi_in_vop_raw: endpoint { remote-endpoint = <&vop_raw_out_csi>; }; }; }; }; dsi: dsi@ffb30000 { compatible = "rockchip,rk1808-mipi-dsi"; reg = <0x0 0xffb30000 0x0 0x500>; interrupts = ; clocks = <&cru PCLK_DSI_TX>, <&mipi_dphy>; clock-names = "pclk", "hs_clk"; resets = <&cru SRST_MIPIDSI_HOST_P>; reset-names = "apb"; phys = <&mipi_dphy>; phy-names = "mipi_dphy"; power-domains = <&power RK1808_PD_VIO>; rockchip,grf = <&grf>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; ports { port { dsi_in_vop_lite: endpoint { remote-endpoint = <&vop_lite_out_dsi>; }; }; }; }; vop_raw: vop@ffb40000 { compatible = "rockchip,rk1808-vop-raw"; reg = <0x0 0xffb40000 0x0 0x500>; reg-names = "regs"; interrupts = ; clocks = <&cru ACLK_VOPRAW>, <&cru DCLK_VOPRAW>, <&cru HCLK_VOPRAW>; clock-names = "aclk_vop", "dclk_vop", "hclk_vop"; power-domains = <&power RK1808_PD_VIO>; iommus = <&vopr_mmu>; status = "disabled"; vop_raw_out: port { #address-cells = <1>; #size-cells = <0>; vop_raw_out_csi: endpoint@0 { reg = <0>; remote-endpoint = <&csi_in_vop_raw>; }; }; }; vopr_mmu: iommu@ffb40f00 { compatible = "rockchip,iommu"; reg = <0x0 0xffb40f00 0x0 0x100>; interrupts = ; interrupt-names = "vopr_mmu"; clocks = <&cru ACLK_VOPRAW>, <&cru HCLK_VOPRAW>; clock-names = "aclk", "hclk"; power-domains = <&power RK1808_PD_VIO>; #iommu-cells = <0>; status = "disabled"; }; rkisp1: rkisp1@ffb50000 { compatible = "rockchip,rk1808-rkisp1"; reg = <0x0 0xffb50000 0x0 0x8000>; interrupts = , , ; interrupt-names = "isp_irq", "mi_irq", "mipi_irq"; clocks = <&cru ACLK_ISP>, <&cru HCLK_ISP>, <&cru SCLK_ISP>, <&cru DCLK_CIF>; clock-names = "aclk_isp", "hclk_isp", "clk_isp", "pclk_isp"; power-domains = <&power RK1808_PD_VIO>; iommus = <&isp_mmu>; rockchip,grf = <&grf>; status = "disabled"; }; isp_mmu: iommu@ffb58000 { compatible = "rockchip,iommu"; reg = <0x0 0xffb58000 0x0 0x100>; interrupts = ; interrupt-names = "isp_mmu"; clocks = <&cru ACLK_ISP>, <&cru HCLK_ISP>, <&cru SCLK_ISP>; clock-names = "aclk", "hclk", "sclk"; power-domains = <&power RK1808_PD_VIO>; rk_iommu,disable_reset_quirk; #iommu-cells = <0>; status = "disabled"; }; vpu_service: vpu_service@ffb80000 { compatible = "rockchip,vpu_service"; reg = <0x0 0xffb80000 0x0 0x800>; interrupts = , ; interrupt-names = "irq_enc", "irq_dec"; clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>; clock-names = "aclk_vcodec", "hclk_vcodec"; power-domains = <&power RK1808_PD_VPU>; resets = <&cru SRST_VPU_A>, <&cru SRST_VPU_H>; reset-names = "video_a", "video_h"; iommus = <&vpu_mmu>; iommu_enabled = <1>; allocator = <1>; /* 0 means ion, 1 means drm */ status = "disabled"; }; vpu_mmu: iommu@ffb80800 { compatible = "rockchip,iommu"; reg = <0x0 0xffb80800 0x0 0x100>; interrupts = ; interrupt-names = "vpu_mmu"; clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>; clock-names = "aclk", "hclk"; power-domains = <&power RK1808_PD_VPU>; #iommu-cells = <0>; status = "disabled"; }; sdio: dwmmc@ffc60000 { compatible = "rockchip,rk1808-dw-mshc", "rockchip,rk3288-dw-mshc"; reg = <0x0 0xffc60000 0x0 0x4000>; clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>, <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>; clock-names = "biu", "ciu", "ciu-drv", "ciu-sample"; max-frequency = <150000000>; fifo-depth = <0x100>; interrupts = ; pinctrl-names = "default"; pinctrl-0 = <&sdmmc1_clk &sdmmc1_cmd &sdmmc1_bus4>; status = "disabled"; }; npu: npu@ffbc0000 { compatible = "rockchip,npu"; reg = <0x0 0xffbc0000 0x0 0x1000>; clocks = <&cru SCLK_NPU>, <&cru ACLK_NPU>, <&cru HCLK_NPU>; clock-names = "sclk_npu", "aclk_npu", "hclk_npu"; assigned-clocks = <&cru SCLK_NPU>; assigned-clock-rates = <800000000>; interrupts = ; power-domains = <&power RK1808_VD_NPU>; operating-points-v2 = <&npu_opp_table>; #cooling-cells = <2>; status = "disabled"; npu_power_model: power-model { compatible = "simple-power-model"; ref-leakage = <31>; static-coefficient = <100000>; dynamic-coefficient = <3080>; ts = <8861 30312 (-500) 10>; thermal-zone = "soc-thermal"; }; }; npu_opp_table: npu-opp-table { compatible = "operating-points-v2"; rockchip,max-volt = <950000>; rockchip,evb-irdrop = <37500>; nvmem-cells = <&npu_leakage>; nvmem-cell-names = "leakage"; rockchip,pvtm-voltage-sel = < 0 69000 0 69001 74000 1 74001 99999 2 >; rockchip,pvtm-ch = <0 0>; opp-200000000 { opp-hz = /bits/ 64 <200000000>; opp-microvolt = <750000 750000 950000>; }; opp-297000000 { opp-hz = /bits/ 64 <297000000>; opp-microvolt = <750000 750000 950000>; }; opp-400000000 { opp-hz = /bits/ 64 <400000000>; opp-microvolt = <750000 750000 950000>; }; opp-594000000 { opp-hz = /bits/ 64 <594000000>; opp-microvolt = <750000 750000 950000>; }; opp-792000000 { opp-hz = /bits/ 64 <792000000>; opp-microvolt = <825000 825000 950000>; opp-microvolt-L0 = <825000 825000 950000>; opp-microvolt-L1 = <800000 800000 950000>; opp-microvolt-L2 = <775000 775000 950000>; }; }; sfc: sfc@ffc50000 { compatible = "rockchip,sfc"; reg = <0x0 0xffc50000 0x0 0x4000>; interrupts = ; clocks = <&cru SCLK_SFC>, <&cru HCLK_SFC>; clock-names = "clk_sfc", "hclk_sfc"; assigned-clocks = <&cru SCLK_SFC>; assigned-clock-rates = <100000000>; status = "disabled"; }; sdmmc: dwmmc@ffcf0000 { compatible = "rockchip,rk1808-dw-mshc", "rockchip,rk3288-dw-mshc"; reg = <0x0 0xffcf0000 0x0 0x4000>; clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>, <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>; clock-names = "biu", "ciu", "ciu-drv", "ciu-sample"; max-frequency = <150000000>; fifo-depth = <0x100>; interrupts = ; pinctrl-names = "default"; pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_bus4 &sdmmc0_detn>; status = "disabled"; }; emmc: dwmmc@ffd00000 { compatible = "rockchip,rk1808-dw-mshc", "rockchip,rk3288-dw-mshc"; reg = <0x0 0xffd00000 0x0 0x4000>; clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>, <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>; clock-names = "biu", "ciu", "ciu-drv", "ciu-sample"; max-frequency = <150000000>; fifo-depth = <0x100>; interrupts = ; pinctrl-names = "default"; pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>; status = "disabled"; }; usb_host0_ehci: usb@ffd80000 { compatible = "generic-ehci"; reg = <0x0 0xffd80000 0x0 0x10000>; interrupts = ; clocks = <&cru HCLK_HOST>, <&cru HCLK_HOST_ARB>, <&u2phy>; clock-names = "usbhost", "arbiter", "utmi"; phys = <&u2phy_host>; phy-names = "usb"; status = "disabled"; power-domains = <&power RK1808_PD_PCIE>; }; usb_host0_ohci: usb@ffd90000 { compatible = "generic-ohci"; reg = <0x0 0xffd90000 0x0 0x10000>; interrupts = ; clocks = <&cru HCLK_HOST>, <&cru HCLK_HOST_ARB>, <&u2phy>; clock-names = "usbhost", "arbiter", "utmi"; phys = <&u2phy_host>; phy-names = "usb"; status = "disabled"; power-domains = <&power RK1808_PD_PCIE>; }; gmac: ethernet@ffdd0000 { compatible = "rockchip,rk1808-gmac"; reg = <0x0 0xffdd0000 0x0 0x10000>; rockchip,grf = <&grf>; interrupts = ; interrupt-names = "macirq"; clocks = <&cru SCLK_GMAC>, <&cru SCLK_GMAC_RX_TX>, <&cru SCLK_GMAC_RX_TX>, <&cru SCLK_GMAC_REF>, <&cru SCLK_GMAC_REFOUT>, <&cru ACLK_GMAC>, <&cru PCLK_GMAC>, <&cru SCLK_GMAC_RGMII_SPEED>; clock-names = "stmmaceth", "mac_clk_rx", "mac_clk_tx", "clk_mac_ref", "clk_mac_refout", "aclk_mac", "pclk_mac", "clk_mac_speed"; phy-mode = "rgmii"; pinctrl-names = "default"; pinctrl-0 = <&rgmii_pins>; resets = <&cru SRST_GAMC_A>; reset-names = "stmmaceth"; /* power-domains = <&power RK1808_PD_GMAC>; */ status = "disabled"; }; pinctrl: pinctrl { compatible = "rockchip,rk1808-pinctrl"; rockchip,grf = <&grf>; rockchip,pmu = <&pmugrf>; #address-cells = <2>; #size-cells = <2>; ranges; gpio0: gpio0@ff4c0000 { compatible = "rockchip,gpio-bank"; reg = <0x0 0xff4c0000 0x0 0x100>; interrupts = ; clocks = <&cru PCLK_GPIO0_PMU>, <&cru DBCLK_PMU_GPIO0>; gpio-controller; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; }; gpio1: gpio1@ff690000 { compatible = "rockchip,gpio-bank"; reg = <0x0 0xff690000 0x0 0x100>; interrupts = ; clocks = <&cru PCLK_GPIO1>, <&cru DBCLK_GPIO1>; gpio-controller; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; }; gpio2: gpio2@ff6a0000 { compatible = "rockchip,gpio-bank"; reg = <0x0 0xff6a0000 0x0 0x100>; interrupts = ; clocks = <&cru PCLK_GPIO2>, <&cru DBCLK_GPIO2>; gpio-controller; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; }; gpio3: gpio3@ff6b0000 { compatible = "rockchip,gpio-bank"; reg = <0x0 0xff6b0000 0x0 0x100>; interrupts = ; clocks = <&cru PCLK_GPIO3>, <&cru DBCLK_GPIO3>; gpio-controller; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; }; gpio4: gpio4@ff6c0000 { compatible = "rockchip,gpio-bank"; reg = <0x0 0xff6c0000 0x0 0x100>; interrupts = ; clocks = <&cru PCLK_GPIO4>, <&cru DBCLK_GPIO4>; gpio-controller; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; }; pcfg_pull_up: pcfg-pull-up { bias-pull-up; }; pcfg_pull_down: pcfg-pull-down { bias-pull-down; }; pcfg_pull_none: pcfg-pull-none { bias-disable; }; pcfg_pull_none_2ma: pcfg-pull-none-2ma { bias-disable; drive-strength = <2>; }; pcfg_pull_up_2ma: pcfg-pull-up-2ma { bias-pull-up; drive-strength = <2>; }; pcfg_pull_up_4ma: pcfg-pull-up-4ma { bias-pull-up; drive-strength = <4>; }; pcfg_pull_none_4ma: pcfg-pull-none-4ma { bias-disable; drive-strength = <4>; }; pcfg_pull_down_4ma: pcfg-pull-down-4ma { bias-pull-down; drive-strength = <4>; }; pcfg_pull_none_8ma: pcfg-pull-none-8ma { bias-disable; drive-strength = <8>; }; pcfg_pull_up_8ma: pcfg-pull-up-8ma { bias-pull-up; drive-strength = <8>; }; pcfg_pull_none_12ma: pcfg-pull-none-12ma { bias-disable; drive-strength = <12>; }; pcfg_pull_up_12ma: pcfg-pull-up-12ma { bias-pull-up; drive-strength = <12>; }; pcfg_pull_none_smt: pcfg-pull-none-smt { bias-disable; input-schmitt-enable; }; pcfg_pull_none_2ma_smt: pcfg-pull-none-2ma-smt { bias-disable; drive-strength = <2>; input-schmitt-enable; }; pcfg_output_high: pcfg-output-high { output-high; }; pcfg_output_low: pcfg-output-low { output-low; }; pcfg_input_high: pcfg-input-high { bias-pull-up; input-enable; }; pcfg_input: pcfg-input { input-enable; }; pcfg_input_smt: pcfg-input-smt { input-enable; input-schmitt-enable; }; cif-m0 { cif_clkout_m0: cif-clkout-m0 { rockchip,pins = <2 RK_PB7 1 &pcfg_pull_none>; }; cif_d12d15_m0: cif-d12d15-m0 { rockchip,pins = <2 RK_PA0 1 &pcfg_pull_none>,/* cif_d12 */ <2 RK_PA1 1 &pcfg_pull_none>,/* cif_d13 */ <2 RK_PA2 1 &pcfg_pull_none>,/* cif_d14 */ <2 RK_PA3 1 &pcfg_pull_none>;/* cif_d15 */ }; cif_d10d11_m0: cif-d10d11-m0 { rockchip,pins = <2 RK_PC2 1 &pcfg_pull_none>,/* cif_d10 */ <2 RK_PC3 1 &pcfg_pull_none>;/* cif_d11 */ }; cif_d2d9_m0: cif-d2d9-m0 { rockchip,pins = <2 RK_PA4 1 &pcfg_pull_none>,/* cif_d2 */ <2 RK_PA5 1 &pcfg_pull_none>,/* cif_d3 */ <2 RK_PA6 1 &pcfg_pull_none>,/* cif_d4 */ <2 RK_PA7 1 &pcfg_pull_none>,/* cif_d5 */ <2 RK_PB0 1 &pcfg_pull_none>,/* cif_d6 */ <2 RK_PB1 1 &pcfg_pull_none>,/* cif_d7 */ <2 RK_PB2 1 &pcfg_pull_none>,/* cif_d8 */ <2 RK_PB3 1 &pcfg_pull_none>,/* cif_d9 */ <2 RK_PB4 1 &pcfg_pull_none>,/* cif_vsync */ <2 RK_PB5 1 &pcfg_pull_none>,/* cif_href */ <2 RK_PB6 1 &pcfg_pull_none>;/* cif_clkin */ }; cif_d0d1_m0: cif-d0d1-m0 { rockchip,pins = <2 RK_PC0 1 &pcfg_pull_none>,/* cif_d0 */ <2 RK_PC1 1 &pcfg_pull_none>;/* cif_d1 */ }; }; emmc { emmc_clk: emmc-clk { rockchip,pins = /* emmc_clkout */ <1 RK_PB1 1 &pcfg_pull_up_4ma>; }; emmc_rstnout: emmc-rstnout { rockchip,pins = /* emmc_rstn */ <1 RK_PB3 1 &pcfg_pull_none>; }; emmc_bus8: emmc-bus8 { rockchip,pins = /* emmc_d0 */ <1 RK_PA0 1 &pcfg_pull_up_4ma>, /* emmc_d1 */ <1 RK_PA1 1 &pcfg_pull_up_4ma>, /* emmc_d2 */ <1 RK_PA2 1 &pcfg_pull_up_4ma>, /* emmc_d3 */ <1 RK_PA3 1 &pcfg_pull_up_4ma>, /* emmc_d4 */ <1 RK_PA4 1 &pcfg_pull_up_4ma>, /* emmc_d5 */ <1 RK_PA5 1 &pcfg_pull_up_4ma>, /* emmc_d6 */ <1 RK_PA6 1 &pcfg_pull_up_4ma>, /* emmc_d7 */ <1 RK_PA7 1 &pcfg_pull_up_4ma>; }; emmc_pwren: emmc-pwren { rockchip,pins = <1 RK_PB0 1 &pcfg_pull_none>; }; emmc_cmd: emmc-cmd { rockchip,pins = <1 RK_PB2 1 &pcfg_pull_up_4ma>; }; }; gmac { rgmii_pins: rgmii-pins { rockchip,pins = /* rgmii_txen */ <2 RK_PA1 2 &pcfg_pull_none_4ma>, /* rgmii_txd1 */ <2 RK_PA2 2 &pcfg_pull_none_4ma>, /* rgmii_txd0 */ <2 RK_PA3 2 &pcfg_pull_none_4ma>, /* rgmii_rxd0 */ <2 RK_PA4 2 &pcfg_pull_none>, /* rgmii_rxd1 */ <2 RK_PA5 2 &pcfg_pull_none>, /* rgmii_rxdv */ <2 RK_PA7 2 &pcfg_pull_none>, /* rgmii_mdio */ <2 RK_PB0 2 &pcfg_pull_none_2ma>, /* rgmii_mdc */ <2 RK_PB2 2 &pcfg_pull_none_2ma>, /* rgmii_txd3 */ <2 RK_PB3 2 &pcfg_pull_none_4ma>, /* rgmii_txd2 */ <2 RK_PB4 2 &pcfg_pull_none_4ma>, /* rgmii_rxd2 */ <2 RK_PB5 2 &pcfg_pull_none>, /* rgmii_rxd3 */ <2 RK_PB6 2 &pcfg_pull_none>, /* rgmii_clk */ <2 RK_PB7 2 &pcfg_pull_none>, /* rgmii_txclk */ <2 RK_PC1 2 &pcfg_pull_none_4ma>, /* rgmii_rxclk */ <2 RK_PC2 2 &pcfg_pull_none>; }; rmii_pins: rmii-pins { rockchip,pins = /* rmii_txen */ <2 RK_PA1 2 &pcfg_pull_none_4ma>, /* rmii_txd1 */ <2 RK_PA2 2 &pcfg_pull_none_4ma>, /* rmii_txd0 */ <2 RK_PA3 2 &pcfg_pull_none_4ma>, /* rmii_rxd0 */ <2 RK_PA4 2 &pcfg_pull_none>, /* rmii_rxd1 */ <2 RK_PA5 2 &pcfg_pull_none>, /* rmii_rxer */ <2 RK_PA6 2 &pcfg_pull_none>, /* rmii_rxdv */ <2 RK_PA7 2 &pcfg_pull_none>, /* rmii_mdio */ <2 RK_PB0 2 &pcfg_pull_none_2ma>, /* rmii_mdc */ <2 RK_PB2 2 &pcfg_pull_none_2ma>, /* rmii_clk */ <2 RK_PB7 2 &pcfg_pull_none>; }; }; i2c0 { i2c0_xfer: i2c0-xfer { rockchip,pins = /* i2c0_sda */ <0 RK_PB1 1 &pcfg_pull_none_2ma_smt>, /* i2c0_scl */ <0 RK_PB0 1 &pcfg_pull_none_2ma_smt>; }; }; i2c1 { i2c1_xfer: i2c1-xfer { rockchip,pins = /* i2c1_sda */ <0 RK_PC1 1 &pcfg_pull_none_2ma_smt>, /* i2c1_scl */ <0 RK_PC0 1 &pcfg_pull_none_2ma_smt>; }; }; i2c2m0 { i2c2m0_xfer: i2c2m0-xfer { rockchip,pins = /* i2c2m0_sda */ <3 RK_PB4 2 &pcfg_pull_none_2ma_smt>, /* i2c2m0_scl */ <3 RK_PB3 2 &pcfg_pull_none_2ma_smt>; }; }; i2c2m1 { i2c2m1_xfer: i2c2m1-xfer { rockchip,pins = /* i2c2m1_sda */ <1 RK_PB5 2 &pcfg_pull_none_2ma_smt>, /* i2c2m1_scl */ <1 RK_PB4 2 &pcfg_pull_none_2ma_smt>; }; }; i2c3 { i2c3_xfer: i2c3-xfer { rockchip,pins = /* i2c3_sda */ <2 RK_PD1 1 &pcfg_pull_none_2ma_smt>, /* i2c3_scl */ <2 RK_PD0 1 &pcfg_pull_none_2ma_smt>; }; }; i2c4 { i2c4_xfer: i2c4-xfer { rockchip,pins = /* i2c4_sda */ <3 RK_PC3 3 &pcfg_pull_none_2ma_smt>, /* i2c4_scl */ <3 RK_PC2 3 &pcfg_pull_none_2ma_smt>; }; }; i2c5 { i2c5_xfer: i2c5-xfer { rockchip,pins = /* i2c5_sda */ <4 RK_PC2 1 &pcfg_pull_none_2ma_smt>, /* i2c5_scl */ <4 RK_PC1 1 &pcfg_pull_none_2ma_smt>; }; }; i2s1 { i2s1_2ch_lrck: i2s1-2ch-lrck { rockchip,pins = <3 RK_PA0 1 &pcfg_pull_none_2ma>; }; i2s1_2ch_sclk: i2s1-2ch-sclk { rockchip,pins = <3 RK_PA1 1 &pcfg_pull_none_2ma>; }; i2s1_2ch_mclk: i2s1-2ch-mclk { rockchip,pins = <3 RK_PA2 1 &pcfg_pull_none_2ma>; }; i2s1_2ch_sdo: i2s1-2ch-sdo { rockchip,pins = <3 RK_PA3 1 &pcfg_pull_none_2ma>; }; i2s1_2ch_sdi: i2s1-2ch-sdi { rockchip,pins = <3 RK_PA4 1 &pcfg_pull_none_2ma>; }; }; i2s0 { i2s0_8ch_sdi3: i2s0-8ch-sdi3 { rockchip,pins = <3 RK_PA5 1 &pcfg_pull_none_2ma>; }; i2s0_8ch_sdi2: i2s0-8ch-sdi2 { rockchip,pins = <3 RK_PA6 1 &pcfg_pull_none_2ma>; }; i2s0_8ch_sdi1: i2s0-8ch-sdi1 { rockchip,pins = <3 RK_PA7 1 &pcfg_pull_none_2ma>; }; i2s0_8ch_sclkrx: i2s0-8ch-sclkrx { rockchip,pins = <3 RK_PB0 1 &pcfg_pull_none_2ma>; }; i2s0_8ch_lrckrx: i2s0-8ch-lrckrx { rockchip,pins = <3 RK_PB1 1 &pcfg_pull_none_2ma>; }; i2s0_8ch_sdo3: i2s0-8ch-sdo3 { rockchip,pins = <3 RK_PB2 1 &pcfg_pull_none_2ma>; }; i2s0_8ch_sdo2: i2s0-8ch-sdo2 { rockchip,pins = <3 RK_PB3 1 &pcfg_pull_none_2ma>; }; i2s0_8ch_sdo1: i2s0-8ch-sdo1 { rockchip,pins = <3 RK_PB4 1 &pcfg_pull_none_2ma>; }; i2s0_8ch_mclk: i2s0-8ch-mclk { rockchip,pins = <3 RK_PB5 1 &pcfg_pull_none_2ma>; }; i2s0_8ch_lrcktx: i2s0-8ch-lrcktx { rockchip,pins = <3 RK_PB6 1 &pcfg_pull_none_2ma>; }; i2s0_8ch_sclktx: i2s0-8ch-sclktx { rockchip,pins = <3 RK_PB7 1 &pcfg_pull_none_2ma>; }; i2s0_8ch_sdo0: i2s0-8ch-sdo0 { rockchip,pins = <3 RK_PC0 1 &pcfg_pull_none_2ma>; }; i2s0_8ch_sdi0: i2s0-8ch-sdi0 { rockchip,pins = <3 RK_PC1 1 &pcfg_pull_none_2ma>; }; }; lcdc { lcdc_rgb_dclk_pin: lcdc-rgb-dclk-pin { rockchip,pins = /* lcdc_clkm0 */ <2 RK_PC6 3 &pcfg_pull_none>; }; lcdc_rgb_den_pin: lcdc-rgb-den-pin { rockchip,pins = /* lcdc_denm0 */ <2 RK_PC7 3 &pcfg_pull_none>; }; lcdc_rgb_m0_hsync_pin: lcdc-rgb-m0-hsync-pin { rockchip,pins = /* lcdc_hsyncm0 */ <2 RK_PB2 3 &pcfg_pull_none>; }; lcdc_rgb_m0_vsync_pin: lcdc-rgb-m0-vsync-pin { rockchip,pins = /* lcdc_vsyncm0 */ <2 RK_PB3 3 &pcfg_pull_none>; }; lcdc_rgb_m1_hsync_pin: lcdc-rgb-m1-hsync-pin { rockchip,pins = /* lcdc_hsyncm1 */ <3 RK_PB2 3 &pcfg_pull_none>; }; lcdc_rgb_m1_vsync_pin: lcdc-rgb-m1-vsync-pin { rockchip,pins = /* lcdc_vsyncm1 */ <3 RK_PB3 3 &pcfg_pull_none>; }; lcdc_rgb666_data_pins: lcdc-rgb666-data-pins { rockchip,pins = /* lcdc_d0m0 */ <2 RK_PA2 3 &pcfg_pull_none>, /* lcdc_d1m0 */ <2 RK_PA3 3 &pcfg_pull_none>, /* lcdc_d2m0 */ <2 RK_PC2 3 &pcfg_pull_none>, /* lcdc_d3m0 */ <2 RK_PC3 3 &pcfg_pull_none>, /* lcdc_d4m0 */ <2 RK_PC4 3 &pcfg_pull_none>, /* lcdc_d5m0 */ <2 RK_PC5 3 &pcfg_pull_none>, /* lcdc_d6m0 */ <2 RK_PA0 3 &pcfg_pull_none>, /* lcdc_d7m0 */ <2 RK_PA1 3 &pcfg_pull_none>, /* lcdc_d8 */ <3 RK_PC2 1 &pcfg_pull_none>, /* lcdc_d9 */ <3 RK_PC3 1 &pcfg_pull_none>, /* lcdc_d10 */ <3 RK_PC4 1 &pcfg_pull_none>, /* lcdc_d11 */ <3 RK_PC5 1 &pcfg_pull_none>, /* lcdc_d12 */ <3 RK_PC6 1 &pcfg_pull_none>, /* lcdc_d13 */ <3 RK_PC7 1 &pcfg_pull_none>, /* lcdc_d14 */ <3 RK_PD0 1 &pcfg_pull_none>, /* lcdc_d15 */ <3 RK_PD1 1 &pcfg_pull_none>, /* lcdc_d16 */ <3 RK_PD2 1 &pcfg_pull_none>, /* lcdc_d17 */ <3 RK_PD3 1 &pcfg_pull_none>; }; lcdc_rgb565_data_pins: lcdc-rgb565-data-pins { rockchip,pins = /* lcdc_d0m0 */ <2 RK_PA2 3 &pcfg_pull_none>, /* lcdc_d1m0 */ <2 RK_PA3 3 &pcfg_pull_none>, /* lcdc_d2m0 */ <2 RK_PC2 3 &pcfg_pull_none>, /* lcdc_d3m0 */ <2 RK_PC3 3 &pcfg_pull_none>, /* lcdc_d4m0 */ <2 RK_PC4 3 &pcfg_pull_none>, /* lcdc_d5m0 */ <2 RK_PC5 3 &pcfg_pull_none>, /* lcdc_d6m0 */ <2 RK_PA0 3 &pcfg_pull_none>, /* lcdc_d7m0 */ <2 RK_PA1 3 &pcfg_pull_none>, /* lcdc_d8 */ <3 RK_PC2 1 &pcfg_pull_none>, /* lcdc_d9 */ <3 RK_PC3 1 &pcfg_pull_none>, /* lcdc_d10 */ <3 RK_PC4 1 &pcfg_pull_none>, /* lcdc_d11 */ <3 RK_PC5 1 &pcfg_pull_none>, /* lcdc_d12 */ <3 RK_PC6 1 &pcfg_pull_none>, /* lcdc_d13 */ <3 RK_PC7 1 &pcfg_pull_none>, /* lcdc_d14 */ <3 RK_PD0 1 &pcfg_pull_none>, /* lcdc_d15 */ <3 RK_PD1 1 &pcfg_pull_none>; }; }; pciusb { pciusb_pins: pciusb-pins { rockchip,pins = /* pciusb_debug0 */ <4 RK_PB4 3 &pcfg_pull_none>, /* pciusb_debug1 */ <4 RK_PB5 3 &pcfg_pull_none>, /* pciusb_debug2 */ <4 RK_PB6 3 &pcfg_pull_none>, /* pciusb_debug3 */ <4 RK_PB7 3 &pcfg_pull_none>, /* pciusb_debug4 */ <4 RK_PC0 3 &pcfg_pull_none>, /* pciusb_debug5 */ <4 RK_PC1 3 &pcfg_pull_none>, /* pciusb_debug6 */ <4 RK_PC2 3 &pcfg_pull_none>, /* pciusb_debug7 */ <4 RK_PC3 3 &pcfg_pull_none>; }; pcie_clkreq: pcie-clkreq { rockchip,pins = /* pcie_clkreqn_m1 */ <0 RK_PC6 1 &pcfg_pull_none >; }; }; pdm { pdm_clk: pdm-clk { rockchip,pins = /* pdm_clk0 */ <3 RK_PB0 2 &pcfg_pull_none_2ma>; }; pdm_sdi3: pdm-sdi3 { rockchip,pins = <3 RK_PA5 2 &pcfg_pull_none_2ma>; }; pdm_sdi2: pdm-sdi2 { rockchip,pins = <3 RK_PA6 2 &pcfg_pull_none_2ma>; }; pdm_sdi1: pdm-sdi1 { rockchip,pins = <3 RK_PA7 2 &pcfg_pull_none_2ma>; }; pdm_clk1: pdm-clk1 { rockchip,pins = <3 RK_PB1 2 &pcfg_pull_none_2ma>; }; pdm_sdi0: pdm-sdi0 { rockchip,pins = <3 RK_PC1 2 &pcfg_pull_none_2ma>; }; }; pwm0 { pwm0_pin: pwm0-pin { rockchip,pins = <0 RK_PB7 1 &pcfg_pull_none_2ma>; }; }; pwm1 { pwm1_pin: pwm1-pin { rockchip,pins = <0 RK_PC3 1 &pcfg_pull_none_2ma>; }; }; pwm2 { pwm2_pin: pwm2-pin { rockchip,pins = <0 RK_PC5 1 &pcfg_pull_none_2ma>; }; }; pwm3 { pwm3_pin: pwm3-pin { rockchip,pins = <0 RK_PC4 1 &pcfg_pull_none_2ma>; }; }; pwm4 { pwm4_pin: pwm4-pin { rockchip,pins = <1 RK_PB6 2 &pcfg_pull_none_2ma>; }; }; pwm5 { pwm5_pin: pwm5-pin { rockchip,pins = <1 RK_PB7 2 &pcfg_pull_none_2ma>; }; }; pwm6 { pwm6_pin: pwm6-pin { rockchip,pins = <3 RK_PA1 2 &pcfg_pull_none_2ma>; }; }; pwm7 { pwm7_pin: pwm7-pin { rockchip,pins = <3 RK_PA2 2 &pcfg_pull_none_2ma>; }; }; pwm8 { pwm8_pin: pwm8-pin { rockchip,pins = <3 RK_PD0 2 &pcfg_pull_none_2ma>; }; }; pwm9 { pwm9_pin: pwm9-pin { rockchip,pins = <3 RK_PD1 2 &pcfg_pull_none_2ma>; }; }; pwm10 { pwm10_pin: pwm10-pin { rockchip,pins = <3 RK_PD2 2 &pcfg_pull_none_2ma>; }; }; pwm11 { pwm11_pin: pwm11-pin { rockchip,pins = <3 RK_PD3 2 &pcfg_pull_none_2ma>; }; }; sdmmc0 { sdmmc0_bus4: sdmmc0-bus4 { rockchip,pins = /* sdmmc0_d0 */ <4 RK_PA2 1 &pcfg_pull_up_8ma>, /* sdmmc0_d1 */ <4 RK_PA3 1 &pcfg_pull_up_8ma>, /* sdmmc0_d2 */ <4 RK_PA4 1 &pcfg_pull_up_8ma>, /* sdmmc0_d3 */ <4 RK_PA5 1 &pcfg_pull_up_8ma>; }; sdmmc0_cmd: sdmmc0-cmd { rockchip,pins = <4 RK_PA0 1 &pcfg_pull_up_8ma>; }; sdmmc0_clk: sdmmc0-clk { rockchip,pins = <4 RK_PA1 1 &pcfg_pull_up_8ma>; }; sdmmc0_detn: sdmmc0-detn { rockchip,pins = <0 RK_PA3 1 &pcfg_pull_none>; }; }; sdmmc1 { sdmmc1_bus4: sdmmc1-bus4 { rockchip,pins = /* sdmmc1_d0 */ <4 RK_PB0 1 &pcfg_pull_up_4ma>, /* sdmmc1_d1 */ <4 RK_PB1 1 &pcfg_pull_up_4ma>, /* sdmmc1_d2 */ <4 RK_PB2 1 &pcfg_pull_up_4ma>, /* sdmmc1_d3 */ <4 RK_PB3 1 &pcfg_pull_up_4ma>; }; sdmmc1_cmd: sdmmc1-cmd { rockchip,pins = <4 RK_PA6 1 &pcfg_pull_up_4ma>; }; sdmmc1_clk: sdmmc1-clk { rockchip,pins = <4 RK_PA7 1 &pcfg_pull_up_4ma>; }; }; spi0 { spi0_mosi: spi0-mosi { rockchip,pins = <1 RK_PB4 1 &pcfg_pull_up_2ma>; }; spi0_miso: spi0-miso { rockchip,pins = <1 RK_PB5 1 &pcfg_pull_up_2ma>; }; spi0_csn: spi0-csn { rockchip,pins = <1 RK_PB6 1 &pcfg_pull_up_2ma>; }; spi0_clk: spi0-clk { rockchip,pins = <1 RK_PB7 1 &pcfg_pull_up_2ma>; }; spi0_mosi_hs: spi0-mosi-hs { rockchip,pins = <1 RK_PB4 1 &pcfg_pull_up_2ma>; }; spi0_miso_hs: spi0-miso-hs { rockchip,pins = <1 RK_PB5 1 &pcfg_pull_up_2ma>; }; spi0_csn_hs: spi0-csn-hs { rockchip,pins = <1 RK_PB6 1 &pcfg_pull_up_2ma>; }; spi0_clk_hs: spi0-clk-hs { rockchip,pins = <1 RK_PB7 1 &pcfg_pull_up_2ma>; }; }; spi1m0 { spi1_clk: spi1-clk { rockchip,pins = <4 RK_PB4 2 &pcfg_pull_up_2ma>; }; spi1_mosi: spi1-mosi { rockchip,pins = <4 RK_PB5 2 &pcfg_pull_up_2ma>; }; spi1_csn0: spi1-csn0 { rockchip,pins = <4 RK_PB6 2 &pcfg_pull_up_2ma>; }; spi1_miso: spi1-miso { rockchip,pins = <4 RK_PB7 2 &pcfg_pull_up_2ma>; }; spi1_csn1: spi1-csn1 { rockchip,pins = <4 RK_PC0 2 &pcfg_pull_up_2ma>; }; spi1_clk_hs: spi1-clk-hs { rockchip,pins = <4 RK_PB4 2 &pcfg_pull_up_2ma>; }; spi1_mosi_hs: spi1-mosi-hs { rockchip,pins = <4 RK_PB5 2 &pcfg_pull_up_2ma>; }; spi1_csn0_hs: spi1-csn0-hs { rockchip,pins = <4 RK_PB6 2 &pcfg_pull_up_2ma>; }; spi1_miso_hs: spi1-miso-hs { rockchip,pins = <4 RK_PB7 2 &pcfg_pull_up_2ma>; }; spi1_csn1_hs: spi1-csn1-hs { rockchip,pins = <4 RK_PC0 2 &pcfg_pull_up_2ma>; }; }; spi1m1 { spi1m1_clk: spi1m1-clk { rockchip,pins = <3 RK_PC7 3 &pcfg_pull_up_2ma>; }; spi1m1_mosi: spi1m1-mosi { rockchip,pins = <3 RK_PD0 3 &pcfg_pull_up_2ma>; }; spi1m1_csn0: spi1m1-csn0 { rockchip,pins = <3 RK_PD1 3 &pcfg_pull_up_2ma>; }; spi1m1_miso: spi1m1-miso { rockchip,pins = <3 RK_PD2 3 &pcfg_pull_up_2ma>; }; spi1m1_csn1: spi1m1-csn1 { rockchip,pins = <3 RK_PD3 3 &pcfg_pull_up_2ma>; }; spi1m1_clk_hs: spi1m1-clk-hs { rockchip,pins = <3 RK_PC7 3 &pcfg_pull_up_2ma>; }; spi1m1_mosi_hs: spi1m1-mosi-hs { rockchip,pins = <3 RK_PD0 3 &pcfg_pull_up_2ma>; }; spi1m1_csn0_hs: spi1m1-csn0-hs { rockchip,pins = <3 RK_PD1 3 &pcfg_pull_up_2ma>; }; spi1m1_miso_hs: spi1m1-miso-hs { rockchip,pins = <3 RK_PD2 3 &pcfg_pull_up_2ma>; }; spi1m1_csn1_hs: spi1m1-csn1-hs { rockchip,pins = <3 RK_PD3 3 &pcfg_pull_up_2ma>; }; }; spi2m0 { spi2m0_miso: spi2m0-miso { rockchip,pins = <1 RK_PA6 2 &pcfg_pull_up_2ma>; }; spi2m0_clk: spi2m0-clk { rockchip,pins = <1 RK_PA7 2 &pcfg_pull_up_2ma>; }; spi2m0_mosi: spi2m0-mosi { rockchip,pins = <1 RK_PB0 2 &pcfg_pull_up_2ma>; }; spi2m0_csn: spi2m0-csn { rockchip,pins = <1 RK_PB1 2 &pcfg_pull_up_2ma>; }; spi2m0_miso_hs: spi2m0-miso-hs { rockchip,pins = <1 RK_PA6 2 &pcfg_pull_up_2ma>; }; spi2m0_clk_hs: spi2m0-clk-hs { rockchip,pins = <1 RK_PA7 2 &pcfg_pull_up_2ma>; }; spi2m0_mosi_hs: spi2m0-mosi-hs { rockchip,pins = <1 RK_PB0 2 &pcfg_pull_up_2ma>; }; spi2m0_csn_hs: spi2m0-csn-hs { rockchip,pins = <1 RK_PB1 2 &pcfg_pull_up_2ma>; }; }; spi2m1 { spi2m1_miso: spi2m1-miso { rockchip,pins = <2 RK_PA4 3 &pcfg_pull_up_2ma>; }; spi2m1_clk: spi2m1-clk { rockchip,pins = <2 RK_PA5 3 &pcfg_pull_up_2ma>; }; spi2m1_mosi: spi2m1-mosi { rockchip,pins = <2 RK_PA6 3 &pcfg_pull_up_2ma>; }; spi2m1_csn: spi2m1-csn { rockchip,pins = <2 RK_PA7 3 &pcfg_pull_up_2ma>; }; spi2m1_miso_hs: spi2m1-miso-hs { rockchip,pins = <2 RK_PA4 3 &pcfg_pull_up_2ma>; }; spi2m1_clk_hs: spi2m1-clk-hs { rockchip,pins = <2 RK_PA5 3 &pcfg_pull_up_2ma>; }; spi2m1_mosi_hs: spi2m1-mosi-hs { rockchip,pins = <2 RK_PA6 3 &pcfg_pull_up_2ma>; }; spi2m1_csn_hs: spi2m1-csn-hs { rockchip,pins = <2 RK_PA7 3 &pcfg_pull_up_2ma>; }; }; uart0 { uart0_xfer: uart0-xfer { rockchip,pins = /* uart0_rx */ <0 RK_PB3 1 &pcfg_pull_up_2ma>, /* uart0_tx */ <0 RK_PB2 1 &pcfg_pull_up_2ma>; }; uart0_cts: uart0-cts { rockchip,pins = <0 RK_PB4 1 &pcfg_pull_none>; }; uart0_rts: uart0-rts { rockchip,pins = <0 RK_PB5 1 &pcfg_pull_none>; }; }; uart1 { uart1m0_xfer: uart1m0-xfer { rockchip,pins = /* uart1_rxm0 */ <4 RK_PB0 2 &pcfg_pull_up_2ma>, /* uart1_txm0 */ <4 RK_PB1 2 &pcfg_pull_up_2ma>; }; uart1m1_xfer: uart1m1-xfer { rockchip,pins = /* uart1_rxm1 */ <1 RK_PB4 3 &pcfg_pull_up_2ma>, /* uart1_txm1 */ <1 RK_PB5 3 &pcfg_pull_up_2ma>; }; uart1_cts: uart1-cts { rockchip,pins = <4 RK_PB2 2 &pcfg_pull_none>; }; uart1_rts: uart1-rts { rockchip,pins = <4 RK_PB3 2 &pcfg_pull_none>; }; }; uart2 { uart2m0_xfer: uart2m0-xfer { rockchip,pins = /* uart2_rxm0 */ <4 RK_PA3 2 &pcfg_pull_up_2ma>, /* uart2_txm0 */ <4 RK_PA2 2 &pcfg_pull_up_2ma>; }; uart2m1_xfer: uart2m1-xfer { rockchip,pins = /* uart2_rxm1 */ <2 RK_PD1 2 &pcfg_pull_up_2ma>, /* uart2_txm1 */ <2 RK_PD0 2 &pcfg_pull_up_2ma>; }; uart2m2_xfer: uart2m2-xfer { rockchip,pins = /* uart2_rxm2 */ <3 RK_PA4 2 &pcfg_pull_up_2ma>, /* uart2_txm2 */ <3 RK_PA3 2 &pcfg_pull_up_2ma>; }; }; uart3 { uart3m0_xfer: uart3m0-xfer { rockchip,pins = /* uart3_rxm0 */ <0 RK_PC4 2 &pcfg_pull_up_2ma>, /* uart3_txm0 */ <0 RK_PC3 2 &pcfg_pull_up_2ma>; }; uart3_ctsm0: uart3-ctsm0 { rockchip,pins = <0 RK_PC6 2 &pcfg_pull_none>; }; uart3_rtsm0: uart3-rtsm0 { rockchip,pins = <0 RK_PC7 2 &pcfg_pull_none>; }; }; uart4 { uart4_xfer: uart4-xfer { rockchip,pins = /* uart4_rx */ <4 RK_PB4 1 &pcfg_pull_up_2ma>, /* uart4_tx */ <4 RK_PB5 1 &pcfg_pull_up_2ma>; }; uart4_cts: uart4-cts { rockchip,pins = <4 RK_PB6 1 &pcfg_pull_none>; }; uart4_rts: uart4-rts { rockchip,pins = <4 RK_PB7 1 &pcfg_pull_none>; }; }; uart5 { uart5_xfer: uart5-xfer { rockchip,pins = /* uart5_rx */ <3 RK_PC3 2 &pcfg_pull_up_2ma>, /* uart5_tx */ <3 RK_PC2 2 &pcfg_pull_up_2ma>; }; }; uart6 { uart6_xfer: uart6-xfer { rockchip,pins = /* uart6_rx */ <3 RK_PC5 2 &pcfg_pull_up_2ma>, /* uart6_tx */ <3 RK_PC4 2 &pcfg_pull_up_2ma>; }; }; uart7 { uart7_xfer: uart7-xfer { rockchip,pins = /* uart7_rx */ <3 RK_PC7 2 &pcfg_pull_up_2ma>, /* uart7_tx */ <3 RK_PC6 2 &pcfg_pull_up_2ma>; }; }; tsadc { tsadc_otp_gpio: tsadc-otp-gpio { rockchip,pins = <0 RK_PA6 0 &pcfg_pull_none>; }; tsadc_otp_out: tsadc-otp-out { rockchip,pins = <0 RK_PA6 2 &pcfg_pull_none>; }; }; xin32k { clkin_32k: clkin-32k { rockchip,pins = <0 RK_PC2 1 &pcfg_pull_none>; }; clkout_32k: clkout-32k { rockchip,pins = <0 RK_PC2 1 &pcfg_pull_none>; }; }; }; };