From 3517f21ca6707bd5ca6ce091001adc31305d8ad5 Mon Sep 17 00:00:00 2001 From: Elaine Zhang Date: Tue, 16 Aug 2016 18:45:39 +0800 Subject: [PATCH] ARM64: dts: rk3399: syr82x: support vsel pin to en/disable dcdc Set vsel pin to active to disable DCDC, Set vsel pin to inactive to enable DCDC. Change-Id: Ie7d98730e5f59ffe38f0b88388cfb5b852316fe3 Signed-off-by: Elaine Zhang --- arch/arm64/boot/dts/rockchip/rk3399-evb-rev3.dtsi | 4 ++++ arch/arm64/boot/dts/rockchip/rk3399-evb.dtsi | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-evb-rev3.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-evb-rev3.dtsi index a151c739fe09..9a58f9e1ce03 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-evb-rev3.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-evb-rev3.dtsi @@ -254,6 +254,8 @@ reg = <0x40>; vin-supply = <&vcc5v0_sys>; 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>; @@ -272,6 +274,8 @@ reg = <0x41>; vin-supply = <&vcc5v0_sys>; 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>; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-evb.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-evb.dtsi index c81c649ad086..51fa235cd5f1 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-evb.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-evb.dtsi @@ -528,6 +528,14 @@ rockchip,pins = <1 18 RK_FUNC_GPIO &pcfg_pull_down>; }; + 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>; + }; }; usb2 { -- 2.34.1