From cacf3e7d2c6518be8838b262643873e46fecb555 Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Mon, 7 Dec 2015 17:40:49 -0800 Subject: [PATCH] ARM: dts: msm: add hl7509 regulator device to msm8996 Halo hl7509 buck converter will be powering the VDD_GFX voltage rail of 8996 automotive platforms. HL7509 requires an enable gpio to turn on the external buck. Support it through a fixed regulator. Add them to the list of regulators for msm8996. Keep them disabled by default so that they can be enabled in board specific files. CRs-Fixed: 978343 Change-Id: Ib8006e640206a92ac6f227a4a180efbe7d15026f Signed-off-by: Subbaraman Narayanamurthy --- arch/arm/boot/dts/qcom/msm8996-regulator.dtsi | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/qcom/msm8996-regulator.dtsi b/arch/arm/boot/dts/qcom/msm8996-regulator.dtsi index 0ee320495ebb..70f2ae818410 100644 --- a/arch/arm/boot/dts/qcom/msm8996-regulator.dtsi +++ b/arch/arm/boot/dts/qcom/msm8996-regulator.dtsi @@ -1446,6 +1446,14 @@ enable-active-high; gpio = <&pm8994_gpios 9 0>; }; + + hl7509_en_vreg: hl7509_en_vreg { + compatible = "regulator-fixed"; + regulator-name = "hl7509_en_vreg"; + gpio = <&pm8994_mpps 6 0>; + enable-active-high; + status = "disabled"; + }; }; &pmi8994_charger { @@ -1459,3 +1467,17 @@ }; }; +/* Halo HL7509 external buck that powers VDD_GFX supply on 8996AU boards */ +&i2c_7 { + hl7509_vreg: hl7509-regulator@68 { + compatible = "halo,hl7509"; + reg = <0x68>; + vin-supply = <&hl7509_en_vreg>; + fcs,disable-suspend; + fcs,suspend-voltage-selector = <1>; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1230000>; + regulator-ramp-delay = <500>; + status = "disabled"; + }; +};