From 58c3dc419246754c922fa243ca270b57df4c3c32 Mon Sep 17 00:00:00 2001 From: Vatsal Bucha Date: Wed, 12 Aug 2020 08:31:22 +0530 Subject: [PATCH] ARM: dts: qcom: Add support for CPS speaker protection Add static cps speaker protection configurations to enable cps speaker protection feature. Change-Id: I0da3f58702d110311ffca22f042b72933fcdeccc --- qcom/shima-audio-overlay.dtsi | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/qcom/shima-audio-overlay.dtsi b/qcom/shima-audio-overlay.dtsi index 01dcdc9278a5..cb3005e97b17 100644 --- a/qcom/shima-audio-overlay.dtsi +++ b/qcom/shima-audio-overlay.dtsi @@ -294,11 +294,11 @@ "VA DMIC3", "Digital Mic3", "VA DMIC4", "Digital Mic4", "VA DMIC5", "Digital Mic5", - "VA DMIC0", "VA MIC BIAS3", + "VA DMIC0", "VA MIC BIAS1", "VA DMIC1", "VA MIC BIAS3", - "VA DMIC2", "VA MIC BIAS1", + "VA DMIC2", "VA MIC BIAS4", "VA DMIC3", "VA MIC BIAS1", - "VA DMIC4", "VA MIC BIAS4", + "VA DMIC4", "VA MIC BIAS3", "VA DMIC5", "VA MIC BIAS4"; qcom,msm-mbhc-hphl-swh = <1>; qcom,msm-mbhc-gnd-swh = <1>; @@ -315,6 +315,12 @@ "wsa-codec1", "wsa-codec2", "msm-ext-disp-audio-codec-rx"; qcom,wsa-max-devs = <2>; + qcom,cps_reg_phy_addr = <0x3250300 0x3250304 0x3250318>; + qcom,cps_wsa_vbatt_temp_reg_addr = <0x0000429 0x0000422>; + qcom,cps_threshold_levels = <148 168>; + qcom,cps_normal_values = <0x8E 0x8F 0x8F>; + qcom,cps_lower1_values = <0x10 0xD0 0xD0>; + qcom,cps_lower2_values = <0x0F 0x0F 0x18>; qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>, <&bolero>; };