summaryrefslogtreecommitdiff
path: root/lemans-audio.dtsi
diff options
context:
space:
mode:
Diffstat (limited to 'lemans-audio.dtsi')
-rwxr-xr-xlemans-audio.dtsi135
1 files changed, 135 insertions, 0 deletions
diff --git a/lemans-audio.dtsi b/lemans-audio.dtsi
new file mode 100755
index 0000000..4ca9c98
--- /dev/null
+++ b/lemans-audio.dtsi
@@ -0,0 +1,135 @@
+#include <bindings/qcom,gpr.h>
+#include "msm-audio-lpass.dtsi"
+
+&soc {
+ spf_core_platform: spf_core_platform {
+ compatible = "qcom,spf-core-platform";
+ };
+
+};
+
+&glink_adsp {
+ audio_gpr: qcom,gpr {
+ compatible = "qcom,gpr";
+ qcom,glink-channels = "adsp_apps";
+ qcom,intents = <0x200 20>;
+ reg = <GPR_DOMAIN_ADSP>;
+
+ spf_core {
+ compatible = "qcom,spf_core";
+ reg = <GPR_SVC_ADSP_CORE>;
+ };
+
+ audio-pkt {
+ compatible = "qcom,audio-pkt";
+ qcom,audiopkt-ch-name = "apr_audio_svc";
+ reg = <GPR_SVC_MAX>;
+ };
+
+ audio_prm {
+ compatible = "qcom,audio_prm";
+ reg = <GPR_SVC_ASM>;
+ };
+ };
+};
+
+&spf_core_platform {
+ spf_msm_audio_ion: qcom,spf-msm-audio-ion {
+ compatible = "qcom,msm-audio-ion";
+ qcom,smmu-version = <2>;
+ qcom,smmu-enabled;
+ iommus = <&apps_smmu 0x3001 0x0>;
+ qcom,smmu-sid-mask = /bits/ 64 <0xf>;
+ dma-coherent;
+ };
+
+ spf_tdm_sec: qcom,spf-msm-dai-tdm-sec {
+ compatible = "qcom,msm-pcm-pinctrl";
+ pinctrl-names = "default", "sleep";
+ pinctrl-0 = <&sec_tdm_sck_active &sec_tdm_ws_active
+ &sec_tdm_din_active &sec_tdm_dout_active>;
+ pinctrl-1 = <&sec_tdm_sck_sleep &sec_tdm_ws_sleep
+ &sec_tdm_din_sleep &sec_tdm_dout_sleep>;
+ #gpio-cells = <0>;
+ };
+
+ spf_tdm_tert: qcom,spf-msm-dai-tdm-tert {
+ compatible = "qcom,msm-pcm-pinctrl";
+ pinctrl-names = "default", "sleep";
+ pinctrl-0 = <&tert_tdm_sck_active &tert_tdm_ws_active
+ &tert_tdm_din_active &tert_tdm_dout_active>;
+ pinctrl-1 = <&tert_tdm_sck_sleep &tert_tdm_ws_sleep
+ &tert_tdm_din_sleep &tert_tdm_dout_sleep>;
+ #gpio-cells = <0>;
+ };
+
+ spf_tdm_hsif0: qcom,spf-msm-dai-tdm-hsif0 {
+ compatible = "qcom,msm-pcm-pinctrl";
+ pinctrl-names = "default", "sleep";
+ pinctrl-0 = <&hs0_i2s_sck_active &hs0_i2s_ws_active
+ &hs0_i2s_data0_active &hs0_i2s_data1_active>;
+ pinctrl-1 = <&hs0_i2s_sck_sleep &hs0_i2s_ws_sleep
+ &hs0_i2s_data0_sleep &hs0_i2s_data1_sleep>;
+ #gpio-cells = <0>;
+ };
+
+ spf_tdm_hsif1: qcom,spf-msm-dai-tdm-hsif1 {
+ compatible = "qcom,msm-pcm-pinctrl";
+ pinctrl-names = "default", "sleep";
+ pinctrl-0 = <&hs1_i2s_sck_active &hs1_i2s_ws_active
+ &hs1_i2s_data0_active &hs1_i2s_data1_active>;
+ pinctrl-1 = <&hs1_i2s_sck_sleep &hs1_i2s_ws_sleep
+ &hs1_i2s_data0_sleep &hs1_i2s_data1_sleep>;
+ #gpio-cells = <0>;
+ };
+
+ spf_tdm_hsif2: qcom,spf-msm-dai-tdm-hsif2 {
+ compatible = "qcom,msm-pcm-pinctrl";
+ pinctrl-names = "default", "sleep";
+ pinctrl-0 = <&hs2_i2s_sck_active &hs2_i2s_ws_active
+ &hs2_i2s_data0_active &hs2_i2s_data1_active>;
+ pinctrl-1 = <&hs2_i2s_sck_sleep &hs2_i2s_ws_sleep
+ &hs2_i2s_data0_sleep &hs2_i2s_data1_sleep>;
+ #gpio-cells = <0>;
+ };
+
+ spf_internal_mclk1: qcom,spf-msm-internal-mclk1 {
+ compatible = "qcom,msm-pcm-pinctrl";
+ pinctrl-names = "default", "sleep";
+ pinctrl-0 = <&audio_internal_mclk1_active>;
+ pinctrl-1 = <&audio_internal_mclk1_sleep>;
+ #gpio-cells = <0>;
+ };
+
+ spf_snd_8255: spf-sound-adp-star {
+ compatible = "qcom,sa8255-asoc-snd-adp-star";
+ qcom,model = "sa8255-adp-star-snd-card";
+ qcom,mi2s-audio-intf;
+ qcom,auxpcm-audio-intf;
+ qcom,msm-mi2s-master = <1>, <1>, <1>, <1>, <1>;
+
+ qcom,sec-tdm-gpios = <&spf_tdm_sec>;
+ qcom,tert-tdm-gpios = <&spf_tdm_tert>;
+ qcom,hsif0-tdm-gpios = <&spf_tdm_hsif0>;
+ qcom,hsif1-tdm-gpios = <&spf_tdm_hsif1>;
+ qcom,hsif2-tdm-gpios = <&spf_tdm_hsif2>;
+ qcom,internal-mclk1-gpios = <&spf_internal_mclk1>;
+
+ asoc-codec = <&stub_codec>;
+ asoc-codec-names = "msm-stub-codec.1";
+ };
+};
+
+&qupv3_se11_i2c {
+ status = "ok";
+};
+
+&qupv3_se16_spi {
+ status = "ok";
+ spi_codec@0 {
+ compatible = "qcom,spi-msm-codec-slave";
+ reg = <0>;
+ spi-max-frequency = <10000000>;
+ spi-cpha;
+ };
+};