From patchwork Fri Feb 17 13:41:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 58570 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp892434wrn; Fri, 17 Feb 2023 05:45:10 -0800 (PST) X-Google-Smtp-Source: AK7set8k3eeBKxWc52bPFVpJb7i8SMJcA332EDMElAfHUjEYKIY/BBvkUTPW963fXQsG+Z4rb9eJ X-Received: by 2002:aa7:d60b:0:b0:4ad:7c7c:a70d with SMTP id c11-20020aa7d60b000000b004ad7c7ca70dmr2444734edr.19.1676641510282; Fri, 17 Feb 2023 05:45:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676641510; cv=none; d=google.com; s=arc-20160816; b=K1mKOq8ZcTVmeCgZ0aw+L0NPFnJQraLk1g1y/NZvwH8oZIbvSn3QBbMztKwBv1aPiJ XxWbWZB9MMvawkUqtgIFulg2qf4tsSqxi0SEHQPQz3sLtbuyNTkJC1MddYRjAl6JhDau on9wmtJyiod6Qu3rMhzQGpljcM40avYIAlkQ95xgODMhs4/2oNEr69PhvJi06sU2lxUX AdygN/xV1j6Rt+/dOZJnpUqZZUeN/L36xtgBWv5zh+7cCQMQWD4HoBqqbEW6TgwauDGb 2UYmH2csfBxAftCM8woaf0EbAb+hI+lkYGpRm3Q3AYkjoHkDhqGyi3nNvtSYZQTXkbPB oQvA== 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=q+8H82uyrY86i2RqYMIqpxR6AA+Zq0xVccgaZNmhqeA=; b=wTAVemJeHyG0R0V83kVB+Vh4K/XGr5hnwqvJ4JajYJjEm8IOZd6I0oEq+N53xflba3 zdUIU7v1qWjNVtdGe9fz9wI8q210gTIeM+fGZima0CrsxC0W1XA4XxoXwFdeJ+ZLZ9+8 1nIrQ5anjzh4g56wCqu34fYGLEE3Aci247E466f5QA+V779OFUbeiLnm/oFfiQlgkMHd HxZmi8pT6vGLlakMtMtcQVtMbltUvDxOAPcVEAmfoaU6AlxLKZ9sSIiaA6RCN2rd9Gf6 3yXl22oh4sOOq0/j2n1dwu5NgHxbbndZrsCmZqsR+SX7oFIyIbf3utDAoJmJDmi9H3Cv bkXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="FqhB/jNo"; 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 q25-20020a056402033900b004ad745ab9cdsi3525810edw.530.2023.02.17.05.44.47; Fri, 17 Feb 2023 05:45:10 -0800 (PST) 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="FqhB/jNo"; 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 S229657AbjBQNmR (ORCPT + 99 others); Fri, 17 Feb 2023 08:42:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbjBQNmP (ORCPT ); Fri, 17 Feb 2023 08:42:15 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05D0569283; Fri, 17 Feb 2023 05:42:14 -0800 (PST) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31HA8EHf030270; Fri, 17 Feb 2023 13:41: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=q+8H82uyrY86i2RqYMIqpxR6AA+Zq0xVccgaZNmhqeA=; b=FqhB/jNo8mLH4XsFe+ACvbEVvjpRVz0vwlnXGRKGbOMdO5PnGAb/qVxHKpAfJf9H+5bD Jf5iEze8b/TDDbysOH/GmdbW3Fj6Qd3ItAKlqRHGDs2NP/8j/HH7Uia3D0vFf4kUlPEn oC+tWsGkvYtTmRh5oWksbJDw+qlztuR/Q1E2ZSFW2+3QftgTup2fDqhoeO+YDshWwiFu DliVU6N54byfJXm9+fnGnO7VDT+b1ucR22DnnhBFoHjbdNYMGsimxwEMqFIgTUrmB4pO jYt6kZc8UvAE2NQPCcMI52iL0Q6Xt4al5RB96gZJnSHkzHXHde3MMNdYEgYEZ61pU7LF /Q== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nt10u1e6w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 13:41:48 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 31HDflZ7021070 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Feb 2023 13:41:47 GMT Received: from devipriy-linux.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.41; Fri, 17 Feb 2023 05:41:39 -0800 From: Devi Priya To: , , , , , , , , , , , , , , , , , , , , CC: , , , , , Subject: [PATCH V2 2/5] clk: qcom: apss-ipq-pll: Enable APSS clock driver in IPQ9574 Date: Fri, 17 Feb 2023 19:11:04 +0530 Message-ID: <20230217134107.13946-3-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230217134107.13946-1-quic_devipriy@quicinc.com> References: <20230217134107.13946-1-quic_devipriy@quicinc.com> MIME-Version: 1.0 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-ORIG-GUID: rWPauRwu6_97kd6DA4YJjr9GJb16q38H X-Proofpoint-GUID: rWPauRwu6_97kd6DA4YJjr9GJb16q38H X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-17_08,2023-02-17_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 malwarescore=0 mlxscore=0 impostorscore=0 adultscore=0 mlxlogscore=999 phishscore=0 suspectscore=0 clxscore=1015 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302170123 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS 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?1758086047996307512?= X-GMAIL-MSGID: =?utf-8?q?1758086047996307512?= Add the compatible and configuration values for A73 Huayra PLL found on IPQ9574 Co-developed-by: Praveenkumar I Signed-off-by: Praveenkumar I Signed-off-by: Devi Priya --- Changes in V2: - Rebased the changes on the below series which refactors the driver to accommodate Huayra & Stromer Plus PLLs https://lore.kernel.org/linux-arm-msm/20230217083308.12017-2-quic_kathirav@quicinc.com/ - Changed the hex value in ipq9574_pll_config to lowercase - Dropped the mailbox driver changes as ipq9574 mailbox is compatible with ipq6018 drivers/clk/qcom/apss-ipq-pll.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/drivers/clk/qcom/apss-ipq-pll.c b/drivers/clk/qcom/apss-ipq-pll.c index cf4f0d340cbf..ce28d882ee78 100644 --- a/drivers/clk/qcom/apss-ipq-pll.c +++ b/drivers/clk/qcom/apss-ipq-pll.c @@ -111,6 +111,18 @@ static const struct alpha_pll_config ipq8074_pll_config = { .test_ctl_hi_val = 0x4000, }; +static const struct alpha_pll_config ipq9574_pll_config = { + .l = 0x3b, + .config_ctl_val = 0x200d4828, + .config_ctl_hi_val = 0x6, + .early_output_mask = BIT(3), + .aux2_output_mask = BIT(2), + .aux_output_mask = BIT(1), + .main_output_mask = BIT(0), + .test_ctl_val = 0x0, + .test_ctl_hi_val = 0x4000, +}; + struct apss_pll_data { int pll_type; struct clk_alpha_pll *pll; @@ -135,6 +147,12 @@ static struct apss_pll_data ipq6018_pll_data = { .pll_config = &ipq6018_pll_config, }; +static struct apss_pll_data ipq9574_pll_data = { + .pll_type = CLK_ALPHA_PLL_TYPE_HUAYRA, + .pll = &ipq_pll_huayra, + .pll_config = &ipq9574_pll_config, +}; + static const struct regmap_config ipq_pll_regmap_config = { .reg_bits = 32, .reg_stride = 4, @@ -180,6 +198,7 @@ static const struct of_device_id apss_ipq_pll_match_table[] = { { .compatible = "qcom,ipq5332-a53pll", .data = &ipq5332_pll_data }, { .compatible = "qcom,ipq6018-a53pll", .data = &ipq6018_pll_data }, { .compatible = "qcom,ipq8074-a53pll", .data = &ipq8074_pll_data }, + { .compatible = "qcom,ipq9574-a73pll", .data = &ipq9574_pll_data }, { } }; MODULE_DEVICE_TABLE(of, apss_ipq_pll_match_table);