Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp61652lqe; Wed, 3 Apr 2024 22:30:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWu6mB7A0rlhGON+cZliEhFLXIMtVoB+ceKIPONsuli6QMokWgzNxbKovEwxUmTwXJ97g7oyCDTQI6pVVHq65l3j6JS6NCGZSVWzNTzgg== X-Google-Smtp-Source: AGHT+IFoaqr6XOSWd9suosp39C9UeyU9JBFOsChQBRPgZfX1ESOoqpY+gaxR9RDES4h0jLwbTSZk X-Received: by 2002:a50:9faf:0:b0:566:7769:11c with SMTP id c44-20020a509faf000000b005667769011cmr4177455edf.19.1712208632856; Wed, 03 Apr 2024 22:30:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712208632; cv=pass; d=google.com; s=arc-20160816; b=jIvJYEK6ByMla+FYqGWx4kc44HHuvqUiHj1dPE+ztnCInwNHM42l0AF2ILxqMoma/k tIhquxliduJw+DqslXs8ewkeRpL0NyAI1lhJ4A3VDkVZFRtkTlPDkGx+rnoe3gC6R1eq ADg0zahMTOrZZvJum+X5GNYwDWtZu1x316RvhPgJVzRW4znZwNdTEygz+KbEetzxjhgm +nGd3GPNtRjSBPBCfeCE/OiSMS2RMsXvdA+zj2w4WFO/22p6xNgchUySDHSiuXkN/GYu B05iPcB7lO3IH6aCs0tpK1q0bJ78RrLpOPK/yfv5bb+w83y9X6PqT1/4qHk+1feMsgfo Co7g== 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=dyCeaWOBhvl6G+/jJPj4WdMHHOTtXZ5RKep0At0rnzE=; fh=XstEAtCKrDeC1P2JvLqoeUoitHM2x53PGQGEHy4i7l0=; b=TFauAdT5tJ50I9/5IuHMLkd95esgN+8pupf4S69zaHbJox1t3pF878u6qJvdx/c5gt q4uUnzU9MQsboj/6EweKEylvVZYKW3nwtpBU1fX76aYVUA6BAtg2oobepyQQDUgOIkqf iPdtLYbu/OxYi/e+4R9RX7QSqIUW6Z7QIh9xbyH8FEximKtUAKH7WLNfvfkthQgq/SKm gsTELBsO3g7kvs2YL72D+r4bEixuEWA35+k27rDJlVDHJP3gFi8tFl+wktUnZNkI/eyp APjAD6GxZLTaMFYDAbDAXnooeEHvulOn5cQNdX/hPss2/eXXtA4hGYaYDOlLkJLxs4Ct bT2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="bSqC/7Wo"; 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-130951-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130951-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w21-20020a50d795000000b0056dfc0cdde8si1663357edi.586.2024.04.03.22.30.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 22:30:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130951-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="bSqC/7Wo"; 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-130951-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130951-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6B4621F21F09 for ; Thu, 4 Apr 2024 05:30:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 20DEB45942; Thu, 4 Apr 2024 05:30:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="bSqC/7Wo" Received: from mail-yb1-f181.google.com (mail-yb1-f181.google.com [209.85.219.181]) (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 427E520330 for ; Thu, 4 Apr 2024 05:30:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712208623; cv=none; b=hgoxS028kOi5IoRSpxpmQKGZnT8FLwFcIaVa+pzAwfaAfm2xxrMyilFiGxRsDBNNmUjlu6kOD/VujqM+HGEalq7nvMV+pljvOV2tGI1CpqF7gKI2LQsICs9VvckAk3EuHwuKMAZT1V+AbBU9L5tfzezvn9xhubVQ4VNIqysikeM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712208623; c=relaxed/simple; bh=hrT6CSkkEiHpCL2254tYrBO7lscNQ5B7mlo/PBHS4j0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=XdWyuv6kr4W55naWZY7AfMFpZNCL9l5uSqv1j9KTwc9XSCFcZW8t5QKGEY48LPFz3nbtXrV142Ax2v3TkhjbhntFd95iSfte86kW0BQUBouk8oKeOChyy0Y7G+MFsagXBLqw/S7mlyjCC4GJg2UVsD9LKja2vvDEVOpoKwNpmyk= 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=bSqC/7Wo; arc=none smtp.client-ip=209.85.219.181 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-f181.google.com with SMTP id 3f1490d57ef6-dd10ebcd702so716165276.2 for ; Wed, 03 Apr 2024 22:30:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712208619; x=1712813419; 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=dyCeaWOBhvl6G+/jJPj4WdMHHOTtXZ5RKep0At0rnzE=; b=bSqC/7WoEKjeLBagHHQRVLrCAnZqnGOYuY3dE1kpze4f+wTIVMtf96YNg6Fkw9kjVt lvw32mLtESFM+qvHkD9TO7Mup9cr3vyq38TlZ7brIrQdrmkz2e3cquAXSZHXHAJvpjxp 0E+8SG6mfhwYWUiRvzB26GguW8GRMVEy6ycgCI9DP6nCvO2T35UF/7Uele5Pn7aMhDJ8 f3Bud8+uC5IjpV1uns2GOt3U8SiuQ/8917g065Bb+xsQIlRJAsXkEuCAKmVmTZbwT55f r94s4Eu5+AqmTaJmHZFEVuHYqlZODvif85p4U8mlIDBSDxVfgIqYlhdc6MLmcgC08h5M evAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712208619; x=1712813419; 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=dyCeaWOBhvl6G+/jJPj4WdMHHOTtXZ5RKep0At0rnzE=; b=pY6zapi1P2yVy+Zc0/X1DJhd7zUJfLWWHxkRZhizDXuNz1Q/UMDmgV8Bi1Xs5kv9Dt JPfFmbfDEBt8w2AW+fb3J7eF5BuhmO+KDYCLvpbjLG8WG4QixvfwOvkCtWsdMLnXXkmk PCRU7Hkkp0354FWq/7dKsxd+NtXmjY2Ng0KqI8fDQBDADwAo8ODBvO3wLAkwsCtAj3t+ ybnfnKbr1SatGt7ZJHVo2Rac7WsfRjQjV3dLXn6fYeBsnyJWW6EQ32qiXnZSchek229L QljNU3VdffMSZXCol5Ryu9zQz/RKabiOs2BHRGRY9Bq7pbnUfLgYVX4an5hbLfo8jVnK rVmw== X-Forwarded-Encrypted: i=1; AJvYcCX1ZhbuGZeSr+lqn4jPbMInNw5t+M1QveZwzqLdbgnd5VKhjgJzClqnktqQwMdwIhim0xtUluZ+dPy2r9WGr/qRH2JIxuOd+Hm1zxRY X-Gm-Message-State: AOJu0YxNOx0aQni/U/Ny720jWF8ZRwxTwzTu0OYbMDgGtA+HAlAjyxk5 3Fgn8YqBC11FYjzGFwaSis/T2UdC5xTq4CJcyhOBTSclzq1IcoitTxM9RShzK+q4TXHZqKe5Ohn 9nfOwi0XEdTf/BUWxszAGcWsosfwJzdH29ccImg== X-Received: by 2002:a25:5f45:0:b0:ddd:696a:8656 with SMTP id h5-20020a255f45000000b00ddd696a8656mr1475611ybm.41.1712208619210; Wed, 03 Apr 2024 22:30:19 -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> In-Reply-To: From: Dmitry Baryshkov Date: Thu, 4 Apr 2024 08:30:07 +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 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? > > Thanks, > Jagadeesh > > >> > >> Thanks, > >> Jagadeesh > >> > >>> > >>>>> + #clock-cells = <1>; > >>>>> + #reset-cells = <1>; > >>>>> + #power-domain-cells = <1>; > >>>>> + }; > >>>>> + > >>>>> + camcc: clock-controller@ade0000 { > >>>>> + compatible = "qcom,sm8650-camcc"; > >>>>> + reg = <0 0x0ade0000 0 0x20000>; > >>>>> + clocks = <&gcc GCC_CAMERA_AHB_CLK>, > >>>>> + <&bi_tcxo_div2>, > >>>>> + <&bi_tcxo_ao_div2>, > >>>>> + <&sleep_clk>; > >>>>> + power-domains = <&rpmhpd RPMHPD_MMCX>; > >>>>> + required-opps = <&rpmhpd_opp_low_svs>; > >>>>> + #clock-cells = <1>; > >>>>> + #reset-cells = <1>; > >>>>> + #power-domain-cells = <1>; > >>>>> + }; > >>>>> + > >>>>> mdss: display-subsystem@ae00000 { > >>>>> compatible = "qcom,sm8650-mdss"; > >>>>> reg = <0 0x0ae00000 0 0x1000>; > >>>>> -- > >>>>> 2.43.0 > >>>>> > >>>>> > >>>> > >>>> > > > > > > -- With best wishes Dmitry