1*4882a593Smuzhiyun// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2*4882a593Smuzhiyun/* 3*4882a593Smuzhiyun * Copyright (c) 2022 Rockchip Electronics Co., Ltd. 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun */ 6*4882a593Smuzhiyun 7*4882a593Smuzhiyun#include "rk3399-evb.dtsi" 8*4882a593Smuzhiyun#include <dt-bindings/suspend/rockchip-rk3399.h> 9*4882a593Smuzhiyun 10*4882a593Smuzhiyun/ { 11*4882a593Smuzhiyun compatible = "rockchip,rk3399-evb-rev3", "rockchip,rk3399"; 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun vcc5v0_sys: vcc5v0-sys { 14*4882a593Smuzhiyun compatible = "regulator-fixed"; 15*4882a593Smuzhiyun regulator-name = "vcc5v0_sys"; 16*4882a593Smuzhiyun regulator-always-on; 17*4882a593Smuzhiyun regulator-boot-on; 18*4882a593Smuzhiyun regulator-min-microvolt = <5000000>; 19*4882a593Smuzhiyun regulator-max-microvolt = <5000000>; 20*4882a593Smuzhiyun }; 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun vdd_center: vdd-center { 23*4882a593Smuzhiyun compatible = "pwm-regulator"; 24*4882a593Smuzhiyun rockchip,pwm_id = <2>; 25*4882a593Smuzhiyun rockchip,pwm_voltage = <900000>; 26*4882a593Smuzhiyun pwms = <&pwm2 0 25000 1>; 27*4882a593Smuzhiyun regulator-name = "vdd_center"; 28*4882a593Smuzhiyun regulator-min-microvolt = <800000>; 29*4882a593Smuzhiyun regulator-max-microvolt = <1400000>; 30*4882a593Smuzhiyun regulator-always-on; 31*4882a593Smuzhiyun regulator-boot-on; 32*4882a593Smuzhiyun }; 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun xin32k: xin32k { 35*4882a593Smuzhiyun compatible = "fixed-clock"; 36*4882a593Smuzhiyun clock-frequency = <32768>; 37*4882a593Smuzhiyun clock-output-names = "xin32k"; 38*4882a593Smuzhiyun #clock-cells = <0>; 39*4882a593Smuzhiyun }; 40*4882a593Smuzhiyun 41*4882a593Smuzhiyun rockchip_suspend: rockchip-suspend { 42*4882a593Smuzhiyun compatible = "rockchip,pm-rk3399"; 43*4882a593Smuzhiyun status = "okay"; 44*4882a593Smuzhiyun rockchip,sleep-debug-en = <1>; 45*4882a593Smuzhiyun rockchip,wakeup-config = < 46*4882a593Smuzhiyun (0 47*4882a593Smuzhiyun | RKPM_GPIO_WKUP_EN 48*4882a593Smuzhiyun ) 49*4882a593Smuzhiyun >; 50*4882a593Smuzhiyun rockchip,pwm-regulator-config = < 51*4882a593Smuzhiyun (0 52*4882a593Smuzhiyun | PWM2_REGULATOR_EN 53*4882a593Smuzhiyun ) 54*4882a593Smuzhiyun >; 55*4882a593Smuzhiyun rockchip,power-ctrl = 56*4882a593Smuzhiyun <&gpio1 17 GPIO_ACTIVE_HIGH>; 57*4882a593Smuzhiyun }; 58*4882a593Smuzhiyun}; 59*4882a593Smuzhiyun 60*4882a593Smuzhiyun&i2c0 { 61*4882a593Smuzhiyun fusb1: fusb30x@22 { 62*4882a593Smuzhiyun compatible = "fairchild,fusb302"; 63*4882a593Smuzhiyun reg = <0x22>; 64*4882a593Smuzhiyun pinctrl-names = "default"; 65*4882a593Smuzhiyun pinctrl-0 = <&fusb1_int>; 66*4882a593Smuzhiyun vbus-5v-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; 67*4882a593Smuzhiyun int-n-gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>; 68*4882a593Smuzhiyun status = "okay"; 69*4882a593Smuzhiyun }; 70*4882a593Smuzhiyun 71*4882a593Smuzhiyun vdd_cpu_b: syr827@40 { 72*4882a593Smuzhiyun compatible = "silergy,syr827"; 73*4882a593Smuzhiyun reg = <0x40>; 74*4882a593Smuzhiyun vin-supply = <&vcc5v0_sys>; 75*4882a593Smuzhiyun regulator-compatible = "fan53555-reg"; 76*4882a593Smuzhiyun pinctrl-0 = <&vsel1_gpio>; 77*4882a593Smuzhiyun vsel-gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>; 78*4882a593Smuzhiyun regulator-name = "vdd_cpu_b"; 79*4882a593Smuzhiyun regulator-min-microvolt = <712500>; 80*4882a593Smuzhiyun regulator-max-microvolt = <1500000>; 81*4882a593Smuzhiyun regulator-ramp-delay = <1000>; 82*4882a593Smuzhiyun fcs,suspend-voltage-selector = <1>; 83*4882a593Smuzhiyun regulator-always-on; 84*4882a593Smuzhiyun regulator-boot-on; 85*4882a593Smuzhiyun regulator-initial-state = <3>; 86*4882a593Smuzhiyun regulator-state-mem { 87*4882a593Smuzhiyun regulator-off-in-suspend; 88*4882a593Smuzhiyun }; 89*4882a593Smuzhiyun }; 90*4882a593Smuzhiyun 91*4882a593Smuzhiyun vdd_gpu: syr828@41 { 92*4882a593Smuzhiyun compatible = "silergy,syr828"; 93*4882a593Smuzhiyun reg = <0x41>; 94*4882a593Smuzhiyun vin-supply = <&vcc5v0_sys>; 95*4882a593Smuzhiyun regulator-compatible = "fan53555-reg"; 96*4882a593Smuzhiyun pinctrl-0 = <&vsel2_gpio>; 97*4882a593Smuzhiyun vsel-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; 98*4882a593Smuzhiyun regulator-name = "vdd_gpu"; 99*4882a593Smuzhiyun regulator-min-microvolt = <712500>; 100*4882a593Smuzhiyun regulator-max-microvolt = <1500000>; 101*4882a593Smuzhiyun regulator-ramp-delay = <1000>; 102*4882a593Smuzhiyun fcs,suspend-voltage-selector = <1>; 103*4882a593Smuzhiyun regulator-always-on; 104*4882a593Smuzhiyun regulator-boot-on; 105*4882a593Smuzhiyun regulator-initial-state = <3>; 106*4882a593Smuzhiyun regulator-state-mem { 107*4882a593Smuzhiyun regulator-off-in-suspend; 108*4882a593Smuzhiyun }; 109*4882a593Smuzhiyun }; 110*4882a593Smuzhiyun 111*4882a593Smuzhiyun rk808: pmic@1b { 112*4882a593Smuzhiyun compatible = "rockchip,rk808"; 113*4882a593Smuzhiyun reg = <0x1b>; 114*4882a593Smuzhiyun interrupt-parent = <&gpio1>; 115*4882a593Smuzhiyun interrupts = <21 IRQ_TYPE_LEVEL_LOW>; 116*4882a593Smuzhiyun pinctrl-names = "default"; 117*4882a593Smuzhiyun pinctrl-0 = <&pmic_int_l &pmic_dvs2>; 118*4882a593Smuzhiyun rockchip,system-power-controller; 119*4882a593Smuzhiyun wakeup-source; 120*4882a593Smuzhiyun #clock-cells = <1>; 121*4882a593Smuzhiyun clock-output-names = "rk808-clkout1", "rk808-clkout2"; 122*4882a593Smuzhiyun 123*4882a593Smuzhiyun vcc1-supply = <&vcc3v3_sys>; 124*4882a593Smuzhiyun vcc2-supply = <&vcc3v3_sys>; 125*4882a593Smuzhiyun vcc3-supply = <&vcc3v3_sys>; 126*4882a593Smuzhiyun vcc4-supply = <&vcc3v3_sys>; 127*4882a593Smuzhiyun vcc6-supply = <&vcc3v3_sys>; 128*4882a593Smuzhiyun vcc7-supply = <&vcc3v3_sys>; 129*4882a593Smuzhiyun vcc8-supply = <&vcc3v3_sys>; 130*4882a593Smuzhiyun vcc9-supply = <&vcc3v3_sys>; 131*4882a593Smuzhiyun vcc10-supply = <&vcc3v3_sys>; 132*4882a593Smuzhiyun vcc11-supply = <&vcc3v3_sys>; 133*4882a593Smuzhiyun vcc12-supply = <&vcc3v3_sys>; 134*4882a593Smuzhiyun vddio-supply = <&vcc1v8_pmu>; 135*4882a593Smuzhiyun 136*4882a593Smuzhiyun regulators { 137*4882a593Smuzhiyun vdd_log: DCDC_REG1 { 138*4882a593Smuzhiyun regulator-always-on; 139*4882a593Smuzhiyun regulator-boot-on; 140*4882a593Smuzhiyun regulator-min-microvolt = <750000>; 141*4882a593Smuzhiyun regulator-max-microvolt = <1350000>; 142*4882a593Smuzhiyun regulator-ramp-delay = <6001>; 143*4882a593Smuzhiyun regulator-name = "vdd_log"; 144*4882a593Smuzhiyun regulator-state-mem { 145*4882a593Smuzhiyun regulator-on-in-suspend; 146*4882a593Smuzhiyun regulator-suspend-microvolt = <900000>; 147*4882a593Smuzhiyun }; 148*4882a593Smuzhiyun }; 149*4882a593Smuzhiyun 150*4882a593Smuzhiyun vdd_cpu_l: DCDC_REG2 { 151*4882a593Smuzhiyun regulator-always-on; 152*4882a593Smuzhiyun regulator-boot-on; 153*4882a593Smuzhiyun regulator-min-microvolt = <750000>; 154*4882a593Smuzhiyun regulator-max-microvolt = <1350000>; 155*4882a593Smuzhiyun regulator-ramp-delay = <6001>; 156*4882a593Smuzhiyun regulator-name = "vdd_cpu_l"; 157*4882a593Smuzhiyun regulator-state-mem { 158*4882a593Smuzhiyun regulator-off-in-suspend; 159*4882a593Smuzhiyun }; 160*4882a593Smuzhiyun }; 161*4882a593Smuzhiyun 162*4882a593Smuzhiyun vcc_ddr: DCDC_REG3 { 163*4882a593Smuzhiyun regulator-always-on; 164*4882a593Smuzhiyun regulator-boot-on; 165*4882a593Smuzhiyun regulator-name = "vcc_ddr"; 166*4882a593Smuzhiyun regulator-state-mem { 167*4882a593Smuzhiyun regulator-on-in-suspend; 168*4882a593Smuzhiyun }; 169*4882a593Smuzhiyun }; 170*4882a593Smuzhiyun 171*4882a593Smuzhiyun vcc_1v8: DCDC_REG4 { 172*4882a593Smuzhiyun regulator-always-on; 173*4882a593Smuzhiyun regulator-boot-on; 174*4882a593Smuzhiyun regulator-min-microvolt = <1800000>; 175*4882a593Smuzhiyun regulator-max-microvolt = <1800000>; 176*4882a593Smuzhiyun regulator-name = "vcc_1v8"; 177*4882a593Smuzhiyun regulator-state-mem { 178*4882a593Smuzhiyun regulator-on-in-suspend; 179*4882a593Smuzhiyun regulator-suspend-microvolt = <1800000>; 180*4882a593Smuzhiyun }; 181*4882a593Smuzhiyun }; 182*4882a593Smuzhiyun 183*4882a593Smuzhiyun vcc1v8_dvp: LDO_REG1 { 184*4882a593Smuzhiyun regulator-always-on; 185*4882a593Smuzhiyun regulator-boot-on; 186*4882a593Smuzhiyun regulator-min-microvolt = <1800000>; 187*4882a593Smuzhiyun regulator-max-microvolt = <1800000>; 188*4882a593Smuzhiyun regulator-name = "vcc1v8_dvp"; 189*4882a593Smuzhiyun regulator-state-mem { 190*4882a593Smuzhiyun regulator-off-in-suspend; 191*4882a593Smuzhiyun }; 192*4882a593Smuzhiyun }; 193*4882a593Smuzhiyun 194*4882a593Smuzhiyun vcc3v0_tp: LDO_REG2 { 195*4882a593Smuzhiyun regulator-always-on; 196*4882a593Smuzhiyun regulator-boot-on; 197*4882a593Smuzhiyun regulator-min-microvolt = <3000000>; 198*4882a593Smuzhiyun regulator-max-microvolt = <3000000>; 199*4882a593Smuzhiyun regulator-name = "vcc3v0_tp"; 200*4882a593Smuzhiyun regulator-state-mem { 201*4882a593Smuzhiyun regulator-off-in-suspend; 202*4882a593Smuzhiyun }; 203*4882a593Smuzhiyun }; 204*4882a593Smuzhiyun 205*4882a593Smuzhiyun vcc1v8_pmu: LDO_REG3 { 206*4882a593Smuzhiyun regulator-always-on; 207*4882a593Smuzhiyun regulator-boot-on; 208*4882a593Smuzhiyun regulator-min-microvolt = <1800000>; 209*4882a593Smuzhiyun regulator-max-microvolt = <1800000>; 210*4882a593Smuzhiyun regulator-name = "vcc1v8_pmu"; 211*4882a593Smuzhiyun regulator-state-mem { 212*4882a593Smuzhiyun regulator-on-in-suspend; 213*4882a593Smuzhiyun regulator-suspend-microvolt = <1800000>; 214*4882a593Smuzhiyun }; 215*4882a593Smuzhiyun }; 216*4882a593Smuzhiyun 217*4882a593Smuzhiyun vcc_sd: LDO_REG4 { 218*4882a593Smuzhiyun regulator-always-on; 219*4882a593Smuzhiyun regulator-boot-on; 220*4882a593Smuzhiyun regulator-min-microvolt = <1800000>; 221*4882a593Smuzhiyun regulator-max-microvolt = <3000000>; 222*4882a593Smuzhiyun regulator-name = "vcc_sd"; 223*4882a593Smuzhiyun regulator-state-mem { 224*4882a593Smuzhiyun regulator-on-in-suspend; 225*4882a593Smuzhiyun regulator-suspend-microvolt = <3000000>; 226*4882a593Smuzhiyun }; 227*4882a593Smuzhiyun }; 228*4882a593Smuzhiyun 229*4882a593Smuzhiyun vcca3v0_codec: LDO_REG5 { 230*4882a593Smuzhiyun regulator-always-on; 231*4882a593Smuzhiyun regulator-boot-on; 232*4882a593Smuzhiyun regulator-min-microvolt = <3000000>; 233*4882a593Smuzhiyun regulator-max-microvolt = <3000000>; 234*4882a593Smuzhiyun regulator-name = "vcca3v0_codec"; 235*4882a593Smuzhiyun regulator-state-mem { 236*4882a593Smuzhiyun regulator-off-in-suspend; 237*4882a593Smuzhiyun }; 238*4882a593Smuzhiyun }; 239*4882a593Smuzhiyun 240*4882a593Smuzhiyun vcc_1v5: LDO_REG6 { 241*4882a593Smuzhiyun regulator-always-on; 242*4882a593Smuzhiyun regulator-boot-on; 243*4882a593Smuzhiyun regulator-min-microvolt = <1500000>; 244*4882a593Smuzhiyun regulator-max-microvolt = <1500000>; 245*4882a593Smuzhiyun regulator-name = "vcc_1v5"; 246*4882a593Smuzhiyun regulator-state-mem { 247*4882a593Smuzhiyun regulator-on-in-suspend; 248*4882a593Smuzhiyun regulator-suspend-microvolt = <1500000>; 249*4882a593Smuzhiyun }; 250*4882a593Smuzhiyun }; 251*4882a593Smuzhiyun 252*4882a593Smuzhiyun vcca1v8_codec: LDO_REG7 { 253*4882a593Smuzhiyun regulator-always-on; 254*4882a593Smuzhiyun regulator-boot-on; 255*4882a593Smuzhiyun regulator-min-microvolt = <1800000>; 256*4882a593Smuzhiyun regulator-max-microvolt = <1800000>; 257*4882a593Smuzhiyun regulator-name = "vcca1v8_codec"; 258*4882a593Smuzhiyun regulator-state-mem { 259*4882a593Smuzhiyun regulator-off-in-suspend; 260*4882a593Smuzhiyun }; 261*4882a593Smuzhiyun }; 262*4882a593Smuzhiyun 263*4882a593Smuzhiyun vcc_3v0: LDO_REG8 { 264*4882a593Smuzhiyun regulator-always-on; 265*4882a593Smuzhiyun regulator-boot-on; 266*4882a593Smuzhiyun regulator-min-microvolt = <3000000>; 267*4882a593Smuzhiyun regulator-max-microvolt = <3000000>; 268*4882a593Smuzhiyun regulator-name = "vcc_3v0"; 269*4882a593Smuzhiyun regulator-state-mem { 270*4882a593Smuzhiyun regulator-on-in-suspend; 271*4882a593Smuzhiyun regulator-suspend-microvolt = <3000000>; 272*4882a593Smuzhiyun }; 273*4882a593Smuzhiyun }; 274*4882a593Smuzhiyun 275*4882a593Smuzhiyun vcc3v3_s3: SWITCH_REG1 { 276*4882a593Smuzhiyun regulator-always-on; 277*4882a593Smuzhiyun regulator-boot-on; 278*4882a593Smuzhiyun regulator-name = "vcc3v3_s3"; 279*4882a593Smuzhiyun regulator-state-mem { 280*4882a593Smuzhiyun regulator-on-in-suspend; 281*4882a593Smuzhiyun }; 282*4882a593Smuzhiyun }; 283*4882a593Smuzhiyun 284*4882a593Smuzhiyun vcc3v3_s0: SWITCH_REG2 { 285*4882a593Smuzhiyun regulator-always-on; 286*4882a593Smuzhiyun regulator-boot-on; 287*4882a593Smuzhiyun regulator-name = "vcc3v3_s0"; 288*4882a593Smuzhiyun regulator-state-mem { 289*4882a593Smuzhiyun regulator-off-in-suspend; 290*4882a593Smuzhiyun }; 291*4882a593Smuzhiyun }; 292*4882a593Smuzhiyun }; 293*4882a593Smuzhiyun }; 294*4882a593Smuzhiyun}; 295*4882a593Smuzhiyun 296*4882a593Smuzhiyun&es8316 { 297*4882a593Smuzhiyun reg = <0x11>; 298*4882a593Smuzhiyun}; 299*4882a593Smuzhiyun 300*4882a593Smuzhiyun&i2c6 { 301*4882a593Smuzhiyun status = "okay"; 302*4882a593Smuzhiyun fusb0: fusb30x@22 { 303*4882a593Smuzhiyun compatible = "fairchild,fusb302"; 304*4882a593Smuzhiyun reg = <0x22>; 305*4882a593Smuzhiyun pinctrl-names = "default"; 306*4882a593Smuzhiyun pinctrl-0 = <&fusb0_int>; 307*4882a593Smuzhiyun vbus-5v-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; 308*4882a593Smuzhiyun int-n-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; 309*4882a593Smuzhiyun status = "okay"; 310*4882a593Smuzhiyun }; 311*4882a593Smuzhiyun}; 312*4882a593Smuzhiyun 313*4882a593Smuzhiyun&pwm2 { 314*4882a593Smuzhiyun status = "okay"; 315*4882a593Smuzhiyun pinctrl-names = "active"; 316*4882a593Smuzhiyun pinctrl-0 = <&pwm2_pin_pull_down>; 317*4882a593Smuzhiyun}; 318