ARM: dts: msm: Add SD card regulator devices for sdxlemur

Add regulator devices for the external gpio-controlled regulators
which power the SD Card slot on sdxlemur boards.

Change-Id: I242680740f6f211ed25e70716fdb1c93512c70fe
This commit is contained in:
Guru Das Srinagesh 2020-10-12 15:58:12 -07:00
commit cb89c70067

View file

@ -1,4 +1,5 @@
#include <dt-bindings/regulator/qcom,rpmh-regulator-levels.h>
#include <dt-bindings/gpio/gpio.h>
/* RPMh regulators: */
&apps_rsc {
@ -490,4 +491,25 @@
qcom,init-mode = <RPMH_REGULATOR_MODE_HPM>;
};
};
vreg_vddpx_2: vddpx2-gpio-regulator {
compatible = "regulator-gpio";
regulator-name = "vddpx_2";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2850000>;
enable-gpio = <&tlmm 98 GPIO_ACTIVE_HIGH>;
gpios = <&tlmm 100 GPIO_ACTIVE_HIGH>;
states = <1800000 0>,
<2850000 1>;
startup-delay-us = <200000>;
enable-active-high;
};
vreg_sd_vdd: sd-vdd-fixed-regulator {
compatible = "qcom,stub-regulator";
regulator-name = "sd_vdd";
regulator-min-microvolt = <2950000>;
regulator-max-microvolt = <2950000>;
parent-supply = <&vreg_vddpx_2>;
};
};