Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16353854rwd; Mon, 26 Jun 2023 08:56:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5zWunaOpHWCJ7kcPeODiWuxFVje1B6OQUU14iPZTw/X4CIzQypwEtz2t5nEh9vENKcpLxm X-Received: by 2002:aa7:db4c:0:b0:51d:9f41:61eb with SMTP id n12-20020aa7db4c000000b0051d9f4161ebmr1354979edt.40.1687794966822; Mon, 26 Jun 2023 08:56:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687794966; cv=none; d=google.com; s=arc-20160816; b=hvyFHK8bDLWOwO2wSAE4aYiV1frgaJVKa6thlKKEeua2qIZ0yCrsxUI41NW73ygWeA 64FkskEjKO7l7/bNCyRmrnUP8Q/fzWBZAhpUPiLSIt1L54rOPvNOq85QnDBo+Q4lCJF6 YlpK4BMXa+UpFv3cKh/Czwj0U3GtQkD5xDNNnXmMJdBPR6jLd3mCLnrhdJlkgoWHejpM otaXJBTm1wwx4P0R1/D6TS8uQLGzD+MVcjH0nspU7N3oGEYTJI5h2RCdV681L+oFHcN1 wZ5BHBJH7xfokXfA5aeeFEbWSMd9vYDdugTPfLhXDM3O/YPCDat7Y0EyURjpn5E2Wp7R JVUg== 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=tw7C9oT93L7YXZBRkdfMrjtsff4cNqwiulutKWQ+2bQ=; fh=zH38jGeOkuMSTh/kKMF/mg3y0JGZP0uiSSn/46t/0J4=; b=bd7PGSfJ0zCSkbsZkcaYu2Y5jy8dNKsvqwIvOnGHk4csrVcq4D6oUtbDNU6plV4mSO XLOQRsRZCy9YUO+N9Q5iUL3dOIGySv181Z2z9sII+QtMaBpKgB0WtyaN7Szbom9GHV36 cbRM3BDE2GEYqL9Cg1fCEAV4MhCDo0WYPBazYhxNo8eRpr3kzjEsjmts1MnZl70LLd3s 9JBickCErRjy/F6es+a48ZVBu6ZFfsMFg7H9yv0LTgqE3n0GGW5sH8xgVXMco4eRYeE7 +sk7lxAAUY24W9ondpxOlg4QfISnVQHMG903sc+V+kaE/CYFTil7P8ii+nuzAbQMEr3U RCKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q0llsL7n; 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 y8-20020aa7d508000000b0051d9c736439si1002443edq.367.2023.06.26.08.55.37; Mon, 26 Jun 2023 08:56:06 -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=Q0llsL7n; 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 S231145AbjFZP0P (ORCPT + 99 others); Mon, 26 Jun 2023 11:26:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbjFZP0N (ORCPT ); Mon, 26 Jun 2023 11:26:13 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35581191 for ; Mon, 26 Jun 2023 08:26:12 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-3113dabc549so5054438f8f.1 for ; Mon, 26 Jun 2023 08:26:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687793170; x=1690385170; 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=tw7C9oT93L7YXZBRkdfMrjtsff4cNqwiulutKWQ+2bQ=; b=Q0llsL7nMjYyRXTFnc4KHHs37dL5UZzylqD2tSdpr2izHti3uC/DvUggBruaxbLKRq jsAa4XfX40TBxFaqZ4MmofhupUyQIAK5p0F13TJ/rpF3UsQ0zVaNu2klNdcZrR76KKUy f/l+70dW/Hu3ngSz4rVsUD1/y/1IKkZsAGnOpJcYE2IzNCSflSsZDxrk+XlUzDLtXd/X 09Yewg7ijV4zXIno4ba7y2681VXuIzu7Xl7DZklAsmh6g8lMu3k3x/NGK5G7DhfUzqBJ 3/6kE9mqnZAMZFe5UX7ICYyR4VE+6F6+1udRx6CcnJ2+ZmIsjz3ZoUO5vGZyoEZsnnx5 BViA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687793170; x=1690385170; 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=tw7C9oT93L7YXZBRkdfMrjtsff4cNqwiulutKWQ+2bQ=; b=WVcGWCbVn3y9wtMtoLybhg41krOkpfIAKFXeURH3oFM+sp1lEnICb4TlwR0BFTGT5e oc9/Se6Pwp4mRciRZwHvLEzSz/dvLxs2L2vLbV7K7/bOb5Tkr9DtSzb8q4Y3sC8Q4ZCQ rUX/U9vmiLaDNaWeoX0Z7xhlONrsWdKIMJius0OPBSjelotB2yCSQvH/neiHy1Gqxu9A JzFWKQoBB0YbYLukT5wDvlB/VIzE/F+QbYASyFfKTife4+EC6sDpqb621NcMP+TDDOS+ 2nfStFTB+XRW/NQGzPj0uxAktbB01Ud062XxnLj5eDY0xRMCwVIeTT4lQTZXYn2vUuJm OOtg== X-Gm-Message-State: AC+VfDxEvapSo3yVcAQKyqgtNnHhnDvtRn6IUC3ubwTLg+MBY8UPbloJ oeWBAn07PfLll7LrJlZ/OSIKkw== X-Received: by 2002:adf:f389:0:b0:313:f551:b037 with SMTP id m9-20020adff389000000b00313f551b037mr2426683wro.68.1687793170609; Mon, 26 Jun 2023 08:26:10 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id cw8-20020a056000090800b00311d8c2561bsm7645463wrb.60.2023.06.26.08.26.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jun 2023 08:26:10 -0700 (PDT) Message-ID: Date: Mon, 26 Jun 2023 17:26:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [RESEND v6 6/8] arm64: dts: qcom: sc7280: Modify VA/RX/TX macro clock nodes for audioreach solution Content-Language: en-US To: Konrad Dybcio , 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-7-quic_mohs@quicinc.com> <7d2e580e-1861-d22f-e67d-726a2a69043e@linaro.org> <3441b3cb-29dd-691c-1e95-5bddd66c684a@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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 26/06/2023 14:24, Konrad Dybcio wrote: > On 26.06.2023 13:13, Mohammad Rafi Shaik wrote: >> >> On 6/16/2023 4:59 PM, Konrad Dybcio wrote: >>> On 16.06.2023 12:35, Mohammad Rafi Shaik wrote: >>>> From: Srinivasa Rao Mandadapu >>>> >>>> Modify VA, RX and TX macro and lpass_tlmm clock properties and >>>> enable them. For audioreach solution mclk, npl and fsgen clocks >>>> are enabled through the q6prm clock driver. >>>> >>>> Delete the power domain properties from VA, RX and TX macro, >>>> for audioreach solution the macro, dcodec power domains enabled >>>> through the q6prm clock driver. >>>> >>>> Signed-off-by: Srinivasa Rao Mandadapu >>>> Signed-off-by: Mohammad Rafi Shaik >>>> --- >>> Maybe sc7280-audioreach.dtsi containing all these changes that could be >>> reused by others would be in order? >> Thanks for comment, >> >> yes, will create a common sc7280-audioreach.dtsi file, which will contain common audioreach changes >> and could be reused by others. >>>>   .../sc7280-herobrine-audioreach-wcd9385.dtsi  | 43 +++++++++++++++++++ >>>>   1 file changed, 43 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 9daea1b25656..c02ca393378f 100644 >>>> --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine-audioreach-wcd9385.dtsi >>>> +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-audioreach-wcd9385.dtsi >>>> @@ -196,3 +196,46 @@ q6prmcc: clock-controller { >>>>           }; >>>>       }; >>>>   }; >>>> + >>>> +&lpass_rx_macro { >>>> +    /delete-property/ power-domains; >>>> +    /delete-property/ power-domain-names; >>> Surely they shouldn't cause issues, even if the vote would be >>> superfluous? They are still powered by these power domains, I'd assume? >> No, In Audioreach case this macro and decodec clocks are not power by power domains, >> this macro and decodec hw clocks are enrolled by q6prmcc clock voting. > So the same piece of hardware is modeled differently twice? > > i.e. the same GDSCs are reached once with register accesses and once > registered as "Q6 vote clocks"? > > that sounds like a bit of an overstep to register them with genpd and CCF > depending on what entity controls them.. perhaps the "q6 vote clocks" could > be remodeled as power domains as that's what they're ultimately seem to > be referencing.. Krzysztof should have an opinion. I think on SM8450 and newer these were already modeled as clocks, not power domains. Anyway, for me, the previous/existing/coming code looks like done by coincidence or copying some downstream choices, not with any design in mind. Unfortunately, I don't know what to do with it now, because the bindings were merged like that. Best regards, Krzysztof