Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp625919pxb; Fri, 29 Oct 2021 17:05:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzh1R8i3oOoefoUu8WrOi7+HZNUVpOEe92OSa168RfH4rZ54MRGtGOSwdhzoKgN6vf+I/VD X-Received: by 2002:a05:6402:40cf:: with SMTP id z15mr18862002edb.138.1635552311278; Fri, 29 Oct 2021 17:05:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635552311; cv=none; d=google.com; s=arc-20160816; b=tTkAzVac1avnKdBqrfGJ2GHSU145QU5xpuPCwrB5KI7F/4uM/nQi0Q5KIYN6wJDie7 qBxM5eARAr30gs252QIV4jt6uhIpH6XxQUGQRONDlgzfp2Llwn92Lnl3AJPFp2D6ufXL B4arVmx5OB8ZAsMfi75M59cZjcsfZnpzvuuIWb8Zx46bVVypA+KREQp6w/JfsjHtBVm5 0ONpy9+L1Gyfd/qmoojzZgQqPfHim6TJauubOzlJNZIqbmzgs7w48/hs6cfxgo9SpqiI oy4Ma+wQqUR7/OPROHBeB+XAVBFrb6tRhp2O7RWKXUTZXiZ0mWatCB3P21hU29W4e97t pO5w== 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=EGzifhUa+JIC78rSBB1UVH79TnxAv+0tkks9jF940Bk=; b=N8Mt0/qcz/YxpNuEJy2EyCDka4u2A/IKO3dMoa8fXzoltPrJthOlgJb28KCLesNroT i3zR1DOx4a7QQLra5ren1dhnJhtE0c1jV70TRBCmYHLVPmMvoLiBvEUBrpZcdpq7xzdW EVUSXBV7dDhWrFNQnPKSXWjU36ERkVxWc/DGkNpU+5BHOiJJCAtdw9sMvyzRVDv8b7i1 TAIWKSeeJ9iIkeoLrjfQyVfrjXFEMhSAc1fSWcjDhT6yAKK3fxQIf8GC57I4Um9kJ9pi 1rYME2qUIwrGSb/xC7ralNMoYMM+zb8uIGlpaU5W/CNPUSBh4BBvXrwsP7qG2Mmk7qlD W1UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=alV+Mx3Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nd33si12898862ejc.633.2021.10.29.17.04.48; Fri, 29 Oct 2021 17:05:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=alV+Mx3Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231890AbhJ3ADq (ORCPT + 99 others); Fri, 29 Oct 2021 20:03:46 -0400 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]:29137 "EHLO alexa-out-sd-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231726AbhJ3AD3 (ORCPT ); Fri, 29 Oct 2021 20:03:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1635552060; x=1667088060; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=EGzifhUa+JIC78rSBB1UVH79TnxAv+0tkks9jF940Bk=; b=alV+Mx3ZD3ZrEOx+FArPEPALo8vV6XxukN+X8GchZw4w4iUST5Um+8J8 IpSEQRiOJR3h7iPdeRLyyGbg0tg6mLdWDOdFrk4b9uoCPm89CVZhDyISR N3AQL3hMgKJkrBazpPVaYUJ73bG9LrH4fEfxRqEt4UayHOkRQQzqpfF+W Y=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-01.qualcomm.com with ESMTP; 29 Oct 2021 17:01:00 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2021 17:01:00 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.7; Fri, 29 Oct 2021 17:00:59 -0700 Received: from hu-vamslank-sd.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.922.7; Fri, 29 Oct 2021 17:00:59 -0700 From: To: , , , , , , CC: , , , , "Vamsi krishna Lanka" Subject: [PATCH v3 5/6] clk: qcom: Add support for SDX65 RPMh clocks Date: Fri, 29 Oct 2021 17:00:41 -0700 Message-ID: <1635552042-16250-6-git-send-email-quic_vamslank@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1635552042-16250-1-git-send-email-quic_vamslank@quicinc.com> References: <1635552042-16250-1-git-send-email-quic_vamslank@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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vamsi krishna Lanka Add support for clocks maintained by RPMh in SDX65 SoCs. Signed-off-by: Vamsi Krishna Lanka Acked-by: Bjorn Andersson --- drivers/clk/qcom/clk-rpmh.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c index 441d7a2..30b26fb 100644 --- a/drivers/clk/qcom/clk-rpmh.c +++ b/drivers/clk/qcom/clk-rpmh.c @@ -556,6 +556,30 @@ static const struct clk_rpmh_desc clk_rpmh_sm6350 = { .num_clks = ARRAY_SIZE(sm6350_rpmh_clocks), }; +DEFINE_CLK_RPMH_VRM(sdx65, ln_bb_clk1, ln_bb_clk1_ao, "lnbclka1", 4); + +static struct clk_hw *sdx65_rpmh_clocks[] = { + [RPMH_CXO_CLK] = &sc7280_bi_tcxo.hw, + [RPMH_CXO_CLK_A] = &sc7280_bi_tcxo_ao.hw, + [RPMH_LN_BB_CLK1] = &sdx65_ln_bb_clk1.hw, + [RPMH_LN_BB_CLK1_A] = &sdx65_ln_bb_clk1_ao.hw, + [RPMH_RF_CLK1] = &sdm845_rf_clk1.hw, + [RPMH_RF_CLK1_A] = &sdm845_rf_clk1_ao.hw, + [RPMH_RF_CLK2] = &sdm845_rf_clk2.hw, + [RPMH_RF_CLK2_A] = &sdm845_rf_clk2_ao.hw, + [RPMH_RF_CLK3] = &sdm845_rf_clk3.hw, + [RPMH_RF_CLK3_A] = &sdm845_rf_clk3_ao.hw, + [RPMH_RF_CLK4] = &sm8350_rf_clk4.hw, + [RPMH_RF_CLK4_A] = &sm8350_rf_clk4_ao.hw, + [RPMH_IPA_CLK] = &sdm845_ipa.hw, + [RPMH_QPIC_CLK] = &sdx55_qpic_clk.hw, +}; + +static const struct clk_rpmh_desc clk_rpmh_sdx65 = { + .clks = sdx65_rpmh_clocks, + .num_clks = ARRAY_SIZE(sdx65_rpmh_clocks), +}; + static struct clk_hw *of_clk_rpmh_hw_get(struct of_phandle_args *clkspec, void *data) { @@ -643,6 +667,7 @@ static const struct of_device_id clk_rpmh_match_table[] = { { .compatible = "qcom,sc8180x-rpmh-clk", .data = &clk_rpmh_sc8180x}, { .compatible = "qcom,sdm845-rpmh-clk", .data = &clk_rpmh_sdm845}, { .compatible = "qcom,sdx55-rpmh-clk", .data = &clk_rpmh_sdx55}, + { .compatible = "qcom,sdx65-rpmh-clk", .data = &clk_rpmh_sdx65}, { .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.7.4