Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp814456rwd; Wed, 7 Jun 2023 07:16:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6WQOk+L5XTOOeAfYVY9jpwDlDyWkfAT2z7kgiYuTq5Eue4wDZbxdV8D5PpbxoaRy9ZS2km X-Received: by 2002:a17:90b:38ca:b0:24b:2fc1:8a9c with SMTP id nn10-20020a17090b38ca00b0024b2fc18a9cmr1860014pjb.11.1686147362471; Wed, 07 Jun 2023 07:16:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686147362; cv=none; d=google.com; s=arc-20160816; b=Epw0gk8g9aGZkLcVkTIZgzwjT3HEXBV02B2S5Drpt1LYzqRUitaB5/PVZhVHw9A3v0 Z1g7htTJuClHWHeRl4CMubowcmxxVbfS2HoS37gpw8AS736pRy9/xG5OKhuBgcbGXmEN GkUWE2gOAuKrZU8F0nvbY+Bz+kwuAb+vVwN8srDX5wrfXjpTRgI+zT0+6T7ipb2Ppabv pD/AxUUooE68bkTH7S7mB7LUOIDM5p73/JtfcmI7US7dErSw1nQ9Oc4KmZAOwIjSu1tM lmRFNzw2NjlyxUDHRcnx4xr9ucpq1GlvIl2Cyhb8Kw4T9VUoNTfRiNBkBe6cWzSZY8wM OMBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=1M24Nb0Jfn6VdAiAglm1uA5NvezRPZanQjJa6TxIdW8=; b=otpj2QVheRXMjzjvGALrdRLdk3EZdNH2oaQQr2lDi5fQhlVceofR4j7zJqPvPvYWtc B86rPVDY3QEOzV0Fqc4hjtPOCc/LeIapzzjpkkrAnkqDj+kycWt2n5h4n76/jXAJiWjK 2AbeIEtRj2Mo3+tdpRfmAuA9hqST2dkMg2fXaTS3aAiG903WCA5lEurtJu3Obysax99a oQsTk81ashQhzpNASjAt5xkPBHjQE/2B8w44Y6XeIpk2BCLfH+U7ElfnXG3LePakjEqu UFBJx19j/qsF5YWRJa0RnvsKqmySHm8bjcH0cB3+rsvNiCoSRf/bJNqx2TwrV2BpFO+j hdfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MLJdW3ML; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v185-20020a6389c2000000b00544c0d7664fsi812060pgd.822.2023.06.07.07.15.46; Wed, 07 Jun 2023 07:16:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MLJdW3ML; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S240782AbjFGNbY (ORCPT + 99 others); Wed, 7 Jun 2023 09:31:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240747AbjFGNbW (ORCPT ); Wed, 7 Jun 2023 09:31:22 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 204DE198C for ; Wed, 7 Jun 2023 06:31:20 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3f6dfc4e01fso73838005e9.0 for ; Wed, 07 Jun 2023 06:31:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686144678; x=1688736678; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=1M24Nb0Jfn6VdAiAglm1uA5NvezRPZanQjJa6TxIdW8=; b=MLJdW3MLn6oHWVjQz9AQQUy0BaZUszJRw2G+IehTMMlpDeniUzS9Ep4jdZJ4P1zdzz +WGY8XDipLtFNo7KX7WUQa4yEb1BE7gEELCGoAhEfMCBLvvyZFNaKmnPAMoDNWteWU1S i5+M/70aLYc/N7wc11TCwjSGTezfDMBJRDnocuIyZUo/lCwSTrISy1PbvV9ZED79pR8W D1e2UwxbJ0OANwTbxkNRkBB0BLd2yR2iCjKRv9W2NgNKoDq1sYB3ZbKZQOi/Vs9miagc lMgmlEfBq1+y1jnW1J5bz5e4Tp+mB4gKKRF5lZnbvZK95elgHzDmCjaoVQlRou+l6Dt8 f10A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686144678; x=1688736678; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1M24Nb0Jfn6VdAiAglm1uA5NvezRPZanQjJa6TxIdW8=; b=NVPLwF5q8kIdrmRztFJw28OhaR55MMoVqgmd/+JshWEQftGagDvLrntLgS4fYzoxz4 NwJawPncCjlzmBgU67BxPt/kysxD+BiTPuwvN6AJUq5b0dOSByBoHkIdgeI6SEM2T39q S9ht3YgK9LMJYYeWiCYh8xX4UVjFgrAFOJPxVVy9yQLMMVqn3IQgoIg1ETrCcRqQ1oY4 9Ik45mdB+wTcTHdrKlAgl7cmcCp3yZ6hQ5RILXI5DRYp/bNuxzw/oSRs1Yb8OU+w3Fc3 VJwkMCvVsbuqSL+OrXH2UkFcDFh0PrrYenjjyPoHj+VFl2xSW1lFdKNQ4xS48cCXdcSo xw/A== X-Gm-Message-State: AC+VfDzZzR4WkFVQVIbdrKEUsb1MzH2BHJP8v/espcxQ+QGQIutmq1FC u4AjnfzgxCQtv1T2DjQyNvnTjA== X-Received: by 2002:a1c:7c0d:0:b0:3f4:f7c2:d681 with SMTP id x13-20020a1c7c0d000000b003f4f7c2d681mr7365641wmc.29.1686144678500; Wed, 07 Jun 2023 06:31:18 -0700 (PDT) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.googlemail.com with ESMTPSA id g7-20020a5d5407000000b0030903371ef9sm15475471wrv.22.2023.06.07.06.31.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Jun 2023 06:31:17 -0700 (PDT) Message-ID: Date: Wed, 7 Jun 2023 14:31:16 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2 5/6] arm64: dts: qcom: sc8280xp: add resets for soundwire controllers Content-Language: en-US To: Krzysztof Kozlowski , 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 References: <20230525122930.17141-1-srinivas.kandagatla@linaro.org> <20230525122930.17141-6-srinivas.kandagatla@linaro.org> <542a67da-5870-dda0-3604-9367a438e51b@linaro.org> From: Srinivas Kandagatla In-Reply-To: <542a67da-5870-dda0-3604-9367a438e51b@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31/05/2023 21:03, Krzysztof Kozlowski wrote: > On 25/05/2023 14:29, Srinivas Kandagatla wrote: >> Soundwire controllers on sc8280xp needs an explicit reset, add >> support for this. >> >> Signed-off-by: Srinivas Kandagatla >> --- >> arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 23 +++++++++++++++++++++++ >> 1 file changed, 23 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi >> index 6730349e34f4..39be2e89ce05 100644 >> --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi >> +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi >> @@ -6,6 +6,7 @@ >> >> #include >> #include >> +#include >> #include >> #include >> #include >> @@ -2560,6 +2561,8 @@ >> 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 @@ >> 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,14 @@ >> status = "disabled"; >> }; >> >> + lpass_audiocc: clock-controller@32a9000 { >> + compatible = "qcom,sc8280xp-lpassaudiocc"; >> + reg = <0 0x032a9000 0 0x1000>; >> + qcom,adsp-pil-mode; > > Here and... > >> + #clock-cells = <1>; >> + #reset-cells = <1>; >> + }; >> + >> swr2: soundwire-controller@3330000 { >> compatible = "qcom,soundwire-v1.6.0"; >> reg = <0 0x03330000 0 0x2000>; >> @@ -2665,6 +2678,8 @@ >> >> 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>; >> @@ -2901,6 +2916,14 @@ >> }; >> }; >> >> + lpasscc: clock-controller@33e0000 { >> + compatible = "qcom,sc8280xp-lpasscc"; >> + reg = <0 0x033e0000 0 0x12000>; >> + qcom,adsp-pil-mode; > > ... here - where do you use these properties? Driver ignores them. Wil add a check in driver. > > AFAIR, these were only for sc7280 where we supported two variants for audio. > we can drop this property altogether, But having this flag will make sure that the bindings are in a ready state to accommodate a new variant of sc8280xp with dsp bypass. --srini > Best regards, > Krzysztof >