Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2802176rdb; Mon, 4 Dec 2023 07:58:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHx47WFzFpgBj52KP4hVv2xnGxOPMzUb8dv9v7ykBrXbmHzdQDC2/y+GkH0+tT3jpfRiZBK X-Received: by 2002:a17:90a:d18d:b0:286:4bfd:aebc with SMTP id fu13-20020a17090ad18d00b002864bfdaebcmr4674484pjb.15.1701705505513; Mon, 04 Dec 2023 07:58:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701705505; cv=none; d=google.com; s=arc-20160816; b=T+gfkJrIUSsLGe2GWUbHPLemaPwg6mJQuR6RRjW3B6lfvrhGKrkbqQapkV1rJRGDBs Ls+rKUWPSiac2T3BZfehp4h4QPA/eJ3YUeMGede6IIaO70CfyhhEscdX/jGOk4q6e0+F NVuotkLUoP7W/DCeUAm7BWupOTZkdWVAVJrLuJnHL1zPE9XcGMbReKSf2Pd9c+jpIe1c hv20MEEp7ywPtJ4oQqyqv/+p4MWBVN6ECLa+qGDiB/p+dN7yY3LYYeEGpXdPBTSYShRl t+emZu+uZiZFFzI8v4nZ4WgP6NQ/KUNg7gUfF+OJ7cMfomZM0K5ti3J1qEdXDQvtMZnG 7KlA== 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=WIqBW47UxB0U4Lntp8XanrWtWvMtJnMZvAyQeQ8L0HQ=; fh=rLQyt8nh5ayRdZ3xO+plSlJsFGefD4yb0k+9Grdc/9g=; b=Ig5A7CrxkKZ5jrbArDd5h5WuPPRInFfHwbq9WKfumLwOFNNRSXpvMsnb2gjIxrLy0/ dtsHwXVod5SlyMC/H4kf3Sy9xAupeIZZ3wXC8PGWVufgEeBLeLqaszLXx9SZOZ5UMUFS wFyobnKON0SUdGh+O+eIM9RIFf8piG461b5AfxlzTMy/ghe/3HfV6ZUHEcXFvJfd1mtm y/iasspKvv8YwWilk7xF9jB5EFk9IkrxyQ0Q7ODCDmoGZsTnv5FLRjI5s7hTKp6jAKU7 TUh9ZoM6xm4kt9IePRr3w4gNoPC2Oi3T4aisWAphXg5fjGjUGzH4b6z/U6zeV2QHgFT4 liJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mWEYmch8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id bg7-20020a17090b0d8700b0028651c89270si6608249pjb.98.2023.12.04.07.58.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 07:58:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mWEYmch8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id E05DE807BEE8; Mon, 4 Dec 2023 07:58:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343965AbjLDP5x (ORCPT + 99 others); Mon, 4 Dec 2023 10:57:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234777AbjLDP5s (ORCPT ); Mon, 4 Dec 2023 10:57:48 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B67D3CB for ; Mon, 4 Dec 2023 07:57:54 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-54cde11d0f4so1157852a12.2 for ; Mon, 04 Dec 2023 07:57:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701705473; x=1702310273; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WIqBW47UxB0U4Lntp8XanrWtWvMtJnMZvAyQeQ8L0HQ=; b=mWEYmch82HJPlD01A1tSOXI9cqeBCLpnGSTCLgj6Uw5C5iBEOB0CYoM37XsDd17bRl qhW8TJaWBD/sFpOCLFHwF1Y4qbs1cX9DcDO00vr8pXlT+FmWq9oTpFxmfO/aHpiZrK34 lRxYkEdayp4m6RfSm0HzZ8w2fPxziDngJeff1VIs6xcDSAvc8+yDoyAsO/ODtm2CLldp I4fH9KGtmHm9YIFxM2uBlRf6zkleZW6R5JinaxzdcPL8s2bUji+b0U0St3l2HS4gPtos QK8kcC/Tt9/yJKTkPJPjPc2fOpSjhXtPlVfVYkpQnQzA/ZDGPM8XfW3AFTd4EzwypHby 0WXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701705473; x=1702310273; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WIqBW47UxB0U4Lntp8XanrWtWvMtJnMZvAyQeQ8L0HQ=; b=WPnokT8uV8MEmkJ+2fW6iYaCLo/qV9a4MJvaRIkkJhaDA1UDbWQ5rr8seS9EQOcLHB qIEsH1SB3rPQvveIQa5hYKz1NU3AFgGCOwaopTs8Addlxkfk/SFq04SkX5R5tJhTshqS cjdwukryWsfjxJ8x4etjaspV6wtav7kvGZQ/laH5qYhjyh1dTBcmRa1ATNTCT7TG6SJc iR4xMEX+KmVbVQO430BO0rsV4A/AzAyfS9fVlB2tgw6FSeobYeNLA239jdOMUSYgFFw+ fn2ILCrj8JWK4Afb1nvJ8MjN5CMYgTlGcplu7n2ZSpvP0KSJDBwd3DNItSsV6Chf+54B dzPw== X-Gm-Message-State: AOJu0YzFCEMy+xY/rtartIN3LiMAUJD2AkuZiu5v67zZr8Nb2A4WeEmM jkMABwGa1nF20o9ByxOSd38smA== X-Received: by 2002:a17:906:f94c:b0:a1a:f475:2ebf with SMTP id ld12-20020a170906f94c00b00a1af4752ebfmr1515131ejb.59.1701705472340; Mon, 04 Dec 2023 07:57:52 -0800 (PST) Received: from krzk-bin.. ([178.197.223.109]) by smtp.gmail.com with ESMTPSA id q19-20020a1709060e5300b009a19701e7b5sm5429304eji.96.2023.12.04.07.57.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 07:57:51 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Neil Armstrong Subject: [PATCH v2 3/5] arm64: dts: qcom: sm8650: add ADSP audio codec macros Date: Mon, 4 Dec 2023 16:57:44 +0100 Message-Id: <20231204155746.302323-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231204155746.302323-1-krzysztof.kozlowski@linaro.org> References: <20231204155746.302323-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 04 Dec 2023 07:58:22 -0800 (PST) Add the Low Power Audio SubSystem (LPASS) / ADSP audio codec macros on Qualcomm SM8650. The nodes are very similar to SM8550. Cc: Neil Armstrong Signed-off-by: Krzysztof Kozlowski --- Bindings were documented here: https://lore.kernel.org/linux-devicetree/20231129113014.38837-1-krzysztof.kozlowski@linaro.org/ Changes in v2: 1. Drop assigned-clock-rates, split clock-names into multiple lines (Konrad) --- arch/arm64/boot/dts/qcom/sm8650.dtsi | 86 ++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi index bef4582f2a26..49bc52271301 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -2611,6 +2611,92 @@ IPCC_MPROC_SIGNAL_GLINK_QMP }; }; + lpass_wsa2macro: codec@6aa0000 { + compatible = "qcom,sm8650-lpass-wsa-macro", "qcom,sm8550-lpass-wsa-macro"; + reg = <0 0x06aa0000 0 0x1000>; + clocks = <&q6prmcc LPASS_CLK_ID_WSA2_CORE_TX_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&lpass_vamacro>; + clock-names = "mclk", + "macro", + "dcodec", + "fsgen"; + + #clock-cells = <0>; + clock-output-names = "wsa2-mclk"; + #sound-dai-cells = <1>; + }; + + lpass_rxmacro: codec@6ac0000 { + compatible = "qcom,sm8650-lpass-rx-macro", "qcom,sm8550-lpass-rx-macro"; + reg = <0 0x06ac0000 0 0x1000>; + clocks = <&q6prmcc LPASS_CLK_ID_RX_CORE_TX_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&lpass_vamacro>; + clock-names = "mclk", + "macro", + "dcodec", + "fsgen"; + + #clock-cells = <0>; + clock-output-names = "mclk"; + #sound-dai-cells = <1>; + }; + + lpass_txmacro: codec@6ae0000 { + compatible = "qcom,sm8650-lpass-tx-macro", "qcom,sm8550-lpass-tx-macro"; + reg = <0 0x06ae0000 0 0x1000>; + clocks = <&q6prmcc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&lpass_vamacro>; + clock-names = "mclk", + "macro", + "dcodec", + "fsgen"; + + #clock-cells = <0>; + clock-output-names = "mclk"; + #sound-dai-cells = <1>; + }; + + lpass_wsamacro: codec@6b00000 { + compatible = "qcom,sm8650-lpass-wsa-macro", "qcom,sm8550-lpass-wsa-macro"; + reg = <0 0x06b00000 0 0x1000>; + clocks = <&q6prmcc LPASS_CLK_ID_WSA_CORE_TX_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&lpass_vamacro>; + clock-names = "mclk", + "macro", + "dcodec", + "fsgen"; + + assigned-clocks = <&q6prmcc LPASS_CLK_ID_WSA_CORE_TX_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + assigned-clock-rates = <19200000>; + + #clock-cells = <0>; + clock-output-names = "mclk"; + #sound-dai-cells = <1>; + }; + + lpass_vamacro: codec@6d44000 { + compatible = "qcom,sm8650-lpass-va-macro", "qcom,sm8550-lpass-va-macro"; + reg = <0 0x06d44000 0 0x1000>; + clocks = <&q6prmcc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "mclk", + "macro", + "dcodec"; + + #clock-cells = <0>; + clock-output-names = "fsgen"; + #sound-dai-cells = <1>; + }; + lpass_tlmm: pinctrl@6e80000 { compatible = "qcom,sm8650-lpass-lpi-pinctrl"; reg = <0 0x06e80000 0 0x20000>; -- 2.34.1