From patchwork Tue Dec 5 22:18:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 120763 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp6312052qgn; Tue, 5 Dec 2017 14:21:25 -0800 (PST) X-Google-Smtp-Source: AGs4zMby4DZXrca8hVullsoGMI/plj5OXEx0k8Lu6iFVpmRWQ0qxskuy6LWtogxGcGoVCNKU70z3 X-Received: by 10.84.252.23 with SMTP id x23mr20023213pll.54.1512512485339; Tue, 05 Dec 2017 14:21:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512512485; cv=none; d=google.com; s=arc-20160816; b=UgmYwBvSQoVH/wQjbhBz9wNXia4UkoltF+N/499T2t+VE3kLu6CCTqn3LsuztMYBPi 7aO+a6DZTk82dA11hV0J5EaA3SdeCWY27pIfKHFp1cPPih+XEEw8+ymB5IxcXLmdf/GF Nb4sqEw7W62yIMOPNJPyGuiq2rPypZ4xCmkOlzFbFOu91TyR2IjVjAF2XyfZQgG0tmUE yXOPCcOqQPv8Qdgf0OhBzvakYlMIbz+4DO2bWm7Xiz9bvpDWMH2o1dsilnkV60yoGos6 pEFhB0qlHDQRWgZAX5pSqw6yvFnIreL8WomGLAzl3RM1Rt3khGxlUNJ+E7zYvVvAAENL 8AYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=ULUUZ5WmFHLaZcT68KslFCqjJW9uzV3bA4f/Y48ULGw=; b=AZgDcjXqQxSRaW9TtblgQcrmP0fXZzrpcANGUeepZ475c0BbznDOdItfflOsKzPQL8 AR9zKO3k4cBOnGohoCOSrvNLHhJ+Jv+guIVHCC/J1IGN6ukEbFlN9EWN/Brfav/2DEQc K6+qpNJoPAANtGSri59QSIhE0N2ScBH8L3gkxXeYt6Cs3pAczcauayv5gabBmtV1U+7X pntIzCgpb+xkfYeUdBWP+uDTyvMf9HVC0ZHAv+yaCyxCQ5vg4YmM0YP6Az0TXttccliP zkV5WWyQB+yJCZwQSy7hivmimhd1tEX5X+AhofgQUyxDN6UD1QWlrSZUJgg7toKbsZzj zoEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UwHHvjaN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 20si791469pft.356.2017.12.05.14.21.25; Tue, 05 Dec 2017 14:21:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UwHHvjaN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752719AbdLEWVY (ORCPT + 28 others); Tue, 5 Dec 2017 17:21:24 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:41684 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752602AbdLEWUg (ORCPT ); Tue, 5 Dec 2017 17:20:36 -0500 Received: by mail-wm0-f65.google.com with SMTP id g75so4103177wme.0 for ; Tue, 05 Dec 2017 14:20:36 -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=UwHHvjaNRGCdrculUzPoeRv/JeFnrmtsZza2FO86VTAoAjn7GI26Lfd6dEcFZyJgcz tmSlaqRZw3bgenx+6df/44/6FUD1LY5865swuZACWZOu+/1fixBsW3H3pXATGDJWRv2e WvIrLpV54lj+mL8jZ/D08BXn4NotC1g4sJ3cs= 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=MRNeUdS7VUX1tTx0OEUs6/s1epaTjWPUBLrung8+zh+aCPJsboEXgRbAYbwCSbUQzH ynZudHpFL4Fl7nU421h2bLzCsiQ3bT1hs55RRrCQH2CE9RfT01LhX7TORfG5X1cDbkVJ qORBZ4GVkqFXaUEvOLow83maayRWvY5204KGaKa0BrjIbenTIXhJfh7cbVEG7RVqhHGU XOnYpwMij/w6Mbs+1m06IWpLAvLg0btBKGDuigMcFaMVEGoQ60e2tZNZNRTzqYUJYpXo xH6hfESVYj7oT0Dzg6RLB4xPopJIqsneZVrxYBBzNTFmnKtjVdPyh/TPSSvube35A+w7 25Vw== X-Gm-Message-State: AKGB3mIqCn8gP7rVKuBByyC7iX2IKX+sSbfhNkBb9SPrFSoL4tVlyHvZ XPqL1mrwecgXU6YsrJ/K5kEU9Q== X-Received: by 10.28.62.5 with SMTP id l5mr6921395wma.47.1512512435244; Tue, 05 Dec 2017 14:20:35 -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 t138sm1633154wme.16.2017.12.05.14.20.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Dec 2017 14:20:34 -0800 (PST) From: srinivas.kandagatla@linaro.org To: broonie@kernel.org, bgoswami@codeaurora.org Cc: alsa-devel@alsa-project.org, tiwai@suse.com, plai@codeaurora.org, kwestfie@codeaurora.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, lkasam@qti.qualcomm.com, Srinivas Kandagatla Subject: [PATCH v2 15/15] arm64: dts: msm8996: db820c: Add sound card support Date: Tue, 5 Dec 2017 22:18:12 +0000 Message-Id: <20171205221812.25641-16-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171205221812.25641-1-srinivas.kandagatla@linaro.org> References: <20171205221812.25641-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.15.0 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"; + }; }; };