From patchwork Fri May 12 12:23:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taniya Das X-Patchwork-Id: 93180 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp5071530vqo; Fri, 12 May 2023 05:42:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7oQmYCIZ+5jbsKZd3DAPjNO736cZ90bbwid9KiXw9C6iNij7HwZ8LEKeDR8u/BATTHJpKW X-Received: by 2002:a05:6a21:33a2:b0:100:11c9:8c06 with SMTP id yy34-20020a056a2133a200b0010011c98c06mr25577349pzb.18.1683895369967; Fri, 12 May 2023 05:42:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683895369; cv=none; d=google.com; s=arc-20160816; b=pq0P14jDOrRxMx9QIsKlMuPcmrdXmLQhKB4rpuZON4plQICilalwpMw+ylBMxLUxSm 9Nr8uJKgIar/WPuG0yizBqxctNH011QaSYpyQM5ZgqDuj75uopp/TykKiN/9UTDNhmDS FDQ/m2XPeu0Xh/cZbkiJAmKAf4l7QehE45DRJQgJewF4xII25z/CcD9OsQrO0Pz+y/OR 8E+GtG4mmHoHLlGl2ZEhkmCAw/pAbVbF0IqxvqDlTjTk6B3pgqRZ4DCgMNGf5Cm/8XWS A2x3nPt34nXD50e7+i42TgHVM21a82glvPeWN2OFPjernLaRssoHeuZRA/f13oT4P4K3 IWGw== 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=X4kYcgSpJFTs/J0lcE9eYSXJ88S8eFueddQHF4oLDVo=; b=C23RMJAUUmNdC0SbchLN/L+PntUvTKdm5tC/x65KQo7Z13zVQcRuDzrzO8cXsvtaJ1 MTZxiqS/KsyY2s01ZA6y9axXLx4i3kLpW8SHugOIgUt+TD7Cf8axNJ+0eGQ6hI6nKiKr RVx0ZCG9kQgsfRiKOHyaOiMd48aw56nW56JWv/YE/rhfPVFJZySMLr1RL0YylSuTe3Eg 2Xgxqsjic7jjCSZV+TvE6hAe6dpKIMQyhcfYWl35wNC044NJ4E5XgUV8jY7eo+hnPMCj MTSm8WY35EbZfhz4Fe7aOXnbBqzcyOfZryXv7x3nCVUaSMh8S8sncmEEagRVnzH9Pno9 rbYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=py9EYdv7; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q2-20020a63bc02000000b00528d0d8b7bbsi9153148pge.595.2023.05.12.05.42.35; Fri, 12 May 2023 05:42:49 -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=py9EYdv7; 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 S241084AbjELMZb (ORCPT + 99 others); Fri, 12 May 2023 08:25:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240950AbjELMZT (ORCPT ); Fri, 12 May 2023 08:25:19 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FADC13C20; Fri, 12 May 2023 05:24:59 -0700 (PDT) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34CBDApf010910; Fri, 12 May 2023 12:24:48 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=X4kYcgSpJFTs/J0lcE9eYSXJ88S8eFueddQHF4oLDVo=; b=py9EYdv7ICOcnBiApeGpEYb3OIfnLgw7ZifXQ8fUHZwYsZ+bSlmzX7oqFQECmQKpcEVC dYeXYpKwUT7x6IGzeKDRdI3X0r92IODet32nbhCX+vDcj/VRTUVu/hPMZEvK4RjseaV1 IoUKBN1NSKP/YBXN1pWaCCgQvKhltkvdeyG2Ruv59JWS+Uwq5hpRJOCcpDVQIQAmkit9 oAjWvWz2eIyZS/PaKoLx5HsN3zaTijmqO+p+5Hl7QpJPsHsHmELCdoTl2LW9l3P/43ej /U0z7QaSPVCRSKx8Iwwvy+v/3kySVnILSu1rzYvmZQnS78bMPutAjl8wwDNgQR9PJ93W wA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qh5g99xhh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 May 2023 12:24:48 +0000 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 34CCOllN013179 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 May 2023 12:24:47 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; Fri, 12 May 2023 05:24:41 -0700 From: Taniya Das To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Richard Cochran , Conor Dooley , Andy Gross CC: Bjorn Andersson , Konrad Dybcio , Imran Shaik , , , , , , , , Taniya Das Subject: [PATCH V2 4/5] clk: qcom: rpmh: Add RPMH clocks support for SDX75 Date: Fri, 12 May 2023 17:53:46 +0530 Message-ID: <20230512122347.1219-5-quic_tdas@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230512122347.1219-1-quic_tdas@quicinc.com> References: <20230512122347.1219-1-quic_tdas@quicinc.com> MIME-Version: 1.0 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: FnckXB02Rfn5frlYrECZKzMQzRP_8bWD X-Proofpoint-ORIG-GUID: FnckXB02Rfn5frlYrECZKzMQzRP_8bWD 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-05-12_08,2023-05-05_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 lowpriorityscore=0 mlxlogscore=999 mlxscore=0 clxscore=1015 priorityscore=1501 spamscore=0 impostorscore=0 malwarescore=0 suspectscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305120103 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765692271330285286?= X-GMAIL-MSGID: =?utf-8?q?1765692271330285286?= From: Imran Shaik Add support for RPMH clocks for SDX75 platform. Signed-off-by: Imran Shaik Signed-off-by: Taniya Das Reviewed-by: Dmitry Baryshkov --- Changes since V1: - None. 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},