Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2641781rwd; Mon, 22 May 2023 01:55:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7C1x4QXsEC9lS2npvfibSoT2Pw+DgHJyup/Bg7gHqBkIOcIhzOGmCtTimcVJd2y6aHSVmC X-Received: by 2002:a05:6a20:1041:b0:10b:40a9:ec48 with SMTP id gt1-20020a056a20104100b0010b40a9ec48mr3166265pzc.29.1684745724119; Mon, 22 May 2023 01:55:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684745724; cv=none; d=google.com; s=arc-20160816; b=UtpMcN+fK4nhihDlCKt8SQ81/167Zu2V69cw3pwyqaAhm8SVARwrrRC97x05YEvy7K NGqR+ZdKjGVkYcshqGrnchPZ+fPuXnnJFoB1kjE7qHysy5FZNd8gyNRaxdYt13M4RA6V AamRvqK42YecLh3sVuQYfX9W/hr/kv5llPWo3KRw+1fWBvdFKagG+zQYZ4+tjpdmSVG1 1zmDmEvBSnPq6OFSvJBald9b93s7lUOBWNj6ZJKDFbcb6//7JrbFm2oT32fQApWkHK3T ZCT6PdQrUWvy5tGf9Rcw64d9FQnOEtmzkVN7WdxqUpemrt2nsyTyVsxiEAJ40DGVAztV G/fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/XSGTqZWrm6UMjIWNFXEsbg+dANVwXY95etw0jIWtGo=; b=MxxNQNaj67lVzCxiuFN5lZTU5KFIqdwsRXpqxh+ySDHBNLg62AQiJri7BsShidDrLo MbRqOtz8M20t1dctwSBDLBSf6q6M/h/x62bUrw6U0mv6CxJgqZK4ajHc30Jh0yrlMgVQ hu5wtEZDieK8unT9Zko4sLXvLqi9/dLY4iR2gUdRonr23/qbKwb/4meCgRsgaqTotngu 3UfajwocqfPDsNrhE65m8QGahinRIuruy0VGy8k2QhcRFiBG02Q7NQpYZC35yu4ZsEfd hjxwtkmaMH+xa6FCOWLZMoTNa/rJhNYR6nwftQN8NPx1XqomC6wqTgmNJzZZmIeex0+J MB3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gXnH98Y9; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o24-20020a637e58000000b0053051c56825si4355087pgn.777.2023.05.22.01.55.12; Mon, 22 May 2023 01:55:24 -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=@kernel.org header.s=k20201202 header.b=gXnH98Y9; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232377AbjEVImi (ORCPT + 99 others); Mon, 22 May 2023 04:42:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230186AbjEVImf (ORCPT ); Mon, 22 May 2023 04:42:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1CE9B6; Mon, 22 May 2023 01:42:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6ED1E61EEA; Mon, 22 May 2023 08:42:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C10DFC433D2; Mon, 22 May 2023 08:42:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684744953; bh=HIGTSD/vvdWcZODz0o7xC7IWIgnQxzwUcLiD/t29xIA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gXnH98Y9zE9UXL0YjMpznFUlkCZ0fYCG17hK+orCQaAZVv8yka+aZEvP7pm3tg3nm f9IdUJgE9hf4IMXvgASPK97LiJE0ghD7XBUGHDQFPSaESgLexuVNFjNDYa008a0UKT XRG7wgNRGZzOBFfFYf/Me/XmAduvtVirnOAKXtyRVVoKEE5Wze6X7ok+P6b6mb55SB ECxK4sYfeEILDaNHp0cd5bcUkU17QLWXfGXyZm/9tzm/xuwQNqhor8lHLIUhZZqiZE eVwkdRuOaNXjmsgNxQeoMOvayQdKRufjjCxCfZcMHgz7FWbTmRKH1OEwEdx92rbptP JKBcAekcLXkVQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1q117h-0004Wq-6e; Mon, 22 May 2023 10:42:33 +0200 Date: Mon, 22 May 2023 10:42:33 +0200 From: Johan Hovold To: Srinivas Kandagatla Cc: andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, 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 Subject: Re: [PATCH 5/5] arm64: dts: qcom: sc8280xp: add resets for soundwire controllers Message-ID: References: <20230518113800.339158-1-srinivas.kandagatla@linaro.org> <20230518113800.339158-6-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230518113800.339158-6-srinivas.kandagatla@linaro.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Thu, May 18, 2023 at 12:38:00PM +0100, Srinivas Kandagatla wrote: > Soundwire controllers on sc8280xp needs an explicit reset, this > patch adds support for this. s/this patch adds/add/ > Signed-off-by: Srinivas Kandagatla > --- > arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > index d2a2224d138a..a2d0f8abe23d 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 > @@ -2548,6 +2549,8 @@ rxmacro: rxmacro@3200000 { > swr1: soundwire-controller@3210000 { > compatible = "qcom,soundwire-v1.6.0"; > reg = <0 0x03210000 0 0x2000>; > + resets = <&lpass_audiocc LPASS_AUDIO_SWR_RX_CGCR>; > + reset-names = "swr_audio_cgcr"; Move after clocks. > interrupts = ; > clocks = <&rxmacro>; > clock-names = "iface"; > @@ -2647,6 +2650,13 @@ swr0: soundwire-controller@3250000 { > status = "disabled"; > }; > > + lpass_audiocc: clock-controller@3300000 { > + compatible = "qcom,sc8280xp-lpassaudiocc"; > + reg = <0 0x032a9000 0 0x1000>; Either this property or the unit address is wrong as they do not match. The bindings currently mandates that vendor property you added ("qcom,adsp-pil-mode), but you left it out here. > + #reset-cells = <1>; > + #clock-cells = <1>; clock before reset for some sort order. > + }; > + Your preliminary version of this patch also added a reset to swr0, which has been left out here. Was that not needed? > swr2: soundwire-controller@3330000 { > compatible = "qcom,soundwire-v1.6.0"; > reg = <0 0x03330000 0 0x2000>; > @@ -2654,6 +2664,8 @@ swr2: soundwire-controller@3330000 { > ; > interrupt-names = "core", "wakeup"; > > + resets = <&lpasscc LPASS_AUDIO_SWR_TX_CGCR>; > + reset-names = "swr_audio_cgcr"; Add after clocks. > clocks = <&txmacro>; > clock-names = "iface"; > label = "TX"; > @@ -2849,6 +2861,13 @@ data-pins { > }; > }; > > + lpasscc: clock-controller@33e0000 { > + compatible = "qcom,sc8280xp-lpasscc"; > + reg = <0 0x033e0000 0 0x21000>; Your driver (and the binding example) seems to suggest that the size here should be 0x12000. The vendor property appears to be missing here too (or the binding is incorrect). > + #reset-cells = <1>; > + #clock-cells = <1>; clock before reset > + }; > + > usb_0_qmpphy: phy@88eb000 { > compatible = "qcom,sc8280xp-qmp-usb43dp-phy"; > reg = <0 0x088eb000 0 0x4000>; Johan