Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1486211lqp; Fri, 22 Mar 2024 17:33:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWBVohEzp5ga164VczYM3NqywDdWA1nu0ld9qUFBBFXOKw73lOfMjBLZdPUsDvt2cXK4PriUUW8ajAqLD8RshLuaVJus4Xg9Pz6ABX9Ow== X-Google-Smtp-Source: AGHT+IEVAmXTNhphjTgQK0aEEM7IKVaKWMq8yQX4/3/jAr0h07hBh1mn8MgwbOCOv05wonFCKs/Y X-Received: by 2002:a17:90b:2303:b0:29e:49e:52ce with SMTP id mt3-20020a17090b230300b0029e049e52cemr1175639pjb.7.1711154012854; Fri, 22 Mar 2024 17:33:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711154012; cv=pass; d=google.com; s=arc-20160816; b=yRywPVRnaTsU6BAbSwU090N9ZwRUcfJhrZcxOQ6P/7hTYdcIYWxkrA4CspehhQfsVn DyM8G1M7kYPHzfQ99DEoh92d4cB7qs9vg4zbxqiMgqghNBE2hWPSJIsOVHEsMQg9zuwn /SDyE8ZbjtH4Xxzcqeo4+mXRpJ8TT8Rwy060bt53cUmBGK1Mlp00mJtSBQAs60d2zuQ/ C5EJOmyw7D82GrLcrZcK1tV8/q6qb3+8qQJRHUpLhf75wqenQ2N9CzNNBV3XVoaCf/zp Sa6x7Q1ANA4wmQYLi6TTsgDDu9zOoyJs8QfjGc0E4DEARiYQ9ZQLCKLRaxe7fl557VOT Y23g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=1K9Gr4xxseb63O+ZIp/M+lMupGMpWBFPhuDFz3NoIi4=; fh=ldXIbDo+cDKUu/zRnbkhN7RJzGQcsEujmCs5KRKvneE=; b=MelYT5zqOnaHCHrxaAw04YLgqDCQz/qLTNrDu4h7/yExD3XupGHO6DStWEyXn9MtVh w+G6yuyzk7LrhkNlwQsPj2wcZo+gK7NyoF2TwjjEGVJ9xjHtUKx7PWs5NmLlCK9KatPj Ju9LW4HCF4cx1cXxPJlMWmBDo6ka2yee1MUIk1aYKMuYZMCcQ8l+zwCBVnscOGWzA64O sXVLXyOLk9gjvqtm5+5MD3A9j1MpBu8Fmd9v+evZD11zJki1nrgZ8GbZivvA6tZIl23Y aP8eITW2xxUscl5Oiy5XX+scYOGhgx30C4XBaXfittfQcFVlHC6BLNeHDasWwicH6Czb dU1A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zGlgkUMb; 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-112139-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112139-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z2-20020a170902834200b001e096387c79si526267pln.501.2024.03.22.17.33.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 17:33:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112139-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zGlgkUMb; 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-112139-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112139-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7C778282448 for ; Sat, 23 Mar 2024 00:33:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 035211362; Sat, 23 Mar 2024 00:33:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zGlgkUMb" Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (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 3D60D7F for ; Sat, 23 Mar 2024 00:33:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711154003; cv=none; b=TOMEdhDQzcVPEkwUSVM1O/xIujiPc7hp6Gcm4dj7ewvp+KIfPf7Vh9k3TRu8sbieY6eTzRPYqQ6VFZw8Eo88EO3b0+mZRAZ9kbX3d9LEqonMpVINfbO5SOukihVX/SLaROi0AjZ+qShUT6/fRBeAaRCzAAwOSpIDoH7IBsK2a9Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711154003; c=relaxed/simple; bh=qRatC590E6b0IOeG6lRfhCABOutlgVwESB/qkgefRXU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=i//P1jlQqd5gcoBd7WH+QzDBoocTPic823VV+pfqp1A83W4zYo5AmRW1A5XsVZHn6rbSzBr+IICRd2b57DBOdDMTcubDDJs8Nl5CwRnqa9YnHCZgfYBVcSRpjXTAPrsWEz8T9o354WgPEv6TIbdGpezbxwguRUglgeli9DS9HGk= 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=zGlgkUMb; arc=none smtp.client-ip=209.85.208.171 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-lj1-f171.google.com with SMTP id 38308e7fff4ca-2d220e39907so38328061fa.1 for ; Fri, 22 Mar 2024 17:33:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711154000; x=1711758800; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=1K9Gr4xxseb63O+ZIp/M+lMupGMpWBFPhuDFz3NoIi4=; b=zGlgkUMbzclH1HSqRwzgDFzsqKGpOSwHKMAzNDPAoiYmY0Fm6NrkVA6lI2HVmYqp/2 LIhxqi1yRKTpYV2ZhMz+54Fo67Qt1IezGdvfja0RpntlON3Varc51V/ln//AY97riS8m Q4ipJHNkROBYX8ZhEqSj2N7+KlLTE+fcg9BL1am+EHlhFoQqZ6E674/8nGMojhFMb0CI uFRyXPGcUKli0KpwxxEVzGUMG0PlWgRYjpn3Pl6Wu6HpPuvCJVSSpUen587kBkw6tXQj wBKcW+ooM5z2MIE6Be4CPdmalDASnqO2HPQ7jM0cOjTFldKUj91regDXr6cRfGNq2zGe IBSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711154000; x=1711758800; h=content-transfer-encoding:in-reply-to:autocrypt: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=1K9Gr4xxseb63O+ZIp/M+lMupGMpWBFPhuDFz3NoIi4=; b=R+VmNYJ7cRGZfPsXF7mh1IWWHAvxAnzMuzU89ImiAvqLk+RHnsJ+ptkttqxki0Nz9J Zx3JqMWFqwIGSwsk+AFe4LXrYn+I33hbD/4Y16WCcAhjMf1NKcEnjVBbcy1g7isv6gnw y17aufNaWxkzjhtsraXV+MG3Fo9TQ43rTChP3N30NOJpiyJ/rV/JT4smwn1ju02lV03Y EW0pgnCrV9bTPsNXMWdn6qWWm3TM0UDM/8GPXx+4zOKr37TN+WGNivyXQlv1n/K6n6WF onZrgD4yC4TEg/QHrRc8EjIa0tnoDTD+qbsT/kCF4FyWpk5ndhFwRcudFtgtlRlhlD4O 91HA== X-Forwarded-Encrypted: i=1; AJvYcCXoEPDU2Eo/k1m50T1kB/CntqKDROlQ4hdx8uTnBh2BVuAYvEflkNH2WL66OlRCruQdMJoeHBqI6OparDRAA9W1wrbsSerPw1MBxxU8 X-Gm-Message-State: AOJu0YyTJd6p38nkaLUQ8J1Qp2MJMaSOMJpNZQtTTsUPvS9VXU6fW7Yf umSI/TUJXTh37WCfYPNdvukSQeszN3UPU7ETim9+U+x0cRBcOnEqKZG5TSZhAKc= X-Received: by 2002:a05:6512:54e:b0:513:22f0:c3af with SMTP id h14-20020a056512054e00b0051322f0c3afmr547669lfl.4.1711154000463; Fri, 22 Mar 2024 17:33:20 -0700 (PDT) Received: from [192.168.92.47] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id n19-20020a170906119300b00a4660b63502sm360863eja.12.2024.03.22.17.33.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Mar 2024 17:33:20 -0700 (PDT) Message-ID: <9ac4117c-755e-4e49-b3a2-661e7195a7ed@linaro.org> Date: Sat, 23 Mar 2024 01:33:17 +0100 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 Content-Language: en-US To: Vladimir Zapolskiy , Jagadeesh Kona , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: 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 References: <20240321092529.13362-1-quic_jkona@quicinc.com> <20240321092529.13362-7-quic_jkona@quicinc.com> <0a7da687-18fb-437f-b33a-e4a1de20177e@linaro.org> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQ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xrbSCx2ksDxz7rFFGX1KmTkdRtcgC6F3NfuNYkYDAQgHwsF2BBgBCAAgFiEEU24if9oCL2zd AAQVR4cBcg5dfFgFAmQ5bvICGwwACgkQR4cBcg5dfFju1Q//Xta1ShwL0MLSC1KL1lXGXeRM 8arzfyiB5wJ9tb9U/nZvhhdfilEDLe0jKJY0RJErbdRHsalwQCrtq/1ewQpMpsRxXzAjgfRN jc4tgxRWmI+aVTzSRpywNahzZBT695hMz81cVZJoZzaV0KaMTlSnBkrviPz1nIGHYCHJxF9r cIu0GSIyUjZ/7xslxdvjpLth16H27JCWDzDqIQMtg61063gNyEyWgt1qRSaK14JIH/DoYRfn jfFQSC8bffFjat7BQGFz4ZpRavkMUFuDirn5Tf28oc5ebe2cIHp4/kajTx/7JOxWZ80U70mA cBgEeYSrYYnX+UJsSxpzLc/0sT1eRJDEhI4XIQM4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <0a7da687-18fb-437f-b33a-e4a1de20177e@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 21.03.2024 14:07, Vladimir Zapolskiy wrote: > Hello Jagadeesh, > > On 3/21/24 11:25, 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>; > > Please add default status = "disabled"; > >> +            #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>; > > Please add default status = "disabled"; > >> +            #clock-cells = <1>; >> +            #reset-cells = <1>; >> +            #power-domain-cells = <1>; >> +        }; >> + >>           mdss: display-subsystem@ae00000 { >>               compatible = "qcom,sm8650-mdss"; >>               reg = <0 0x0ae00000 0 0x1000>; > > After disabling the clock controllers Clock controllers should never be disabled period, that defeats the entire point of having unused clk/pd cleanup. The only reason for them to be disabled is for cases where platform crashes on access due to stinky "security" settings (like with audio clocks), or when people are too lazy to upstream panel drivers and end up partially upstreaming display-related changes and continue using the bootloader-initialized framebuffer. This takes away from the very little determinism we have. Konrad