arm64: dts: rockchip: add 5V regulator to rock-5a
authorSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 10 Jul 2023 16:52:20 +0000 (18:52 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 11 Jul 2023 13:24:29 +0000 (15:24 +0200)
Add GPIO controlled 5V regulator, which is used for supplying
the fan, on-board USB hub and HDMI.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20230710165228.105983-6-sebastian.reichel@collabora.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts

index 48956e9..2da0e96 100644 (file)
                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";
 };
 
 &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>;