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
This commit is contained in:
Guru Das Srinagesh 2021-02-05 16:32:33 -08:00
commit dd2c84adb7
2 changed files with 50 additions and 0 deletions

View file

@ -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 {

View file

@ -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>;
};
};