arm64: dts: qcom: qrb4210-rb2: Describe fixed regulators
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Mon, 15 May 2023 13:04:12 +0000 (15:04 +0200)
committerBjorn Andersson <andersson@kernel.org>
Tue, 23 May 2023 13:24:47 +0000 (06:24 -0700)
The board hosts a whole lot of fixed regulators. Describe them.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-and-Tested-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230515-topic-rb2-bits-v1-1-a52d154a639d@linaro.org
arch/arm64/boot/dts/qcom/qrb4210-rb2.dts

index dc80f0b..0fc99d3 100644 (file)
                stdout-path = "serial0:115200n8";
        };
 
-       vph_pwr: vph-pwr-regulator {
+       vreg_hdmi_out_1p2: regulator-hdmi-out-1p2 {
+               compatible = "regulator-fixed";
+               regulator-name = "VREG_HDMI_OUT_1P2";
+               regulator-min-microvolt = <1200000>;
+               regulator-max-microvolt = <1200000>;
+               vin-supply = <&vdc_1v2>;
+               regulator-always-on;
+               regulator-boot-on;
+       };
+
+       lt9611_3v3: regulator-lt9611-3v3 {
+               compatible = "regulator-fixed";
+               regulator-name = "LT9611_3V3";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               vin-supply = <&vdc_3v3>;
+               regulator-always-on;
+               regulator-boot-on;
+       };
+
+       /* Main barrel jack input */
+       vdc_12v: regulator-vdc-12v {
+               compatible = "regulator-fixed";
+               regulator-name = "DC_12V";
+               regulator-min-microvolt = <12000000>;
+               regulator-max-microvolt = <12000000>;
+               regulator-always-on;
+               regulator-boot-on;
+       };
+
+       /* 1.2V supply stepped down from the barrel jack input */
+       vdc_1v2: regulator-vdc-1v2 {
+               compatible = "regulator-fixed";
+               regulator-name = "VDC_1V2";
+               regulator-min-microvolt = <1200000>;
+               regulator-max-microvolt = <1200000>;
+               vin-supply = <&vdc_12v>;
+               regulator-always-on;
+               regulator-boot-on;
+       };
+
+       /* 3.3V supply stepped down from the barrel jack input */
+       vdc_3v3: regulator-vdc-3v3 {
+               compatible = "regulator-fixed";
+               regulator-name = "VDC_3V3";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               vin-supply = <&vdc_12v>;
+               regulator-always-on;
+               regulator-boot-on;
+       };
+
+       /* 5V supply stepped down from the barrel jack input */
+       vdc_5v: regulator-vdc-5v {
+               compatible = "regulator-fixed";
+               regulator-name = "VDC_5V";
+
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               regulator-always-on;
+               regulator-boot-on;
+       };
+
+       /* "Battery" voltage for the SoM, stepped down from the barrel jack input */
+       vdc_vbat_som: regulator-vdc-vbat {
+               compatible = "regulator-fixed";
+               regulator-name = "VBAT_SOM";
+               regulator-min-microvolt = <4200000>;
+               regulator-max-microvolt = <4200000>;
+               regulator-always-on;
+               regulator-boot-on;
+       };
+
+       /* PMI632 charger out, supplied by VBAT */
+       vph_pwr: regulator-vph-pwr {
                compatible = "regulator-fixed";
                regulator-name = "vph_pwr";
                regulator-min-microvolt = <3700000>;
                regulator-max-microvolt = <3700000>;
+               vin-supply = <&vdc_vbat_som>;
 
                regulator-always-on;
                regulator-boot-on;