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 3ec449f5cab787edecd750e878d910461552ab70..7d7af6406c393e0e27f9b04259691b3c23d903fa 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 baa7bb86cdd5b4e25ca0e208ee0546eb7a16851b..8197710372ad14548d2bf08da80d54a4f1c8975b 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 4df55f209a1c9dcf4ba18ad64b5618656ec26050..6444a2e6bb2cb1609a3a235bb89bc36b8aab0649 100644 (file)
                                 <&gcc GCC_CODEC_DIGCODEC_CLK>;
                        clock-names = "ahbix-clk", "mclk";
                        #sound-dai-cells = <1>;
+                       status = "disabled";
                };
 
                sdhc_1: mmc@7824900 {
index f4fb1a92ab55a51a65638e7696ab245e91c8b240..33ca1002fb754794e500a0b93226194c60b8360a 100644 (file)
                        vdd-cdc-tx-rx-cx-supply = <&pm8916_l5>;
                        vdd-micbias-supply = <&pm8916_l13>;
                        #sound-dai-cells = <1>;
+                       status = "disabled";
                };
        };
 };