arm64: dts: rockchip: Add vcc_sys enable pin on rk3399-roc-pc
authorMarkus Reichl <m.reichl@fivetechno.de>
Thu, 31 Oct 2019 08:51:56 +0000 (09:51 +0100)
committerHeiko Stuebner <heiko.stuebner@theobroma-systems.com>
Tue, 5 Nov 2019 19:44:43 +0000 (20:44 +0100)
rk3399-roc-pc has vcc_sys 5V supply for USB and other peripherals.
Add the GPIO pin to enable the regulator.

Signed-off-by: Markus Reichl <m.reichl@fivetechno.de>
Link: https://lore.kernel.org/r/c72db0ad-c261-af4f-efe6-22bbcf4a0b7b@fivetechno.de
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dts

index e1a595a..c845fa5 100644 (file)
 
        vcc_sys: vcc-sys {
                compatible = "regulator-fixed";
+               enable-active-high;
+               gpio = <&gpio2 RK_PA6 GPIO_ACTIVE_HIGH>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&vcc_sys_en>;
                regulator-name = "vcc_sys";
                regulator-always-on;
                regulator-boot-on;
                        rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
                };
 
+               vcc_sys_en: vcc-sys-en {
+                       rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+
                hub_rst: hub-rst {
                        rockchip,pins = <2 RK_PA4 RK_FUNC_GPIO &pcfg_output_high>;
                };