summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPuneeth Prabhu <pprabh@qti.qualcomm.com>2021-10-13 18:14:37 +0530
committerPuneeth Prabhu <pprabh@qti.qualcomm.com>2021-10-13 18:17:56 +0530
commit317a01ab275a0ffb5ea5b7a7865908828d56ff5a (patch)
tree2221914f2957c873ffac952b828811b681e91ba3
parent5f46b142555233b9b7f1e2ec7b68940129d82a5b (diff)
downloaddevicetree-317a01ab275a0ffb5ea5b7a7865908828d56ff5a.tar.gz
ARM: dts: msm: add support for mi2s and tdm
Add support for mi2s and tdm selection options for core vote and clk attributes. Configure tdm slots from dtsi. Disable wcn-bt for kona. Change-Id: Ieb13c9d0a6c8633a0792769711d00ea825be0a27
-rw-r--r--bindings/sound/qcom-audio-dev.txt4
-rw-r--r--qcom/kona-audio-overlay-ar.dtsi6
2 files changed, 9 insertions, 1 deletions
diff --git a/bindings/sound/qcom-audio-dev.txt b/bindings/sound/qcom-audio-dev.txt
index b6674c26..ffef4409 100644
--- a/bindings/sound/qcom-audio-dev.txt
+++ b/bindings/sound/qcom-audio-dev.txt
@@ -2007,6 +2007,10 @@ Optional properties:
- qcom,msm-mi2s-master: This property is used to inform machine driver
if MSM is the clock master of mi2s. 1 means master and 0 means slave. The
first entry is primary mi2s; the second entry is secondary mi2s, and so on.
+- qcom,tdm-clk-attribute: This property is used to set the clock attribute for tdm.
+ The first entry is primary tdm; the second entry is secondary tdm, and so on.
+- qcom,mi2s-clk-attribute: This property is used to set the clock attribute for mi2s.
+ The first entry is primary mi2s; the second entry is secondary mi2s, and so on.
- qcom,msm-mbhc-hphl-swh: This property is used to distinguish headset HPHL
switch type on target typically the switch type will be normally open or
normally close, value for this property 0 for normally close and 1 for
diff --git a/qcom/kona-audio-overlay-ar.dtsi b/qcom/kona-audio-overlay-ar.dtsi
index 67596564..8cc61d5d 100644
--- a/qcom/kona-audio-overlay-ar.dtsi
+++ b/qcom/kona-audio-overlay-ar.dtsi
@@ -214,8 +214,12 @@
&kona_snd_ar {
qcom,model = "kona-mtp-snd-card";
qcom,msm-mi2s-master = <1>, <1>, <1>, <1>, <1>, <1>;
- qcom,wcn-bt = <1>;
+ qcom,mi2s-tdm-is-hw-vote-needed = <1>, <0>, <1>, <0>, <0>, <0>;
+ qcom,wcn-bt = <0>;
qcom,ext-disp-audio-rx = <1>;
+ qcom,tdm-max-slots = <8>;
+ qcom,tdm-clk-attribute = <0x1>, <0x1>, <0x1>, <0x1>, <0x1>, <0x1>;
+ qcom,mi2s-clk-attribute = <0x1>, <0x1>, <0x1>, <0x1>, <0x1>, <0x1>;
qcom,audio-routing =
"AMIC1", "MIC BIAS1",
"MIC BIAS1", "Analog Mic1",