Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp384697lqp; Thu, 21 Mar 2024 04:34:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXz3F920DhSDzqWO0X7qHix9yqfpTsuIQ+/Gef1CTqHogLqZB5QAa0yVlOTf3xq4+dFRQhbDZceNqP51dpfIx889cZRDFbDooXaXu/kHw== X-Google-Smtp-Source: AGHT+IETaArjKF7A4m44GfPQSzIVKPjXDcsr4RjcBrc7PhJ/aMdBHEGj9b0vmtF3L8I/fiBE90XK X-Received: by 2002:a05:6402:1caa:b0:568:c621:c496 with SMTP id cz10-20020a0564021caa00b00568c621c496mr2656731edb.42.1711020863882; Thu, 21 Mar 2024 04:34:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711020863; cv=pass; d=google.com; s=arc-20160816; b=MAR0LXvSREcCNJykwh++Nwu/fborMnqfbvwPpApcNLpLmHzUhC9ADwldu3y5lodpYz v9TQlP0hLkwjGgAcl93iuwK/BdpTUf3h2HVWjiIzIQ8DLjKuJuoxsGYnXw8iuOqySXDH MylmBOITYPytGNog+3svW7uOrr1WToE4W4Q5O1qFH8Swvy/XPSFf6SbtZ4jZm0ibT3Sc 8ab9NXOuX5HJC0TrlHprUoo91Y4dYsFwinKcMLnoc82DP11I2EgJjbftnUIzfCy4nHj9 1sbH6H0leJFiX70XCFNzz3kuwua+E0fo1WVWRX1jQk4zQOZqo7Mxvzt1gBJxCd0iIblo oMJQ== 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=rvpAHaDptSDGHjItmcX8AIeewGwgxzt24c489x1bS8Y=; fh=gDLaNGLlojOEEsXrLuLIxIfEhGZKUQ28paV3VjrEvnQ=; b=0Ut2k2SpzwvnBORNcbLxe9AwRgHWKlG/IX8R9E90Q7zfjiISw8zEUQaxc44pld4/Jr OvUgS+Kg+i3MFNxBjDS+RNwkLKDF0DkPYsrwMSbA25P/DwBgBt5T8fUebeYHmWgTlrzK aKfD3m3lXBxpcLLZ7AZQGfZec6//OCNG6Zf8DyTkYT31OPVUbzgNUzvJENcDSzjkVVgb 1upxtGZY7A5fgFFG9pEQ/QuXUbrGsQ2ERkUqmFq5KOPEP9MkUhARzswXeMpz9L1ebU9w Mrp9bNKB2bj01cTigx1G8vV9firStsjPMmfuRW17PFmFtkFnD6oKnQt+BGkhDxOIcx9X 13Mg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="SE/W/CyZ"; 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-109973-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109973-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t13-20020a056402240d00b00567e1287325si7591148eda.445.2024.03.21.04.34.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 04:34:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109973-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=@quicinc.com header.s=qcppdkim1 header.b="SE/W/CyZ"; 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-109973-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109973-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 693881F221E3 for ; Thu, 21 Mar 2024 11:34:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1FB4659B68; Thu, 21 Mar 2024 11:34:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="SE/W/CyZ" 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 7923417F7; Thu, 21 Mar 2024 11:34:11 +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=1711020853; cv=none; b=KHELsrI6trOsJt5HI19uxFkmHANa5cKZucVaOaYvN3FP/r10nVaq1DIBvJxwSd/7FnYhBnDEXMjwzBFogyq4Zeb5fPZWkhPcsFp+69oQEUYrAQTcSUmH06X9Q6Lw4SXo/cvtKMbBxdRIH5yCJV1XIpG6MnILllYwU842SHGw4+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711020853; c=relaxed/simple; bh=W2/gJ2MKgRnlesgFeDrOa3uQwI+oiLcvFiZTpWgi4aQ=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=VcGDZUKVms1Kw+8lQ7PQYF5hcvmuS7S6CbAZIBaq1PVv5qNwIYqiIW9ZyQs1IFDi6z6LBCV+Z1GIpQacwaNtoZ6B67zWHL3yGD7tGvMXJipX/TO1smpR88/rkQQ4eLfBYJdqGCLES/daz/s4loBAqDouNJRc82I5int2S/PuM4A= 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=SE/W/CyZ; 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 (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42L6XrNa026123; Thu, 21 Mar 2024 11:33:55 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=rvpAHaDptSDGHjItmcX8AIeewGwgxzt24c489x1bS8Y=; b=SE /W/CyZPrZylMX3TIsP705qgx+VoC9l+fJPnGSgqBUuYHUOsC2s4DScZ4MDM2N4xT m4sPvmF/y8dVFBPTBrbTfJPXr3UiwZO7hGbPxp258YWfcmvniGO6bka4tso90Hqo QJiz0KEhMy/rsX3cQobAaOhcAEaSP82esmDGrcaV2RFbhKHKGcYWvxiiHcgLt7bT XsJZpbYFgHJjdysDIGCguWDjZxnWyiStXx/w8UFR2buj+Sm+EFAGd0cjkexQvP0s If7wZizQHpeMGRnGJdaO5wOmaef/Kcf52nE0cZ1LZdIOCoA1JxBbnq8U8qDAQojF eICxPgeNoJyK0R2Tc9YA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x0fqxgm0h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 Mar 2024 11:33:55 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42LBXsYG018083 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 Mar 2024 11:33:54 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.1118.40; Thu, 21 Mar 2024 04:33:48 -0700 Message-ID: <37942292-fb99-4d3b-9933-50d338e87661@quicinc.com> Date: Thu, 21 Mar 2024 17:03:45 +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 3/6] clk: qcom: videocc-sm8550: Add SM8650 video clock controller Content-Language: en-US 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-4-quic_jkona@quicinc.com> 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: bt3LftOV1EX1LBcHb8MIbxP5q2D-YnDu X-Proofpoint-GUID: bt3LftOV1EX1LBcHb8MIbxP5q2D-YnDu 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-03-21_08,2024-03-18_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 clxscore=1015 lowpriorityscore=0 phishscore=0 mlxlogscore=999 suspectscore=0 spamscore=0 priorityscore=1501 malwarescore=0 adultscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403140001 definitions=main-2403210081 On 3/21/2024 3:33 PM, Dmitry Baryshkov wrote: > 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; > Thanks Dmitry for your review. Yes, will rename this in the next series. Thanks, Jagadeesh >> >> 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 >> >> > >