From patchwork Thu Jun 8 12:53:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 13272289 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 426A8C7EE43 for ; Thu, 8 Jun 2023 12:53:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236689AbjFHMxu (ORCPT ); Thu, 8 Jun 2023 08:53:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236553AbjFHMxi (ORCPT ); Thu, 8 Jun 2023 08:53:38 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C8D82D66 for ; Thu, 8 Jun 2023 05:53:27 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3f736e0c9b1so5250665e9.3 for ; Thu, 08 Jun 2023 05:53:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686228806; x=1688820806; 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=YziHmynId4IR2Mgz/ERaoYyCAyNCy8u3tHZC018mD34=; b=GmeKnsJNkH9RgaU5I6GNV2jUY/27u/Q+UISP0gAJd/UouxtIkVuvvV30YjprH6vWrY 8YUIS85NUSmwCeE+WqwDBw9jp4irOsN4MsN8QxNJ1p3Jj9FBMkOztrK+7foF9kyWW0w7 AgWz+ejXqS6Kv9uxcdrttSIzfuPTAEcDpoGFOprm/GVCkCvm6IrDGZsbFhLrZ8WXAZya sWWSGwot9gL4wEyFYGfIOC9Pm1Tw4yM84e7P8wNVgSyMD9rTG2z06rdNObdEEjnVTEoe 5AvPSbcuPBjfUJCpbHU6CFNakw6X2r8aoqVK78qjtp+8E5CsDUgN0kMDue8wXq3+Q0wi 2B/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686228806; x=1688820806; 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=YziHmynId4IR2Mgz/ERaoYyCAyNCy8u3tHZC018mD34=; b=WpSFaqstxq9nw2GO4fw7d/0g3Jw8ChIgPoRu6PoOaPSMOBHhJgO4zd/zXaClvwv+XH +ry26zrHd/raLo4fFgKcSZNgRmVxaAFSmeLxytxfd7OgMCQs8DTxIwM9Q17LvNzY8OT9 k24CRwt86lQviMiK/zOFF19Ct6Eo2LztsrU/PjDHb2ENdcPsBLNfT07S6DW75ZDON6SQ mYHtwuFZCIkB/Tx9CJgpruvaO9llP9gk33pojT4L/6yDV0fxOP0o0SV/8uGd8LopJi7R G26y4uSXHeMfn6+FvIIvOuX9+PzRdfrVEKpVuv6srpvTtN6N5I1yYyIV0KoTQtuUb0Jv YrJg== X-Gm-Message-State: AC+VfDyHIsZHeyJSBL5QLpTj247ARt+BffU9Fk7nznhfNsu36GzKPSls ufc3dic8RBFueQn5msC1tYBx7Q== X-Google-Smtp-Source: ACHHUZ7BrzAIuHkrq174/toNK5CUMVb9aoCuERW7BtZkWlPdgazcEJDsCiEUUaS/yJchmKVLaCFVTQ== X-Received: by 2002:a7b:ca46:0:b0:3f7:34ee:413f with SMTP id m6-20020a7bca46000000b003f734ee413fmr1265342wml.5.1686228805846; Thu, 08 Jun 2023 05:53:25 -0700 (PDT) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id m22-20020a7bce16000000b003f7e4d143cfsm1894032wmc.15.2023.06.08.05.53.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 05:53:25 -0700 (PDT) From: Srinivas Kandagatla To: andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: johan+linaro@kernel.org, agross@kernel.org, konrad.dybcio@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, conor+dt@kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v3 5/6] arm64: dts: qcom: sc8280xp: add resets for soundwire controllers Date: Thu, 8 Jun 2023 13:53:14 +0100 Message-Id: <20230608125315.11454-6-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230608125315.11454-1-srinivas.kandagatla@linaro.org> References: <20230608125315.11454-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Soundwire controllers on sc8280xp needs an explicit reset, add support for this. Signed-off-by: Srinivas Kandagatla Reviewed-by: Johan Hovold --- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi index 6730349e34f4..6b1bb203b1d1 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -2560,6 +2561,8 @@ swr1: soundwire-controller@3210000 { interrupts = ; clocks = <&rxmacro>; clock-names = "iface"; + resets = <&lpass_audiocc LPASS_AUDIO_SWR_RX_CGCR>; + reset-names = "swr_audio_cgcr"; label = "RX"; qcom,din-ports = <0>; @@ -2634,6 +2637,8 @@ swr0: soundwire-controller@3250000 { interrupts = ; clocks = <&wsamacro>; clock-names = "iface"; + resets = <&lpass_audiocc LPASS_AUDIO_SWR_WSA_CGCR>; + reset-names = "swr_audio_cgcr"; label = "WSA"; qcom,din-ports = <2>; @@ -2656,6 +2661,13 @@ swr0: soundwire-controller@3250000 { status = "disabled"; }; + lpass_audiocc: clock-controller@32a9000 { + compatible = "qcom,sc8280xp-lpassaudiocc"; + reg = <0 0x032a9000 0 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + swr2: soundwire-controller@3330000 { compatible = "qcom,soundwire-v1.6.0"; reg = <0 0x03330000 0 0x2000>; @@ -2665,6 +2677,8 @@ swr2: soundwire-controller@3330000 { clocks = <&txmacro>; clock-names = "iface"; + resets = <&lpasscc LPASS_AUDIO_SWR_TX_CGCR>; + reset-names = "swr_audio_cgcr"; label = "TX"; #sound-dai-cells = <1>; #address-cells = <2>; @@ -2858,6 +2872,13 @@ data-pins { }; }; + lpasscc: clock-controller@33e0000 { + compatible = "qcom,sc8280xp-lpasscc"; + reg = <0 0x033e0000 0 0x12000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + sdc2: mmc@8804000 { compatible = "qcom,sc8280xp-sdhci", "qcom,sdhci-msm-v5"; reg = <0 0x08804000 0 0x1000>;