Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4572019rdh; Wed, 29 Nov 2023 05:23:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHFVNwxqWU9yDss+f2y3ArRRstfPV/L9EMfqsTz4k0wRuMv7GzEWfWQadhCn94lcD9k1CjZ X-Received: by 2002:a17:90b:4d8b:b0:27d:c36:e12c with SMTP id oj11-20020a17090b4d8b00b0027d0c36e12cmr18787188pjb.9.1701264215305; Wed, 29 Nov 2023 05:23:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701264215; cv=none; d=google.com; s=arc-20160816; b=ZowJv9IW2QVhIU1d8tP+n+C1pFIGekoAnXPvxNeHoV7aW3/wwI30+1on9gfJp3SCql qSVNyywYYKBDPU375Zwg+JghhKZRy05b9DyffvnMUKHCIyjkLtgd1QcWv1UXHSACr6E7 9nRcM2X0IUipm6gAX6IH3tZ+YhitjlYy5yfH/+XpPg2gBx+fSr9lXb3P/r6BjBM4h/i4 XrTDbTFqrQv7gcf33IjC4PombzqnXQjtPh8Ddo6oaZyJkAyA1ZOWqM2A2QVwJGqqxhoo 3xICI0D6G90WGXGX6rJbj38wExLc2ZTbN0V/l856LpFPgoFn2rWjkkzojBE14GEveUOz RjHA== 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=4TjEg2HvGQeoausXFkvYKgkgDLti5NyQehvAtnGer54=; fh=rLQyt8nh5ayRdZ3xO+plSlJsFGefD4yb0k+9Grdc/9g=; b=oNEElEGu60YYy24Yc5ysPlus/XDk/tvNdu/0xbU6r/RFjXP19dpTkJhV3ZgXiIv2SD wYzqCVfulg7pB0qM+cevTTtK/Ru+4MlZ5bYH5ihbYlpNxjijEw8XtYrIG0mHBqrB+U0g fJKUD8uHwZg6Aw4RAUQ3Tg6opXXx6RVbByY8I8in//fLZI4q0Nm730FGfBh1GZZBYR6S AHED1PIB0zbYZKcwGVlvhJbMDXNaydx9GLouSAQTNg30hPYzlcBjT0WHg2fVxZIrRwLR cLMDfbaiBfmHWuEhxoNlmtHLZ0hzfp5b7eaCX148d2xXVq7yU6L14sTMAuMeNLnklO04 mbJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b4lTRfKB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id sm6-20020a17090b2e4600b002859d51fafcsi1420798pjb.41.2023.11.29.05.23.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 05:23:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b4lTRfKB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 4F5FA803955A; Wed, 29 Nov 2023 05:23:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234155AbjK2NXE (ORCPT + 99 others); Wed, 29 Nov 2023 08:23:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233918AbjK2NWw (ORCPT ); Wed, 29 Nov 2023 08:22:52 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EC8510FC for ; Wed, 29 Nov 2023 05:22:58 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-54b7ef7f4d5so4137389a12.1 for ; Wed, 29 Nov 2023 05:22:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701264176; x=1701868976; 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=4TjEg2HvGQeoausXFkvYKgkgDLti5NyQehvAtnGer54=; b=b4lTRfKB9Akefg78S7KGFCMceYsais8bPjNQWTrkNb1P73noLbtkkz1wcCvgNj+njM dTP2Jh5BJRFokXekM4OZhnx+HLdJULIv0W5SI4fHDy1qqs1GABa54uLi5paYeE9ueA2i oxv0kKoYzwu+SR4yj1FB6r2zTpcUGLlu0d/yttgu6ssnahScYjpnO3OMVikGn4v4NjWr 6Z+yhhlDLkJu3yyNYBFnoZVk7iJ8cwiHGSnXxz6nfz/lEgFr6n6oLk2clcASnqEPMYRl cBax84yFRIuqCwtdJfCfoeX4CpdT8U575YDz5/eSENkvnB/05E8ZfasNW+kouSovDHzG EJgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701264176; x=1701868976; 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=4TjEg2HvGQeoausXFkvYKgkgDLti5NyQehvAtnGer54=; b=hgmwpq7rRMJiLNlMk+TQwi6Mf4yrxXhu17pFPUK7fk+boy077gwE538DO1RxxZzYTz f/p4PdVLJ86s9KbjiYZXhFYu1x9qpmbAt2z1YsfDjHg2LSOw1MCySZg0GFjkOAwXNrXT IONudkFow8IlmBzBoXp+Qde7hITWkc+qDocoq0o7T+HPPImaV//LUGRJthSYM0XuLHyr gkPHiM4O9thhMU7xvebb319wTvnxFzmUTq14BsiyQikCsk2IEXTDkfa0I7mHIuRjAMo5 bbJrSWxLPmxrYUwad6PaTyk5oqIf+GsSL5SrRYk7S21qMnTgfygMVG0k4jM8T4pLMQnd t0CA== X-Gm-Message-State: AOJu0Yygh0Hgtl+z3sqTDylq5rKsakZYu12ATysS7x8LUZGKjlsV1Y4W U4B5LcQRYChuOGGw8sKsTSgD5w== X-Received: by 2002:a17:906:1009:b0:a0c:c864:8878 with SMTP id 9-20020a170906100900b00a0cc8648878mr11670511ejm.65.1701264176496; Wed, 29 Nov 2023 05:22:56 -0800 (PST) Received: from krzk-bin.. ([178.197.223.109]) by smtp.gmail.com with ESMTPSA id lb16-20020a170907785000b009fda665860csm7844842ejc.22.2023.11.29.05.22.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 05:22:56 -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 3/5] arm64: dts: qcom: sm8650: add ADSP audio codec macros Date: Wed, 29 Nov 2023 14:22:45 +0100 Message-Id: <20231129132247.63721-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231129132247.63721-1-krzysztof.kozlowski@linaro.org> References: <20231129132247.63721-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 29 Nov 2023 05:23:32 -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/ --- arch/arm64/boot/dts/qcom/sm8650.dtsi | 83 ++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi index e926329cf3f9..cf663a18c9f0 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -2611,6 +2611,89 @@ 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"; + assigned-clocks = <&q6prmcc LPASS_CLK_ID_WSA2_CORE_TX_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + assigned-clock-rates = <19200000>; + + #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"; + + assigned-clocks = <&q6prmcc LPASS_CLK_ID_RX_CORE_TX_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + assigned-clock-rates = <19200000>; + + #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"; + assigned-clocks = <&q6prmcc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + + assigned-clock-rates = <19200000>; + + #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"; + + assigned-clocks = <&q6prmcc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + assigned-clock-rates = <19200000>; + + #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