[RFC PATCH 9/9] arm64: dts: msm8996: db820c: Add sound card support

2017-08-11 Thread srinivas . kandagatla
From: Srinivas Kandagatla 

This patch adds hdmi sound card support to db820c via qdsp.

Signed-off-by: Srinivas Kandagatla 
---
 arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 37 +++
 arch/arm64/boot/dts/qcom/msm8996.dtsi| 67 
 2 files changed, 104 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi 
b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
index b9852ba..0157630 100644
--- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
+++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
@@ -18,6 +18,8 @@
 #include "apq8096-db820c-pmic-pins.dtsi"
 #include 
 #include 
+#include 
+#include 
 
 / {
aliases {
@@ -207,6 +209,41 @@
};
};
 
+   adsp-pil {
+   smd-edge {
+   apr {
+   snd {
+   compatible  = 
"qcom,apq8096-sndcard";
+   qcom,model = "DB820c";
+
+   cpu@1 {
+   is-fe;
+   link-name = "MultiMedia1 PCM";
+   cpu {
+   sound-dai = <  
MSM_FRONTEND_DAI_MULTIMEDIA1>;
+   };
+   platform {
+   sound-dai = <  
MSM_FRONTEND_DAI_MULTIMEDIA1>;
+   };
+   };
+
+   qdsp@1 {
+   link-name = "HDMI";
+   cpu {
+   sound-dai = <_dai>;
+   };
+   platform {
+   sound-dai = <>;
+   };
+   codec {
+   sound-dai = <>;
+   };
+   };
+   };
+   };
+   };
+   };
+
rpm-glink {
rpm_requests {
pm8994-regulators {
diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi 
b/arch/arm64/boot/dts/qcom/msm8996.dtsi
index 9e3e3f5..163c251 100644
--- a/arch/arm64/boot/dts/qcom/msm8996.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi
@@ -14,6 +14,8 @@
 #include 
 #include 
 #include 
+#include 
+#include 
 
 / {
model = "Qualcomm Technologies, Inc. MSM8996";
@@ -1157,6 +1159,33 @@
status = "okay";
};
 
+   lpass_q6_smmu: arm,smmu-lpass_q6@160 {
+   compatible = "qcom,msm8996-smmu-v2";
+   reg = <0x160 0x2>;
+   #iommu-cells = <1>;
+power-domains = < HLOS1_VOTE_LPASS_CORE_GDSC>;
+
+   #global-interrupts = <1>;
+   interrupts = ,
+   ,
+   ,
+   ,
+   ,
+   ,
+   ,
+   ,
+   ,
+   ,
+   ,
+   ,
+   ;
+
+   clocks = < GCC_HLOS1_VOTE_LPASS_CORE_SMMU_CLK>,
+< GCC_HLOS1_VOTE_LPASS_ADSP_SMMU_CLK>;
+   clock-names = "iface", "bus";
+status = "okay";
+   };
+
mdss: mdss@90 {
compatible = "qcom,mdss";
 
@@ -1240,6 +1269,7 @@
 
phys = <_phy>;
phy-names = "hdmi_phy";
+   #sound-dai-cells = <0>;
 
ports {
#address-cells = <1>;
@@ -1303,6 +1333,43 @@
qcom,ipc = < 16 8>;
qcom,smd-edge = <1>;
qcom,remote-pid = <2>;
+
+   apr {
+   compatible = "qcom,apr-msm8996";
+   qcom,smd-channels = "apr_audio_svc";
+
+   pcm: pcm0 {
+   compatible = "qcom,q6pcm-v2";
+   iommus = <_q6_smmu 1>;
+   

[RFC PATCH 9/9] arm64: dts: msm8996: db820c: Add sound card support

2017-08-11 Thread srinivas . kandagatla
From: Srinivas Kandagatla 

This patch adds hdmi sound card support to db820c via qdsp.

Signed-off-by: Srinivas Kandagatla 
---
 arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 37 +++
 arch/arm64/boot/dts/qcom/msm8996.dtsi| 67 
 2 files changed, 104 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi 
b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
index b9852ba..0157630 100644
--- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
+++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
@@ -18,6 +18,8 @@
 #include "apq8096-db820c-pmic-pins.dtsi"
 #include 
 #include 
+#include 
+#include 
 
 / {
aliases {
@@ -207,6 +209,41 @@
};
};
 
+   adsp-pil {
+   smd-edge {
+   apr {
+   snd {
+   compatible  = 
"qcom,apq8096-sndcard";
+   qcom,model = "DB820c";
+
+   cpu@1 {
+   is-fe;
+   link-name = "MultiMedia1 PCM";
+   cpu {
+   sound-dai = <  
MSM_FRONTEND_DAI_MULTIMEDIA1>;
+   };
+   platform {
+   sound-dai = <  
MSM_FRONTEND_DAI_MULTIMEDIA1>;
+   };
+   };
+
+   qdsp@1 {
+   link-name = "HDMI";
+   cpu {
+   sound-dai = <_dai>;
+   };
+   platform {
+   sound-dai = <>;
+   };
+   codec {
+   sound-dai = <>;
+   };
+   };
+   };
+   };
+   };
+   };
+
rpm-glink {
rpm_requests {
pm8994-regulators {
diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi 
b/arch/arm64/boot/dts/qcom/msm8996.dtsi
index 9e3e3f5..163c251 100644
--- a/arch/arm64/boot/dts/qcom/msm8996.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi
@@ -14,6 +14,8 @@
 #include 
 #include 
 #include 
+#include 
+#include 
 
 / {
model = "Qualcomm Technologies, Inc. MSM8996";
@@ -1157,6 +1159,33 @@
status = "okay";
};
 
+   lpass_q6_smmu: arm,smmu-lpass_q6@160 {
+   compatible = "qcom,msm8996-smmu-v2";
+   reg = <0x160 0x2>;
+   #iommu-cells = <1>;
+power-domains = < HLOS1_VOTE_LPASS_CORE_GDSC>;
+
+   #global-interrupts = <1>;
+   interrupts = ,
+   ,
+   ,
+   ,
+   ,
+   ,
+   ,
+   ,
+   ,
+   ,
+   ,
+   ,
+   ;
+
+   clocks = < GCC_HLOS1_VOTE_LPASS_CORE_SMMU_CLK>,
+< GCC_HLOS1_VOTE_LPASS_ADSP_SMMU_CLK>;
+   clock-names = "iface", "bus";
+status = "okay";
+   };
+
mdss: mdss@90 {
compatible = "qcom,mdss";
 
@@ -1240,6 +1269,7 @@
 
phys = <_phy>;
phy-names = "hdmi_phy";
+   #sound-dai-cells = <0>;
 
ports {
#address-cells = <1>;
@@ -1303,6 +1333,43 @@
qcom,ipc = < 16 8>;
qcom,smd-edge = <1>;
qcom,remote-pid = <2>;
+
+   apr {
+   compatible = "qcom,apr-msm8996";
+   qcom,smd-channels = "apr_audio_svc";
+
+   pcm: pcm0 {
+   compatible = "qcom,q6pcm-v2";
+   iommus = <_q6_smmu 1>;
+   #sound-dai-cells = <1>;
+   };
+
+