Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2518912rwd; Fri, 16 Jun 2023 05:00:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4YwLk+D684F7MEEW+g8tznop4bKEdw2oIX+QsJ25U3hAfIik6DsBC5LdEt24UkMZQp/ihJ X-Received: by 2002:a05:6808:1a08:b0:39a:bd3b:9cb3 with SMTP id bk8-20020a0568081a0800b0039abd3b9cb3mr2181150oib.23.1686916824709; Fri, 16 Jun 2023 05:00:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686916824; cv=none; d=google.com; s=arc-20160816; b=l+TIAyD1sIXlKR+tRNsgZUTfuV7rYBJjO1LtevY6d2otrK/TABv27/uYAYDGxaWyL8 3GOCV9XYYn2CNSsB3wElp6PpfYbMnUlWXmdOmF4zLM0NbpGWNRWVO6QKIltwDfJHp/o/ 7I4wlpNegGCuUQYnLi1Z2FpsCi4n7eCpodUz87G7mnuBY4HSviS/XPLlROM8DMPH4bgC LCNJjxwHkqBsb4PvMx3giaX0n6l8jv2l0pnHCgmABYBR1Rjxanj0R1CQ8x1DNwp6JtXX uBNOIXvSWwHvRX7Lwfhqo0qTqAzCEo7Xu3NHQhgyLirUZPP1Vpb2exB8fZuTNhD4FhuL x2wQ== 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:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=8nd2+y5FOD0js54Jlzt9YMY1XXmMWttJihYBEi7eAis=; b=PUNsbtQzrcAG/mOJuc8TWogYDGVIr79shOizea7DCUJ3p0uv7RZ6AVn9XN+1Yb/qzj kq58uTkd3ZjUFGnY71Ccv6saVxCTYyVKf7niNXJMJh2n+sEIjWkjEe1yMMZ1xkSIzWqw xUlU84UVOpKpv9oacT0Ze1B4YfnuzD2Z6uYf9YxRtTfPPY8Mvn6Heex/mp03PFvi8y5C Zc6+T7+U6jAIkZpz7OOehURkDLdsQHBS9ogmdQ8MUW2BJgppLEGKZN69kx3NbcaCoNmq i1CAIHGoOAqAgxKlVT/2B5L3OMtIjBcIMzLcl0YrPeIHt41SsR+aOC9zZ0nsVm3WfkB/ p21Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F99eWGro; 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 ft11-20020a17090b0f8b00b002562f925dcfsi1460528pjb.50.2023.06.16.05.00.10; Fri, 16 Jun 2023 05:00: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=@linaro.org header.s=google header.b=F99eWGro; 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 S1343873AbjFPLgi (ORCPT + 99 others); Fri, 16 Jun 2023 07:36:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245552AbjFPLgg (ORCPT ); Fri, 16 Jun 2023 07:36:36 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 676D92D5F for ; Fri, 16 Jun 2023 04:36:27 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2b3424edd5fso7715341fa.0 for ; Fri, 16 Jun 2023 04:36:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686915385; x=1689507385; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=8nd2+y5FOD0js54Jlzt9YMY1XXmMWttJihYBEi7eAis=; b=F99eWGrob74bUKUxo4SyMxapCXfyZPWkFbu6a2GblQM3ogA3pokM2aXFQlvCpRKWX0 ywE/JVZjVIuzOHi/vDX1JXyI2oOiMkdPeg4mlsLTCkbWBxl9nP4DE4gV6OxPjVAewZ6k fvym5yh1HRii9IF3Z95Pcl6VDcVvZVJMFFZVQznKV38yPXxEb3d9418nlSwO0u0YL4FG OU+8TSyB9erYQbQrRe4xvWCJZSPFqczWBg/a5hGU580UqmoNPHQ54MZSNSjaS1g+ftY0 NgZ07BcFIJlToMqgxnShu6JKX9uEhr5WvTTKkdG2WSXmZsWcTRSqQj0UnzXOD4xVU16I ZL0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686915385; x=1689507385; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8nd2+y5FOD0js54Jlzt9YMY1XXmMWttJihYBEi7eAis=; b=UaoFRbgGXwUT6VXB1cKuFVo97obR7pDpTWxjzZhzphPHLddWVd8I6my1eaSASaS6hA kjZS9vMG/BrJIH62c4PB1sMWGNdAZszqyJ+MBjXDLSZYxJqMfQTf3dNfWje3Qbl/k3G7 Ze4vl8ByNBwnQ0RMhj1xlGsVsjABvzUVcvCzuIqZ06VGLBEQ23GBtvdlHCHeincKYTo0 R5/0l6r8ZqcBVSTTgGetQZCnQbYSKiMlEFHmUcHPGo4ALJlh7MNXCL7aSbsiU907Sn8a VQtfYFX06p2esKgJU+Aoctjk+8igilzsEqXeDVFlz0doZHHvOUH+pdENdNaacTMQlbIE ji1w== X-Gm-Message-State: AC+VfDxAU0wQ7NRB0la/Ivvl0LWAW+6dOtpGlS9YQhARgBHU/2rz4yrh +YZxuGYLyiO2eQwe6jdRwyZmQA== X-Received: by 2002:a05:651c:22d:b0:2b1:d19a:f190 with SMTP id z13-20020a05651c022d00b002b1d19af190mr1522620ljn.49.1686915385658; Fri, 16 Jun 2023 04:36:25 -0700 (PDT) Received: from [192.168.1.101] (abyj190.neoplus.adsl.tpnet.pl. [83.9.29.190]) by smtp.gmail.com with ESMTPSA id w25-20020a2e9599000000b002b34735dc72sm1300665ljh.108.2023.06.16.04.36.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Jun 2023 04:36:25 -0700 (PDT) Message-ID: Date: Fri, 16 Jun 2023 13:36:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Content-Language: en-US To: Mohammad Rafi Shaik , krzysztof.kozlowski+dt@linaro.org, swboyd@chromium.org, andersson@kernel.org, broonie@kernel.org, agross@kernel.org Cc: robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_rohkumar@quicinc.com, srinivas.kandagatla@linaro.org, dianders@chromium.org, judyhsiao@chromium.org, quic_visr@quicinc.com, Srinivasa Rao Mandadapu References: <20230616103534.4031331-1-quic_mohs@quicinc.com> <20230616103534.4031331-9-quic_mohs@quicinc.com> From: Konrad Dybcio Subject: Re: [RESEND v6 8/8] arm64: dts: qcom: sc7280: Add qcom,adsp-pil-mode property in clock nodes In-Reply-To: <20230616103534.4031331-9-quic_mohs@quicinc.com> Content-Type: text/plain; charset=UTF-8 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 16.06.2023 12:35, Mohammad Rafi Shaik wrote: > From: Srinivasa Rao Mandadapu > > Add "qcom,adsp-pil-mode" property in clock nodes for herobrine > crd revision 3 board specific device tree. > This is to register clocks conditionally by differentiating ADSP > based platforms and legacy path platforms. > Also disable lpass_core clock, as it is creating conflict > with ADSP clocks and it is not required for ADSP based platforms. > > Signed-off-by: Srinivasa Rao Mandadapu > Signed-off-by: Mohammad Rafi Shaik > --- > .../qcom/sc7280-herobrine-audioreach-wcd9385.dtsi | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine-audioreach-wcd9385.dtsi b/arch/arm64/boot/dts/qcom/sc7280-herobrine-audioreach-wcd9385.dtsi > index c02ca393378f..876a29178d46 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine-audioreach-wcd9385.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-audioreach-wcd9385.dtsi > @@ -197,6 +197,14 @@ q6prmcc: clock-controller { > }; > }; > > +&lpass_aon { > + qcom,adsp-pil-mode; That's a whole bunch of hacky bindings that makes no sense.. What should have been done from the beginning is: - all clocks should be registered inside the clock driver, unconditionally as far as .c code is concerned - the regmap properties within should reflect the actual max register range within the hardware block - device-tree should contain protected-clocks, which omits registering specified clks (I guess in the ADSP-less case you could probably even register all of them and it wouldn't hurt) > +}; > + > +&lpass_core { > + status = "disabled"; status = "reserved"; Konrad > +}; > + > &lpass_rx_macro { > /delete-property/ power-domains; > /delete-property/ power-domain-names; > @@ -239,3 +247,7 @@ &lpass_va_macro { > > status = "okay"; > }; > + > +&lpasscc { > + qcom,adsp-pil-mode; > +};