From patchwork Thu Aug 8 14:03:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jie Luo X-Patchwork-Id: 13757523 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E8562C3DA4A for ; Thu, 8 Aug 2024 14:04:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:CC:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=GXNSOE3LMIcIEssk6yYbUv4z7SZcnKD1O0nvXqgO21U=; b=pgaytIZZEqRLmM SeeafitnSaUeC+aIv6Iz59iM4AsTxeRgdZRBxzxBkNQibkFlTB4kavvypVIqnyx2nznZ88BjKw+5W 1UiJQE0rcmoH9bTuFc0uI0MhjQ9mUPAOilGZ+Yr3Ux9gLqc5QLk2O/dv0QUTXtpiBUUX90ICrDWqZ bRXXZNaEHFK5iCG3R8sAZDFVTu08DRvIWwB3h7A+9FcCg51O1HSPE3GWD1HnvjY5PF5pU/PsSDp4A 05i0cWWDFfOf63gG4yAjQT4RcGIEVxULHX6/3ite13TW8gAJ59Io20jHYh7N/6ZSQC3dAUCC+kQK/ dZXyLM7vK5PbTtffjifw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3l1-00000008Rbf-0NmJ; Thu, 08 Aug 2024 14:04:47 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3kO-00000008RRm-4C83 for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:04:11 +0000 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 478CkqFH011735; Thu, 8 Aug 2024 14:04:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=GXNSOE3LMIcIEssk6yYbUv 4z7SZcnKD1O0nvXqgO21U=; b=UK6ZUoBpXoqjUun035y2rICqLy29XmkIFteljM 6kEn6tDEfl138n5pa8/P3xQbsCVXRtY7iTzktxJaZUj49BZ/X40ExEYL2R4nXvDW K42LmisR1DpgPHdlwyncknjMyH7EqmoTA4pRYaD+ZonreKW4Gr/KxZEdm5m3ZeAi FmBYVbQ4nk7/GX1RLVF19jRsw/4dMsvtZVgWsBj/mwpew9GFgv5J3mOE5SW7Mnge DAQvwuTHdiVKEazaRAzcbuCw6PI3x8rGp3fEfsy2nsTzaliIQIJNgW9YSpYAe+zE EbZuoqVjBHKV260LwYMJRbPk+PxaXJkIOiK09XsTiratco/g== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 40sc4ydy7h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 08 Aug 2024 14:04:01 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 478E3xuH021816 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 8 Aug 2024 14:03:59 GMT Received: from nsssdc-sh01-lnx.ap.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Thu, 8 Aug 2024 07:03:55 -0700 From: Luo Jie Subject: [PATCH 0/4] Add common PLL clock controller driver for IPQ9574 Date: Thu, 8 Aug 2024 22:03:11 +0800 Message-ID: <20240808-qcom_ipq_cmnpll-v1-0-b0631dcbf785@quicinc.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAB/QtGYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDCwML3cLk/Nz4zILC+OTcvIKcHF3zZENDQ8skI1MDY3MloK6CotS0zAq widGxtbUAlISBLWEAAAA= To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , Konrad Dybcio CC: , , , , , , , , , , Luo Jie X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1723125835; l=1714; i=quic_luoj@quicinc.com; s=20240808; h=from:subject:message-id; bh=Rgg4UP3uOFU/PU5X1arLl/LJ7lDSFFKnppjVFyV3iKQ=; b=MphMmobq0EAcRqXeWn095ni4rm1JYaClP9ZejPIFYUXLb2sW2rn8VkjpL2drXC6dwslD4sPzN UZM9wH9spxhB8Yj6E3VeJa7YkJcJXdApO2nfuOXZ/Fm5w/23XH6ULy2 X-Developer-Key: i=quic_luoj@quicinc.com; a=ed25519; pk=P81jeEL23FcOkZtXZXeDDiPwIwgAHVZFASJV12w3U6w= X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: efyYWyX_UVRv2AzI22L3EbjAfLV5YTwp X-Proofpoint-GUID: efyYWyX_UVRv2AzI22L3EbjAfLV5YTwp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-08_14,2024-08-07_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 suspectscore=0 mlxscore=0 malwarescore=0 mlxlogscore=848 phishscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2407110000 definitions=main-2408080099 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_070409_190302_533C60D4 X-CRM114-Status: GOOD ( 14.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The common PLL clock controller in Qualcomm IPQ chipsets provides the clocks to the networking hardware blocks that are internal or external to the SoC. This driver configures the common PLL clock controller to enable the output clocks to such networking hardware blocks. These networking blocks include the internal PPE (Packet Process Engine), external connected Ethernet PHY, or external switch. The controller expects the input reference clock from the internal Wi-Fi block acting as the clock source. The output clocks supplied by the controller are fixed rate clocks. The driver is being enabled to support IPQ9574 SoC initially, and will be extended for other SoCs. Signed-off-by: Luo Jie --- Luo Jie (4): dt-bindings: clock: qcom: Add common PLL clock controller for IPQ SoC clk: qcom: Add common PLL clock controller driver for IPQ SoC arm64: defconfig: Enable Qualcomm IPQ common PLL clock controller arm64: dts: qcom: Add common PLL node for IPQ9574 SoC .../bindings/clock/qcom,ipq-cmn-pll.yaml | 87 ++++++++ arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi | 6 +- arch/arm64/boot/dts/qcom/ipq9574.dtsi | 22 +- arch/arm64/configs/defconfig | 1 + drivers/clk/qcom/Kconfig | 10 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/clk-ipq-cmn-pll.c | 233 +++++++++++++++++++++ 7 files changed, 358 insertions(+), 2 deletions(-) --- base-commit: 222a3380f92b8791d4eeedf7cd750513ff428adf change-id: 20240808-qcom_ipq_cmnpll-7c1119b25037 Best regards,