From 90389ea62231ee2aca2ea75c37f1941461bbc875 Mon Sep 17 00:00:00 2001 From: Karthikeyan Mani Date: Tue, 21 Jan 2020 16:57:58 -0800 Subject: [PATCH 1/2] bindings: Documentation: Update swr mic device tree documentation Replace mic bias number with widget string property to swr mic device tree documentation for Lahaina target. Change-Id: Ic14ae2cb66867c60a2a8ccf24b26446df6ae673b --- bindings/sound/wcd_codec.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/sound/wcd_codec.txt b/bindings/sound/wcd_codec.txt index 9c89d4652617..c63a05d031bd 100644 --- a/bindings/sound/wcd_codec.txt +++ b/bindings/sound/wcd_codec.txt @@ -446,7 +446,7 @@ Required properties: - reg: Specifies the SWR MIC soundwire slave unique device address - qcom,swr-dmic-prefix: Prefix to use for alsa widgets and routes - qcom,codec-name: Name for the corresponding swr mic codec - - qcom,mic-bias-num: Mic bias number that turns on this device's power supply + - qcom,swr-dmic-supply: Mic bias widget name that turns on this device's power supply - qcom,wcd-handle: pHandle to wcd node that can enable this device's supply Example: @@ -455,6 +455,6 @@ swr_dmic_01: dmic_swr@58350220 { reg = <0x08 0x58350220>; qcom,swr-dmic-prefix = "SWR_MIC0"; qcom,codec-name = "swr-dmic-01"; - qcom,mic-bias-num = <1>; + qcom,swr-dmic-supply = "MIC BIAS1 Standalone"; qcom,wcd-handle = <&wcd938x_codec>; }; From 4b93df480092f8ae763d257829747f04ecb15d83 Mon Sep 17 00:00:00 2001 From: Karthikeyan Mani Date: Tue, 21 Jan 2020 17:01:25 -0800 Subject: [PATCH 2/2] ARM: dts: msm: Replace swr dmic mic bias number on Lahaina Triggering enable and disable of swr dmic power supply mic bias using widget name is more straight forward than using mic bias number. Replace the number with widget name instead. Change-Id: Ie56ee41926249a044ab0f1bc197235c47803e46d --- qcom/lahaina-audio-overlay.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/lahaina-audio-overlay.dtsi b/qcom/lahaina-audio-overlay.dtsi index c1cee1d34f1e..46659bd658ce 100644 --- a/qcom/lahaina-audio-overlay.dtsi +++ b/qcom/lahaina-audio-overlay.dtsi @@ -67,7 +67,7 @@ reg = <0x08 0x58350220>; qcom,swr-dmic-prefix = "SWR_MIC0"; qcom,codec-name = "swr-dmic-01"; - qcom,mic-bias-num = <3>; + qcom,swr-dmic-supply = "MIC BIAS3 Standalone"; qcom,wcd-handle = <&wcd938x_codec>; }; @@ -76,7 +76,7 @@ reg = <0x08 0x58350221>; qcom,swr-dmic-prefix = "SWR_MIC1"; qcom,codec-name = "swr-dmic-02"; - qcom,mic-bias-num = <1>; + qcom,swr-dmic-supply = "MIC BIAS1 Standalone"; qcom,wcd-handle = <&wcd938x_codec>; }; @@ -85,7 +85,7 @@ reg = <0x08 0x58350222>; qcom,swr-dmic-prefix = "SWR_MIC2"; qcom,codec-name = "swr-dmic-03"; - qcom,mic-bias-num = <1>; + qcom,swr-dmic-supply = "MIC BIAS1 Standalone"; qcom,wcd-handle = <&wcd938x_codec>; }; @@ -94,7 +94,7 @@ reg = <0x08 0x58350223>; qcom,swr-dmic-prefix = "SWR_MIC3"; qcom,codec-name = "swr-dmic-04"; - qcom,mic-bias-num = <3>; + qcom,swr-dmic-supply = "MIC BIAS3 Standalone"; qcom,wcd-handle = <&wcd938x_codec>; }; };