Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp59340lqe; Wed, 3 Apr 2024 22:23:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWMvgKYNMZ7YaDJF5yguAX6mJ8tmsqj0zpiecVDoD/y2zHCPq5F2ulN2bLevyUPzP/nrYxdClR2ay6xzzq2jvy7oxJSPlYljGlLXtY7Kw== X-Google-Smtp-Source: AGHT+IHdRHhgYt2I3xnGecbSnUK7HmIHiAjb2Wjmo48eEcA1Yx4iq8TqUyzA/tjAh6wyJXb0tARM X-Received: by 2002:a05:6359:4184:b0:17e:7c50:40b5 with SMTP id ki4-20020a056359418400b0017e7c5040b5mr1570490rwc.17.1712208184327; Wed, 03 Apr 2024 22:23:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712208184; cv=pass; d=google.com; s=arc-20160816; b=MKeOFeHHERMctyIr9lAsosgtS0IO2Oztyxf2eZbjol9RteIYehmRf+oBuaI0mwbUqV NrZhJwSVTXygCmWLq8Pehg07zOSG8TDQKcUMM7eXiaWvNJ7coJX0J6xcVQ32QMZF86iV uaZyCkGnKuUP1o8d+6cgkPpq8mTjXAyk0f7Unw9bR/Z58atpUnOUNP0HEQPmlD4xFCUj 7J9IMbpO6Fyik7VpDlU30dPsQenpNjCiPxD96iN4xEuhXNxL83aWZi3r5kBZcMibUHCl 58jh1gwdlD9wP18cwIGkIyL8NJUzqxRCY3KT+d3iC4RH+vsCLC8NB+qwJYx5RAYQ6+1o PEsw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=HnYROHPooLPttDFxZyDOIstc/a4IOpe2QkEH+FZFT4k=; fh=gDLaNGLlojOEEsXrLuLIxIfEhGZKUQ28paV3VjrEvnQ=; b=GkWtTYIEKh/CM96+SD0YRi3WpHMNA7MelLbu3+LiVNBxiI6+kIR64vNsjDcgfti9on 00uLLQu8J99K169oxgoqM72SnVshp2LcrjqpDye8ABJPXP2ASAYhzk3luXwuqkUOaVTz VknjvlHjlj1q2c9eGcHbiDjHhKi9urkH961fGUEqNPszGYyo8JCEej9lu5NKOdMLXPnL hJuL+a3p9o6yfUUDilP7NpvytAz1cbbZeplqdJeFWELqUCfdMdAAMHsIm6w1EhjGjWtz rX/zjNeynOBVEn0g38H90e4/X/OES8CYmKZI7e/i6EzufWQNZKKB40GxqQ9C+FtcBo5X jVaQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=SbuHiJYc; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-130910-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130910-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j11-20020a63ec0b000000b005d747b7058fsi14128368pgh.778.2024.04.03.22.23.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 22:23:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130910-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=@quicinc.com header.s=qcppdkim1 header.b=SbuHiJYc; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-130910-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130910-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 CC3C7B217F4 for ; Thu, 4 Apr 2024 05:16:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1582D4E1DB; Thu, 4 Apr 2024 05:14:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="SbuHiJYc" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 877463F9ED; Thu, 4 Apr 2024 05:13:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712207640; cv=none; b=NIy1wJ6KCbEjsLu83lwzpzhivhvT+sn0rCmf4SGIZliON1zZvazwoggtYPzyD0KnBArc+t/Dzzb2nnfaeeXICEmFeL/kXqrRPTfD/tqCTCmJkxDee8kORIjLqKotZ9Km3mKDGtme9D/FjCyPPbzTKuQiBrdovGVsLhorUmdJVSA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712207640; c=relaxed/simple; bh=OhTChy14p9wRne3qtAHp8KnxQ52DXKNP5bqvrfLzwOM=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=F/GFeVGIujnP68zXirzQRDtjhwpnN5fpn0Sc2P7sz8HR4JISPqPpAQ3nZg1p/kpWlVlDnqdCcR+mRbpxYoeGDlwLtz7i41cXwDWJ33V19H4zjvWNxh4QDvlOaisbLGoKDXdu13dwvc88sK0C4aGMMf0jFNXi/9Xi+eu4fJg1vF8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=SbuHiJYc; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 4343g7pR028500; Thu, 4 Apr 2024 05:13:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=HnYROHPooLPttDFxZyDOIstc/a4IOpe2QkEH+FZFT4k=; b=Sb uHiJYcZgMHNzS5m77hi/NtLuVdScHZRGPl8SdJqM8dwIjU2GDjDVjagUdhSZFFyO X745jmBIwG1XjvrJqLSQEDMGKoNC7czHmvlMTXM0E++hWMCEILehdflSB9+Fqys0 CPkXmWp+zBnPzYRoS0Z/Wl/WMu5uAkQ37Tf/BL5SlAFP819Tlg6b91DaYM1W2eMi CJnfbXcgX7pb2boh/ZfIPixWcpmsdROTXLXDFsfCFw4hHyykh4BxqhbgCca47Vzc m8+I4jL2VU4s3chdqbF+nzbHoRL6ixYzPe8eR+Q7WkMQcGMDp25wKbOXjk3sFGJE NCWH6kJobMdwEbkqhtEw== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x9ep0rmef-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 04 Apr 2024 05:13:54 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 4345Drjw007887 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 4 Apr 2024 05:13:53 GMT Received: from [10.218.5.19] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 3 Apr 2024 22:13:47 -0700 Message-ID: Date: Thu, 4 Apr 2024 10:43:25 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V2 RESEND 6/6] arm64: dts: qcom: sm8650: Add video and camera clock controllers To: Dmitry Baryshkov CC: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Vladimir Zapolskiy , , , , , Taniya Das , Satya Priya Kakitapalli , Ajit Pandey , Imran Shaik References: <20240321092529.13362-1-quic_jkona@quicinc.com> <20240321092529.13362-7-quic_jkona@quicinc.com> <008d574f-9c9e-48c6-b64e-89fb469cbde4@quicinc.com> Content-Language: en-US From: Jagadeesh Kona In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 4gr7qevEuh29CeJwu_US-xLn96ZMODM3 X-Proofpoint-GUID: 4gr7qevEuh29CeJwu_US-xLn96ZMODM3 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-04_01,2024-04-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 impostorscore=0 spamscore=0 adultscore=0 phishscore=0 bulkscore=0 clxscore=1015 suspectscore=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404040033 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. 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 >>>>> >>>>> >>>> >>>> > > >