From 497dc2c7f0aeeea03a3e603cc2b5f7ea87a720a6 Mon Sep 17 00:00:00 2001 From: David Collins Date: Thu, 17 Dec 2015 14:19:05 -0800 Subject: ARM: dts: msm: add PM8994 LDO 18 pin control regulator for msm8996 Add a PM8994 LDO 18 regulator device which can be used to manage the HW_EN2 pin control enable configuration for LDO 18 at runtime. When this regulator is enabled, LDO 18 output is enabled whenever HW_EN2 (i.e. PM8994 GPIO 11) is driven high. When this regulator is disabled, the state of GPIO 11 is ignored. This regulator can be used to support WLAN antenna sharing where the WLAN chip is connected to GPIO 11 and drives it high whenever RX or TX is active. Also update the voltage constraint range to allow values from 2.7 V to 2.9 V. Change-Id: I7afab38356e6619580539ed05b5130553491b100 Signed-off-by: David Collins --- arch/arm/boot/dts/qcom/msm8996-regulator.dtsi | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/qcom/msm8996-regulator.dtsi b/arch/arm/boot/dts/qcom/msm8996-regulator.dtsi index a00c9b49933e..d8b37c49fdbc 100644 --- a/arch/arm/boot/dts/qcom/msm8996-regulator.dtsi +++ b/arch/arm/boot/dts/qcom/msm8996-regulator.dtsi @@ -270,11 +270,25 @@ rpm-regulator-ldoa18 { status = "okay"; pm8994_l18: regulator-l18 { - regulator-min-microvolt = <2850000>; - regulator-max-microvolt = <2850000>; - qcom,init-voltage = <2850000>; + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <2900000>; + qcom,init-voltage = <2700000>; status = "okay"; }; + + pm8994_l18_pin_ctrl: regulator-l18 { + compatible = "qcom,rpm-smd-regulator"; + regulator-name = "pm8994_l18_pin_ctrl"; + qcom,set = <3>; + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <2900000>; + qcom,init-voltage = <2700000>; + /* + * LDO 18 output is enabled when PM8994 GPIO 11 (HW_EN2) + * is driven high. + */ + qcom,enable-with-pin-ctrl = <0 4>; + }; }; rpm-regulator-ldoa19 { -- cgit v1.2.3