Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp280878rwr; Wed, 19 Apr 2023 06:32:07 -0700 (PDT) X-Google-Smtp-Source: AKy350btzdo/4jtxfoEq6xcTsTNv20c9kYIg1+kMuIqJLQDSJkMnO5uNmoaP4Gzlwq5llXRELdld X-Received: by 2002:a05:6a00:2ea3:b0:627:f9ac:8a33 with SMTP id fd35-20020a056a002ea300b00627f9ac8a33mr4188848pfb.13.1681911126708; Wed, 19 Apr 2023 06:32:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681911126; cv=none; d=google.com; s=arc-20160816; b=0WOVJ7yRN9BG6LGcl1XR/uHrzoWXl7D91Vt43+Rty67Z3M/ckCPvCCKxjQpD0by9ik 0DhKRiLx5uspjgQXMqKM5mB4Z+IRFwq4gJkHW0vQcV7semt+nPKgT78avYsaGoFfq0hE 9VbWE3HUTx0YBdndqKPMcBpR+h6E5UmN5NtgT/4X7OnrGViaDhhTZMbP8GD+LdXwgDiT gi8T5/9m2K8T5VNLADV65/HS2VB07e83bhTXe0ERZnwUH///C+9uxNUUFdM9ikWvFsXx wkjEbgAurL1hxfOVbvCTqllaDncXaTugJ6l4RhUXk+qtLSj6tf4IbzqTCevgIp+pgw77 oTPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=XSs5KvGByLIiC8eBtBdaHZjW9pBi29fsymw+sjrNXiY=; b=qj18wJRajUArBDScwAd/mz7DM2UViz4kvnRWGYRyOiWWouAt1CrQdEEvI6c6ILu1By Y/mfEq1I2p5LAd8Wz/YMcgcIEy7x9I7+TwFf26aw91Nx+YC7v5L/GMzhSS6dkVU3Au4g KbeVc17FPZqE2UbThGLX0gyRYFbaxIM0XtcrNYPCoSyh7cHJr+PjY3DTKfvYOx9vBMPZ z3VruUhX6uuGPZX8BURrxzfWaSuOubslNjjYPjMCgAfh+YURJ8rgl/vh/eFVhvaCRjlH uSHE40/CW6meMbypCNkSmR1YNEcG/8TSrzvLeRsa8wjtlPEHTi3LOgDx9N1LWUcpkfCN bRLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=BIZF9+Fd; 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 f2-20020aa79d82000000b0063b843131adsi10052784pfq.328.2023.04.19.06.31.51; Wed, 19 Apr 2023 06:32:06 -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=BIZF9+Fd; 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 S233558AbjDSNbD (ORCPT + 99 others); Wed, 19 Apr 2023 09:31:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233530AbjDSNa5 (ORCPT ); Wed, 19 Apr 2023 09:30:57 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2898649D6; Wed, 19 Apr 2023 06:30:55 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33JAS3nE014928; Wed, 19 Apr 2023 13:30:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=XSs5KvGByLIiC8eBtBdaHZjW9pBi29fsymw+sjrNXiY=; b=BIZF9+FdRYDZ8gmRopYKkQcLvjf+2kUbo6KEgSsNaQS4W2jUV4GU3zaNTyui9o0R588s OgB4C6oKHEdSxJ5qhtEW9AnntFoFE3Sm2+1MJsKGAQd89RIGNL5HmENkYX/pxg/QFvND MNwDBbYAc4NqNl/0TYOiO9gzNqPoXqRFCt6eyqviFPM6CYzwDVGu/ijbLf/eZWhT9Mx3 HGOHmJl0ZHIH0XzL7NGihzmf73cZyeZd/ccDRhDj/Vc3bCa0yLV2lnCpuv5dZrJ2KDBz vNE8j5lCgxCpD+iaJ51LoQhRoPSiFQVKPgQpa3nZkVi7fM3mBGXvcDVFUeiMQn+QxY2J +Q== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3q1wxk2tab-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Apr 2023 13:30:51 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 33JDUops010654 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Apr 2023 13:30:50 GMT Received: from hu-tdas-hyd.qualcomm.com (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.986.42; Wed, 19 Apr 2023 06:30:45 -0700 From: Taniya Das To: Stephen Boyd , Rob Herring , "Bjorn Andersson" , Andy Gross , "Krzysztof Kozlowski" , Richard Cochran , Michael Turquette CC: , Imran Shaik , , , , , Taniya Das , , Subject: [PATCH 3/4] clk: qcom: rpmh: Add RPMH clocks support for SDX75 Date: Wed, 19 Apr 2023 19:00:12 +0530 Message-ID: <20230419133013.2563-4-quic_tdas@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230419133013.2563-1-quic_tdas@quicinc.com> References: <20230419133013.2563-1-quic_tdas@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] 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-GUID: 6lBo3ToI_A-mg00pc5FGFy0HljYExxlU X-Proofpoint-ORIG-GUID: 6lBo3ToI_A-mg00pc5FGFy0HljYExxlU X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-19_08,2023-04-18_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 mlxlogscore=999 bulkscore=0 impostorscore=0 lowpriorityscore=0 spamscore=0 priorityscore=1501 clxscore=1015 suspectscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304190121 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 From: Imran Shaik Add support for RPMH clocks for SDX75 platform. Signed-off-by: Imran Shaik Signed-off-by: Taniya Das --- drivers/clk/qcom/clk-rpmh.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c index 45ee370f3307..86572570bc54 100644 --- a/drivers/clk/qcom/clk-rpmh.c +++ b/drivers/clk/qcom/clk-rpmh.c @@ -700,6 +700,24 @@ static const struct clk_rpmh_desc clk_rpmh_qdu1000 = { .num_clks = ARRAY_SIZE(qdu1000_rpmh_clocks), }; +static struct clk_hw *sdx75_rpmh_clocks[] = { + [RPMH_CXO_CLK] = &clk_rpmh_bi_tcxo_div4.hw, + [RPMH_CXO_CLK_A] = &clk_rpmh_bi_tcxo_div4_ao.hw, + [RPMH_RF_CLK1] = &clk_rpmh_rf_clk1_a.hw, + [RPMH_RF_CLK1_A] = &clk_rpmh_rf_clk1_a_ao.hw, + [RPMH_RF_CLK2] = &clk_rpmh_rf_clk2_a.hw, + [RPMH_RF_CLK2_A] = &clk_rpmh_rf_clk2_a_ao.hw, + [RPMH_RF_CLK3] = &clk_rpmh_rf_clk3_a.hw, + [RPMH_RF_CLK3_A] = &clk_rpmh_rf_clk3_a_ao.hw, + [RPMH_QPIC_CLK] = &clk_rpmh_qpic_clk.hw, + [RPMH_IPA_CLK] = &clk_rpmh_ipa.hw, +}; + +static const struct clk_rpmh_desc clk_rpmh_sdx75 = { + .clks = sdx75_rpmh_clocks, + .num_clks = ARRAY_SIZE(sdx75_rpmh_clocks), +}; + static struct clk_hw *of_clk_rpmh_hw_get(struct of_phandle_args *clkspec, void *data) { @@ -792,6 +810,7 @@ static const struct of_device_id clk_rpmh_match_table[] = { { .compatible = "qcom,sdm670-rpmh-clk", .data = &clk_rpmh_sdm670}, { .compatible = "qcom,sdx55-rpmh-clk", .data = &clk_rpmh_sdx55}, { .compatible = "qcom,sdx65-rpmh-clk", .data = &clk_rpmh_sdx65}, + { .compatible = "qcom,sdx75-rpmh-clk", .data = &clk_rpmh_sdx75}, { .compatible = "qcom,sm6350-rpmh-clk", .data = &clk_rpmh_sm6350}, { .compatible = "qcom,sm8150-rpmh-clk", .data = &clk_rpmh_sm8150}, { .compatible = "qcom,sm8250-rpmh-clk", .data = &clk_rpmh_sm8250}, -- 2.17.1