arm64: dts: qcom: msm8916: Disable audio codecs by default
authorStephan Gerhold <stephan@gerhold.net>
Wed, 17 May 2023 18:48:43 +0000 (20:48 +0200)
committerBjorn Andersson <andersson@kernel.org>
Thu, 25 May 2023 04:50:47 +0000 (21:50 -0700)
Not every device has something connected to the digital audio codec
in MSM8916 and/or the analog audio codec in PM8916. Disable those by
default so the hardware is only powered up when necessary.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230510-msm8916-regulators-v1-4-54d4960a05fc@gerhold.net
arch/arm64/boot/dts/qcom/apq8016-sbc.dts
arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dts
arch/arm64/boot/dts/qcom/msm8916.dtsi
arch/arm64/boot/dts/qcom/pm8916.dtsi

index 3ec449f..7d7af64 100644 (file)
        status = "okay";
 };
 
+&lpass_codec {
+       status = "okay";
+};
+
 &mdss {
        status = "okay";
 };
 };
 
 &wcd_codec {
+       status = "okay";
        clocks = <&gcc GCC_CODEC_DIGCODEC_CLK>;
        clock-names = "mclk";
        qcom,mbhc-vthreshold-low = <75 150 237 450 500>;
index baa7bb8..8197710 100644 (file)
        status = "okay";
 };
 
+&lpass_codec {
+       status = "okay";
+};
+
 &pm8916_resin {
        status = "okay";
        linux,code = <KEY_VOLUMEDOWN>;
 };
 
 &wcd_codec {
+       status = "okay";
        qcom,micbias-lvl = <2800>;
        qcom,mbhc-vthreshold-low = <75 150 237 450 500>;
        qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
index 4df55f2..6444a2e 100644 (file)
                                 <&gcc GCC_CODEC_DIGCODEC_CLK>;
                        clock-names = "ahbix-clk", "mclk";
                        #sound-dai-cells = <1>;
+                       status = "disabled";
                };
 
                sdhc_1: mmc@7824900 {
index f4fb1a9..33ca100 100644 (file)
                        vdd-cdc-tx-rx-cx-supply = <&pm8916_l5>;
                        vdd-micbias-supply = <&pm8916_l13>;
                        #sound-dai-cells = <1>;
+                       status = "disabled";
                };
        };
 };