Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6533891pxv; Thu, 29 Jul 2021 17:42:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypGLMRuYX7BaL1dYc4bva0ySJVrxTH/vBgQqtZIF20Q6GL55+CYnCiz4MvHUv+yMrkZ8ud X-Received: by 2002:a92:1908:: with SMTP id 8mr5633628ilz.149.1627605739419; Thu, 29 Jul 2021 17:42:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627605739; cv=none; d=google.com; s=arc-20160816; b=mkc6CxlWtKzqQA7jgaaeOhEyXWRlP51cIR0Ip2B/Ntn3chq7J8q3dzk8THGge1vPrg lWYxHbSHCK5u/Xu9Axx1GFQmkhlUZtC4AnGLVEeYAYq9jHhTWzl65pKLwTUPRi7Uyhq4 gbC8EAbeXU3+4S7qnr0xvV8kdK0JSTAYnTzT16uiM5/IsgGRtzflzNbdXgfmtiA/rEKy I32n4e38b8v2kTwSxsH6ubLzlyOAmIsLAKB6XDMiHKzOWQJUdqXX9iIZbA6IXgmWUTqv fizFMfVYKxKa9TQzTZoqm0icm8e2PYH80N/DD7TOdUDpt4FaABLVYI4KGPrtps76aRGk ISlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=9Ht7O+OhLLBTUmV8+k/svqIkYNmGUynD6YgQBlzccK0=; b=AsBVuY/bsoEZcQ5IO1PWyAaw5AxA5SSpDwcLBOYvxLYWGT35AhudrXpytmDOwZ4679 vqTp6dsW6ldCXZnE6H0NUEaEsaqoQUsWtT4B9NG4HxXbSsSK8snGDJ0bN/p/Zg22Fxy6 Je85SYFhQdQnXwiQ+gF/FDN+Ev6ukP4W5uCjFoj6rV7CaXC1ELtK4mQ8FaGb/tNT8XDo Fegjrji/i6hpC+3kHxPtOI0x6s2N4Mza8alNsIV3ZJkoBYtYnpMhYBiJhMqd7tbbbD1k AQJg1n7O/M/XDJidxyTS7nlN6R/fzRzetvEnXGcwvMgBXqighr6hH2pD81SK0FRkNDq1 FwnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=pf7fIIxl; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w5si5504051ilu.14.2021.07.29.17.42.06; Thu, 29 Jul 2021 17:42:19 -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=@mg.codeaurora.org header.s=smtp header.b=pf7fIIxl; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229750AbhG3AlU (ORCPT + 99 others); Thu, 29 Jul 2021 20:41:20 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:45703 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229788AbhG3AlU (ORCPT ); Thu, 29 Jul 2021 20:41:20 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1627605676; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=9Ht7O+OhLLBTUmV8+k/svqIkYNmGUynD6YgQBlzccK0=; b=pf7fIIxlz9JwfA2BX0sTNBAf63O4IyBG02IfDetXB+WiVq5Tvc+XfFxGODfomqh6JjSr8YOJ GO4PR2NGR+Cd2S40wJ7p/YT0TiIP6RR/Eo0LFl758R0mc7bjfCDmnq2DfrvDs8QzTjbAgve4 fvrPpFoBLvAx5V2bHTjZsqyUdbk= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-east-1.postgun.com with SMTP id 61034aab38fa9bfe9c4f0843 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 30 Jul 2021 00:41:15 GMT Sender: tdas=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 2F595C433D3; Fri, 30 Jul 2021 00:41:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.0.101] (unknown [49.204.183.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: tdas) by smtp.codeaurora.org (Postfix) with ESMTPSA id DF7D2C433F1; Fri, 30 Jul 2021 00:41:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org DF7D2C433F1 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=tdas@codeaurora.org Subject: Re: [PATCH v2 5/6] clk: qcom: Add support for SDX65 RPMh clocks To: quic_vamslank@quicinc.com, agross@kernel.org, bjorn.andersson@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, tglx@linutronix.de, maz@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: From: Taniya Das Message-ID: Date: Fri, 30 Jul 2021 06:11:07 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/23/2021 2:39 AM, quic_vamslank@quicinc.com wrote: > 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 | 27 +++++++++++++++++++++++++++ > 1 file changed, 27 insertions(+) > > diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c > index 91dc390a583b..f3769b86e5d0 100644 > --- a/drivers/clk/qcom/clk-rpmh.c > +++ b/drivers/clk/qcom/clk-rpmh.c > @@ -477,6 +477,32 @@ static const struct clk_rpmh_desc clk_rpmh_sm8250 = { > .num_clks = ARRAY_SIZE(sm8250_rpmh_clocks), > }; > > +DEFINE_CLK_RPMH_ARC(sdx65, bi_tcxo, bi_tcxo_ao, "xo.lvl", 0x3, 4); please re-use "sc7280" resources. > +DEFINE_CLK_RPMH_VRM(sdx65, ln_bb_clk1, ln_bb_clk1_ao, "lnbclka1", 4); > +DEFINE_CLK_RPMH_VRM(sdx65, rf_clk4, rf_clk4_ao, "rfclka4", 1); please re-use "sm8350" resources. > + > +static struct clk_hw *sdx65_rpmh_clocks[] = { > + [RPMH_CXO_CLK] = &sdx65_bi_tcxo.hw, > + [RPMH_CXO_CLK_A] = &sdx65_bi_tcxo_ao.hw, you can re-use sc7280 resources. > + [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] = &sdx65_rf_clk4.hw, > + [RPMH_RF_CLK4_A] = &sdx65_rf_clk4_ao.hw, "sm8350" > + [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), > +}; > + > DEFINE_CLK_RPMH_VRM(sm8350, div_clk1, div_clk1_ao, "divclka1", 2); > DEFINE_CLK_RPMH_VRM(sm8350, rf_clk4, rf_clk4_ao, "rfclka4", 1); > DEFINE_CLK_RPMH_VRM(sm8350, rf_clk5, rf_clk5_ao, "rfclka5", 1); > @@ -618,6 +644,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,sm8150-rpmh-clk", .data = &clk_rpmh_sm8150}, > { .compatible = "qcom,sm8250-rpmh-clk", .data = &clk_rpmh_sm8250}, > { .compatible = "qcom,sm8350-rpmh-clk", .data = &clk_rpmh_sm8350}, > -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation. --