From patchwork Tue Feb 13 16:58:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 128269 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp4459127ljc; Tue, 13 Feb 2018 09:02:59 -0800 (PST) X-Google-Smtp-Source: AH8x225PRcVCujbN9pY1v/iFvuBgdj8O12CzEAAEOoIm46AJNrqYEiEmDvnu6zN9kFXDf7FTLTpM X-Received: by 10.99.113.11 with SMTP id m11mr1509022pgc.57.1518541379552; Tue, 13 Feb 2018 09:02:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518541379; cv=none; d=google.com; s=arc-20160816; b=WwZUcRHmk+R7sOQwgo1t13Hg+QTE6KCsOR2yawiwnOc/Pb4mMOCBS9o2/g4A4RJKkw n7kt+X6Xci9mbObpyacZmebCFGJ3DXh/eK+zYWK3M+nMu80D/Gif8zJqsWOo4z4g16Bd NgfnTZqD++qnSWBIH5+vjdCJkBbixiWPt+ykefEQ1AwzgmU/AxJF3MtXRGg2yvWS6ar6 ge5AHYvgb3yU9WxnZxlTdB0oq7fdKEW1PtnEGYgmhu3r71Lci2sOCYMDIZ/bkuMckZsR ApMdS4BOKWvfcfGBB0ufaIpDtVzsSInGdr688y+YiykIWGAthRsSHgbtrqAHKu08FlGN 4zxw== 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=CQdpazCSHoVUUwqGM9fnZ88nd+tej68/aeXmfDC3h8s=; b=WadqxsIpcOv5o28ZB1zskdsnuYg3rU6EoWwARf2ECABPGiCvB7TCulwat+Q5q5FxMJ wyLMvRKBesabBeItA/bo2k+XalQBFUat/FMyVhKmVo8+jxaQpjvSFxBr1dMWyEgqXIQC cp3ehCdSc0bi2KlhG2kh3E/JrU8dlPIdUSLt2l8G7ASxqyeT1P7dm0RhXzs66d34zgl7 5ESM5zwUQSAXemCNcB0cqKcuIZJuvAfkiRWzCAreXNOqTMB3oFbIghjSrrL0+EyZUvox qvMznvYnJc5udh0DGJl60LEDohNZpJNLVWkJb6JXv9zCszoSTPkTsp6fYSGDolyHnCCH 8sgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iubqN9hK; 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 59-v6si1832586pla.203.2018.02.13.09.02.59; Tue, 13 Feb 2018 09:02:59 -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=iubqN9hK; 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 S965335AbeBMRCX (ORCPT + 28 others); Tue, 13 Feb 2018 12:02:23 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36798 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965535AbeBMRBu (ORCPT ); Tue, 13 Feb 2018 12:01:50 -0500 Received: by mail-wm0-f68.google.com with SMTP id f3so17295095wmc.1 for ; Tue, 13 Feb 2018 09:01:49 -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=CQdpazCSHoVUUwqGM9fnZ88nd+tej68/aeXmfDC3h8s=; b=iubqN9hKNB+fatP1urFTYEa9Dz7Z+qT8Ya6J5pF3NDWRc/kyO9hLFpiZ0WxTquT2Va PFCSRZU1vDpg1Dmg0laDcufTq+a/WQR25INnlYjfg+nODs0zIx/qXHe7PWXY4wHDjC1p WQj4TUub974x0gKQxe98arYp6u3KMDdzYBWJc= 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=CQdpazCSHoVUUwqGM9fnZ88nd+tej68/aeXmfDC3h8s=; b=BrFetJeTZwFFjZvfHztXkvv9j+Z1eohdeol1E4FkbQAayn7aUted2skyn7VTQazyPT 2HYKnsQeuxGTHpoE2MCtXEGV9oRM+63bRrArwUl37evhNJBGzBrq3B7an439mHZYg4vM aKoVw8pdL8sFkVysIFNdfRL/L4YR8+HL65b+pnR7E8dKyGliTsZ2hIB6SGLLhqgZkwn4 Ay0Oq4RYwjii/s9z3iwyn1a4qcB5G5xbFLJMqSQ62UM8+1raNOa/E0Qwqy7KQVAsdetq toXZSQL+2Yg/K57AA1G7OZvnAgMTyHufw+sdjJQ7KD3NxZpH01AX3/aak8p/EescQcyG Ni0Q== X-Gm-Message-State: APf1xPB6dUvULiJufIqaX0eydiMSN7J28iH1QdwkOiupglmcQJsftIOj udUaob45KtULThlFoO+IbMHjEg== X-Received: by 10.28.5.10 with SMTP id 10mr1866413wmf.126.1518541308319; Tue, 13 Feb 2018 09:01:48 -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 y145sm7432723wmd.43.2018.02.13.09.01.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Feb 2018 09:01:47 -0800 (PST) From: srinivas.kandagatla@linaro.org To: andy.gross@linaro.org, broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org Cc: david.brown@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, lgirdwood@gmail.com, plai@codeaurora.org, bgoswami@codeaurora.org, perex@perex.cz, tiwai@suse.com, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, rohkumar@qti.qualcomm.com, spatakok@qti.qualcomm.com, Srinivas Kandagatla Subject: [PATCH v3 25/25] arm64: dts: msm8996: db820c: Add sound card support Date: Tue, 13 Feb 2018 16:58:37 +0000 Message-Id: <20180213165837.1620-26-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180213165837.1620-1-srinivas.kandagatla@linaro.org> References: <20180213165837.1620-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 | 44 +++++++++++++++++++- arch/arm64/boot/dts/qcom/msm8996.dtsi | 62 ++++++++++++++++++++++++++++ 2 files changed, 105 insertions(+), 1 deletion(-) -- 2.15.1 diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi index 9769053957af..6f6f21501ee9 100644 --- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi @@ -18,7 +18,8 @@ #include "apq8096-db820c-pmic-pins.dtsi" #include #include - +#include +#include / { aliases { serial0 = &blsp2_uart1; @@ -186,6 +187,7 @@ core-vdda-supply = <&pm8994_l12>; core-vcc-supply = <&pm8994_s4>; + #sound-dai-cells = <1>; }; }; }; @@ -360,4 +362,44 @@ }; }; }; + adsp-pil { + power-domains = <&gcc HLOS1_VOTE_LPASS_ADSP_GDSC>; + smd-edge { + apr { + iommus = <&lpass_q6_smmu 1>; + audio { + compatible = "qcom,apq8096-sndcard"; + qcom,model = "DB820c"; + qcom,audio-routing = + "RX_BIAS", "MCLK"; + + fe@1 { + is-fe; + link-name = "MultiMedia1 Playback"; + cpu { + sound-dai = <&q6asm MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + platform { + sound-dai = <&q6asm MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + }; + + be@1 { + link-name = "HDMI Playback"; + cpu { + sound-dai = <&q6afe AFE_PORT_HDMI_RX>; + }; + + platform { + sound-dai = <&q6adm>; + }; + + codec { + sound-dai = <&hdmi 0>; + }; + }; + }; + }; + }; + }; }; diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index c93bbae645bd..75cb055b0c55 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -14,6 +14,7 @@ #include #include #include +#include / { model = "Qualcomm Technologies, Inc. MSM8996"; @@ -1287,6 +1288,34 @@ "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 { @@ -1315,6 +1344,39 @@ qcom,ipc = <&apcs 16 8>; qcom,smd-edge = <1>; qcom,remote-pid = <2>; + apr { + compatible = "qcom,apr-v2"; + qcom,smd-channels = "apr_audio_svc"; + qcom,apr-dest-domain-id = ; + + q6core { + qcom,apr-svc-name = "CORE"; + qcom,apr-svc-id = ; + compatible = "qcom,q6core"; + }; + + q6afe: q6afe { + compatible = "qcom,q6afe"; + qcom,apr-svc-name = "AFE"; + qcom,apr-svc-id = ; + #sound-dai-cells = <1>; + }; + + q6asm: q6asm { + compatible = "qcom,q6asm"; + qcom,apr-svc-name = "ASM"; + qcom,apr-svc-id = ; + #sound-dai-cells = <1>; + }; + + q6adm: q6adm { + compatible = "qcom,q6adm"; + qcom,apr-svc-name = "ADM"; + qcom,apr-svc-id = ; + #sound-dai-cells = <0>; + }; + + }; }; };