Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30292819rwd; Thu, 6 Jul 2023 03:57:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlFWKl6bRxn7TRD9SaS21pFhrkYbz82qweNtGXsd+m0HoKZBajFA+YjiknLLEPzWhL3cP+LH X-Received: by 2002:a05:6a21:3393:b0:126:ec6e:21cf with SMTP id yy19-20020a056a21339300b00126ec6e21cfmr2875222pzb.2.1688641079217; Thu, 06 Jul 2023 03:57:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688641079; cv=none; d=google.com; s=arc-20160816; b=pmS/8RATSZHRShQ/QeBKcD6JBhcdupci64nVQ0dHGho9y4xNFtBXKXxvy4rK6p53IM Mb/7TQo7vXHNhs/Xo90MxOUVVDWwexCpxVoUbFb2vBHyZZUmNf1k8Xq46k+d3tcIL6kR 0AbCosEPKHTxr8C97xk5szEg5TqsAB3WkoUct85enSMANLkZ7HBw+cCM1Lrozkfk2u+h 3n/0cZbKg5mOL3w3pF9kpvjcil/4YFPmGyr7n6QdIyaxDhEElJFqjCdBB1twsuRz/gms a1kNeYC3ehlUHpdV89YrEtxZ3wDZWvu0GpCIHcnxydCHy4OC+BugUDmg1SJwrM+HA1Zu QAEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=hQcxAbgU6XRxEZHjAzEUWwqx9w9pka5zGZIQt7QElK8=; fh=OHr8RhaxBjQs4qYP834S4Zfw9MDZ5v7kpyYK2EpyLZE=; b=nU2tgUiAl+mXpIXKNcWm8tqKjrZpeGaseyhouSr2Xf9FU/q9sD9ZlVM4lr/RAhslq+ 4yzJB6DkZbtSuaobnMqBjXfHkj61acfkx5uUxt3kyt2HqyVixQ3hihsQVK272hp5DmTr vpJwQPZFZ8X86mZN2ETr7aagzVlxdsgbpB/wC0lG2pjrKRpkcYq/2CjNoO4h03ynCHbr KR0u4DEJIT05YKxEiz30pGQOuu6WpqXYP6r3b6hpVKgEmaWXU/vOGuWyRhhBH6rbm/EM 4zzVKX8K99L3fcHJFVab1qHbwozCK0sGa67oRjWFG2RGMT/4iiFplD8NEbhMCfeAm29y 8frQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=W+Fstp8E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fi12-20020a056a00398c00b00660b5630927si1263993pfb.133.2023.07.06.03.57.44; Thu, 06 Jul 2023 03:57:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=W+Fstp8E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230054AbjGFKvl (ORCPT + 99 others); Thu, 6 Jul 2023 06:51:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231921AbjGFKv1 (ORCPT ); Thu, 6 Jul 2023 06:51:27 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A54B01BF1; Thu, 6 Jul 2023 03:51:23 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36680taB013222; Thu, 6 Jul 2023 10:51:19 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=hQcxAbgU6XRxEZHjAzEUWwqx9w9pka5zGZIQt7QElK8=; b=W+Fstp8E4wHQfBOSXQvnUKFwDJH9yUmJUCN4Jlr0a4cJ9EuKV1IJvpw2Xf8COPDbKoEn lXznHMcq4HblxlgJyZ7KcwmsqFO1WROxpSHT8wCEcq97mODWLZ/METALrmVqtEA8693b uQnWyE45rkVPpdoAgcNcaJflZBjoKy1jyuIojRlH1G8t3paAMQQXZ4YWGu/ffbL10WzM xNp2nMUPF8Y+q6lB97fsirqzfqozDSnErY3rAXPSwC0kamyhpvbotqzfIV2Q4HtBl13K Lx6Ebp6MdTYm46txcGWtAnCpgamgtpsnw3B76FhsN3VfDUulkQr+Srm3/X94mTQSk20D iQ== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rmxpnbkae-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 10:51:19 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 366ApIa5019621 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 6 Jul 2023 10:51:18 GMT Received: from [10.216.36.60] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Thu, 6 Jul 2023 03:51:13 -0700 Message-ID: <05f3459f-a2cd-3e4d-bbc6-f0109dbae778@quicinc.com> Date: Thu, 6 Jul 2023 16:21:05 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH V2 3/5] clk: qcom: gcc-qdu1000: Update GCC clocks as per the latest hw version To: Konrad Dybcio , Andy Gross , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Taniya Das , Melody Olvera , Dmitry Baryshkov , , , , , Jagadeesh Kona , Satya Priya Kakitapalli , Ajit Pandey References: <20230628092837.3090801-1-quic_imrashai@quicinc.com> <20230628092837.3090801-4-quic_imrashai@quicinc.com> Content-Language: en-US From: Imran Shaik In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: yyt43i6N-IdV8hn1QVtZUEhNeMT8RKma X-Proofpoint-GUID: yyt43i6N-IdV8hn1QVtZUEhNeMT8RKma X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-06_06,2023-07-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 malwarescore=0 adultscore=0 mlxlogscore=999 spamscore=0 suspectscore=0 priorityscore=1501 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307060095 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/28/2023 4:36 PM, Konrad Dybcio wrote: > On 28.06.2023 11:28, Imran Shaik wrote: >> Add support for gcc_ddrss_ecpri_gsi_clk and update the GCC clkref clocks >> as per the latest hardware version of QDU1000 and QRU100 SoCs. >> >> Co-developed-by: Taniya Das >> Signed-off-by: Taniya Das >> Signed-off-by: Imran Shaik >> --- >> Changes since v1: >> - Newly added >> >> drivers/clk/qcom/gcc-qdu1000.c | 32 ++++++++++++++++++++++++++------ >> 1 file changed, 26 insertions(+), 6 deletions(-) >> >> diff --git a/drivers/clk/qcom/gcc-qdu1000.c b/drivers/clk/qcom/gcc-qdu1000.c >> index c00d26a3e6df..991fb2bc97e9 100644 >> --- a/drivers/clk/qcom/gcc-qdu1000.c >> +++ b/drivers/clk/qcom/gcc-qdu1000.c >> @@ -1131,6 +1131,26 @@ static struct clk_branch gcc_ddrss_ecpri_dma_clk = { >> }, >> }; >> >> +static struct clk_branch gcc_ddrss_ecpri_gsi_clk = { >> + .halt_reg = 0x54298, >> + .halt_check = BRANCH_HALT_VOTED, >> + .hwcg_reg = 0x54298, >> + .hwcg_bit = 1, >> + .clkr = { >> + .enable_reg = 0x54298, >> + .enable_mask = BIT(0), >> + .hw.init = &(const struct clk_init_data) { >> + .name = "gcc_ddrss_ecpri_gsi_clk", >> + .parent_hws = (const struct clk_hw*[]) { >> + &gcc_aggre_noc_ecpri_gsi_clk_src.clkr.hw, >> + }, >> + .num_parents = 1, >> + .flags = CLK_SET_RATE_PARENT, >> + .ops = &clk_branch2_aon_ops, >> + }, >> + }, >> +}; >> + >> static struct clk_branch gcc_ecpri_ahb_clk = { >> .halt_reg = 0x3a008, >> .halt_check = BRANCH_HALT_VOTED, >> @@ -1447,14 +1467,13 @@ static struct clk_branch gcc_pcie_0_cfg_ahb_clk = { >> >> static struct clk_branch gcc_pcie_0_clkref_en = { >> .halt_reg = 0x9c004, >> - .halt_bit = 31, >> - .halt_check = BRANCH_HALT_ENABLE, >> + .halt_check = BRANCH_HALT, >> .clkr = { >> .enable_reg = 0x9c004, >> .enable_mask = BIT(0), >> .hw.init = &(const struct clk_init_data) { >> .name = "gcc_pcie_0_clkref_en", >> - .ops = &clk_branch_ops, >> + .ops = &clk_branch2_ops, > This sounds like a separate fix, clk_branch_ops seems to only concern > 10+yo chips. > > Konrad Sure, will split this patch and push the next series. Thanks, Imran >> }, >> }, >> }; >> @@ -2274,14 +2293,13 @@ static struct clk_branch gcc_tsc_etu_clk = { >> >> static struct clk_branch gcc_usb2_clkref_en = { >> .halt_reg = 0x9c008, >> - .halt_bit = 31, >> - .halt_check = BRANCH_HALT_ENABLE, >> + .halt_check = BRANCH_HALT, >> .clkr = { >> .enable_reg = 0x9c008, >> .enable_mask = BIT(0), >> .hw.init = &(const struct clk_init_data) { >> .name = "gcc_usb2_clkref_en", >> - .ops = &clk_branch_ops, >> + .ops = &clk_branch2_ops, >> }, >> }, >> }; >> @@ -2523,6 +2541,8 @@ static struct clk_regmap *gcc_qdu1000_clocks[] = { >> [GCC_AGGRE_NOC_ECPRI_GSI_CLK] = &gcc_aggre_noc_ecpri_gsi_clk.clkr, >> [GCC_PCIE_0_PHY_AUX_CLK_SRC] = &gcc_pcie_0_phy_aux_clk_src.clkr, >> [GCC_PCIE_0_PIPE_CLK_SRC] = &gcc_pcie_0_pipe_clk_src.clkr, >> + [GCC_GPLL1_OUT_EVEN] = &gcc_gpll1_out_even.clkr, >> + [GCC_DDRSS_ECPRI_GSI_CLK] = &gcc_ddrss_ecpri_gsi_clk.clkr, >> }; >> >> static const struct qcom_reset_map gcc_qdu1000_resets[] = {