From 1615203f88622be24d4c1d938d6887938b73355f Mon Sep 17 00:00:00 2001 From: Guru Das Srinagesh Date: Fri, 5 Feb 2021 16:32:33 -0800 Subject: [PATCH] ARM: dts: msm: Add fixed regulators for select sdxlemur boards Add fixed regulators that are used in the sdxlemur NTN3 and CPE boards. Multiple regulator enables are tied to the same GPIO as follows: - GPIO 105 connects to both 0.7V and 1V regulator enable (AQR) - GPIO 106 connects to both 1.05V and 1.8V regulator enable (QCA Napa) - GPIO 107 connects to both 0.9 and 1V regulator enable (NTN3) For each of the regulators, the higher voltage has been selected for advertising to consumers. Change-Id: I77ce152345561d8ed6b1a668818c556db3f965af --- qcom/sdxlemur-mtp-cpe.dtsi | 30 ++++++++++++++++++++++++++++ qcom/sdxlemur-mtp-mbb-ntn3-pcie.dtsi | 20 +++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/qcom/sdxlemur-mtp-cpe.dtsi b/qcom/sdxlemur-mtp-cpe.dtsi index e23998921bb7..73f9ee8e190b 100644 --- a/qcom/sdxlemur-mtp-cpe.dtsi +++ b/qcom/sdxlemur-mtp-cpe.dtsi @@ -2,7 +2,37 @@ #include "sdxlemur-mtp-audio-overlay.dtsi" &soc { + ntn3_vreg: ntn3_vreg { + compatible = "regulator-fixed"; + regulator-name = "ntn3_vreg"; + gpio = <&tlmm 107 GPIO_ACTIVE_HIGH>; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + enable-active-high; + regulator-enable-ramp-delay = <4300>; + }; + qca_vreg: qca_vreg { + compatible = "regulator-fixed"; + regulator-name = "qca_vreg"; + gpio = <&tlmm 106 GPIO_ACTIVE_HIGH>; + vin-supply = <&ntn3_vreg>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + enable-active-high; + regulator-enable-ramp-delay = <200000>; + }; + + aqr_vreg: aqr_vreg { + compatible = "regulator-fixed"; + regulator-name = "aqr_vreg"; + gpio = <&tlmm 105 GPIO_ACTIVE_HIGH>; + vin-supply = <&qca_vreg>; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + enable-active-high; + regulator-enable-ramp-delay = <2400>; + }; }; &pcie0 { diff --git a/qcom/sdxlemur-mtp-mbb-ntn3-pcie.dtsi b/qcom/sdxlemur-mtp-mbb-ntn3-pcie.dtsi index 0a782562d79a..0ca02fe098bb 100644 --- a/qcom/sdxlemur-mtp-mbb-ntn3-pcie.dtsi +++ b/qcom/sdxlemur-mtp-mbb-ntn3-pcie.dtsi @@ -1,6 +1,26 @@ #include "sdxlemur-mtp-mbb.dtsi" &soc { + ntn3_vreg: ntn3_vreg { + compatible = "regulator-fixed"; + regulator-name = "ntn3_vreg"; + gpio = <&tlmm 107 GPIO_ACTIVE_HIGH>; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + enable-active-high; + regulator-enable-ramp-delay = <4300>; + }; + + aqr_vreg: aqr_vreg { + compatible = "regulator-fixed"; + regulator-name = "aqr_vreg"; + gpio = <&tlmm 105 GPIO_ACTIVE_HIGH>; + vin-supply = <&ntn3_vreg>; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + enable-active-high; + regulator-enable-ramp-delay = <2400>; + }; };