Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp342537lqp; Thu, 21 Mar 2024 03:03:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUpGDcTo7WSdBnwAVRPMeIq0L217y6eU1yyR/vnL7Sqx3Zh2rpAjTSV3jzFfnSnh6qtm0tYPhdMDOaRqQZv2OTt3l6invvBnvJA9+B4Ow== X-Google-Smtp-Source: AGHT+IFymsAXbcf71Rakgpiu+7hhc7gzaOIsv6fweh6ENiIEt8jtf2GqDgS6AZy6gyGNW7V9FlyO X-Received: by 2002:a0c:ec85:0:b0:691:2015:1ef3 with SMTP id u5-20020a0cec85000000b0069120151ef3mr20386103qvo.45.1711015435836; Thu, 21 Mar 2024 03:03:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711015435; cv=pass; d=google.com; s=arc-20160816; b=jd0SUmnp0SuJipP4khP/RnFXGAotmauvKQ4An2R0Rj7nrlqgBFjIQbVdd6Ict4KN79 KjNxZwhzw4sNvnKHDMy6ahM4d0d7MleuGj4FmxzV7OdRSwz1M7IkAGaZfQx83GlgTvaf WVEW8mB8kItNES63M8Kz7HfaLlHdKJfOZOOUnGIpj/ksh+bICttEKvFLACinnKM4xJ4S EnB9psjMOVXaWLFJA4Wdkxz6drRFTd93KNVseTDrCO66INfn52XnY+UON9VFH+PSxPfw Bw2R8uW6bqNaDVSVNevOSM0ohvioHk8rWP8scDMQBArj2TVnVRw95hcMuTGkc2F41+dl zdlA== 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=QSqCEacDmuyhGjW4tIZGQOCZnmnjyg2MSjCQM9ns3PM=; fh=fFD2VXrOclOIBqHk74+nn1RtYBQT/nRwLUEVtHBl384=; b=vViMtL49teUutvWP4ZW35neJlblGkz48BAXE34QTg615O/kO3i5PEpe/FJexUhs7uV mdGvj0WZcu/LxuwGFj8rsszoox11ouLfVWHlBHzyJo24YCKInUShZw4lad3/dVLsdDTM 82fuK8tXowS8JyAPez4KPry3IABdmU+MBG5VpWaQPl6Qdz+AA5MiacTJJ1ccqAKl5Jo6 0e5vr71rf2rIdf4xgyHDAUk7H0/IuA1mZpuFzDFn/BWXGlVURNbPLbec0X0BPGDOTLTl x3SS33ECbOAUdo1i9vZGAlGJb/ypLRVTGL5bHXCjgXND4w8VVSiLBpftfoCit8wyQ7RG qEPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k19gMiE8; 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-109880-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109880-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id iv11-20020ad45ceb000000b0068fb764232bsi15236266qvb.224.2024.03.21.03.03.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 03:03:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109880-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k19gMiE8; 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-109880-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109880-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8DE641C21966 for ; Thu, 21 Mar 2024 10:03:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3D3855E7B; Thu, 21 Mar 2024 10:03:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="k19gMiE8" Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.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 3F5BC55774 for ; Thu, 21 Mar 2024 10:03:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711015426; cv=none; b=tJElQQUEoo74ctc+84F9JjA17+jY+rZ5g9baKzKwrQvzAy5rVHJCw6Am9ksjBdq/gZH9H0ZVLn7Rh6d8HwjvKt/7Rdi3o4rQUuqr6oUeKrmSfJfEze2qVIfApZmiQQYfsT0dHycIZpl8pXC0MhEuIrEw9jHaVQGpOLOyHzrq6ys= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711015426; c=relaxed/simple; bh=9mBsSCywB1UYVK5EIoAzSbSWRc36LYtQG7L15yc7v9I=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=jjRCpJm5Y6Z7KFAWmI9O+JDin9ANcFTTDsEQx/Uezz5rFF/ZK7VqO9FgtrUmm8b5FaiSAg1QgK/ebBz/LYv1devZVNOCBayWRbsvp01bUnvaq4Fl6st+t0QqP/KOnlLjjK3Cmlx6E5KuhBFz91ikCVa7KUtLm+QnGal/PfNKdWc= 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=k19gMiE8; arc=none smtp.client-ip=209.85.219.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-yb1-f171.google.com with SMTP id 3f1490d57ef6-dc6d8bd618eso666030276.3 for ; Thu, 21 Mar 2024 03:03:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711015424; x=1711620224; 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=QSqCEacDmuyhGjW4tIZGQOCZnmnjyg2MSjCQM9ns3PM=; b=k19gMiE8HnSOcxpo/+oGc6con8ZQSioz148eupvUPE8htxpUkuWXuVoBNjC8TazZBG TfqoiNaKwPg8AbXIg9lX/SRUY5nm7NRpHpvpMwBcuWKf0v3aii2REGgayDcCNmUzzlJd mZ6aHzMtQZteyfV/Bz0IB5F/q5Tg1Znzp0SXQquQSpP3SWIdGqIS4D49ttwPf19+b760 qokZWazG/6NqXnzpGA/ds8Ke0mUkKvaNYmP1S1drQZKUO0Q5IIs7wvJJFy2GJAzXCKpb UQ10iul7c0m9z2f2VSLZ6pKs6AW0d3ZJe5DAyJthxn6lXrZ1HYTNB16Mpz4td/8Dhtph NzxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711015424; x=1711620224; 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=QSqCEacDmuyhGjW4tIZGQOCZnmnjyg2MSjCQM9ns3PM=; b=bOU9CujOEs+3XXB/Q3l/KP41oU+3alpckEm9GMXnCb/k61GloTt5nFcMaaymaPAd76 a5tJO4Wn3+414evkkTpcI2MgjBHKQUR5c8NnoGEwZJhBLyiR5uT5aqmdRq6jB1rOynk4 3Bor0w5XMA0hVrelJRSTRFMME2AO3s7Vtlc2A4U6Kp36aTUREBsGe8aZEWeTAboe61H3 pG9mBoTY/U3jUA5eKjDi6w+kBZ4X81Hc+jLwOvt6TuvVxTkgFDsWI4z5qi9WoTZ7Lh8l rVS+RyzxqsHRNwG0drcL82qGuIJsbmlS/kwAUNVt7ZZIi68QYS4Y8ci1K5Hvu6FM7/Ed iI7w== X-Forwarded-Encrypted: i=1; AJvYcCX3nIlETTnn8/rpBnbVAI+hcPP7qUEfbt+wLbGz4WSTSsUwuZ4Hho7L0DeGw7DODqpEyKUAdVWxedOQ5L1Gb3Rew0KDnpn3H1k+W4LB X-Gm-Message-State: AOJu0Yzq66XldrG3Yd/vFgu9n/3WH0j0Ck3wbfAxcSg/0tHZB//xHwKH SGYavHV60JiCu58Cqm2tHt9alRcjfvZjHUVhHQRBPKfbMGy6ciTKIkVpjgxv1rtZh7UITtshpRt ELxz37qIfPwIXPm5kkbtA1IsMqp7rAKZ/Zx1PZw== X-Received: by 2002:a05:6902:4c4:b0:dc7:465d:c06d with SMTP id v4-20020a05690204c400b00dc7465dc06dmr17513281ybs.28.1711015424255; Thu, 21 Mar 2024 03:03:44 -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-4-quic_jkona@quicinc.com> In-Reply-To: <20240321092529.13362-4-quic_jkona@quicinc.com> From: Dmitry Baryshkov Date: Thu, 21 Mar 2024 12:03:32 +0200 Message-ID: Subject: Re: [PATCH V2 RESEND 3/6] clk: qcom: videocc-sm8550: Add SM8650 video clock controller 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, 21 Mar 2024 at 11:27, Jagadeesh Kona wrote: > > Add support to the SM8650 video clock controller by extending > the SM8550 video clock controller, which is mostly identical > but SM8650 has few additional clocks and minor differences. > > Signed-off-by: Jagadeesh Kona Reviewed-by: Dmitry Baryshkov > @@ -411,6 +540,7 @@ static int video_cc_sm8550_probe(struct platform_device *pdev) > { > struct regmap *regmap; > int ret; > + u32 offset = 0x8140; Nit: this variable seems misnamed. Please rename to something like sleep_clk_offset; > > ret = devm_pm_runtime_enable(&pdev->dev); > if (ret) > @@ -426,12 +556,27 @@ static int video_cc_sm8550_probe(struct platform_device *pdev) > return PTR_ERR(regmap); > } > > + if (of_device_is_compatible(pdev->dev.of_node, "qcom,sm8650-videocc")) { > + offset = 0x8150; > + video_cc_pll0_config.l = 0x1e; > + video_cc_pll0_config.alpha = 0xa000; > + video_cc_pll1_config.l = 0x2b; > + video_cc_pll1_config.alpha = 0xc000; > + video_cc_mvs0_clk_src.freq_tbl = ftbl_video_cc_mvs0_clk_src_sm8650; > + video_cc_mvs1_clk_src.freq_tbl = ftbl_video_cc_mvs1_clk_src_sm8650; > + video_cc_sm8550_clocks[VIDEO_CC_MVS0_SHIFT_CLK] = &video_cc_mvs0_shift_clk.clkr; > + video_cc_sm8550_clocks[VIDEO_CC_MVS0C_SHIFT_CLK] = &video_cc_mvs0c_shift_clk.clkr; > + video_cc_sm8550_clocks[VIDEO_CC_MVS1_SHIFT_CLK] = &video_cc_mvs1_shift_clk.clkr; > + video_cc_sm8550_clocks[VIDEO_CC_MVS1C_SHIFT_CLK] = &video_cc_mvs1c_shift_clk.clkr; > + video_cc_sm8550_clocks[VIDEO_CC_XO_CLK_SRC] = &video_cc_xo_clk_src.clkr; > + } > + > clk_lucid_ole_pll_configure(&video_cc_pll0, regmap, &video_cc_pll0_config); > clk_lucid_ole_pll_configure(&video_cc_pll1, regmap, &video_cc_pll1_config); > > /* Keep some clocks always-on */ > qcom_branch_set_clk_en(regmap, 0x80f4); /* VIDEO_CC_AHB_CLK */ > - qcom_branch_set_clk_en(regmap, 0x8140); /* VIDEO_CC_SLEEP_CLK */ > + qcom_branch_set_clk_en(regmap, offset); /* VIDEO_CC_SLEEP_CLK */ > qcom_branch_set_clk_en(regmap, 0x8124); /* VIDEO_CC_XO_CLK */ > > ret = qcom_cc_really_probe(pdev, &video_cc_sm8550_desc, regmap); > -- > 2.43.0 > > -- With best wishes Dmitry