arm64: dts: qcom: sc7280: herobrine: disable some regulators by default
authorMatthias Kaehlcke <mka@chromium.org>
Thu, 17 Mar 2022 00:28:19 +0000 (17:28 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 11 Apr 2022 20:45:23 +0000 (15:45 -0500)
Not all herobrine boards have a world facing camera or a fingerprint
sensor, disable the regulators that feed these devices by default and
only enable them for the boards that use them.

Similarly the audio configuration can vary between boards, not all
boards have the regulator pp3300_codec, disable it by default.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Rajendra Nayak <quic_rjendra@quicinc.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220316172814.v1.3.Iad21bd53f3ac14956b8dbbf3825fc7ab29abdf97@changeid
arch/arm64/boot/dts/qcom/sc7280-herobrine-herobrine-r1.dts
arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi

index f95273052da079d2418ecee3171e707cd948d9e9..29c4ca09529474f857ea55234f7fdcb3d17de48f 100644 (file)
        compatible = "google,herobrine", "qcom,sc7280";
 };
 
+/*
+ * ADDITIONS TO FIXED REGULATORS DEFINED IN PARENT DEVICE TREE FILES
+ *
+ * Sort order matches the order in the parent files (parents before children).
+ */
+
+&pp3300_codec {
+       status = "okay";
+};
+
+&pp3300_fp_mcu {
+       status = "okay";
+};
+
+&pp2850_vcm_wf_cam {
+       status = "okay";
+};
+
+&pp2850_wf_cam {
+       status = "okay";
+};
+
+&pp1800_wf_cam {
+       status = "okay";
+};
+
+&pp1200_wf_cam {
+       status = "okay";
+};
+
 /* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */
 
 &ap_spi_fp {
index 5f00fa2abaf66b42528959bc2653a2a4f10c4a49..d57ea4881fa1e67bae589f4c3d620c08db89aee1 100644 (file)
@@ -92,6 +92,7 @@
                pinctrl-0 = <&en_pp3300_codec>;
 
                vin-supply = <&pp3300_z1>;
+               status = "disabled";
        };
 
        pp3300_left_in_mlb: pp3300-left-in-mlb-regulator {
                pinctrl-0 = <&en_fp_rails>;
 
                vin-supply = <&pp3300_z1>;
+               status = "disabled";
        };
 
        pp3300_hub: pp3300-hub-regulator {
                pinctrl-0 = <&wf_cam_en>;
 
                vin-supply = <&pp3300_z1>;
+               status = "disabled";
        };
 
        pp2850_wf_cam: pp2850-wf-cam-regulator {
                 */
 
                vin-supply = <&pp3300_z1>;
+               status = "disabled";
        };
 
        pp1800_fp: pp1800-fp-regulator {
                 */
 
                vin-supply = <&vreg_l19b_s0>;
+               status = "disabled";
        };
 
        pp1200_wf_cam: pp1200-wf-cam-regulator {
                 */
 
                vin-supply = <&pp3300_z1>;
+               status = "disabled";
        };
 
        /* BOARD-SPECIFIC TOP LEVEL NODES */