101610a24SLiang Chen// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 201610a24SLiang Chen/* 301610a24SLiang Chen * Copyright (c) 2021 Rockchip Electronics Co., Ltd. 401610a24SLiang Chen * 501610a24SLiang Chen */ 601610a24SLiang Chen 701610a24SLiang Chen/dts-v1/; 801610a24SLiang Chen#include <dt-bindings/gpio/gpio.h> 9406c607eSMichael Riesch#include <dt-bindings/leds/common.h> 1001610a24SLiang Chen#include <dt-bindings/pinctrl/rockchip.h> 11991b3d12SSascha Hauer#include <dt-bindings/soc/rockchip,vop2.h> 1201610a24SLiang Chen#include "rk3568.dtsi" 1301610a24SLiang Chen 1401610a24SLiang Chen/ { 1501610a24SLiang Chen model = "Rockchip RK3568 EVB1 DDR4 V10 Board"; 1601610a24SLiang Chen compatible = "rockchip,rk3568-evb1-v10", "rockchip,rk3568"; 1701610a24SLiang Chen 18fc57d783SMichael Riesch aliases { 19fc57d783SMichael Riesch ethernet0 = &gmac0; 20fc57d783SMichael Riesch ethernet1 = &gmac1; 212a068e19SMichael Riesch mmc0 = &sdmmc0; 228a599b56SMichael Riesch mmc1 = &sdhci; 23fc57d783SMichael Riesch }; 24fc57d783SMichael Riesch 2501610a24SLiang Chen chosen: chosen { 2601610a24SLiang Chen stdout-path = "serial2:1500000n8"; 2701610a24SLiang Chen }; 2801610a24SLiang Chen 2901610a24SLiang Chen dc_12v: dc-12v { 3001610a24SLiang Chen compatible = "regulator-fixed"; 3101610a24SLiang Chen regulator-name = "dc_12v"; 3201610a24SLiang Chen regulator-always-on; 3301610a24SLiang Chen regulator-boot-on; 3401610a24SLiang Chen regulator-min-microvolt = <12000000>; 3501610a24SLiang Chen regulator-max-microvolt = <12000000>; 3601610a24SLiang Chen }; 3701610a24SLiang Chen 38991b3d12SSascha Hauer hdmi-con { 39991b3d12SSascha Hauer compatible = "hdmi-connector"; 40991b3d12SSascha Hauer type = "a"; 41991b3d12SSascha Hauer 42991b3d12SSascha Hauer port { 43991b3d12SSascha Hauer hdmi_con_in: endpoint { 44991b3d12SSascha Hauer remote-endpoint = <&hdmi_out_con>; 45991b3d12SSascha Hauer }; 46991b3d12SSascha Hauer }; 47991b3d12SSascha Hauer }; 48991b3d12SSascha Hauer 49406c607eSMichael Riesch leds { 50406c607eSMichael Riesch compatible = "gpio-leds"; 51406c607eSMichael Riesch 52406c607eSMichael Riesch led_work: led-0 { 53406c607eSMichael Riesch gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>; 54406c607eSMichael Riesch function = LED_FUNCTION_HEARTBEAT; 55406c607eSMichael Riesch color = <LED_COLOR_ID_BLUE>; 56406c607eSMichael Riesch linux,default-trigger = "heartbeat"; 57406c607eSMichael Riesch pinctrl-names = "default"; 58406c607eSMichael Riesch pinctrl-0 = <&led_work_en>; 59406c607eSMichael Riesch }; 60406c607eSMichael Riesch }; 61406c607eSMichael Riesch 623e4c629cSMichael Riesch rk809-sound { 633e4c629cSMichael Riesch compatible = "simple-audio-card"; 643e4c629cSMichael Riesch simple-audio-card,format = "i2s"; 653e4c629cSMichael Riesch simple-audio-card,name = "Analog RK809"; 663e4c629cSMichael Riesch simple-audio-card,mclk-fs = <256>; 673e4c629cSMichael Riesch 683e4c629cSMichael Riesch simple-audio-card,cpu { 693e4c629cSMichael Riesch sound-dai = <&i2s1_8ch>; 703e4c629cSMichael Riesch }; 713e4c629cSMichael Riesch simple-audio-card,codec { 723e4c629cSMichael Riesch sound-dai = <&rk809>; 733e4c629cSMichael Riesch }; 743e4c629cSMichael Riesch }; 753e4c629cSMichael Riesch 7601610a24SLiang Chen vcc3v3_sys: vcc3v3-sys { 7701610a24SLiang Chen compatible = "regulator-fixed"; 7801610a24SLiang Chen regulator-name = "vcc3v3_sys"; 7901610a24SLiang Chen regulator-always-on; 8001610a24SLiang Chen regulator-boot-on; 8101610a24SLiang Chen regulator-min-microvolt = <3300000>; 8201610a24SLiang Chen regulator-max-microvolt = <3300000>; 8301610a24SLiang Chen vin-supply = <&dc_12v>; 8401610a24SLiang Chen }; 8501610a24SLiang Chen 8601610a24SLiang Chen vcc5v0_sys: vcc5v0-sys { 8701610a24SLiang Chen compatible = "regulator-fixed"; 8801610a24SLiang Chen regulator-name = "vcc5v0_sys"; 8901610a24SLiang Chen regulator-always-on; 9001610a24SLiang Chen regulator-boot-on; 9101610a24SLiang Chen regulator-min-microvolt = <5000000>; 9201610a24SLiang Chen regulator-max-microvolt = <5000000>; 9301610a24SLiang Chen vin-supply = <&dc_12v>; 9401610a24SLiang Chen }; 9501610a24SLiang Chen 96e49e24d7SMichael Riesch vcc5v0_usb: vcc5v0-usb { 97e49e24d7SMichael Riesch compatible = "regulator-fixed"; 98e49e24d7SMichael Riesch regulator-name = "vcc5v0_usb"; 99e49e24d7SMichael Riesch regulator-always-on; 100e49e24d7SMichael Riesch regulator-boot-on; 101e49e24d7SMichael Riesch regulator-min-microvolt = <5000000>; 102e49e24d7SMichael Riesch regulator-max-microvolt = <5000000>; 103e49e24d7SMichael Riesch vin-supply = <&dc_12v>; 104e49e24d7SMichael Riesch }; 105e49e24d7SMichael Riesch 106e49e24d7SMichael Riesch vcc5v0_usb_host: vcc5v0-usb-host { 107e49e24d7SMichael Riesch compatible = "regulator-fixed"; 108e49e24d7SMichael Riesch enable-active-high; 109e49e24d7SMichael Riesch gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>; 110e49e24d7SMichael Riesch pinctrl-names = "default"; 111e49e24d7SMichael Riesch pinctrl-0 = <&vcc5v0_usb_host_en>; 112e49e24d7SMichael Riesch regulator-name = "vcc5v0_usb_host"; 113e49e24d7SMichael Riesch regulator-min-microvolt = <5000000>; 114e49e24d7SMichael Riesch regulator-max-microvolt = <5000000>; 115e49e24d7SMichael Riesch vin-supply = <&vcc5v0_usb>; 116e49e24d7SMichael Riesch }; 117e49e24d7SMichael Riesch 118d6cfb110SMichael Riesch vcc5v0_usb_otg: vcc5v0-usb-otg { 119d6cfb110SMichael Riesch compatible = "regulator-fixed"; 120d6cfb110SMichael Riesch enable-active-high; 121d6cfb110SMichael Riesch gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>; 122d6cfb110SMichael Riesch pinctrl-names = "default"; 123d6cfb110SMichael Riesch pinctrl-0 = <&vcc5v0_usb_otg_en>; 124d6cfb110SMichael Riesch regulator-name = "vcc5v0_usb_otg"; 125d6cfb110SMichael Riesch regulator-min-microvolt = <5000000>; 126d6cfb110SMichael Riesch regulator-max-microvolt = <5000000>; 127d6cfb110SMichael Riesch vin-supply = <&vcc5v0_usb>; 128d6cfb110SMichael Riesch }; 129d6cfb110SMichael Riesch 13001610a24SLiang Chen vcc3v3_lcd0_n: vcc3v3-lcd0-n { 13101610a24SLiang Chen compatible = "regulator-fixed"; 13201610a24SLiang Chen regulator-name = "vcc3v3_lcd0_n"; 1339ade1ab4SMichael Riesch regulator-min-microvolt = <3300000>; 1349ade1ab4SMichael Riesch regulator-max-microvolt = <3300000>; 1359ade1ab4SMichael Riesch enable-active-high; 1369ade1ab4SMichael Riesch gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; 1379ade1ab4SMichael Riesch vin-supply = <&vcc3v3_sys>; 1389ade1ab4SMichael Riesch pinctrl-names = "default"; 1399ade1ab4SMichael Riesch pinctrl-0 = <&vcc3v3_lcd0_n_en>; 14001610a24SLiang Chen 14101610a24SLiang Chen regulator-state-mem { 14201610a24SLiang Chen regulator-off-in-suspend; 14301610a24SLiang Chen }; 14401610a24SLiang Chen }; 14501610a24SLiang Chen 14601610a24SLiang Chen vcc3v3_lcd1_n: vcc3v3-lcd1-n { 14701610a24SLiang Chen compatible = "regulator-fixed"; 14801610a24SLiang Chen regulator-name = "vcc3v3_lcd1_n"; 1499ade1ab4SMichael Riesch regulator-min-microvolt = <3300000>; 1509ade1ab4SMichael Riesch regulator-max-microvolt = <3300000>; 1519ade1ab4SMichael Riesch enable-active-high; 1529ade1ab4SMichael Riesch gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>; 1539ade1ab4SMichael Riesch vin-supply = <&vcc3v3_sys>; 1549ade1ab4SMichael Riesch pinctrl-names = "default"; 1559ade1ab4SMichael Riesch pinctrl-0 = <&vcc3v3_lcd1_n_en>; 15601610a24SLiang Chen 15701610a24SLiang Chen regulator-state-mem { 15801610a24SLiang Chen regulator-off-in-suspend; 15901610a24SLiang Chen }; 16001610a24SLiang Chen }; 16101610a24SLiang Chen}; 16201610a24SLiang Chen 163d6cfb110SMichael Riesch&combphy0 { 164d6cfb110SMichael Riesch status = "okay"; 165d6cfb110SMichael Riesch}; 166d6cfb110SMichael Riesch 167d6cfb110SMichael Riesch&combphy1 { 168d6cfb110SMichael Riesch status = "okay"; 169d6cfb110SMichael Riesch}; 170d6cfb110SMichael Riesch 171738bbac5SMichael Riesch&cpu0 { 172738bbac5SMichael Riesch cpu-supply = <&vdd_cpu>; 173738bbac5SMichael Riesch}; 174738bbac5SMichael Riesch 175738bbac5SMichael Riesch&cpu1 { 176738bbac5SMichael Riesch cpu-supply = <&vdd_cpu>; 177738bbac5SMichael Riesch}; 178738bbac5SMichael Riesch 179738bbac5SMichael Riesch&cpu2 { 180738bbac5SMichael Riesch cpu-supply = <&vdd_cpu>; 181738bbac5SMichael Riesch}; 182738bbac5SMichael Riesch 183738bbac5SMichael Riesch&cpu3 { 184738bbac5SMichael Riesch cpu-supply = <&vdd_cpu>; 185738bbac5SMichael Riesch}; 186738bbac5SMichael Riesch 187fc57d783SMichael Riesch&gmac0 { 188fc57d783SMichael Riesch assigned-clocks = <&cru SCLK_GMAC0_RX_TX>, <&cru SCLK_GMAC0>; 189fc57d783SMichael Riesch assigned-clock-parents = <&cru SCLK_GMAC0_RGMII_SPEED>; 190fc57d783SMichael Riesch assigned-clock-rates = <0>, <125000000>; 191fc57d783SMichael Riesch clock_in_out = "output"; 192fc57d783SMichael Riesch phy-handle = <&rgmii_phy0>; 193fc57d783SMichael Riesch phy-mode = "rgmii-id"; 194fc57d783SMichael Riesch pinctrl-names = "default"; 195fc57d783SMichael Riesch pinctrl-0 = <&gmac0_miim 196fc57d783SMichael Riesch &gmac0_tx_bus2 197fc57d783SMichael Riesch &gmac0_rx_bus2 198fc57d783SMichael Riesch &gmac0_rgmii_clk 199fc57d783SMichael Riesch &gmac0_rgmii_bus>; 200fc57d783SMichael Riesch status = "okay"; 201fc57d783SMichael Riesch}; 202fc57d783SMichael Riesch 203fc57d783SMichael Riesch&gmac1 { 204fc57d783SMichael Riesch assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>; 205fc57d783SMichael Riesch assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>; 206fc57d783SMichael Riesch assigned-clock-rates = <0>, <125000000>; 207fc57d783SMichael Riesch clock_in_out = "output"; 208fc57d783SMichael Riesch phy-handle = <&rgmii_phy1>; 209fc57d783SMichael Riesch phy-mode = "rgmii-id"; 210fc57d783SMichael Riesch pinctrl-names = "default"; 211fc57d783SMichael Riesch pinctrl-0 = <&gmac1m1_miim 212fc57d783SMichael Riesch &gmac1m1_tx_bus2 213fc57d783SMichael Riesch &gmac1m1_rx_bus2 214fc57d783SMichael Riesch &gmac1m1_rgmii_clk 215fc57d783SMichael Riesch &gmac1m1_rgmii_bus>; 216fc57d783SMichael Riesch status = "okay"; 217fc57d783SMichael Riesch}; 218fc57d783SMichael Riesch 2190f546cd6SMichael Riesch&gpu { 2200f546cd6SMichael Riesch mali-supply = <&vdd_gpu>; 2210f546cd6SMichael Riesch status = "okay"; 2220f546cd6SMichael Riesch}; 2230f546cd6SMichael Riesch 224991b3d12SSascha Hauer&hdmi { 225991b3d12SSascha Hauer avdd-0v9-supply = <&vdda0v9_image>; 226991b3d12SSascha Hauer avdd-1v8-supply = <&vcca1v8_image>; 227991b3d12SSascha Hauer status = "okay"; 228991b3d12SSascha Hauer}; 229991b3d12SSascha Hauer 230991b3d12SSascha Hauer&hdmi_in { 231991b3d12SSascha Hauer hdmi_in_vp0: endpoint { 232991b3d12SSascha Hauer remote-endpoint = <&vp0_out_hdmi>; 233991b3d12SSascha Hauer }; 234991b3d12SSascha Hauer}; 235991b3d12SSascha Hauer 236991b3d12SSascha Hauer&hdmi_out { 237991b3d12SSascha Hauer hdmi_out_con: endpoint { 238991b3d12SSascha Hauer remote-endpoint = <&hdmi_con_in>; 239991b3d12SSascha Hauer }; 240991b3d12SSascha Hauer}; 241991b3d12SSascha Hauer 242ea452bc0SMichael Riesch&hdmi_sound { 243ea452bc0SMichael Riesch status = "okay"; 244ea452bc0SMichael Riesch}; 245ea452bc0SMichael Riesch 24614f1c34eSMichael Riesch&i2c0 { 24714f1c34eSMichael Riesch status = "okay"; 24814f1c34eSMichael Riesch 249738bbac5SMichael Riesch vdd_cpu: regulator@1c { 250738bbac5SMichael Riesch compatible = "tcs,tcs4525"; 251738bbac5SMichael Riesch reg = <0x1c>; 252738bbac5SMichael Riesch fcs,suspend-voltage-selector = <1>; 253738bbac5SMichael Riesch regulator-name = "vdd_cpu"; 254738bbac5SMichael Riesch regulator-always-on; 255738bbac5SMichael Riesch regulator-boot-on; 256738bbac5SMichael Riesch regulator-min-microvolt = <800000>; 257738bbac5SMichael Riesch regulator-max-microvolt = <1150000>; 258738bbac5SMichael Riesch regulator-ramp-delay = <2300>; 259738bbac5SMichael Riesch vin-supply = <&vcc5v0_sys>; 260738bbac5SMichael Riesch 261738bbac5SMichael Riesch regulator-state-mem { 262738bbac5SMichael Riesch regulator-off-in-suspend; 263738bbac5SMichael Riesch }; 264738bbac5SMichael Riesch }; 265738bbac5SMichael Riesch 26614f1c34eSMichael Riesch rk809: pmic@20 { 26714f1c34eSMichael Riesch compatible = "rockchip,rk809"; 26814f1c34eSMichael Riesch reg = <0x20>; 26914f1c34eSMichael Riesch interrupt-parent = <&gpio0>; 27014f1c34eSMichael Riesch interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>; 2713e4c629cSMichael Riesch assigned-clocks = <&cru I2S1_MCLKOUT_TX>; 2723e4c629cSMichael Riesch assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>; 27314f1c34eSMichael Riesch #clock-cells = <1>; 2743e4c629cSMichael Riesch clock-names = "mclk"; 2753e4c629cSMichael Riesch clocks = <&cru I2S1_MCLKOUT_TX>; 27614f1c34eSMichael Riesch pinctrl-names = "default"; 2773e4c629cSMichael Riesch pinctrl-0 = <&pmic_int>, <&i2s1m0_mclk>; 27814f1c34eSMichael Riesch rockchip,system-power-controller; 2793e4c629cSMichael Riesch #sound-dai-cells = <0>; 28014f1c34eSMichael Riesch vcc1-supply = <&vcc3v3_sys>; 28114f1c34eSMichael Riesch vcc2-supply = <&vcc3v3_sys>; 28214f1c34eSMichael Riesch vcc3-supply = <&vcc3v3_sys>; 28314f1c34eSMichael Riesch vcc4-supply = <&vcc3v3_sys>; 28414f1c34eSMichael Riesch vcc5-supply = <&vcc3v3_sys>; 28514f1c34eSMichael Riesch vcc6-supply = <&vcc3v3_sys>; 28614f1c34eSMichael Riesch vcc7-supply = <&vcc3v3_sys>; 28714f1c34eSMichael Riesch vcc8-supply = <&vcc3v3_sys>; 28814f1c34eSMichael Riesch vcc9-supply = <&vcc3v3_sys>; 28914f1c34eSMichael Riesch wakeup-source; 29014f1c34eSMichael Riesch 29114f1c34eSMichael Riesch regulators { 29214f1c34eSMichael Riesch vdd_logic: DCDC_REG1 { 29314f1c34eSMichael Riesch regulator-name = "vdd_logic"; 29414f1c34eSMichael Riesch regulator-always-on; 29514f1c34eSMichael Riesch regulator-boot-on; 29614f1c34eSMichael Riesch regulator-initial-mode = <0x2>; 29714f1c34eSMichael Riesch regulator-min-microvolt = <500000>; 29814f1c34eSMichael Riesch regulator-max-microvolt = <1350000>; 29914f1c34eSMichael Riesch regulator-ramp-delay = <6001>; 30014f1c34eSMichael Riesch 30114f1c34eSMichael Riesch regulator-state-mem { 30214f1c34eSMichael Riesch regulator-off-in-suspend; 30314f1c34eSMichael Riesch }; 30414f1c34eSMichael Riesch }; 30514f1c34eSMichael Riesch 30614f1c34eSMichael Riesch vdd_gpu: DCDC_REG2 { 30714f1c34eSMichael Riesch regulator-name = "vdd_gpu"; 308bbe5d394SMichael Riesch regulator-always-on; 30914f1c34eSMichael Riesch regulator-initial-mode = <0x2>; 31014f1c34eSMichael Riesch regulator-min-microvolt = <500000>; 31114f1c34eSMichael Riesch regulator-max-microvolt = <1350000>; 31214f1c34eSMichael Riesch regulator-ramp-delay = <6001>; 31314f1c34eSMichael Riesch 31414f1c34eSMichael Riesch regulator-state-mem { 31514f1c34eSMichael Riesch regulator-off-in-suspend; 31614f1c34eSMichael Riesch }; 31714f1c34eSMichael Riesch }; 31814f1c34eSMichael Riesch 31914f1c34eSMichael Riesch vcc_ddr: DCDC_REG3 { 32014f1c34eSMichael Riesch regulator-name = "vcc_ddr"; 32114f1c34eSMichael Riesch regulator-always-on; 32214f1c34eSMichael Riesch regulator-boot-on; 32314f1c34eSMichael Riesch regulator-initial-mode = <0x2>; 32414f1c34eSMichael Riesch 32514f1c34eSMichael Riesch regulator-state-mem { 32614f1c34eSMichael Riesch regulator-on-in-suspend; 32714f1c34eSMichael Riesch }; 32814f1c34eSMichael Riesch }; 32914f1c34eSMichael Riesch 33014f1c34eSMichael Riesch vdd_npu: DCDC_REG4 { 33114f1c34eSMichael Riesch regulator-name = "vdd_npu"; 33214f1c34eSMichael Riesch regulator-initial-mode = <0x2>; 33314f1c34eSMichael Riesch regulator-min-microvolt = <500000>; 33414f1c34eSMichael Riesch regulator-max-microvolt = <1350000>; 33514f1c34eSMichael Riesch regulator-ramp-delay = <6001>; 33614f1c34eSMichael Riesch 33714f1c34eSMichael Riesch regulator-state-mem { 33814f1c34eSMichael Riesch regulator-off-in-suspend; 33914f1c34eSMichael Riesch }; 34014f1c34eSMichael Riesch }; 34114f1c34eSMichael Riesch 34214f1c34eSMichael Riesch vcc_1v8: DCDC_REG5 { 34314f1c34eSMichael Riesch regulator-name = "vcc_1v8"; 34414f1c34eSMichael Riesch regulator-always-on; 34514f1c34eSMichael Riesch regulator-boot-on; 34614f1c34eSMichael Riesch regulator-min-microvolt = <1800000>; 34714f1c34eSMichael Riesch regulator-max-microvolt = <1800000>; 34814f1c34eSMichael Riesch 34914f1c34eSMichael Riesch regulator-state-mem { 35014f1c34eSMichael Riesch regulator-off-in-suspend; 35114f1c34eSMichael Riesch }; 35214f1c34eSMichael Riesch }; 35314f1c34eSMichael Riesch 35414f1c34eSMichael Riesch vdda0v9_image: LDO_REG1 { 35514f1c34eSMichael Riesch regulator-name = "vdda0v9_image"; 35614f1c34eSMichael Riesch regulator-min-microvolt = <900000>; 35714f1c34eSMichael Riesch regulator-max-microvolt = <900000>; 35814f1c34eSMichael Riesch 35914f1c34eSMichael Riesch regulator-state-mem { 36014f1c34eSMichael Riesch regulator-off-in-suspend; 36114f1c34eSMichael Riesch }; 36214f1c34eSMichael Riesch }; 36314f1c34eSMichael Riesch 36414f1c34eSMichael Riesch vdda_0v9: LDO_REG2 { 36514f1c34eSMichael Riesch regulator-name = "vdda_0v9"; 36614f1c34eSMichael Riesch regulator-always-on; 36714f1c34eSMichael Riesch regulator-boot-on; 36814f1c34eSMichael Riesch regulator-min-microvolt = <900000>; 36914f1c34eSMichael Riesch regulator-max-microvolt = <900000>; 37014f1c34eSMichael Riesch 37114f1c34eSMichael Riesch regulator-state-mem { 37214f1c34eSMichael Riesch regulator-off-in-suspend; 37314f1c34eSMichael Riesch }; 37414f1c34eSMichael Riesch }; 37514f1c34eSMichael Riesch 37614f1c34eSMichael Riesch vdda0v9_pmu: LDO_REG3 { 37714f1c34eSMichael Riesch regulator-name = "vdda0v9_pmu"; 37814f1c34eSMichael Riesch regulator-always-on; 37914f1c34eSMichael Riesch regulator-boot-on; 38014f1c34eSMichael Riesch regulator-min-microvolt = <900000>; 38114f1c34eSMichael Riesch regulator-max-microvolt = <900000>; 38214f1c34eSMichael Riesch 38314f1c34eSMichael Riesch regulator-state-mem { 38414f1c34eSMichael Riesch regulator-on-in-suspend; 38514f1c34eSMichael Riesch regulator-suspend-microvolt = <900000>; 38614f1c34eSMichael Riesch }; 38714f1c34eSMichael Riesch }; 38814f1c34eSMichael Riesch 38914f1c34eSMichael Riesch vccio_acodec: LDO_REG4 { 39014f1c34eSMichael Riesch regulator-name = "vccio_acodec"; 3913e4c629cSMichael Riesch regulator-always-on; 39214f1c34eSMichael Riesch regulator-min-microvolt = <3300000>; 39314f1c34eSMichael Riesch regulator-max-microvolt = <3300000>; 39414f1c34eSMichael Riesch 39514f1c34eSMichael Riesch regulator-state-mem { 39614f1c34eSMichael Riesch regulator-off-in-suspend; 39714f1c34eSMichael Riesch }; 39814f1c34eSMichael Riesch }; 39914f1c34eSMichael Riesch 40014f1c34eSMichael Riesch vccio_sd: LDO_REG5 { 40114f1c34eSMichael Riesch regulator-name = "vccio_sd"; 40214f1c34eSMichael Riesch regulator-min-microvolt = <1800000>; 40314f1c34eSMichael Riesch regulator-max-microvolt = <3300000>; 40414f1c34eSMichael Riesch 40514f1c34eSMichael Riesch regulator-state-mem { 40614f1c34eSMichael Riesch regulator-off-in-suspend; 40714f1c34eSMichael Riesch }; 40814f1c34eSMichael Riesch }; 40914f1c34eSMichael Riesch 41014f1c34eSMichael Riesch vcc3v3_pmu: LDO_REG6 { 41114f1c34eSMichael Riesch regulator-name = "vcc3v3_pmu"; 41214f1c34eSMichael Riesch regulator-always-on; 41314f1c34eSMichael Riesch regulator-boot-on; 41414f1c34eSMichael Riesch regulator-min-microvolt = <3300000>; 41514f1c34eSMichael Riesch regulator-max-microvolt = <3300000>; 41614f1c34eSMichael Riesch 41714f1c34eSMichael Riesch regulator-state-mem { 41814f1c34eSMichael Riesch regulator-on-in-suspend; 41914f1c34eSMichael Riesch regulator-suspend-microvolt = <3300000>; 42014f1c34eSMichael Riesch }; 42114f1c34eSMichael Riesch }; 42214f1c34eSMichael Riesch 42314f1c34eSMichael Riesch vcca_1v8: LDO_REG7 { 42414f1c34eSMichael Riesch regulator-name = "vcca_1v8"; 42514f1c34eSMichael Riesch regulator-always-on; 42614f1c34eSMichael Riesch regulator-boot-on; 42714f1c34eSMichael Riesch regulator-min-microvolt = <1800000>; 42814f1c34eSMichael Riesch regulator-max-microvolt = <1800000>; 42914f1c34eSMichael Riesch 43014f1c34eSMichael Riesch regulator-state-mem { 43114f1c34eSMichael Riesch regulator-off-in-suspend; 43214f1c34eSMichael Riesch }; 43314f1c34eSMichael Riesch }; 43414f1c34eSMichael Riesch 43514f1c34eSMichael Riesch vcca1v8_pmu: LDO_REG8 { 43614f1c34eSMichael Riesch regulator-name = "vcca1v8_pmu"; 43714f1c34eSMichael Riesch regulator-always-on; 43814f1c34eSMichael Riesch regulator-boot-on; 43914f1c34eSMichael Riesch regulator-min-microvolt = <1800000>; 44014f1c34eSMichael Riesch regulator-max-microvolt = <1800000>; 44114f1c34eSMichael Riesch 44214f1c34eSMichael Riesch regulator-state-mem { 44314f1c34eSMichael Riesch regulator-on-in-suspend; 44414f1c34eSMichael Riesch regulator-suspend-microvolt = <1800000>; 44514f1c34eSMichael Riesch }; 44614f1c34eSMichael Riesch }; 44714f1c34eSMichael Riesch 44814f1c34eSMichael Riesch vcca1v8_image: LDO_REG9 { 44914f1c34eSMichael Riesch regulator-name = "vcca1v8_image"; 45014f1c34eSMichael Riesch regulator-min-microvolt = <1800000>; 45114f1c34eSMichael Riesch regulator-max-microvolt = <1800000>; 45214f1c34eSMichael Riesch 45314f1c34eSMichael Riesch regulator-state-mem { 45414f1c34eSMichael Riesch regulator-off-in-suspend; 45514f1c34eSMichael Riesch }; 45614f1c34eSMichael Riesch }; 45714f1c34eSMichael Riesch 45814f1c34eSMichael Riesch vcc_3v3: SWITCH_REG1 { 45914f1c34eSMichael Riesch regulator-name = "vcc_3v3"; 46014f1c34eSMichael Riesch regulator-always-on; 46114f1c34eSMichael Riesch regulator-boot-on; 46214f1c34eSMichael Riesch 46314f1c34eSMichael Riesch regulator-state-mem { 46414f1c34eSMichael Riesch regulator-off-in-suspend; 46514f1c34eSMichael Riesch }; 46614f1c34eSMichael Riesch }; 46714f1c34eSMichael Riesch 46814f1c34eSMichael Riesch vcc3v3_sd: SWITCH_REG2 { 46914f1c34eSMichael Riesch regulator-name = "vcc3v3_sd"; 47014f1c34eSMichael Riesch 47114f1c34eSMichael Riesch regulator-state-mem { 47214f1c34eSMichael Riesch regulator-off-in-suspend; 47314f1c34eSMichael Riesch }; 47414f1c34eSMichael Riesch }; 47514f1c34eSMichael Riesch }; 4763e4c629cSMichael Riesch 4773e4c629cSMichael Riesch codec { 478*878177c7SCristian Ciocaltea rockchip,mic-in-differential; 4793e4c629cSMichael Riesch }; 48014f1c34eSMichael Riesch }; 48114f1c34eSMichael Riesch}; 48214f1c34eSMichael Riesch 483922237a6SMichael Riesch&i2c1 { 484922237a6SMichael Riesch status = "okay"; 485922237a6SMichael Riesch 486922237a6SMichael Riesch touchscreen0: goodix@14 { 487922237a6SMichael Riesch compatible = "goodix,gt1151"; 488922237a6SMichael Riesch reg = <0x14>; 489922237a6SMichael Riesch interrupt-parent = <&gpio0>; 490922237a6SMichael Riesch interrupts = <RK_PB5 IRQ_TYPE_EDGE_FALLING>; 491922237a6SMichael Riesch AVDD28-supply = <&vcc3v3_lcd0_n>; 492922237a6SMichael Riesch irq-gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>; 493922237a6SMichael Riesch pinctrl-names = "default"; 494922237a6SMichael Riesch pinctrl-0 = <&touch_int &touch_rst>; 495922237a6SMichael Riesch reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>; 496922237a6SMichael Riesch VDDIO-supply = <&vcc3v3_lcd0_n>; 497922237a6SMichael Riesch }; 498922237a6SMichael Riesch}; 499922237a6SMichael Riesch 500ea452bc0SMichael Riesch&i2s0_8ch { 501ea452bc0SMichael Riesch status = "okay"; 502ea452bc0SMichael Riesch}; 503ea452bc0SMichael Riesch 5043e4c629cSMichael Riesch&i2s1_8ch { 5053e4c629cSMichael Riesch rockchip,trcm-sync-tx-only; 5063e4c629cSMichael Riesch status = "okay"; 5073e4c629cSMichael Riesch}; 5083e4c629cSMichael Riesch 509fc57d783SMichael Riesch&mdio0 { 510fc57d783SMichael Riesch rgmii_phy0: ethernet-phy@0 { 511fc57d783SMichael Riesch compatible = "ethernet-phy-ieee802.3-c22"; 512fc57d783SMichael Riesch reg = <0x0>; 513fc57d783SMichael Riesch reset-assert-us = <20000>; 514fc57d783SMichael Riesch reset-deassert-us = <100000>; 515fc57d783SMichael Riesch reset-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>; 516fc57d783SMichael Riesch }; 517fc57d783SMichael Riesch}; 518fc57d783SMichael Riesch 519fc57d783SMichael Riesch&mdio1 { 520fc57d783SMichael Riesch rgmii_phy1: ethernet-phy@0 { 521fc57d783SMichael Riesch compatible = "ethernet-phy-ieee802.3-c22"; 522fc57d783SMichael Riesch reg = <0x0>; 523fc57d783SMichael Riesch reset-assert-us = <20000>; 524fc57d783SMichael Riesch reset-deassert-us = <100000>; 525fc57d783SMichael Riesch reset-gpios = <&gpio2 RK_PD1 GPIO_ACTIVE_LOW>; 526fc57d783SMichael Riesch }; 527fc57d783SMichael Riesch}; 528fc57d783SMichael Riesch 52914f1c34eSMichael Riesch&pinctrl { 5309ade1ab4SMichael Riesch display { 5319ade1ab4SMichael Riesch vcc3v3_lcd0_n_en: vcc3v3_lcd0_n_en { 5329ade1ab4SMichael Riesch rockchip,pins = <0 RK_PC7 0 &pcfg_pull_none>; 5339ade1ab4SMichael Riesch }; 5349ade1ab4SMichael Riesch vcc3v3_lcd1_n_en: vcc3v3_lcd1_n_en { 5359ade1ab4SMichael Riesch rockchip,pins = <0 RK_PC5 0 &pcfg_pull_none>; 5369ade1ab4SMichael Riesch }; 5379ade1ab4SMichael Riesch }; 5389ade1ab4SMichael Riesch 539406c607eSMichael Riesch leds { 540406c607eSMichael Riesch led_work_en: led_work_en { 541406c607eSMichael Riesch rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>; 542406c607eSMichael Riesch }; 543406c607eSMichael Riesch }; 544406c607eSMichael Riesch 54514f1c34eSMichael Riesch pmic { 54614f1c34eSMichael Riesch pmic_int: pmic_int { 54714f1c34eSMichael Riesch rockchip,pins = 54814f1c34eSMichael Riesch <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; 54914f1c34eSMichael Riesch }; 55014f1c34eSMichael Riesch }; 551922237a6SMichael Riesch 552922237a6SMichael Riesch touchscreen { 553922237a6SMichael Riesch touch_int: touch_int { 554922237a6SMichael Riesch rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>; 555922237a6SMichael Riesch }; 556922237a6SMichael Riesch touch_rst: touch_rst { 557922237a6SMichael Riesch rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>; 558922237a6SMichael Riesch }; 559922237a6SMichael Riesch }; 560e49e24d7SMichael Riesch 561e49e24d7SMichael Riesch usb { 562e49e24d7SMichael Riesch vcc5v0_usb_host_en: vcc5v0_usb_host_en { 563e49e24d7SMichael Riesch rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; 564e49e24d7SMichael Riesch }; 565d6cfb110SMichael Riesch vcc5v0_usb_otg_en: vcc5v0_usb_otg_en { 566d6cfb110SMichael Riesch rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; 567d6cfb110SMichael Riesch }; 568e49e24d7SMichael Riesch }; 56914f1c34eSMichael Riesch}; 57014f1c34eSMichael Riesch 571e86d4810SMichael Riesch&pmu_io_domains { 572e86d4810SMichael Riesch pmuio1-supply = <&vcc3v3_pmu>; 573e86d4810SMichael Riesch pmuio2-supply = <&vcc3v3_pmu>; 574e86d4810SMichael Riesch vccio1-supply = <&vccio_acodec>; 575e86d4810SMichael Riesch vccio2-supply = <&vcc_1v8>; 576e86d4810SMichael Riesch vccio3-supply = <&vccio_sd>; 577e86d4810SMichael Riesch vccio4-supply = <&vcc_1v8>; 578e86d4810SMichael Riesch vccio5-supply = <&vcc_3v3>; 579e86d4810SMichael Riesch vccio6-supply = <&vcc_1v8>; 580e86d4810SMichael Riesch vccio7-supply = <&vcc_3v3>; 581e86d4810SMichael Riesch status = "okay"; 582e86d4810SMichael Riesch}; 583e86d4810SMichael Riesch 584cf194472SMichael Riesch&saradc { 585cf194472SMichael Riesch vref-supply = <&vcca_1v8>; 586cf194472SMichael Riesch status = "okay"; 587cf194472SMichael Riesch}; 588cf194472SMichael Riesch 58901610a24SLiang Chen&sdhci { 59001610a24SLiang Chen bus-width = <8>; 59101610a24SLiang Chen max-frequency = <200000000>; 59201610a24SLiang Chen non-removable; 5938a599b56SMichael Riesch pinctrl-names = "default"; 5948a599b56SMichael Riesch pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>; 59501610a24SLiang Chen status = "okay"; 59601610a24SLiang Chen}; 59701610a24SLiang Chen 5982a068e19SMichael Riesch&sdmmc0 { 5992a068e19SMichael Riesch bus-width = <4>; 6002a068e19SMichael Riesch cap-sd-highspeed; 6012a068e19SMichael Riesch cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>; 6022a068e19SMichael Riesch disable-wp; 6032a068e19SMichael Riesch pinctrl-names = "default"; 6042a068e19SMichael Riesch pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>; 6052a068e19SMichael Riesch sd-uhs-sdr104; 6062a068e19SMichael Riesch vmmc-supply = <&vcc3v3_sd>; 6072a068e19SMichael Riesch vqmmc-supply = <&vccio_sd>; 6082a068e19SMichael Riesch status = "okay"; 6092a068e19SMichael Riesch}; 6102a068e19SMichael Riesch 611679f048aSMichael Riesch&tsadc { 612679f048aSMichael Riesch rockchip,hw-tshut-mode = <1>; 613679f048aSMichael Riesch rockchip,hw-tshut-polarity = <0>; 614679f048aSMichael Riesch status = "okay"; 615679f048aSMichael Riesch}; 616679f048aSMichael Riesch 61701610a24SLiang Chen&uart2 { 61801610a24SLiang Chen status = "okay"; 61901610a24SLiang Chen}; 620e49e24d7SMichael Riesch 621e49e24d7SMichael Riesch&usb_host0_ehci { 622e49e24d7SMichael Riesch status = "okay"; 623e49e24d7SMichael Riesch}; 624e49e24d7SMichael Riesch 625e49e24d7SMichael Riesch&usb_host0_ohci { 626e49e24d7SMichael Riesch status = "okay"; 627e49e24d7SMichael Riesch}; 628e49e24d7SMichael Riesch 629d6cfb110SMichael Riesch&usb_host0_xhci { 630d6cfb110SMichael Riesch extcon = <&usb2phy0>; 631d6cfb110SMichael Riesch status = "okay"; 632d6cfb110SMichael Riesch}; 633d6cfb110SMichael Riesch 634e49e24d7SMichael Riesch&usb_host1_ehci { 635e49e24d7SMichael Riesch status = "okay"; 636e49e24d7SMichael Riesch}; 637e49e24d7SMichael Riesch 638e49e24d7SMichael Riesch&usb_host1_ohci { 639e49e24d7SMichael Riesch status = "okay"; 640e49e24d7SMichael Riesch}; 641e49e24d7SMichael Riesch 642d6cfb110SMichael Riesch&usb_host1_xhci { 643d6cfb110SMichael Riesch status = "okay"; 644d6cfb110SMichael Riesch}; 645d6cfb110SMichael Riesch 646d6cfb110SMichael Riesch&usb2phy0 { 647d6cfb110SMichael Riesch status = "okay"; 648d6cfb110SMichael Riesch}; 649d6cfb110SMichael Riesch 650d6cfb110SMichael Riesch&usb2phy0_host { 651d6cfb110SMichael Riesch phy-supply = <&vcc5v0_usb_host>; 652d6cfb110SMichael Riesch status = "okay"; 653d6cfb110SMichael Riesch}; 654d6cfb110SMichael Riesch 655d6cfb110SMichael Riesch&usb2phy0_otg { 6561988e3efSMichael Riesch phy-supply = <&vcc5v0_usb_otg>; 657d6cfb110SMichael Riesch status = "okay"; 658d6cfb110SMichael Riesch}; 659d6cfb110SMichael Riesch 660e49e24d7SMichael Riesch&usb2phy1 { 661e49e24d7SMichael Riesch status = "okay"; 662e49e24d7SMichael Riesch}; 663e49e24d7SMichael Riesch 664e49e24d7SMichael Riesch&usb2phy1_host { 665e49e24d7SMichael Riesch phy-supply = <&vcc5v0_usb_host>; 666e49e24d7SMichael Riesch status = "okay"; 667e49e24d7SMichael Riesch}; 668e49e24d7SMichael Riesch 669e49e24d7SMichael Riesch&usb2phy1_otg { 670e49e24d7SMichael Riesch phy-supply = <&vcc5v0_usb_host>; 671e49e24d7SMichael Riesch status = "okay"; 672e49e24d7SMichael Riesch}; 673991b3d12SSascha Hauer 674991b3d12SSascha Hauer&vop { 675991b3d12SSascha Hauer assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>; 676991b3d12SSascha Hauer assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>; 677991b3d12SSascha Hauer status = "okay"; 678991b3d12SSascha Hauer}; 679991b3d12SSascha Hauer 680991b3d12SSascha Hauer&vop_mmu { 681991b3d12SSascha Hauer status = "okay"; 682991b3d12SSascha Hauer}; 683991b3d12SSascha Hauer 684991b3d12SSascha Hauer&vp0 { 685991b3d12SSascha Hauer vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { 686991b3d12SSascha Hauer reg = <ROCKCHIP_VOP2_EP_HDMI0>; 687991b3d12SSascha Hauer remote-endpoint = <&hdmi_in_vp0>; 688991b3d12SSascha Hauer }; 689991b3d12SSascha Hauer}; 690