From patchwork Wed Dec 2 18:07:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 336002 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp1145038ejs; Wed, 2 Dec 2020 10:10:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRzeQOqoHj/YPzCoBQSAYRfUC+PJBTZq2YL0C03MQ9O5PIT8rn5jxIJMw42zKGuBRtkpzL X-Received: by 2002:a17:906:4994:: with SMTP id p20mr946528eju.391.1606932648331; Wed, 02 Dec 2020 10:10:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606932648; cv=none; d=google.com; s=arc-20160816; b=fENNpQiewq/XDJTW54FRZoKxWp/v4vS9o/A80q+3JWlurBw2jitZybB2yrNWgZUt82 npxfZVLUTIQlZCUnjKLD23TROpOy2Yb4VhN9UBKavt8FVWiCGiy4iSb0K9U8BO59QxAv +g6f2Bpd3J3e1z6k5QByWRgeS3T1lw8r1En9VP+Rj3nST2r4iD66D/HtgxegbXAw2vVy UaFT3T9YM4mK2yQDzHk6osHw8eWOdsL6z4yIzBPwGgxiVpDaWhhPki1v154NMmOtEXq9 mnTbUAOUkYWWT3mZAJfPSYGF2vmRlT/hrhIssWHwvPk2xsfENmGisNgIJSuWOcfnGBJF 0g3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rNKqlORltziU7c3DN3fZG1eTqDwrx8ly3QE5W9hpJ70=; b=qLVqWmeCTsdrPHOla0naNflUHiAzNdKVfu240LZQykhkTd1I05y1Cy4nC/muZkyhuX TL2F1ZXFcug/mTT/nFxCdSAM0JVM08vn62FONfPa9wxJ/ezlNQSpJ50TgWfQVARVq/EQ rwfW6s02jMP1JPY6log54sWKapHbx8JmFG9LtM7gyl4wgabEdrOwC824HAVYoENNFLZJ IxJ72EZm+uozHjrS+Hld/1020hoLEkNhOiYfdgwhBLXTaB9OjNrtpa25LGREXefjC2bu trUi2MfpuGHSrEysM7bcm5eYqvyC0dMf2J8wwSe2jLTlaq+BSZi1wVOMXAoLTEDFi1Mz n9vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IeAmutYY; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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. [23.128.96.18]) by mx.google.com with ESMTP id k16si28243edr.236.2020.12.02.10.10.47; Wed, 02 Dec 2020 10:10:48 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IeAmutYY; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1728912AbgLBSJO (ORCPT + 6 others); Wed, 2 Dec 2020 13:09:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728896AbgLBSJN (ORCPT ); Wed, 2 Dec 2020 13:09:13 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B06E0C061A47 for ; Wed, 2 Dec 2020 10:07:55 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id x22so9738672wmc.5 for ; Wed, 02 Dec 2020 10:07:55 -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 :mime-version:content-transfer-encoding; bh=rNKqlORltziU7c3DN3fZG1eTqDwrx8ly3QE5W9hpJ70=; b=IeAmutYYU1MsJRHVWXY7jAkd7WUtsNwPemBO7pQurZqSJXlakZ1aNm888uOR3xypK9 S2AI1ravNYkot7M8SWf2fNwLRLgT4nWH+6gIN2uHL484qOElRMFnVvtE9pt7SvTTE0Ao SUCFPDQ2zmmP0i4YvsYYXwPdcAC3TIw7rSbnHMe8PI+9Cl+ipWXJ3t/qSRHAfFKflebt qiOQuXwFbUh5XDvbUwunCvZn3merjeSma7wcnaJZDMiAMbaJ3VIYd74NkeY/85tr0t20 RBkqc7iEWH8kz9UwFIe1TIJGDa4M/LZEsLsPjgGfike5pG/GB1huC+4v42i2uq6c5wlF yGDg== 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:mime-version:content-transfer-encoding; bh=rNKqlORltziU7c3DN3fZG1eTqDwrx8ly3QE5W9hpJ70=; b=RPPO52jwDi4PdUDkyPkOz5M+gNzadnS1rrPWpvo2n2WhClePym5axOffgk/XJT6nbb YNGhOLa7k1vM0lt8RTqJfNIeU7OLxIgLlJXTl1uT/zin3LR0LkqhpwBiOqhqLcWxZYpf S8CWSGv+7jsiz9RHe5ALnjclHAI8MEZvT7Or++jjqkSZomrNNgeRLYnyNaYQODqZrBKO Ii31A486lZkm4/OMQu7dqzxNLeyUAAKeFBCWwBSu46Bwv1dbopU2o4ynGFytoLbQewGH fUoDuAVcJJJ6jEwGmLhOU1WI88J2ZwlxEhTpytPpP9PA2iwh4nz8/AkH94nyz/x7Z3Zt Y9xQ== X-Gm-Message-State: AOAM533eVnMhE0GVWVvt38bonpKzO3imOpr+vbAY+9urhweRcTF0mhlx 2yABub7d+hUgpRsC/8NzEb68fw== X-Received: by 2002:a1c:4904:: with SMTP id w4mr4338823wma.140.1606932474442; Wed, 02 Dec 2020 10:07:54 -0800 (PST) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id a18sm3004404wrr.20.2020.12.02.10.07.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 10:07:53 -0800 (PST) From: Srinivas Kandagatla To: bjorn.andersson@linaro.org Cc: linux-arm-msm@vger.kernel.org, agross@kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla , Dmitry Baryshkov Subject: [PATCH v2 2/6] arm64: dts: qcom: sm8250: add audio clock controllers Date: Wed, 2 Dec 2020 18:07:37 +0000 Message-Id: <20201202180741.16386-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20201202180741.16386-1-srinivas.kandagatla@linaro.org> References: <20201202180741.16386-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add audiocc and aoncc clock controller nodes required for audio on RB5. Signed-off-by: Srinivas Kandagatla Tested-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) -- 2.21.0 diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index d44120a6eadb..cddbb53db193 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -7,6 +7,8 @@ #include #include #include +#include +#include #include #include #include @@ -2585,6 +2587,26 @@ ; }; + audiocc: clock-controller@3300000 { + compatible = "qcom,sm8250-lpass-audiocc"; + reg = <0 0x03300000 0 0x30000>; + #clock-cells = <1>; + clocks = <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "core", "audio", "bus"; + }; + + aoncc: clock-controller@3380000 { + compatible = "qcom,sm8250-lpass-aoncc"; + reg = <0 0x03380000 0 0x40000>; + #clock-cells = <1>; + clocks = <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_CLK_ID_TX_CORE_NPL_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "core", "audio", "bus"; + }; + adsp: remoteproc@17300000 { compatible = "qcom,sm8250-adsp-pas"; reg = <0 0x17300000 0 0x100>; From patchwork Wed Dec 2 18:07:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 336004 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp1145097ejs; Wed, 2 Dec 2020 10:10:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJw0nG6LDRTxQZIzvq62djpO/KPAWcTxtKB18EM6V0xzMTSafBSoq2FRrPF29ZAd2JL2e5t3 X-Received: by 2002:aa7:df91:: with SMTP id b17mr1218367edy.272.1606932652421; Wed, 02 Dec 2020 10:10:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606932652; cv=none; d=google.com; s=arc-20160816; b=GgJ1I3OqIGcWg/WQvW18MJ9LvQ3FMmrpJk2Ugo/B5VEBB3aaxVIk7rzgj++bFBT/4q MKXhMLM01eW0RwB7ZnfqyyIpJMjygGovI3BsbhsFp1MmlFJfIHalAjOw9mH8JQ6LFLCR DxhiNTDl6Ga2XJXPfHrMJO/2Pfax5PFjg+hePC3j+TmHU1j8WVJy2VWDC6Q9Gn/or4SA 9gTqYvhH/jOf5Q4wwjBTPom0kyys2QJG1SZhMCTGmbWQ7DR9Jaq+N4oLWdLahZzpZ3q5 0s2vORH4APYMhodoyrMzKYdCyq5x7aYCOKzqHVBnuHIwUSbOij/4sgFpGTIgKoI1BmHa nGhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jZdt1XQOEk+ZY/4QVRoY/euZTi8U5G4IRCAkmQbGs68=; b=Xj/yTozSrcJdOmMMmFndDMirtQMY8KVMSbbwOSQbSoshQDOGFvEWiKcJyewwbZ+Beo q8vCsKKQKXglcpthLEaElPfXBRJVDlFQ4bSMEjXFkFTQ6/0pz+xDhhHoYkIuTFxNxzlF 762y6EW3Wpq28U3a+16xr0D0qxaoKUobvwgxEBskrhM/PS6zlcK3qSWwSMEsaSyqOUIv Jzx78/6bN5mbOO7Jk4F6a1Q257SEw5lewS6M3slzr+CeKSLB7uQt1jJt6pgAhbScLtri 7Z4+/220KScwZzArSHfF+J2V3+jMoT7BE1qA3OmfR7SoiyQ9geeAYPntjm/9WjY/s5RZ AnZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b1ZnkVrO; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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. [23.128.96.18]) by mx.google.com with ESMTP id k16si28243edr.236.2020.12.02.10.10.52; Wed, 02 Dec 2020 10:10:52 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b1ZnkVrO; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S2389055AbgLBSJV (ORCPT + 6 others); Wed, 2 Dec 2020 13:09:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388302AbgLBSJU (ORCPT ); Wed, 2 Dec 2020 13:09:20 -0500 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1F17C061A4A for ; Wed, 2 Dec 2020 10:07:56 -0800 (PST) Received: by mail-wm1-x344.google.com with SMTP id v14so9876346wml.1 for ; Wed, 02 Dec 2020 10:07:56 -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 :mime-version:content-transfer-encoding; bh=jZdt1XQOEk+ZY/4QVRoY/euZTi8U5G4IRCAkmQbGs68=; b=b1ZnkVrON3czjvAmME3sv+C1Q2DlMtLC018KTMqgiMzkOEiyoNgmxWx0O4MnKysUuq rJfMglKwVlNglsnW3WVyF8USxs7dvXQW/ncaDXSdM8xMNJe06BfHY3D9TN9sjuacF+VY XSP+/XGsDJg4G9Pkc89NUoDNYKVPpv7F+WZrZv6QqXWIpfNhqmu9s70iPPF3XSj7GX7q 6V9bTof7fjUqxln6UdRy4/zzAl4bUwXzL3h6JIHsy+8+d3s8FRoJmM/0Hv0Rfrp3mtii DYvLRcJNy5s80Y6sUMbb+Depks/OrHuEcis5NkGNcnwyfXOxUC+yY8F/4NBx2U9g3f05 LJaQ== 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:mime-version:content-transfer-encoding; bh=jZdt1XQOEk+ZY/4QVRoY/euZTi8U5G4IRCAkmQbGs68=; b=rM7V+IHV7dvvaqMb7xGlqSvqG21ZqXkjiRSTrdDaaB0P0ZOpuWZJxAEjwYyoIRRmGo +S/iOaLrWWJemCtxT53anR8e8eeRockNnRR1htkBa0qyNpruPu3TkYbaZEPrsfNra+wk K5CvX43o+1Ng1kxTm8ZT9fDXHKvWEV70oN4CS5rLZxX37AV2z/DlD3OR3d9OVFVfonie GfkwRgHRs6r8aVhyfTmIDU7MDOxA0Ko6r214njjvv0TlShBcOY1wbsEgu8hiN72v0Cdj Bnz7LRt4lRaUEtKw05gwG0pa5TplBfPRy/HnzSuutl1jjHtcu47DforUsMRcTPLkDcuh dgxQ== X-Gm-Message-State: AOAM532QhJRahAPifBFqKeVw+eI/OVUDo7w2azWQvchw/sMgMZ0fHprS MAUkzXqd+KZhAAkQ73/E7Z9Elw== X-Received: by 2002:a05:600c:255:: with SMTP id 21mr4382233wmj.69.1606932475722; Wed, 02 Dec 2020 10:07:55 -0800 (PST) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id a18sm3004404wrr.20.2020.12.02.10.07.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 10:07:54 -0800 (PST) From: Srinivas Kandagatla To: bjorn.andersson@linaro.org Cc: linux-arm-msm@vger.kernel.org, agross@kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla , Dmitry Baryshkov Subject: [PATCH v2 3/6] arm64: dts: qcom: sm8250: add lpass lpi pin controller node Date: Wed, 2 Dec 2020 18:07:38 +0000 Message-Id: <20201202180741.16386-4-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20201202180741.16386-1-srinivas.kandagatla@linaro.org> References: <20201202180741.16386-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add LPASS LPI pinctrl node required for Audio functionality on RB5. Signed-off-by: Srinivas Kandagatla Tested-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 84 ++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) -- 2.21.0 diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index cddbb53db193..ce8ae776160d 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2607,6 +2607,90 @@ clock-names = "core", "audio", "bus"; }; + lpass_tlmm: pinctrl@33c0000{ + compatible = "qcom,sm8250-lpass-lpi-pinctrl"; + reg = <0 0x33c0000 0x0 0x20000>, + <0 0x3550000 0x0 0x10000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&lpass_tlmm 0 0 14>; + + clocks = <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "core", "audio"; + + wsa_swr_active: wsa-swr-active-pins { + clk { + pins = "gpio10"; + function = "wsa_swr_clk"; + drive-strength = <2>; + slew-rate = <1>; + bias-disable; + }; + + data { + pins = "gpio11"; + function = "wsa_swr_data"; + drive-strength = <2>; + slew-rate = <1>; + bias-bus-hold; + + }; + }; + + wsa_swr_sleep: wsa-swr-sleep-pins { + clk { + pins = "gpio10"; + function = "wsa_swr_clk"; + drive-strength = <2>; + input-enable; + bias-pull-down; + }; + + data { + pins = "gpio11"; + function = "wsa_swr_data"; + drive-strength = <2>; + input-enable; + bias-pull-down; + + }; + }; + + dmic01_active: dmic01-active-pins { + clk { + pins = "gpio6"; + function = "dmic1_clk"; + drive-strength = <8>; + output-high; + }; + data { + pins = "gpio7"; + function = "dmic1_data"; + drive-strength = <8>; + input-enable; + }; + }; + + dmic01_sleep: dmic01-sleep-pins { + clk { + pins = "gpio6"; + function = "dmic1_clk"; + drive-strength = <2>; + bias-disable; + output-low; + }; + + data { + pins = "gpio7"; + function = "dmic1_data"; + drive-strength = <2>; + pull-down; + input-enable; + }; + }; + }; + adsp: remoteproc@17300000 { compatible = "qcom,sm8250-adsp-pas"; reg = <0 0x17300000 0 0x100>; From patchwork Wed Dec 2 18:07:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 336003 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp1145072ejs; Wed, 2 Dec 2020 10:10:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQFvwhgjf3OTGwJhKuD9RAb7UzFtpqlHB9wossnJC14JnAPhbU/P1pI8khnPYhmMCYBSrx X-Received: by 2002:a50:8714:: with SMTP id i20mr1201851edb.200.1606932651137; Wed, 02 Dec 2020 10:10:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606932651; cv=none; d=google.com; s=arc-20160816; b=ypNTHM+ZsX9NS0YLGgZQ+U6+p2wWaEqN34OD6L5DWSGonOOFXdX822NgrFeG86O+pc VVnFPiWIqOP4QEVleCh9DjCsT5Dlp6glqBgu/wwhjJOGOoJQVX0fVV9xFPAiSQLZMkgD q/MCeG4yrrQLheQT1RccNq/s4ITPu76MyfzqkZZ7syRMpTHL4aknEpI3B2r1U2E5PpK6 l6rKILlp3A38Y3r5cBcS6jRvAVqGmOEYzcLz3G55hklql3XEGKLOoAiiQgpI78I/uB2Q fL9BTeUYnjPEysnmQn73AnAPzw9d3zyzLaiXf6GI6A2XJqs/a3bVpAiXS9c5DI2T6yAk Xzkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=n+Hx6pLobOGXXs8wOkryQ0MlQmOPmFt3/oj9+AjGRak=; b=LYnkqb7dwHENEQAl+2PxgCa9cUUX4ottKU12PKMSb4ks2vUCI69Sh7th6H6njlhf6Z QBlPrXIUS/xHPCUYCvQ84uSnzldFw5Jm4bu+MuscuoHlSqzEiuxjwp90NBzyAtmLZIHK YCkTYrQl7ODFdH2bB9xr7Nj8cpiiqK7FUWGvyCZ3L9GJbOsfNZuo+8inhav3XdJ6Q7CI U8kGc4WSpOQIHpFu+UuAszOz8GKjtTEi/NgwHf9R8QutztHNZwP7X78V335+1xZLhkI9 CJ0Vw3BfHQYUkoA7lOsCNgLKpdbs5Li+DS7sKroquXNp/Q/JDf2kzFMK/8xuHGPjiM0U 7taQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="orYhDey/"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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. [23.128.96.18]) by mx.google.com with ESMTP id k16si28243edr.236.2020.12.02.10.10.50; Wed, 02 Dec 2020 10:10:51 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="orYhDey/"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S2388926AbgLBSJU (ORCPT + 6 others); Wed, 2 Dec 2020 13:09:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388504AbgLBSJT (ORCPT ); Wed, 2 Dec 2020 13:09:19 -0500 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D1EDC061A4E for ; Wed, 2 Dec 2020 10:07:58 -0800 (PST) Received: by mail-wm1-x344.google.com with SMTP id 3so10709471wmg.4 for ; Wed, 02 Dec 2020 10:07:58 -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 :mime-version:content-transfer-encoding; bh=n+Hx6pLobOGXXs8wOkryQ0MlQmOPmFt3/oj9+AjGRak=; b=orYhDey/HNLXhEUKG3mH9p6941gEfUTzV/eMnt8Zg86fsz5haRD/1ujt0qiOTVQFCn VFpsBnRhohyYjJtpjFfZ7ABZulP+e2xHOC/TgTuj7kuaJk1GLurt2Hf8h7HD0JN+YS8m VKYi5LEOxMISfwrmQl898ZV6CF3xu6KXKYFWZcBdACw2UFuoLLiTMFdDIKOQ6uTY0pju pyc2lnSaFBOPf621PPArjWNssG6mCkoQR0ViD92RDg6iNh2cHYkf7YP6o/uJ11JbbLfN owx1rbJ7nQNaU1+Q/m5CBg/pocOhzM++sv47jTl/nrxT98hfhDvHrlsIqw6BigSxd5o2 xiVw== 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:mime-version:content-transfer-encoding; bh=n+Hx6pLobOGXXs8wOkryQ0MlQmOPmFt3/oj9+AjGRak=; b=CVTk/T6Z0rV89vmTXQloIE4t1U5pNe0VAqPUPzM0S1fSUm45l7vxaV8LVwIswyWABk 6Yhz/ueJVn2kk861i1XxldSVRXDgxxFkXzx8h33sD/GDFRYRywiUVTEWYd1XuwMeqWVe mtez0YTxIWDiTyLOD0Z5AauAfdOMcNniWADDZ7wd199VPnQNkpzefpn55Hqz/bRNhdFr jfIrotRetMSA41cuOXfrSqfymighyXLsQ7rdgzWyTJS4mOWlrq9upX4zkItR30A97O+U 40rSJ94us5BlumaOYHuBIaEboQOF68PGzpR24upRgI5/+QxTc/Y5CZe+hvN0FLpVjRtD 3ekg== X-Gm-Message-State: AOAM533O7v3LvWLExbthOIKUS1QG1FJO+Jxo5uFSJi5BppuJzbxxxbvj nGvHF/l4hNg4JTK7NdtKn+Z21A== X-Received: by 2002:a1c:3902:: with SMTP id g2mr4311294wma.117.1606932476951; Wed, 02 Dec 2020 10:07:56 -0800 (PST) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id a18sm3004404wrr.20.2020.12.02.10.07.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 10:07:56 -0800 (PST) From: Srinivas Kandagatla To: bjorn.andersson@linaro.org Cc: linux-arm-msm@vger.kernel.org, agross@kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla , Dmitry Baryshkov Subject: [PATCH v2 4/6] arm64: dts: qcom: sm8250: add wsa and va codec macros Date: Wed, 2 Dec 2020 18:07:39 +0000 Message-Id: <20201202180741.16386-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20201202180741.16386-1-srinivas.kandagatla@linaro.org> References: <20201202180741.16386-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add support for WSA and VA codec macros along with WSA soundwire controller required for getting audio on RB5. Signed-off-by: Srinivas Kandagatla Tested-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 56 ++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) -- 2.21.0 diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index ce8ae776160d..d2ade3ab3389 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2691,6 +2691,62 @@ }; }; + wsamacro: codec@3240000 { + pinctrl-names = "default"; + pinctrl-0 = <&wsa_swr_active>; + + compatible = "qcom,sm8250-lpass-wsa-macro"; + reg = <0 0x3240000 0 0x1000>; + clocks = <&audiocc LPASS_CDC_WSA_MCLK>, + <&audiocc LPASS_CDC_WSA_NPL>, + <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&aoncc LPASS_CDC_VA_MCLK>, + <&vamacro>; + + clock-names = "mclk", "npl", "macro", "dcodec", "va", "fsgen"; + + #clock-cells = <0>; + clock-frequency = <9600000>; + clock-output-names = "mclk"; + #sound-dai-cells = <1>; + }; + + swr0: soundwire-controller@3250000 { + reg = <0 0x3250000 0 0x2000>; + compatible = "qcom,soundwire-v1.5.1"; + interrupts = ; + clocks = <&wsamacro>; + clock-names = "iface"; + + qcom,din-ports = <2>; + qcom,dout-ports = <6>; + + qcom,ports-sinterval-low = /bits/ 8 <0x07 0x1F 0x3F 0x07 0x1F 0x3F 0x0F 0x0F>; + qcom,ports-offset1 = /bits/ 8 <0x01 0x02 0x0C 0x06 0x12 0x0D 0x07 0x0A >; + qcom,ports-offset2 = /bits/ 8 <0xFF 0x00 0x1F 0xFF 0x00 0x1F 0x00 0x00>; + qcom,ports-block-pack-mode = /bits/ 8 <0x0 0x0 0x1 0x0 0x0 0x1 0x0 0x0>; + + #sound-dai-cells = <1>; + #address-cells = <2>; + #size-cells = <0>; + }; + + vamacro: codec@3370000 { + compatible = "qcom,sm8250-lpass-va-macro"; + reg = <0 0x3370000 0 0x1000>; + clocks = <&aoncc LPASS_CDC_VA_MCLK>, + <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + + clock-names = "mclk", "macro", "dcodec"; + + #clock-cells = <0>; + clock-frequency = <9600000>; + clock-output-names = "fsgen"; + #sound-dai-cells = <1>; + }; + adsp: remoteproc@17300000 { compatible = "qcom,sm8250-adsp-pas"; reg = <0 0x17300000 0 0x100>; From patchwork Wed Dec 2 18:07:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 336005 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp1145145ejs; Wed, 2 Dec 2020 10:10:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRARh0QpotiDWvRhdTro7R1s8XuPouAb/lt7nZG7ymnZBtuOZzniir7ee5wNfatDXS2hj5 X-Received: by 2002:a17:906:c193:: with SMTP id g19mr933111ejz.393.1606932655820; Wed, 02 Dec 2020 10:10:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606932655; cv=none; d=google.com; s=arc-20160816; b=q5nd54+T3p095UwBZxNhiWH9pXvrsSD6XnLSkUnW1w3cfKihQcnAVxucjjI+kDf9kc NEXpMLkzQSVQG1YI5YpmtaKHclq32VjwCHyWZ6X/JUWMCvnknQJxHZ9ydbVaJ7U2F7yj Wy+fQGxgNG6hjCLsqVHUPBGnAXtaARIA1BO6/rFM522P7TJgNARHdcGsoTZO7cTVO+qc fJMTCREiquqXw2GBynQyj1BRv6Gd3sJDveVsbUd7AXWrfOh1YrPC7UO5Tnj2iRhbs/22 yuwlFc6nhL+WaSV7U8zorIfdo7iA1NNvcaNRlhG88Xa6vMYqsqGG+tDCPCcIIjL7rl6K cA4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CqM9q6N4Zo+VkJ7lg9KQfgHn+D5C3chvwEDQouNf3x8=; b=h9ZMdog9Qt5LO6dITUPC6Iavja9GxtjIRKsHTWZ69Qq7oq6N0UuDgNO+C116WunCf7 b0TTBB4m7d+Zn5E8vXANVhEUmHE6Eb8Dp+HhoRmp1Pi9Jze4MLZxLvZkOGQ95q6umo82 RmJdItpuiP6oy3FLs1zmjxRHQyWwZ1gMdNr8pKbkjK+Rd/q4M8riL7UWrlsAMyiZlPt4 +C1UbVTItLpUNJKYOzWYniP/fJOOUTttj8Mc8yLhTnDbnn0OO7BSbHX62e0jh2Bz0U2K QOqsCVBdM1u55SGSuF0Hljj7MSd8hk8nJNGVa5xUFPi0lv9q72uRD3wfJpyFGuLXRkAI pipQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MZbOjrD+; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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. [23.128.96.18]) by mx.google.com with ESMTP id k16si28243edr.236.2020.12.02.10.10.55; Wed, 02 Dec 2020 10:10:55 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MZbOjrD+; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S2389269AbgLBSJd (ORCPT + 6 others); Wed, 2 Dec 2020 13:09:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389108AbgLBSJa (ORCPT ); Wed, 2 Dec 2020 13:09:30 -0500 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CFCBC061A53 for ; Wed, 2 Dec 2020 10:07:59 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id i2so5052661wrs.4 for ; Wed, 02 Dec 2020 10:07:59 -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 :mime-version:content-transfer-encoding; bh=CqM9q6N4Zo+VkJ7lg9KQfgHn+D5C3chvwEDQouNf3x8=; b=MZbOjrD+wIo7l/H/D3+/L62fRo2GJL2/P1FX1b7sNlW6LlTKgNxsxLDqlRQgVV+4o7 aZLuDyLhAmAP+HL5VnCL92DsnsB1wU1RNsnh4X1yAWQA0s4Xbp0cXNureLXOFQn+nhwj +E1wAk5v5BdeaPH93sGth468fFyVpl2Hcd8ZtWP3bA6pnZKOigAIhYTuKQJjtQfV0r01 wp9pz5JsCSMNFq48nx48NclkdeA0XGTrg7h6YgR7YGlDN8VBPPMPpzklmMGMDOeSrqiR YOK2FjTEPbAGoYdx8X8M3GX5PH/krJ1PdYgOadeb28UzyUPGpJ1oYnSm1/pZ/9I7XJeR Fmwg== 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:mime-version:content-transfer-encoding; bh=CqM9q6N4Zo+VkJ7lg9KQfgHn+D5C3chvwEDQouNf3x8=; b=sf5RV/GZXxvGamPiaLqEqO3Nm2NpY1wY7h+E3m2VofVZ5fM48PzmkUBONXqhLe5S7Q Gry51IGQSZF6lwC30Y0wHuNo04rjCIFHJjjc+oL3yienExU2NbgY8USvw8dOQ+nRdaZr mkY9EYoWbpnQEHhyJ1pAZOPIsl4P2zmJB+2O/HPd/lg3Mn0+x5m2gQyvm2A23nbvA7Rv RM7DeBsnSrCHLy2jYzRnGNF9Md1giPF2OwRIHdm1jduTofBAkUoG6RWwbAlKCVyvEZpf IaL6TlaJ7V5SwRBhhZA/J4nvEcgCfb2xHDmoR0589hiBN9Kcj0cfIb1zCO4knYkG8pD5 1DmA== X-Gm-Message-State: AOAM531Ml5Y68rH+qrhtLdsaZRR86wZJBqFzhQy1wqwW0gXpUe2/5gAJ nvOHar+0GjVg6bEWcs4+J7CVWg== X-Received: by 2002:adf:e481:: with SMTP id i1mr4771642wrm.282.1606932478279; Wed, 02 Dec 2020 10:07:58 -0800 (PST) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id a18sm3004404wrr.20.2020.12.02.10.07.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 10:07:57 -0800 (PST) From: Srinivas Kandagatla To: bjorn.andersson@linaro.org Cc: linux-arm-msm@vger.kernel.org, agross@kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla , Dmitry Baryshkov Subject: [PATCH v2 5/6] arm64: dts: qcom: sm8250: add mi2s pinconfs Date: Wed, 2 Dec 2020 18:07:40 +0000 Message-Id: <20201202180741.16386-6-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20201202180741.16386-1-srinivas.kandagatla@linaro.org> References: <20201202180741.16386-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add primary and tertinary mi2s pinconfs required to get I2S audio. Signed-off-by: Srinivas Kandagatla Tested-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 55 ++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) -- 2.21.0 diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index d2ade3ab3389..51cffdae631c 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -1884,6 +1884,37 @@ gpio-ranges = <&tlmm 0 0 180>; wakeup-parent = <&pdc>; + pri_mi2s_active: pri-mi2s-active { + sclk { + pins = "gpio138"; + function = "mi2s0_sck"; + drive-strength = <8>; + bias-disable; + }; + + ws { + pins = "gpio141"; + function = "mi2s0_ws"; + drive-strength = <8>; + output-high; + }; + + data0 { + pins = "gpio139"; + function = "mi2s0_data0"; + drive-strength = <8>; + bias-disable; + output-high; + }; + + data1 { + pins = "gpio140"; + function = "mi2s0_data1"; + drive-strength = <8>; + output-high; + }; + }; + qup_i2c0_default: qup-i2c0-default { mux { pins = "gpio28", "gpio29"; @@ -2480,6 +2511,30 @@ function = "qup18"; }; }; + + tert_mi2s_active: tert-mi2s-active { + sck { + pins = "gpio133"; + function = "mi2s2_sck"; + drive-strength = <8>; + bias-disable; + }; + + data0 { + pins = "gpio134"; + function = "mi2s2_data0"; + drive-strength = <8>; + bias-disable; + output-high; + }; + + ws { + pins = "gpio135"; + function = "mi2s2_ws"; + drive-strength = <8>; + output-high; + }; + }; }; apps_smmu: iommu@15000000 { From patchwork Wed Dec 2 18:07:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 336086 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88ECFC83013 for ; Wed, 2 Dec 2020 18:10:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 524B12227F for ; Wed, 2 Dec 2020 18:10:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389342AbgLBSKB (ORCPT ); Wed, 2 Dec 2020 13:10:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389249AbgLBSKB (ORCPT ); Wed, 2 Dec 2020 13:10:01 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8886C061A56 for ; Wed, 2 Dec 2020 10:08:00 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id p8so5051375wrx.5 for ; Wed, 02 Dec 2020 10:08:00 -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 :mime-version:content-transfer-encoding; bh=KNwBh5Oi//J2Be7LIJjV0b/+HNUbYnjVRXKUnYFcgws=; b=M23B4Idvf4R9I2mTXqkuRiffExFxPJzSnsO0ztMVTMwuIgumwn6JLkI9Bz6PRa6e86 QSyVdAOME43qSqmlEl3PQ7LQrbz1h/fJujoTvAWCdYgRE/lpcg+7Z6eJ7WipseTZy0Bd gnNiD33grSx6CG2XxpKH12aLwE/bmjXCTimXwc4mlHgwflfpHoN29NdoAyaCO3T6gCtS nCRpncL6fnO3PAvFZhLJS9KEnPmzaOIkjeJ/oFUe1DKWXDjkj6Uoe7dbVtlWmsA/1Et2 FwRFzfF+A5lnLQGyjD4NAD31GCPrNdSOApShhCcZIVy82v2FOzJbBUsy6L74KbQlh0t2 PJEQ== 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:mime-version:content-transfer-encoding; bh=KNwBh5Oi//J2Be7LIJjV0b/+HNUbYnjVRXKUnYFcgws=; b=JMFy4pjIn4IsJC7Xo3Lpghvm59ZLmbnpI3Nm/7xeaDEsOV6M7PzzDxAs/ZQFMdEMNF j2Y88CH+BtlZH+Y/Yf3Uu0jA4crrbqKBD0XSyvs9KqnuzMJuoYLoRTmc9VS2j1sqS/M7 kIkfIFn5nBExNkxTHcyTYDGr3pc6tixkyZjIuCK/7d1MFuANAe4guGIOwJMWEifgzSef b4rpfwd8r3mOtVzjRQ9GbMFP/uHDzQa0lI20EQ82DsUH9wrL+gUdDPoKcYIN8BcIQMPr XoWlpv+/wMpw/q0/4B2kEgLBcrsrEE6p6l3ZhR6uK6WwWN0OlayDfV5kRrl1ChudurPI fCZQ== X-Gm-Message-State: AOAM5307W4oNHQVF+YJoO4KUZtq0ycy2pm7EJdf394lcplzRuR51R3eU W5vpBFeQxp7Pt9/Z4uHKJxishQ== X-Google-Smtp-Source: ABdhPJxW7ACqll1VfNJl6wS8dgps8ICPjpYYUy8BXaGNxAPi73N8yjZTjHdceTIKtiO8Jt+l8pBAUQ== X-Received: by 2002:adf:916e:: with SMTP id j101mr4842869wrj.55.1606932479522; Wed, 02 Dec 2020 10:07:59 -0800 (PST) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id a18sm3004404wrr.20.2020.12.02.10.07.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 10:07:58 -0800 (PST) From: Srinivas Kandagatla To: bjorn.andersson@linaro.org Cc: linux-arm-msm@vger.kernel.org, agross@kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla , Dmitry Baryshkov Subject: [PATCH v2 6/6] arm64: dts: qcom: qrb5165-rb5: Add Audio support Date: Wed, 2 Dec 2020 18:07:41 +0000 Message-Id: <20201202180741.16386-7-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20201202180741.16386-1-srinivas.kandagatla@linaro.org> References: <20201202180741.16386-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch add support for two WSA881X smart speakers attached via Soundwire and a DMIC0 on the main board. Signed-off-by: Srinivas Kandagatla Tested-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 121 +++++++++++++++++++++++ arch/arm64/boot/dts/qcom/sm8250.dtsi | 3 + 2 files changed, 124 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index ce22d4fa383e..475542afecea 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -7,6 +7,8 @@ #include #include +#include +#include #include "sm8250.dtsi" #include "pm8150.dtsi" #include "pm8150b.dtsi" @@ -120,6 +122,11 @@ }; }; +&adsp { + status = "okay"; + firmware-name = "qcom/sm8250/adsp.mbn"; +}; + &apps_rsc { pm8009-rpmh-regulators { compatible = "qcom,pm8009-rpmh-regulators"; @@ -483,6 +490,35 @@ status = "okay"; }; +&q6afedai { + qi2s@16 { + reg = <16>; + qcom,sd-lines = <0 1 2 3>; + }; +}; + +/* TERT I2S Uses 1 I2S SD Lines for audio on LT9611 HDMI Bridge */ +&q6afedai { + qi2s@20 { + reg = <20>; + qcom,sd-lines = <0>; + }; +}; + +&q6asmdai { + dai@0 { + reg = <0>; + }; + + dai@1 { + reg = <1>; + }; + + dai@2 { + reg = <2>; + }; +}; + &sdhc_2 { status = "okay"; pinctrl-names = "default"; @@ -497,6 +533,84 @@ no-emmc; }; +&swr0 { + left_spkr: wsa8810-left{ + compatible = "sdw10217211000"; + reg = <0 3>; + powerdown-gpios = <&tlmm 130 GPIO_ACTIVE_HIGH>; + #thermal-sensor-cells = <0>; + sound-name-prefix = "SpkrLeft"; + #sound-dai-cells = <0>; + }; + + right_spkr: wsa8810-right{ + compatible = "sdw10217211000"; + reg = <0 4>; + powerdown-gpios = <&tlmm 130 GPIO_ACTIVE_HIGH>; + #thermal-sensor-cells = <0>; + sound-name-prefix = "SpkrRight"; + #sound-dai-cells = <0>; + }; +}; + +&sound { + compatible = "qcom,qrb5165-rb5-sndcard"; + pinctrl-0 = <&tert_mi2s_active>; + pinctrl-names = "default"; + model = "Qualcomm-RB5-WSA8815-Speakers-DMIC0"; + audio-routing = + "SpkrLeft IN", "WSA_SPK1 OUT", + "SpkrRight IN", "WSA_SPK2 OUT", + "VA DMIC0", "vdd-micb", + "VA DMIC1", "vdd-micb", + "MM_DL1", "MultiMedia1 Playback", + "MultiMedia3 Capture", "MM_UL3"; + + mm1-dai-link { + link-name = "MultiMedia1"; + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + }; + + mm3-dai-link { + link-name = "MultiMedia3"; + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>; + }; + }; + + dma-dai-link { + link-name = "WSA Playback"; + cpu { + sound-dai = <&q6afedai WSA_CODEC_DMA_RX_0>; + }; + + platform { + sound-dai = <&q6routing>; + }; + + codec { + sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&wsamacro 0>; + }; + }; + + va-dai-link { + link-name = "VA Capture"; + cpu { + sound-dai = <&q6afedai VA_CODEC_DMA_TX_0>; + }; + + platform { + sound-dai = <&q6routing>; + }; + + codec { + sound-dai = <&vamacro 0>; + }; + }; +}; + /* CAN */ &spi0 { status = "okay"; @@ -792,3 +906,10 @@ vdda-phy-supply = <&vreg_l9a_1p2>; vdda-pll-supply = <&vreg_l18a_0p92>; }; + +&vamacro { + pinctrl-0 = <&dmic01_active>; + pinctrl-names = "default"; + vdd-micb-supply = <&vreg_s4a_1p8>; + qcom,dmic-sample-rate = <600000>; +}; diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 51cffdae631c..336a4efab0b4 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -1561,6 +1561,9 @@ }; }; + sound: sound { + }; + usb_1_hsphy: phy@88e3000 { compatible = "qcom,sm8250-usb-hs-phy", "qcom,usb-snps-hs-7nm-phy";