From patchwork Thu Apr 6 06:13:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 80055 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp808243vqo; Wed, 5 Apr 2023 23:17:14 -0700 (PDT) X-Google-Smtp-Source: AKy350ZhKZy4sK0L1t55gqoT5Mj0ItpE/Sq/kqZkYk0ShVdsTu5QkmTnJaFtso4CwC/gDCQhItVZ X-Received: by 2002:aa7:9553:0:b0:628:163e:48b3 with SMTP id w19-20020aa79553000000b00628163e48b3mr8515966pfq.5.1680761834509; Wed, 05 Apr 2023 23:17:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680761834; cv=none; d=google.com; s=arc-20160816; b=jGFpvcvMMeucGM4l9uCb4uvx5cUyga5T/J90UdKohHsw9bFRvp7HWszQcHUqpYaCpI 1vBNBnS/L6SF4JbZWh3cNFka3PnoS0MTAjcHQwqMZHPw8Y4nkbu//5+Mw2YIYj6OZ0Im aKzfWOjA0Uve9sU2KsxntiHsrrQQb0AmVm//Y8ZPVN4/Buv4nJPb0NY2T10DWWnOso9y 7V1PoCVlhtao7xTf5TI3K432A1t/FvnysJGrV8EIKjXjmYTdF0nc6e7ipeMgK6E6A8mE QQLUMpxUiCNNyB3l6heD+TYOFp3f3t0+3Z51wuzzDmZrFiRNecU3+897VnzS2xjJAwlR aXbQ== 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=vNo3vvL3sAJntjW+Tk499jzqJtmfpQ+5gC0tLV/eq8g=; b=FvJpDibTEmsBjhKY/MhQ8Ccs001cs77EU70BRR7gAo8YWMS6PgWicXxfuJJNcnqAfu IJdavzauPmQ9LhrML6HZes1Q91OBMWLpbK1dQjLev6/GfNBjk94RLyGFLKfC4TRdvnB9 eWh+DGN96+jmli8cvubOTEN8FhYHsZHqX/puPi8D/ODypEi5QXaOxVbUdyDmoOysgJf5 d9uTn25MSyVp2+HHpDQR3VIPwTSv8BUF1OuCYuPEBiZWPR0VXarFvj3bKmx1ieSPrV7p gJWcL8QqmJsX4pLzNdCWM6pkLXac8oDF9NdEqr7i+n8QOhjzqYooGFKbcrU/iPhsIkfp sMYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="QXeR/ksx"; 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 x10-20020a63fe4a000000b0050f7c95bafesi553511pgj.73.2023.04.05.23.17.02; Wed, 05 Apr 2023 23:17:14 -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="QXeR/ksx"; 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 S234965AbjDFGOa (ORCPT + 99 others); Thu, 6 Apr 2023 02:14:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234992AbjDFGOZ (ORCPT ); Thu, 6 Apr 2023 02:14:25 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE5AF93E4; Wed, 5 Apr 2023 23:14:19 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3364x7MC026826; Thu, 6 Apr 2023 06:13:57 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=vNo3vvL3sAJntjW+Tk499jzqJtmfpQ+5gC0tLV/eq8g=; b=QXeR/ksxJJOcqtNMsgYAMcoTH72X8yBuv+g3bXLgQQK1DZkyUHeMdnMMa64dvc1jRgNr f5GcysWJEQj8HYgypq6B/q/mfFSBWzWwUR8oyuXdvVZyP+44VCxyxDSo++7drPF0zY08 ggvBRIfTTTgeB2VlVm/9MEV34E9FQiyJBPE9Vmp+IG8R076mvcsPa0unHhCcUGGNMKtT /h1zjy5l3xFZxff7XqYq+l995JTUtcQ0XWaUUS2gyqph3E3YOg5ch0UavBfWNgh4J5MZ w8VJj8KHDgxLdSqzsOs1rBwBU1GK7DHJ2k2HJnD9iyMl5eDryR8fnTXDWBEA4/27n8/1 AA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3psnp98bud-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Apr 2023 06:13:56 +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 3366Dt3R024983 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 6 Apr 2023 06:13:55 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.42; Wed, 5 Apr 2023 23:13:46 -0700 From: Devi Priya To: , , , , , , , , , , , , , , , , , , , , CC: , , , , , Subject: [PATCH V3 2/5] clk: qcom: apss-ipq-pll: Add support for IPQ9574 Date: Thu, 6 Apr 2023 11:43:11 +0530 Message-ID: <20230406061314.10916-3-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230406061314.10916-1-quic_devipriy@quicinc.com> References: <20230406061314.10916-1-quic_devipriy@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-ORIG-GUID: bVOjA8gre_Ov1dbj3mdixTmcTB25sC0c X-Proofpoint-GUID: bVOjA8gre_Ov1dbj3mdixTmcTB25sC0c 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-04-06_02,2023-04-05_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 priorityscore=1501 lowpriorityscore=0 malwarescore=0 spamscore=0 bulkscore=0 phishscore=0 suspectscore=0 impostorscore=0 mlxscore=0 adultscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304060053 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,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 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?1762406521115914457?= X-GMAIL-MSGID: =?utf-8?q?1762406521115914457?= 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 Reviewed-by: Konrad Dybcio Acked-by: Stephen Boyd --- Changes in V3: - Updated the subject and aligned the commit message 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);