Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp166876lqp; Thu, 4 Apr 2024 09:36:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUmLvKIwk9DtBt8fjYcsXaS1D5QFk49FBc3LWH2rZ8eSpdeolSdhgznsehykvDFyJbHqf1J1xbeB6Wb5juiYu94A8TIjNPJdFdP9GywhA== X-Google-Smtp-Source: AGHT+IFNVOOHXdQWRWt6MJt3qAnnC+v3HG8/nqsiaoXTWAFT5Nx1txZwg/vZuI03e/QVbE2FpeSk X-Received: by 2002:a17:902:ced1:b0:1e2:a5db:30d1 with SMTP id d17-20020a170902ced100b001e2a5db30d1mr10835plg.13.1712248602661; Thu, 04 Apr 2024 09:36:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712248602; cv=pass; d=google.com; s=arc-20160816; b=07acsMT7fCthSveztYGZxljGjCeii1Ikpkb7DpXXu64LffR2aqsujQNum3d/V46mHD qFzz5LxaNYMOZPKggoHe/wj0/sWoSIhAARuDnsA7LXIph+BQK9YRqjm8LCba+tNPKif5 OmjXl1p+NHVg+a97RpTK2XLaJzenLOksptHxINARCC0RNKhT4d+j5clAY+eQ4ZstGIy1 QIzvTTsFUYGro4Rhz5owfWx0PcIbs2D4TBpcAYv3QpeLYF5i0qYb/LNrpG4Ao2IAJpN9 pgI5K0+mJ6ivM542q4OAWKAceTWvDqTG39D2YU7PoyLwT6lJNalYhJqS8HQ58DdEz6BJ UIFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=XYk+z4GPlvSLgbb1+lB3Uw//BsSPlCRUU8yX8yl3BmQ=; fh=dQJzolMXU0txzdtL3VbfEzpLuh6HuaVRagBML31MwHI=; b=ocGgEsz4I4vpGQcHdw4vkEBSfz/I7ukYd61PsNXZhjMUqMHxSkhtYRJu4qhWdJs45+ S72/Cd18pxsdKASCsTiS7jhecyRDrOJN3cHx6wfmjTVeQ99T4OxQGxAHP/U9QqLGRG8C Pvhgov4/w7+E6Xbys9ekhGaCpGDo1CH8XBq0LhOgZ3pzD80OnFfPA3GNAAGF1JNiUdmh dfKVQ/T4GElZTENq4g3ugeDmyTmue1t49zk52tItJKqfqUbujtrmP8/PmoUsEmzkERdI NKCMFo0gmwsZMYLRnH6Bx5jUw1WnVM18W5MsRQsasPgqWV/IjEFO9d84BezIGx7yAK8y EeKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UDiDUDsa; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-131788-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131788-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id kd14-20020a17090313ce00b001dee4060a19si16159210plb.42.2024.04.04.09.36.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 09:36:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131788-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UDiDUDsa; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-131788-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131788-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5B91AB2B018 for ; Thu, 4 Apr 2024 16:06:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE14812AAE7; Thu, 4 Apr 2024 16:05:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UDiDUDsa" Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2B48A12AAD1 for ; Thu, 4 Apr 2024 16:05:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712246755; cv=none; b=syBtOgjL6oCnHcC28i41Z3RF4NHjU4doMwrRZGureLsfsjxFV7GGPwPJA7B30mJtgQRD7EsyNcU5T5ZcST/0rCUNNMlGsb7qe5JutEG7fI/UGo14j9LdVKTWn5KUBRxZ+1Ee5HfhAmbxJSHwxT0mNbZyvqxMh/u6r0YZRzyV16w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712246755; c=relaxed/simple; bh=Dju+y0EjZuxJaGKBRNnKMWatS2Hwo2dPJEG3wzZyBXU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=EC2O+vVwHuFrLGuklAUE+KEcaR6b0g3mGhBfyzOawj+ZTxa+voK0ZWZbNztdF07GBtbt9zd1qVrrojJUW+Qc6aSW2CFS+qvj6+LtrCoJoRumb486qz++FLVErTO6hhuZHuLSjqobUY//sAGbI12Ta6G4b21EhqNsJHCzfbMiY3Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=UDiDUDsa; arc=none smtp.client-ip=209.85.219.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f174.google.com with SMTP id 3f1490d57ef6-dbed179f0faso1843825276.1 for ; Thu, 04 Apr 2024 09:05:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712246753; x=1712851553; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=XYk+z4GPlvSLgbb1+lB3Uw//BsSPlCRUU8yX8yl3BmQ=; b=UDiDUDsaIn/pr8iKPMZ6qHf04NHSkJ78dFI9O7tBmgMlcHs3S6XEUwWltqiwc4nsBa m9WRtMVo5B/mD0mJhYbfSGf6t6EQCSg8FbcEp5fxmor115O7CHpLp3z05MxzD296O7Hk uqVZzLSxF/juipEDzi+tWTDUqhP57mWuoGG3BXu0KooJep1SvOs5vbdLR01GXveo6vE6 U1V+HtAb2lE5fN7/70pvJpJqsE3/+BsOnL/o4cBMg4aafUyjL+Waeq+w1Hww0OEEXZIX nuzTW9kzKxeZgNdSxAMapKQhGvEAUz/FCulRbSL0hSKetcTEjucXDYQkWXtMWi7vQegk EXww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712246753; x=1712851553; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XYk+z4GPlvSLgbb1+lB3Uw//BsSPlCRUU8yX8yl3BmQ=; b=op6DgiLhlvESwl8mL+i18eMf3w0rSvKXgohiTerZp5KbLSXJitwCNpnsMB6eLxWyrw IwgnQRbRmG1sZ20c7gVR2t2G3xCLm6WcXLzqpTTJPwW/ToFHK4srPBpF/8YTse4cXVBu W1//yx7+SOl7vj1qyMW/Ptb/fJRK40x54j2iXqPZ9M/g1WChgrWNzodie99P5utf5xLG FW/53tx5Y4sXhCXaLPvltbe1cL9KWXL8Nu+O/p/zLFTiwbOZ/TvvMe1V+moVbOm2GG2a 7yezNq76rSnbaa/WIzpws2+FL1QDDkoSDfUVwXrFOu1sBd9+c5937g61pvpy1glKKSzh /O2Q== X-Forwarded-Encrypted: i=1; AJvYcCWc94TOpRgXgFxabNinukSRCMRcFXSzntnuqiE1mzT7AEE7Izr6wcRgF8l2i2EnRUuKg3d5KYhj4N/XCzloPZCdadJc7YfnT+2pehtU X-Gm-Message-State: AOJu0YwK0h2xuGt8QNdUBMGiNmUHlhHWuIhltlaAZwZXWjOgbYVWC9ya y4FmHsrWfkXGfQW6E7WTRvghcvWMHs39pgtLhpb3GPu065R0bsYXIRnjlI9AnKwKqZhSHdJltSd wr7nEEEOVIa6eWniZoqfPEX51CuLcPLhOuPSOgw== X-Received: by 2002:a25:8d0f:0:b0:ddd:7a88:2cd7 with SMTP id n15-20020a258d0f000000b00ddd7a882cd7mr4635600ybl.18.1712246753095; Thu, 04 Apr 2024 09:05:53 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240321092529.13362-1-quic_jkona@quicinc.com> <20240321092529.13362-7-quic_jkona@quicinc.com> <008d574f-9c9e-48c6-b64e-89fb469cbde4@quicinc.com> <8a5a3cf8-5b4f-487f-ad91-00499509f8ec@quicinc.com> In-Reply-To: <8a5a3cf8-5b4f-487f-ad91-00499509f8ec@quicinc.com> From: Dmitry Baryshkov Date: Thu, 4 Apr 2024 19:05:42 +0300 Message-ID: Subject: Re: [PATCH V2 RESEND 6/6] arm64: dts: qcom: sm8650: Add video and camera clock controllers To: Jagadeesh Kona Cc: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vladimir Zapolskiy , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Taniya Das , Satya Priya Kakitapalli , Ajit Pandey , Imran Shaik Content-Type: text/plain; charset="UTF-8" On Thu, 4 Apr 2024 at 13:06, Jagadeesh Kona wrote: > > > > On 4/4/2024 11:00 AM, Dmitry Baryshkov wrote: > > On Thu, 4 Apr 2024 at 08:13, Jagadeesh Kona wrote: > >> > >> > >> > >> On 4/3/2024 9:24 PM, Dmitry Baryshkov wrote: > >>> On Wed, 3 Apr 2024 at 10:16, Jagadeesh Kona wrote: > >>>> > >>>> > >>>> > >>>> On 3/25/2024 11:38 AM, Jagadeesh Kona wrote: > >>>>> > >>>>> > >>>>> On 3/21/2024 6:43 PM, Dmitry Baryshkov wrote: > >>>>>> On Thu, 21 Mar 2024 at 11:27, Jagadeesh Kona > >>>>>> wrote: > >>>>>>> > >>>>>>> Add device nodes for video and camera clock controllers on Qualcomm > >>>>>>> SM8650 platform. > >>>>>>> > >>>>>>> Signed-off-by: Jagadeesh Kona > >>>>>>> --- > >>>>>>> arch/arm64/boot/dts/qcom/sm8650.dtsi | 28 ++++++++++++++++++++++++++++ > >>>>>>> 1 file changed, 28 insertions(+) > >>>>>>> > >>>>>>> diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi > >>>>>>> b/arch/arm64/boot/dts/qcom/sm8650.dtsi > >>>>>>> index 32c0a7b9aded..d862aa6be824 100644 > >>>>>>> --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi > >>>>>>> +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi > >>>>>>> @@ -4,6 +4,8 @@ > >>>>>>> */ > >>>>>>> > >>>>>>> #include > >>>>>>> +#include > >>>>>>> +#include > >>>>>>> #include > >>>>>>> #include > >>>>>>> #include > >>>>>>> @@ -3110,6 +3112,32 @@ opp-202000000 { > >>>>>>> }; > >>>>>>> }; > >>>>>>> > >>>>>>> + videocc: clock-controller@aaf0000 { > >>>>>>> + compatible = "qcom,sm8650-videocc"; > >>>>>>> + reg = <0 0x0aaf0000 0 0x10000>; > >>>>>>> + clocks = <&bi_tcxo_div2>, > >>>>>>> + <&gcc GCC_VIDEO_AHB_CLK>; > >>>>>>> + power-domains = <&rpmhpd RPMHPD_MMCX>; > >>>>>>> + required-opps = <&rpmhpd_opp_low_svs>; > >>>>>> > >>>>>> The required-opps should no longer be necessary. > >>>>>> > >>>>> > >>>>> Sure, will check and remove this if not required. > >>>> > >>>> > >>>> I checked further on this and without required-opps, if there is no vote > >>>> on the power-domain & its peer from any other consumers, when runtime > >>>> get is called on device, it enables the power domain just at the minimum > >>>> non-zero level. But in some cases, the minimum non-zero level of > >>>> power-domain could be just retention and is not sufficient for clock > >>>> controller to operate, hence required-opps property is needed to specify > >>>> the minimum level required on power-domain for this clock controller. > >>> > >>> In which cases? If it ends up with the retention vote, it is a bug > >>> which must be fixed. > >>> > >> > >> The minimum non-zero level(configured from bootloaders) of MMCX is > >> retention on few chipsets but it can vary across the chipsets. Hence to > >> be on safer side from our end, it is good to have required-opps in DT to > >> specify the minimum level required for this clock controller. > > > > We are discussing sm8650, not some abstract chipset. Does it list > > retention or low_svs as a minimal level for MMCX? > > > > Actually, the minimum level for MMCX is external to the clock > controllers. Yes, it comes from cmd-db > But the clock controller requires MMCX to be atleast at > lowsvs for it to be functional. Correct > Hence we need to keep required-opps to > ensure the same without relying on the actual minimum level for MMCX. And this is not correct. There is no need for the DT to be redundant. I plan to send patches removing the existing required-opps when they are not required. -- With best wishes Dmitry