Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16090007rwd; Mon, 26 Jun 2023 05:45:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4TEfpZp5zfSVQhzkhkkOetTkKE3v0PW1W+z8elNo/Ti0CYAklr5j1E/ocnLBVrf0yBkLNW X-Received: by 2002:a05:6402:1655:b0:51d:7ff0:8427 with SMTP id s21-20020a056402165500b0051d7ff08427mr4869087edx.25.1687783524661; Mon, 26 Jun 2023 05:45:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687783524; cv=none; d=google.com; s=arc-20160816; b=XfI0g9QlwICNhjqaSoyVPgxgX+w1PQSjNSquYttd9jhwCdzH1ndGCx8mBeH8OJcCF+ BRJWXy3PWNcC8xbIClbi4E+S25excLU94lvXe1ba2Z2toK7gnOBZT7npTzS2gX806zAK f9C8pgTip5AAgRTaMLyU2pMGTqsui/CiNzyRkxlcEY8mej/Vzp8SR45GyInIYLJIcMSt qk+1jRwgZDBuIKv61Vg70+MYvfiEpkWpziDINw3QfztCKgOlAyvn7GZiuHjxG8YcbZy0 2QfJsQD8NDMoZi1WmjwBCKHh9GrJCo+BWL9t6u70wKfFCzbl+QPmEbExeSw7rvfoeJ06 Wo1A== 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=R8FOnv3gtQFJsCvmXDuYUpI+3WBXTjrzWw58By60ndY=; fh=yVk8787B5jNTOFqIYXIOWbk+l6zdRkQWfwx4ENv+qnY=; b=CtCQiDlrJM3N4ev8wS56j3A8LoZbmB6T6FtC0/gi9CbenPZ1dbdjlp0EskwA1T2m16 RNEMMEkiQmMZEmOxIEUgm+pZ1JHiqHRXA8MZm1506X+GRwv31fTsOFCR8spdvYDnrO4K cehqgVJjBtIQJWgD0A+zNQ9W/wUGze/YjchhDiqV7lrdHkviw44W0El0s3s2IWZPl7tz R98tMcvCeuWtVTBvbk/T2zYhw3mFdZ9rYa2Ozj14fotZ1wmlVrpAH42nYgFQjzU3j56J /YfxsTrtAOJUpoX+UBr6c/zPBzLOlI6xy108LiDmyttedas+fP1CAghH4tQdfz0ImZT4 vC6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aPsCgqnH; 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 h21-20020aa7de15000000b005147c76d3a1si2716016edv.430.2023.06.26.05.45.00; Mon, 26 Jun 2023 05:45: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=aPsCgqnH; 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 S229566AbjFZMeF (ORCPT + 99 others); Mon, 26 Jun 2023 08:34:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229853AbjFZMeE (ORCPT ); Mon, 26 Jun 2023 08:34:04 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3DA19B for ; Mon, 26 Jun 2023 05:34:02 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2b699284ff4so23105811fa.2 for ; Mon, 26 Jun 2023 05:34:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687782841; x=1690374841; 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=R8FOnv3gtQFJsCvmXDuYUpI+3WBXTjrzWw58By60ndY=; b=aPsCgqnHY9LpR6RbZBVMOGzI99IBgoIg+UqKz7B8CmtFbCeFb8KPFPHbPFVtLJXrRV O+HmEjWC7jsayOxJgDmWFHn4PHZX+XU5kgd8AmIc+8C86qwlswbuXa0rfC7IngOOzmwk dVxZTaLqNEM5HtZ6Z2l+4e15N3JrCa7qU1bTGYPlmN/lkLlJkI5M2F2CVkMZPPR+PS0L p2K3AfQsiWF0/c8Wdqlr+OCRkNtkqGEEYGI9ISV1+fn7UWW16nTOtZHZC5r3aGhvd/9D Cp0zVwj2car6BeAXZynyVp0tw+l6XOfqeqfIdTb2B1r4aDmHGKPNvVCrghUWG6CzzVPV 1VmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687782841; x=1690374841; 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=R8FOnv3gtQFJsCvmXDuYUpI+3WBXTjrzWw58By60ndY=; b=VUz0vQPFHQValTdXuFaXKLOsM8Dw44vkDmqQ7Y+6VWFLjDKponQ8lnqkcx/9OE9NUW TDXC9cCuso/IPLABPIg0+K/4rwJ4x0ZZtfmUSu5L1JreSqvE+T/4gvb0IPGPc66h94DL sQoFvuL7+761YVO+UG9I4tJrud4JL+5VEcvPRYjjo00qv3AVRxH0CmcABwH5jXk7h9jR ShARDNbqHez/5S5zYpLx/dx85X5VskqACXk3ik0N+uq6s4AGCZwtEbpkSN6eoG/iXdgN QqnWs8o+IheXZ2EtLozvel3WdTxAN0dOTPb0mLk1Z5bUSSlSczu8PnagzjlLfGbr7O5U x0gw== X-Gm-Message-State: AC+VfDzXJEllbmXkwxGrvsdlfrHbl/dys+kFa0FiLUPgID/3CK4m63lL rO73WTu0kqIF36Tt0oKI2+BpGA== X-Received: by 2002:a2e:7819:0:b0:2b4:7fc5:21ab with SMTP id t25-20020a2e7819000000b002b47fc521abmr13916835ljc.51.1687782840867; Mon, 26 Jun 2023 05:34:00 -0700 (PDT) Received: from [192.168.1.101] (abyk179.neoplus.adsl.tpnet.pl. [83.9.30.179]) by smtp.gmail.com with ESMTPSA id u22-20020a2ea176000000b002adb10a6620sm1167948ljl.107.2023.06.26.05.33.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jun 2023 05:34:00 -0700 (PDT) Message-ID: Date: Mon, 26 Jun 2023 14:33:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 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> <20ec31b3-667a-0617-71d4-586789e2c2a4@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: <20ec31b3-667a-0617-71d4-586789e2c2a4@quicinc.com> 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 13:17, Mohammad Rafi Shaik wrote: > > On 6/16/2023 5:06 PM, Konrad Dybcio wrote: >> 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) >> > For AR solution, it is required to add "qcom,adsp-pil-mode" flag to enable ahbm and ahbs clocks. > Please refer: https://elixir.bootlin.com/linux/v6.4-rc7/source/drivers/clk/qcom/lpassaudiocc-sc7280.c It does what I've just said, except in an implementation-specific way, instead of using an existing, common DT property. Konrad >>> +}; >>> + >>> +&lpass_core { >>> +    status = "disabled"; >> status = "reserved"; >> >> Konrad > Okay, will change status flag. > > Rafi >>> +}; >>> + >>>   &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; >>> +};