Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp246507lqt; Thu, 18 Apr 2024 13:56:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWNyH5GrkWe60q+ZfORIGYPvzbtXP/y7434HwFFxHTcqCe6FwYWNXXhnxFC3NdiAsOJ/LEP9AaQmDL7eCpcan3u1hZ0f0bfde0l9Nqrqg== X-Google-Smtp-Source: AGHT+IEIEi/Yn/tZrD4JWawo90NP7l4Qczz8zuqPJXjsYtKZfhDzaIrPyTcOUSKaun55FSLyy7iF X-Received: by 2002:a5d:698e:0:b0:343:7c16:34cf with SMTP id g14-20020a5d698e000000b003437c1634cfmr34323wru.45.1713473788236; Thu, 18 Apr 2024 13:56:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713473788; cv=pass; d=google.com; s=arc-20160816; b=gJFuLSu/dtvokChx/VdVZUZ8q+Q6yWFGPHYUM5e1KfUWeAsXrF+wzUennRuSlcq0iU MTwv3ICfLFfAgSz8xsIHd6qeuYCCu7ZlyGXeW3lmN8ZddnkjtEhL2ReFk+Gm/0Hz7HQZ 94hHoNqVUSxJgvxTTpQOoEQsyXe5jDzPfVkhnikVMorhg4WtLZBXsDuO+oOsDhxCCtG9 3sP66cHWHhUFXBIdnlk5VBWMXVJ7+6AddAquVKofNtlG6vNORT8hpbZ1rlxOVnQdLv7G TwlpDsT20MPnOgePa80m1yRwoO2HepDAE5Yj3GfyawbIIeTNdpF8RBgwObNEyvhJKf/z qQhg== 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:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=sNOD//alu/YfcmSed7oxxw7a4+KJ3u8Ghpd/YaoyNuE=; fh=Cugowif5MVVnNudkRU+OKKLJ0pMh6SbELT/Q5oXgUgc=; b=do/TCDwC+mrXET4BJ83iLJetkq5wE/DG3cOoXvOFn75jBeHaM6JPs1hgBKOtytDced tZsSpXSkH/t9AfgnJwdJ00KIe9kGCLnG2/ZNdvVSqln/hBF3E0Ilb6BwTAR7vhDOU4/J ulBC+P+E/AAWZrTRPG00suuNBquGEhye+wkMZED/AmwCYUPe1y43jSRkchIwyiPjQikO r3d4xKduk4iuCWdvjCMECK4TUztiCEPG/B8sE1sTsFCOZruN7SgkI9LaXpaFlf1av7ig e5mCYwGIXQCF7ZhzHo47ylKVEPfKtwdMe9B2WhH0bggpVC3WamEIL2cqGXu9jhtrbDma HWbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j8hncsoK; 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-150778-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150778-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gl12-20020a170906e0cc00b00a5210afdacbsi1260534ejb.385.2024.04.18.13.56.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 13:56:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150778-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j8hncsoK; 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-150778-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150778-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 C91751F21274 for ; Thu, 18 Apr 2024 20:56:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0BB78194C65; Thu, 18 Apr 2024 20:56:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="j8hncsoK" Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (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 EFF996D1C7 for ; Thu, 18 Apr 2024 20:56:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713473780; cv=none; b=kd59QLyAHywfYllOibnevj48TV6hrnJtxwQpr/jSARVw2NkMi8GXdCOPDKLgXRZj4iBfo76U37S1ROzmYrFSvlZxPrlguCGKeJxZoZCNE83uD1EfZIvfmyD3BPEl7n8uPL3AJhBR38cXFMogx92Kaq7TKNDrp/9DvHpml8vpiU8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713473780; c=relaxed/simple; bh=wGzGycJk/Oi2kpbEFgexVOpTcNGX5gvdXuAs44SRsFM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=SAeahd5PXPerpydbu++9uTdAPao/IRMn7ITvt6A58eLwPCnNu/KtJ471SS1GobtOKm6cyu3Ya3X2nKDVCi/5zneqcZ/aLfIhiSPqcI8rezEYzAZleaDbFjT09m9iPY/O4qpwTHn7VP0RiAwJFU0PiGaXPieTdk3jpy4/xYguCfY= 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=j8hncsoK; arc=none smtp.client-ip=209.85.208.173 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-f173.google.com with SMTP id 38308e7fff4ca-2dac628f08fso3574821fa.3 for ; Thu, 18 Apr 2024 13:56:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713473775; x=1714078575; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=sNOD//alu/YfcmSed7oxxw7a4+KJ3u8Ghpd/YaoyNuE=; b=j8hncsoKYUqw879Y2+8Lx8xT9ymDcPIE4I2gBi9a9hn4fVOYX8frQk+4C5QMlDkeVC 0dA14wy6rkMQpQIoKy15C1CVetKDGa6SIxCNbGy70iN9EYS9XYwwKw6Iw2H1IfAp5BYT VoWVUR/m1NepTXhnWYtAJw1Nh5pHkMyYWOxhD/JceJ/35O9QQFqaePKjAcbxgQFJgxXT QvMZIW34cnIFH8cIQ+nUKE4byVYjyT5x67+tinqt87tMj4LeCFSBd52c4h+JrpxhFd6f QmrpbmU0mkwAdHLUlkpf+8My16N85pUF+izF3g5bjg7vTfjsp+doh3UuQRRjG42duCdG LJvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713473775; x=1714078575; h=content-transfer-encoding:in-reply-to: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=sNOD//alu/YfcmSed7oxxw7a4+KJ3u8Ghpd/YaoyNuE=; b=Lu27gq+I4Mr10RXLFbsCYPYL39/360euLTbq+hAIp2Lh8fXCGSaumQg3t79ouIhMDY NnmmJPoPvU3DNmcltCLnCTKeUBpRXPx1dOOmjeCYDco5q7qdAIimM2tsqgYhjqr7JaYA GePwE20GnJ3lvDeOS3gFcEEbUPGbBhplg/4g7c61cB+k6mVmbc3/w9Y+i+IbKyLbSRW+ tIclQKmOyGSrcDKBRebR00ZYUo0HOVo9FS6oMPAyv/bgXRHpfI9Tg393gBepE/07Yvl8 pJXSovFo7u6hY7ztgi9huTXG0Qdb292BnFUnwON1ThnCDVGWXKAVksnza7aeQ2fSjLk5 7ZZw== X-Forwarded-Encrypted: i=1; AJvYcCWP3PWsEn16Lh/jHkSAffm/0rDQikPnC1dibYy05OHpKF4atJUYXzBrsnm2mHfQ79/ex/fJb+L3iU2cyujnTpAMTOom68nI5TPk22l+ X-Gm-Message-State: AOJu0Yxu1VUPp0NDV9ysMhZ1lYlDbLtXI7F+8dk9FVKGRsTJR6eepWPA 7BIL5EORm23ecPkSJAIyfX4Dez/v2sHovw5BHH13V+p18EPuzIbJGf+/JcNHev0= X-Received: by 2002:ac2:4db9:0:b0:513:ec32:aa89 with SMTP id h25-20020ac24db9000000b00513ec32aa89mr96655lfe.2.1713473775021; Thu, 18 Apr 2024 13:56:15 -0700 (PDT) Received: from [192.168.1.102] (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id m9-20020ac24ac9000000b0051950b81ae7sm380825lfp.237.2024.04.18.13.56.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Apr 2024 13:56:14 -0700 (PDT) Message-ID: <752f077d-68a8-4bb5-86cf-c6d49cfe4606@linaro.org> Date: Thu, 18 Apr 2024 23:56:09 +0300 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: Konrad Dybcio , 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> <9ac4117c-755e-4e49-b3a2-661e7195a7ed@linaro.org> From: Vladimir Zapolskiy In-Reply-To: <9ac4117c-755e-4e49-b3a2-661e7195a7ed@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Konrad, On 3/23/24 02:33, Konrad Dybcio wrote: > 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. hm, that's very sane, I didn't think about it from this point, thanks! > 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. > -- Best wishes, Vladimir