From patchwork Thu Feb 2 14:52:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 4882 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp283216wrn; Thu, 2 Feb 2023 06:53:40 -0800 (PST) X-Google-Smtp-Source: AK7set/cPcbvfVwupGLJAJvPdI3Gk6+WgD9jVnT1kD1tvjZXHlJv3tHw+YYgz6yMIJUrq65S+D01 X-Received: by 2002:a62:cdc9:0:b0:58d:c1ca:9360 with SMTP id o192-20020a62cdc9000000b0058dc1ca9360mr6773469pfg.17.1675349619734; Thu, 02 Feb 2023 06:53:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675349619; cv=none; d=google.com; s=arc-20160816; b=lI37uV3/HG/K2gLy2+6C1285P3oGYcSRghRiyeoDjRJM0oOMYSIA67o/buSFcXT4qL YhgFl3IwLuV/auwd4vkOeE3goY5q7yeQ670iIrTqbu5biGOWeNGRNjy1hxUfTcg9OYQm onazaiot/mUbW2XuJ9oTqHxOoFvJr+5Uvl7orNJ1tVbidAUqkrrPYKA36rNFNGjHgFfQ kUlxbNeUIGQryh50Tj4BgyySY3bOwyd3CSqqqFgTF7606BBudmIsv6k3eC55OAiCvr4g xiI2vI+v14bjDUb4DAIY/UyeMt1sE16VbZa3gShiv8BJ5Vpt6V1G0FHJ/dINxpGXY7dU bBtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=bq/+gpa+Xc2tW3MBRu7pzVh4bcUQjgzBhx8XLYKtPXg=; b=KIYekq3MBxzy9wLU3HxO8ZAqpCbnvf+CmoDCknON5U46Db7nWtrQFDp4XHesNGqgBf llpPHL9QaG5+fUnHxZVYibizgl8QIvlhAyLK9R8WqPkCpx6+vNZf7WMBz9A3jmCp9GQW HmjqByeCoxK3j9d0i/EKoJoD0hsLGEUd21UcLCLNKdCiL4CWJTER+pSB9lMeqY8RGZ+u nKG2JDF4697ojNWHLB0P0WgH2ShtuppauUUOz7/1MRX3YuD37uGilQN2KiG6pcPZ7bl1 s4xaJs8zCV3rrqYAh45lAO3yrDjMVESBMqhREyaUYV1PLU5js39Dm7C2S91U2P2Lxx/x maVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=cDTsqgHn; 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 y14-20020aa793ce000000b0058b9025bd61si12765001pff.53.2023.02.02.06.53.27; Thu, 02 Feb 2023 06:53:39 -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=cDTsqgHn; 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 S230169AbjBBOxE (ORCPT + 99 others); Thu, 2 Feb 2023 09:53:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232142AbjBBOwx (ORCPT ); Thu, 2 Feb 2023 09:52:53 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF6E74204; Thu, 2 Feb 2023 06:52:33 -0800 (PST) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 312EbVDA007329; Thu, 2 Feb 2023 14:52:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=bq/+gpa+Xc2tW3MBRu7pzVh4bcUQjgzBhx8XLYKtPXg=; b=cDTsqgHnmaxdS10L59R/zyWOnnK3zJX8fz7sePFTKn9b+H2rI90gLa4+yzNGhXiP3M88 +ktmT0TWQl97VChBgD8FMDSwVHHOJ4qlir8mBmcgq82AeDvW9DNQhB5dVUOjKOtRGYhc xc1RQ8Rq3GzyO6nbA5bnL8cqs1MJuMKF/7J7TBjrGovhlJuDmA0kVskBLF6OA+utU8sC LhUAKN7Yz4YePkxUZ0a6Bd0uPQA66CvV/BfSOOdTLQm0x38OJ5z0JT/a035fMKI3wc5b 2h272J7LvBmpzqnfe2ROsO0q9ACu+h+uqHkY+4ql0GJkatGr8tie8JtYS0XldhtWhYLr fQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nfn5j357e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 Feb 2023 14:52:28 +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 312EqRac002881 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 2 Feb 2023 14:52:27 GMT Received: from win-platform-upstream01.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.36; Thu, 2 Feb 2023 06:52:23 -0800 From: Kathiravan T To: , , , , , , , , , , , CC: Kathiravan T Subject: [PATCH 0/6] Add APSS clock driver support for IPQ5332 Date: Thu, 2 Feb 2023 20:22:02 +0530 Message-ID: <20230202145208.2328032-1-quic_kathirav@quicinc.com> X-Mailer: git-send-email 2.34.1 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: Q-pJWIfo6uQUe2rJGC--uhRO6cZJtVaY X-Proofpoint-GUID: Q-pJWIfo6uQUe2rJGC--uhRO6cZJtVaY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-02-02_04,2023-02-02_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 lowpriorityscore=0 malwarescore=0 suspectscore=0 clxscore=1011 adultscore=0 mlxscore=0 impostorscore=0 bulkscore=0 priorityscore=1501 spamscore=0 mlxlogscore=846 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302020133 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?1756731403221766588?= X-GMAIL-MSGID: =?utf-8?q?1756731403221766588?= This series adds support for the APSS clock to bump the CPU frequency above 800MHz. APSS PLL found in the IPQ5332 is of type Stromer Plus. However the existing IPQ targets uses the Huayra PLL. So the driver has to refactored to accommodate the different PLL types. The first patch in the series does the refactoring, which can be independenty merged. For the Stromer PLL separate function clk_stromer_pll_configure is introduced, so the 3rd patch in the series depends on the below patch https://lore.kernel.org/linux-arm-msm/20230120082631.22053-1-quic_kathirav@quicinc.com/ DTS patch depends on the IPQ5332 baseport series https://lore.kernel.org/linux-arm-msm/20230130114702.20606-1-quic_kathirav@quicinc.com/ Kathiravan T (6): clk: qcom: apss-ipq-pll: refactor the driver to accommodate different PLL types dt-bindings: clock: qcom,a53pll: add IPQ5332 compatible clk: qcom: apss-ipq-pll: add support for IPQ5332 dt-bindings: mailbox: qcom: add compatible for the IPQ5332 SoC mailbox: qcom-apcs-ipc: add IPQ5332 APSS clock support arm64: dts: qcom: ipq5332: enable the CPUFreq support .../bindings/clock/qcom,a53pll.yaml | 1 + .../mailbox/qcom,apcs-kpss-global.yaml | 3 + arch/arm64/boot/dts/qcom/ipq5332.dtsi | 36 ++++++ drivers/clk/qcom/apss-ipq-pll.c | 111 +++++++++++++++--- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 1 + 5 files changed, 133 insertions(+), 19 deletions(-)