From a954bc48520329aefb1d3b58054526b57bc8b7e9 Mon Sep 17 00:00:00 2001 From: Nascs Fang Date: Thu, 21 Nov 2024 10:49:21 +0800 Subject: [PATCH] dts: rockchip: rock-3b: sync power supply with kernel Signed-off-by: Nascs Fang --- arch/arm/dts/rk3568-rock-3b.dts | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/arch/arm/dts/rk3568-rock-3b.dts b/arch/arm/dts/rk3568-rock-3b.dts index 4aef42719e0..3b6fdc534fc 100644 --- a/arch/arm/dts/rk3568-rock-3b.dts +++ b/arch/arm/dts/rk3568-rock-3b.dts @@ -133,6 +133,16 @@ vin-supply = <&dc_12v>; }; + vcc3v3_sys2: vcc3v3-sys2 { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3_sys2"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc5v0_sys>; + }; + vcc5v0_host: vcc5v0-host-regulator { compatible = "regulator-fixed"; enable-active-high; @@ -176,15 +186,14 @@ }; pcie30_3v3: gpio-regulator { - compatible = "regulator-fixed"; + compatible = "regulator-gpio"; regulator-name = "pcie30_3v3"; - regulator-min-microvolt = <3300000>; + regulator-min-microvolt = <100000>; regulator-max-microvolt = <3300000>; - enable-active-high; - gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>; - regulator-boot-on; - regulator-always-on; - vin-supply = <&vcc5v0_sys>; + gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>; + gpios-states = <0x1>; + states = <100000 0x0 + 3300000 0x1>; }; sdio_pwrseq: sdio-pwrseq { @@ -1035,7 +1044,7 @@ //rockchip,bifurcation; reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>; pinctrl-0 = <&pcie30x2m1_pins>; - vpcie3v3-supply = <&pcie30_3v3>; + vpcie3v3-supply = <&vcc3v3_sys2>; status = "okay"; };