From: Sebastian Reichel Date: Mon, 10 Jul 2023 16:52:20 +0000 (+0200) Subject: arm64: dts: rockchip: add 5V regulator to rock-5a X-Git-Tag: v6.6.17~4066^2~9^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53bf040e14c0245711a3cae6f3259e589ac8171b;p=platform%2Fkernel%2Flinux-rpi.git arm64: dts: rockchip: add 5V regulator to rock-5a Add GPIO controlled 5V regulator, which is used for supplying the fan, on-board USB hub and HDMI. Signed-off-by: Sebastian Reichel Link: https://lore.kernel.org/r/20230710165228.105983-6-sebastian.reichel@collabora.com Signed-off-by: Heiko Stuebner --- diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts index 48956e9a..2da0e96 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -38,6 +38,20 @@ vin-supply = <&vcc12v_dcin>; }; + vcc_5v0: vcc-5v0-regulator { + compatible = "regulator-fixed"; + regulator-name = "vcc_5v0"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-boot-on; + regulator-always-on; + enable-active-high; + gpio = <&gpio4 RK_PA3 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc_5v0_en>; + vin-supply = <&vcc5v0_sys>; + }; + vcc_1v1_nldo_s3: vcc-1v1-nldo-s3-regulator { compatible = "regulator-fixed"; regulator-name = "vcc_1v1_nldo_s3"; @@ -150,6 +164,12 @@ }; &pinctrl { + power { + vcc_5v0_en: vcc-5v0-en { + rockchip,pins = <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + rtl8211f { rtl8211f_rst: rtl8211f-rst { rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;