Commit 533ca1c3 authored by Matthias Kaehlcke's avatar Matthias Kaehlcke Committed by Bjorn Andersson

arm64: dts: qcom: sc7280: herobrine: disable some regulators by default

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: default avatarMatthias Kaehlcke <mka@chromium.org>
Reviewed-by: default avatarRajendra Nayak <quic_rjendra@quicinc.com>
Reviewed-by: default avatarStephen Boyd <swboyd@chromium.org>
Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220316172814.v1.3.Iad21bd53f3ac14956b8dbbf3825fc7ab29abdf97@changeid
parent f226c660
......@@ -14,6 +14,36 @@ / {
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 {
......
......@@ -92,6 +92,7 @@ pp3300_codec: pp3300-codec-regulator {
pinctrl-0 = <&en_pp3300_codec>;
vin-supply = <&pp3300_z1>;
status = "disabled";
};
pp3300_left_in_mlb: pp3300-left-in-mlb-regulator {
......@@ -132,6 +133,7 @@ pp3300_fp_mcu: pp3300-fp-regulator {
pinctrl-0 = <&en_fp_rails>;
vin-supply = <&pp3300_z1>;
status = "disabled";
};
pp3300_hub: pp3300-hub-regulator {
......@@ -194,6 +196,7 @@ pp2850_vcm_wf_cam: pp2850-vcm-wf-cam-regulator {
pinctrl-0 = <&wf_cam_en>;
vin-supply = <&pp3300_z1>;
status = "disabled";
};
pp2850_wf_cam: pp2850-wf-cam-regulator {
......@@ -214,6 +217,7 @@ pp2850_wf_cam: pp2850-wf-cam-regulator {
*/
vin-supply = <&pp3300_z1>;
status = "disabled";
};
pp1800_fp: pp1800-fp-regulator {
......@@ -258,6 +262,7 @@ pp1800_wf_cam: pp1800-wf-cam-regulator {
*/
vin-supply = <&vreg_l19b_s0>;
status = "disabled";
};
pp1200_wf_cam: pp1200-wf-cam-regulator {
......@@ -278,6 +283,7 @@ pp1200_wf_cam: pp1200-wf-cam-regulator {
*/
vin-supply = <&pp3300_z1>;
status = "disabled";
};
/* BOARD-SPECIFIC TOP LEVEL NODES */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment