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: 336035 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=ham 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 A4711C8300F for ; Wed, 2 Dec 2020 18:09:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6567F22201 for ; Wed, 2 Dec 2020 18:09:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388899AbgLBSJU (ORCPT ); Wed, 2 Dec 2020 13:09:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388871AbgLBSJT (ORCPT ); Wed, 2 Dec 2020 13:09:19 -0500 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DB24C061A4F for ; Wed, 2 Dec 2020 10:07:58 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id a3so10772902wmb.5 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=tI9F6/iwgl7uLXfR5XE0FO/YcliRWbVR5578K71K/LMdvp0FhefAFZ1Cp9l/hWBNm5 wm89fuaC1DegqH2p3rlcvq9FBajtaZrHHkqlgQ9qQwthl8DeM249kf8X85mG3Y2E/rOs e7FnAD2yoy2VIp4p7cHJ1Sb4tVpDFBQ1lkwNoup5VvFL83qY2VjZXvbHPugrY2QcSxmw 81k/0NE4w8lr5koyN91KHEH/oddsZzRMUVQPb/EMrO+tDA0X+3SImBZbm7RX8f96n0np xFUl5NSZqA4pnMw+JK6oezcJIT6YcokYFOUs/vdvSd8lmZi3BnQAzhXv36EP2gisAMLB GSog== X-Gm-Message-State: AOAM530L4NuIuQyDAlIH37KwMlJyPeCD1snRiLOH8C2RCePAasu+U4Ts a3FM5B2zatSV6vE5WXJlPPys1g== X-Google-Smtp-Source: ABdhPJy+/qQh2geEM6pGiEsN3COZIp9Vix8PdY/OkdfYpYeZPrcwAG6AWWTZB4BQXyGfn+vcEQvh5Q== 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: linux-arm-msm@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(+) 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>;