]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:48:18 +0000 (09:48 +0200)
[ Upstream commit a5cf21b14666c42912327c7bece38711f6e0d708 ]

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
Stable-dep-of: 4facccb44a82 ("arm64: dts: qcom: apq8016-sbc: Rename ov5640 enable-gpios to powerdown-gpios")
Signed-off-by: Sasha Levin <sashal@kernel.org>
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 7261cfc99f9fa235261ac5800279533ec2cefd19..73c51fa101c8be270d9dab68b89c6d5559872cf4 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 bf88c10ff55b04e9c35b5a44a141689177567039..9ab55e723aa6c10914b8d80f7d42db9264498ef3 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";
                };
        };
 };