From patchwork Fri Aug 11 13:29:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 9895933 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F14C660325 for ; Fri, 11 Aug 2017 13:33:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E084828C56 for ; Fri, 11 Aug 2017 13:33:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D569928C49; Fri, 11 Aug 2017 13:33:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F69B28C42 for ; Fri, 11 Aug 2017 13:33:13 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 148BB2676BD; Fri, 11 Aug 2017 15:30:46 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id EC63B267689; Fri, 11 Aug 2017 15:30:42 +0200 (CEST) Received: from mail-it0-f47.google.com (mail-it0-f47.google.com [209.85.214.47]) by alsa0.perex.cz (Postfix) with ESMTP id 0981226765D for ; Fri, 11 Aug 2017 15:30:24 +0200 (CEST) Received: by mail-it0-f47.google.com with SMTP id m34so27104294iti.1 for ; Fri, 11 Aug 2017 06:30:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xY718JSm530KPBX3nqtJ0OAiTyvaDbVHhdGj6+WxN5I=; b=TtZ5FDnypQm4h9CRlBJJqEIGHCOtFizXhFscMd8OAodETKMn0lv6bNBERMCHsc/liy DE2mlHO6sAoYehOMjacOsUU35K3CEfZhw8IuX+C6LDwxvKlpdEY109REqxOxQqX5SFCp 9Cf7dyJIbJXcoZKyIUWWO/NkESUpyr+n4f4TU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xY718JSm530KPBX3nqtJ0OAiTyvaDbVHhdGj6+WxN5I=; b=VaPH1cElfOSfDWbvTIlsSOQRVNocE9T6n2Bs35qk37K7bZ/jzF2gguwNVeqIcv/94Z TRNW09akijUnDMEsq18bsiWHuJZ6iyp1Gu1MNzfs6U+uw7NvIACiaIYAFVt3LHZ/cDev p3oIq7NyycCcIsxQTrE5cM7FIA/eESAZM/0wAvAM1RqICWKWVWrWXTBsAheVBC1ju0fz RkiVBYrDTflHMIY9CCS6x7HLVkCfn3N2hM4g9EQCHKhoh3K7v6WzTyfeusL5Lxe20esr 9ifZB4me29jW08RpZ1Rzh51v/ZhRCoCEmCRIB+F4eINRhnHSdi/mKtJG9YEsx0JOmX1H WmNQ== X-Gm-Message-State: AHYfb5hJ4kfpV6jocM25wK2PiChNchn1kCEVjEf8IbzulxwXjOPE8i1h 1BrvGTK1TvkCCIxw X-Received: by 10.36.73.25 with SMTP id z25mr13075280ita.153.1502458222935; Fri, 11 Aug 2017 06:30:22 -0700 (PDT) Received: from localhost.localdomain (static.8.26.4.46.clients.your-server.de. [46.4.26.8]) by smtp.gmail.com with ESMTPSA id y72sm398422iod.40.2017.08.11.06.30.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 Aug 2017 06:30:22 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: Mark Brown , Banajit Goswami , alsa-devel@alsa-project.org Date: Fri, 11 Aug 2017 15:29:52 +0200 Message-Id: <20170811132952.32572-10-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170811132952.32572-1-srinivas.kandagatla@linaro.org> References: <20170811132952.32572-1-srinivas.kandagatla@linaro.org> Cc: kwestfie@codeaurora.org, linux-arm-msm@vger.kernel.org, Patrick Lai , sboyd@codeaurora.org, Takashi Iwai , linux-kernel@vger.kernel.org, Srinivas Kandagatla , lkasam@qti.qualcomm.com Subject: [alsa-devel] [RFC PATCH 9/9] arm64: dts: msm8996: db820c: Add sound card support X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP 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 = <&pcm MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + platform { + sound-dai = <&pcm MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + }; + + qdsp@1 { + link-name = "HDMI"; + cpu { + sound-dai = <&hdmi_dai>; + }; + platform { + sound-dai = <&routing>; + }; + codec { + sound-dai = <&hdmi>; + }; + }; + }; + }; + }; + }; + 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@1600000 { + compatible = "qcom,msm8996-smmu-v2"; + reg = <0x1600000 0x20000>; + #iommu-cells = <1>; + power-domains = <&gcc HLOS1_VOTE_LPASS_CORE_GDSC>; + + #global-interrupts = <1>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + ; + + clocks = <&gcc GCC_HLOS1_VOTE_LPASS_CORE_SMMU_CLK>, + <&gcc GCC_HLOS1_VOTE_LPASS_ADSP_SMMU_CLK>; + clock-names = "iface", "bus"; + status = "okay"; + }; + mdss: mdss@900000 { compatible = "qcom,mdss"; @@ -1240,6 +1269,7 @@ phys = <&hdmi_phy>; phy-names = "hdmi_phy"; + #sound-dai-cells = <0>; ports { #address-cells = <1>; @@ -1303,6 +1333,43 @@ qcom,ipc = <&apcs 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 = <&lpass_q6_smmu 1>; + #sound-dai-cells = <1>; + }; + + routing:routing { + compatible = "qcom,q6pcm-routing-v2"; + #sound-dai-cells = <0>; + }; + + hdmi_dai: dai_hdmi { + compatible = "qcom,q6hdmi-v2"; + qcom,afe-port = <&afe AFE_PORT_HDMI_RX>; + #sound-dai-cells = <0>; + }; + + snd { + }; + + adm { + compatible = "qcom,q6adm-v2"; + }; + + asm { + compatible = "qcom,q6asm-v2"; + }; + + afe: afe { + compatible = "qcom,q6afe-v2"; + }; + }; }; };