From patchwork Thu Dec 14 17:34:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10112965 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 535A060327 for ; Thu, 14 Dec 2017 17:41:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E3E429C45 for ; Thu, 14 Dec 2017 17:41:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3183729C8D; Thu, 14 Dec 2017 17:41:47 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B280729C45 for ; Thu, 14 Dec 2017 17:41:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=9aUDwMQ+VihRxN6KqElkRGlNoZP+k314eQFHSr/QRYY=; b=Iy+7Q3LlVWlWtiYCCoBgRL/vMr PB2wf5CqzLjqTNZ5IQ5OFqpqdzEhdTWrvCbZRCNxjlWBCs9hmWmhMuiRJWTb/b91IA+5dOYNhOd7u vwgXZYAfpBwdAUkxGMLxmUuipIT8oDdmd2PnaGBcV+Dd+YjeQpiIz95TcUP+Y4nhkf83OEE4COA0V IKfrlWxY9nu4UQtq1oPbNBN8sgNBTrcSbv4sHuaEL9OEw4kcByAZtX1lTFDg8JXMqpjbDCVHst02A 2oY4NO9Hvp5XdlELyC0RkF74EzqMdMsPsgvHNdDn/ng4/88qBvOZAAScWiasniG95/bYwohf1+h7+ gMXRec4Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ePXVx-0003RN-RF; Thu, 14 Dec 2017 17:41:45 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePXRZ-0006T1-Uu for linux-arm-kernel@lists.infradead.org; Thu, 14 Dec 2017 17:37:19 +0000 Received: by mail-wm0-x243.google.com with SMTP id r78so12897634wme.5 for ; Thu, 14 Dec 2017 09:36:53 -0800 (PST) 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=ULUUZ5WmFHLaZcT68KslFCqjJW9uzV3bA4f/Y48ULGw=; b=OwFZ4T7Svs/peiij7t9w/KNBBR38sMGFlD+v1DMZhWHi1aKxqJWlZ/AcK2Wk1+mS3G 0nrVVbYU8pqaiJ2EG/axXQ6a3kCsunu9I/j9x6KUq3eI5e9pWQ4IEpyHwvj54X1LR6hv OeadT7HnAyqsGAZgDWzfxt91x/nPxWRbqzQwU= 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=ULUUZ5WmFHLaZcT68KslFCqjJW9uzV3bA4f/Y48ULGw=; b=AXpYo9S8L/AkqJGA74E2045ii6qI+pzGAup6W0AnjwrxWn/AaJ2WdB0T6sPJ6MKb07 X+WA+YdyKRyj+myZEFfvlV81+Y+YCa/xl/JShT7OtrFtG7kKpwuajRPnaEPMZ8sBHNpv W5SvmU17LAQcuBelfxHAQxFZuTlRXu46LhX3GQbiiURFn1N53zM1yp/MumDJbnr1tuI7 JzsTdwYqrQoW346KajXvOJDxjZija0H8H0bcoyrPkOAGEMYnAyfBJgZd7oukYevK6uET Du867BvvfmeikKGz0MTW2vyv5oCJkBtDN2fx0r/GFlSg9ueV6BCVioXJlallFGyBzTle 84pw== X-Gm-Message-State: AKGB3mK1hdrzAZqKeGsegEaWvuXRKiCNtNZNJ4aSGDVdWBCdyK0o7wJX vneDhphY8s5n4JJjaEVvadpXFw== X-Google-Smtp-Source: ACJfBouiJyBH6DTEBiV0K/9KTCvIp2k1YzmKpjR0G0cV1g82liCBJZ3DviidSkL9l2yaPqjTVZ3wBA== X-Received: by 10.28.150.12 with SMTP id y12mr3080161wmd.95.1513273012475; Thu, 14 Dec 2017 09:36:52 -0800 (PST) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id r82sm1741757wme.31.2017.12.14.09.36.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Dec 2017 09:36:51 -0800 (PST) From: srinivas.kandagatla@linaro.org To: Andy Gross , Mark Brown , linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org Subject: [RESEND PATCH v2 15/15] arm64: dts: msm8996: db820c: Add sound card support Date: Thu, 14 Dec 2017 17:34:02 +0000 Message-Id: <20171214173402.19074-16-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171214173402.19074-1-srinivas.kandagatla@linaro.org> References: <20171214173402.19074-1-srinivas.kandagatla@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171214_093714_490192_65FBC7CD X-CRM114-Status: UNSURE ( 8.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Banajit Goswami , linux-kernel@vger.kernel.org, Patrick Lai , Takashi Iwai , sboyd@codeaurora.org, Liam Girdwood , Jaroslav Kysela , David Brown , Rob Herring , Srinivas Kandagatla , linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 | 5 +++++ arch/arm64/boot/dts/qcom/msm8996.dtsi | 33 ++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi index 9769053957af..b955769b100d 100644 --- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi @@ -190,6 +190,11 @@ }; }; + snd { + compatible = "qcom,apq8096-sndcard"; + qcom,model = "DB820c"; + iommus = <&lpass_q6_smmu 1>; + }; gpio_keys { compatible = "gpio-keys"; diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index a144cec7bb71..25c43fb8ab49 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -1262,6 +1262,7 @@ phys = <&hdmi_phy>; phy-names = "hdmi_phy"; + #sound-dai-cells = <0>; ports { #address-cells = <1>; @@ -1297,6 +1298,33 @@ "ref_clk"; }; }; + + 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"; + }; }; adsp-pil { @@ -1325,6 +1353,11 @@ qcom,ipc = <&apcs 16 8>; qcom,smd-edge = <1>; qcom,remote-pid = <2>; + + apr { + compatible = "qcom,apr-msm8996"; + qcom,smd-channels = "apr_audio_svc"; + }; }; };