From: Zhangbin Tong Date: Tue, 27 Dec 2016 02:40:35 +0000 (+0800) Subject: ARM64: dts: rk3399-box: Use gpio control for enable/disable of syr82x buck X-Git-Tag: firefly_0821_release~959 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=firefly-linux-kernel-4.4.55.git;a=commitdiff_plain;h=57e81d9f6c3cd656b998333386fbc02048313a0b ARM64: dts: rk3399-box: Use gpio control for enable/disable of syr82x buck Change-Id: I9e03084c93ffff5d8ea79ed037656ce8d6615226 Signed-off-by: Zhangbin Tong --- diff --git a/arch/arm64/boot/dts/rockchip/rk3399-box.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-box.dtsi index 3a2f5255a119..0e0f97dd9dfc 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-box.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-box.dtsi @@ -276,11 +276,13 @@ compatible = "silergy,syr827"; reg = <0x40>; regulator-compatible = "fan53555-reg"; + pinctrl-0 = <&vsel1_gpio>; + vsel-gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>; regulator-name = "vdd_cpu_b"; regulator-min-microvolt = <712500>; regulator-max-microvolt = <1500000>; regulator-ramp-delay = <1000>; - fcs,suspend-voltage-selector = <0>; + fcs,suspend-voltage-selector = <1>; regulator-always-on; regulator-boot-on; vin-supply = <&vcc_sys>; @@ -293,6 +295,8 @@ compatible = "silergy,syr828"; reg = <0x41>; regulator-compatible = "fan53555-reg"; + pinctrl-0 = <&vsel2_gpio>; + vsel-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; regulator-name = "vdd_gpu"; regulator-min-microvolt = <712500>; regulator-max-microvolt = <1500000>; @@ -837,6 +841,16 @@ rockchip,pins = <1 21 RK_FUNC_GPIO &pcfg_pull_up>; }; + + vsel1_gpio: vsel1-gpio { + rockchip,pins = + <1 17 RK_FUNC_GPIO &pcfg_pull_down>; + }; + + vsel2_gpio: vsel2-gpio { + rockchip,pins = + <1 14 RK_FUNC_GPIO &pcfg_pull_down>; + }; }; gmac {