Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2567696rda; Wed, 25 Oct 2023 06:35:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEqqRXmu1CGErezln3sb2xsm9MrTYIAIBmah2cWBAr22EQbCJhJQUFAHNbGRmDo/Ml2RCJx X-Received: by 2002:ac8:7c4c:0:b0:417:9e55:617f with SMTP id o12-20020ac87c4c000000b004179e55617fmr19114635qtv.62.1698240904172; Wed, 25 Oct 2023 06:35:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698240904; cv=none; d=google.com; s=arc-20160816; b=UYwnBJtzFDcjAMXXO36udb0WAbbcMIS4t+Sc4o5h38sHmjF8GtCLxISpsZIfqz5CER gouiKE4RUnMknwYooqmTkJvZDmgMC1A165qN5tqlZ6dppoWw0JDroXhie8AIEfdu6niB HQ1+hU1OWG2eW2NdfJS9zqtSTWg/4Aevyk1p99SAwgza+I94oby1NXE+UbbYb2miOWOc bS2rKEQKqI2pUHQA51XTqgK46Uand3iSMoFHnjadLEoS/C2EDzRTSDfx36URLF2plc4E k3pnNCQnR7GoifHJaKBxDVpBqNX4Di5GPNAAJhCo7kAWcKBnj7QuLJkpkSFCXpHeOOd6 kGzQ== 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=0KnYWo9G5QtM2c/t3ahqFKcaENZGchGejX4b3wSMMmk=; fh=hBzWgvmtW0nuDyhGmbBgXuva5tN2LCNKOPJRQLDf5OI=; b=O0Ix+767OJNGg/RV52ZX14gh4b2uXouV66GGLybNe1Wsvno9PzTnMbKVS6x/rRCaZ7 iBaGr6gOw2fFIm4xeHhhBu4Q6yLaVu0W5tVQqbeP4RK+/tbMmgoBhHsAjzSFu8mNtY0c wtxmLF4MmIC2VbYNrcv+mmrdGWY5uYDXeP5WRzMmUUa/FBsrUsJT3JGsCG+6py9iiO2N wshzyB2rmor7i9WwmI78bsu93gJCHYICJde/XaTGFya9dqv63w+iTU1kCwu97yerOZ8x Cw7j24HSHq7fZ5AkqG1G0Fo2GV+vN6U/NloLxsJN0koAe0Fxurl7JRMbJDHuuILnWCzr 6NQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=KTt0vJ7F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id x18-20020a05622a001200b00419894fe568si8469432qtw.343.2023.10.25.06.35.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 06:35:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=KTt0vJ7F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id C86C8801CFB5; Wed, 25 Oct 2023 06:34:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344610AbjJYNel (ORCPT + 99 others); Wed, 25 Oct 2023 09:34:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344596AbjJYNek (ORCPT ); Wed, 25 Oct 2023 09:34:40 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB7F9133; Wed, 25 Oct 2023 06:34:37 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39PAxxgl007363; Wed, 25 Oct 2023 13:34:33 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=0KnYWo9G5QtM2c/t3ahqFKcaENZGchGejX4b3wSMMmk=; b=KTt0vJ7F4INenKdH4UPFYQ2NUucCOjTk6ouaFjPXC8wJAHByiY+64z5Prt0alsEF9M+T aWthJehsFI2buKkvR26tjPc9FVYEiI/GWNej5VmubtCHDuHZP11wp2qmJtkNhDVAF9Pe bKHyXaXgOkHPkoiP75c2VxigT2ONDatvRRN+exA+R3iJJTpRO7eiXIyDtHDTWXmyN3vF hxBNMgANBAaIJIVjlrp7MDnsrnhHSB5WK6nyYp7B47Ph8hm0blTIZKupt6a9W/4f/etO +ALEJthd2exfk6hQ3ZaBxlF1SjRApNEkmDmCDe8KOPQJdhba/VxTD/kWE6/tHHWsn02i nA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3txk9k9yyt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 25 Oct 2023 13:34:33 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39PDYW4X000539 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 25 Oct 2023 13:34:32 GMT Received: from blr-ubuntu-87.ap.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.1118.39; Wed, 25 Oct 2023 06:34:27 -0700 From: Sibi Sankar To: , , , , , CC: , , , , , , , , , , , Sibi Sankar Subject: [PATCH 4/4] clk: qcom: rpmh: Add support for SC8380XP rpmh clocks Date: Wed, 25 Oct 2023 19:03:20 +0530 Message-ID: <20231025133320.4720-5-quic_sibis@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231025133320.4720-1-quic_sibis@quicinc.com> References: <20231025133320.4720-1-quic_sibis@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: _kUp0FXrgfUBfJ72P0Blkc_VcsjW6dRl X-Proofpoint-ORIG-GUID: _kUp0FXrgfUBfJ72P0Blkc_VcsjW6dRl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-25_02,2023-10-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 adultscore=0 impostorscore=0 malwarescore=0 priorityscore=1501 spamscore=0 mlxlogscore=999 phishscore=0 mlxscore=0 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310170001 definitions=main-2310250118 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 25 Oct 2023 06:34:56 -0700 (PDT) From: Rajendra Nayak Adds the RPMH clocks present in SC8380XP SoC Co-developed-by: Neil Armstrong Signed-off-by: Neil Armstrong Signed-off-by: Rajendra Nayak Signed-off-by: Sibi Sankar --- drivers/clk/qcom/clk-rpmh.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c index 5d853fd43294..7f6d5f98957b 100644 --- a/drivers/clk/qcom/clk-rpmh.c +++ b/drivers/clk/qcom/clk-rpmh.c @@ -372,6 +372,9 @@ DEFINE_CLK_RPMH_VRM(clk3, _a1, "clka3", 1); DEFINE_CLK_RPMH_VRM(clk4, _a1, "clka4", 1); DEFINE_CLK_RPMH_VRM(clk5, _a1, "clka5", 1); +DEFINE_CLK_RPMH_VRM(clk3, _a2, "clka3", 2); +DEFINE_CLK_RPMH_VRM(clk4, _a2, "clka4", 2); +DEFINE_CLK_RPMH_VRM(clk5, _a2, "clka5", 2); DEFINE_CLK_RPMH_VRM(clk6, _a2, "clka6", 2); DEFINE_CLK_RPMH_VRM(clk7, _a2, "clka7", 2); DEFINE_CLK_RPMH_VRM(clk8, _a2, "clka8", 2); @@ -737,6 +740,28 @@ static const struct clk_rpmh_desc clk_rpmh_sm4450 = { .num_clks = ARRAY_SIZE(sm4450_rpmh_clocks), }; +static struct clk_hw *sc8380xp_rpmh_clocks[] = { + [RPMH_CXO_CLK] = &clk_rpmh_bi_tcxo_div2.hw, + [RPMH_CXO_CLK_A] = &clk_rpmh_bi_tcxo_div2_ao.hw, + [RPMH_LN_BB_CLK1] = &clk_rpmh_clk6_a2.hw, + [RPMH_LN_BB_CLK1_A] = &clk_rpmh_clk6_a2_ao.hw, + [RPMH_LN_BB_CLK2] = &clk_rpmh_clk7_a2.hw, + [RPMH_LN_BB_CLK2_A] = &clk_rpmh_clk7_a2_ao.hw, + [RPMH_LN_BB_CLK3] = &clk_rpmh_clk8_a2.hw, + [RPMH_LN_BB_CLK3_A] = &clk_rpmh_clk8_a2_ao.hw, + [RPMH_RF_CLK3] = &clk_rpmh_clk3_a2.hw, + [RPMH_RF_CLK3_A] = &clk_rpmh_clk3_a2_ao.hw, + [RPMH_RF_CLK4] = &clk_rpmh_clk4_a2.hw, + [RPMH_RF_CLK4_A] = &clk_rpmh_clk4_a2_ao.hw, + [RPMH_RF_CLK5] = &clk_rpmh_clk5_a2.hw, + [RPMH_RF_CLK5_A] = &clk_rpmh_clk5_a2_ao.hw, +}; + +static const struct clk_rpmh_desc clk_rpmh_sc8380xp = { + .clks = sc8380xp_rpmh_clocks, + .num_clks = ARRAY_SIZE(sc8380xp_rpmh_clocks), +}; + static struct clk_hw *of_clk_rpmh_hw_get(struct of_phandle_args *clkspec, void *data) { @@ -825,6 +850,7 @@ static const struct of_device_id clk_rpmh_match_table[] = { { .compatible = "qcom,sc7180-rpmh-clk", .data = &clk_rpmh_sc7180}, { .compatible = "qcom,sc8180x-rpmh-clk", .data = &clk_rpmh_sc8180x}, { .compatible = "qcom,sc8280xp-rpmh-clk", .data = &clk_rpmh_sc8280xp}, + { .compatible = "qcom,sc8380xp-rpmh-clk", .data = &clk_rpmh_sc8380xp}, { .compatible = "qcom,sdm845-rpmh-clk", .data = &clk_rpmh_sdm845}, { .compatible = "qcom,sdm670-rpmh-clk", .data = &clk_rpmh_sdm670}, { .compatible = "qcom,sdx55-rpmh-clk", .data = &clk_rpmh_sdx55}, -- 2.17.1