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>;