From patchwork Mon Jan 22 05:56:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 13524810 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 4478FC47DAF for ; Mon, 22 Jan 2024 05:57:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To: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=PHVtrlmi3po5WkHrmzbR1Xqi+UlykSwaq4fer+u3Dkg=; b=N54czfeTcqq5z7 ssT7O3h+ZqBL2Bqj33KLVIT7p2OiN1uiDs6i4z091ieMROGC/ZO8Mrdn90XOJy2G7Di9bO73ZXP8j vZ0Rw3UZ7Jdu1OXvVQGetGrYJZL15HV5dZO6Ykb7G7oh/Lg6BMvetWlwmrcESzEmxw4PnjMxac6DW 85kJYHS65udrdSLNL19PZAjqSAYnXftHnEZ++0CLtGfWB05aa7S5S/cR0NIamC5Ln4kRY2w18gN8d eouR6KjgcycEZ448Lct3JhBEq6W8lBIBzOZfX6WOPLGetBldMFUHjniZWu3NvHG4ML+9sAV0AcaoD SF20jPfidPGaUv92Q13w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rRnJE-00Af8r-20; Mon, 22 Jan 2024 05:57:24 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rRnJ9-00Af7m-1n for linux-arm-kernel@lists.infradead.org; Mon, 22 Jan 2024 05:57:23 +0000 Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40M3QhJk010489; Mon, 22 Jan 2024 05:57:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:subject:date:message-id:mime-version:content-type :content-transfer-encoding:to:cc; s=qcppdkim1; bh=gOkvKx6U8tNWu+ YMf9CAloDT8sJSVldWthGeWm6dOd0=; b=kmU5pRZAbKqVLPhNcBJTryOQhUDq7j 7UEWoGnvqeFMlyVL8P1DfZ3sqWBg5eCiNNYJviXbXpDjvhdbxxYCITtPOcyBU4hJ dsc9BO44oa9/0Ko9BHITaYtUbFkI8tRbOhPeKdkPO6FkwZHMxb5TLcZlQj4ahh7m qI2TA97ry8KaoNhjWDjgBIFRWSj812IjMnRdIe+nOU/zsQZDEYrusa/c+u1L4KDB G99oeIRAYvUA8V1SEX0KY/HDp0U+vPFvrzmbDofSfvsgpf/Ds674/ZNVvVNnJMYe 93+SFMVa03IKjRjNAZ2lGq/MYv6lpGxTDgdHwpFB5HXVpmI78KfVV3Ng== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vr5gpk2ve-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 Jan 2024 05:57:10 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40M5v9c1019141 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 Jan 2024 05:57:09 GMT Received: from hu-kathirav-blr.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.1118.40; Sun, 21 Jan 2024 21:57:03 -0800 From: Kathiravan Thirumoorthy Subject: [PATCH v4 0/8] Add NSS clock controller support for Qualcomm IPQ5332 Date: Mon, 22 Jan 2024 11:26:56 +0530 Message-ID: <20240122-ipq5332-nsscc-v4-0-19fa30019770@quicinc.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAKgDrmUC/3XMywrCMBCF4VcpWRuZTC5YV76HuIhjamdhL4kGp fTdTQsuFFyeA98/iRQihyT21SRiyJy478owm0pQ67trkHwpWyCgVqBB8jBarVF2KRFJHzzVQVk Nxopihhgafq6946nsltO9j681n3F5/5WykiCdcuiRnG3AH8YHE3e0pf4mllY2H29AIf56U7yul QIX6p0/228/z/MbaOfc8ewAAAA= To: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Richard Cochran , "Catalin Marinas" , Will Deacon CC: , , , , , , "Kathiravan Thirumoorthy" , Krzysztof Kozlowski X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1705903023; l=2637; i=quic_kathirav@quicinc.com; s=20230906; h=from:subject:message-id; bh=3/LLAsFUZz4SgBGQNxQiyLp2BznPG43zkEiReF8ojwo=; b=9UD1behseRpd6SGd0URZ2kpuXJ7XO59XV7XM25z6U1SiTb1ppu2XvOuH3uzM5GTgh5VhqO8xC 4KPJQWu9avoC8JcXOTbJWOLCcpt6XEIUNnb2mVPztNiHA2iDBOYgPJ/ X-Developer-Key: i=quic_kathirav@quicinc.com; a=ed25519; pk=xWsR7pL6ch+vdZ9MoFGEaP61JUaRf0XaZYWztbQsIiM= 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-GUID: FTCAKj21xfpZ3x_D6mIz7tf-fKu1hbCs X-Proofpoint-ORIG-GUID: FTCAKj21xfpZ3x_D6mIz7tf-fKu1hbCs X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-21_04,2024-01-19_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 bulkscore=0 suspectscore=0 adultscore=0 clxscore=1011 mlxscore=0 malwarescore=0 impostorscore=0 mlxlogscore=999 lowpriorityscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401220040 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240121_215719_743148_CCF8E05A X-CRM114-Status: GOOD ( 15.59 ) 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 Add bindings, driver and devicetree node for networking sub system clock controller on IPQ5332. Some of the nssnoc clocks present in GCC driver is enabled by default and its RCG is configured by bootloaders, so enable those clocks in driver probe. The NSS clock controller driver depends on the below patchset which adds support for multiple configurations for same frequency. https://lore.kernel.org/linux-arm-msm/20231220221724.3822-1-ansuelsmth@gmail.com/ Signed-off-by: Kathiravan Thirumoorthy --- Changes in v4: - Rebased on next-20240122 - Fixed the missing space on the nsscc node - Link to v3: https://lore.kernel.org/linux-arm-msm/20231211-ipq5332-nsscc-v3-0-ad13bef9b137@quicinc.com/ Changes in v3: - Collected the tags - Dropped the dt-binding patch 3/9 - Cleaned up the header file inclusion and updated the module description in the driver - Used the decimal number instead of hex in the NSSCC node - Link to v2: https://lore.kernel.org/r/20231121-ipq5332-nsscc-v2-0-a7ff61beab72@quicinc.com Changes in v2: - Change logs are in respective patches - Link to v1: https://lore.kernel.org/r/20231030-ipq5332-nsscc-v1-0-6162a2c65f0a@quicinc.com --- Kathiravan Thirumoorthy (8): clk: qcom: ipq5332: add const qualifier to the clk_init_data structure clk: qcom: ipq5332: enable few nssnoc clocks in driver probe dt-bindings: clock: ipq5332: add definition for GPLL0_OUT_AUX clock clk: qcom: ipq5332: add gpll0_out_aux clock dt-bindings: clock: add Qualcomm IPQ5332 NSSCC clock and reset definitions clk: qcom: add NSS clock Controller driver for Qualcomm IPQ5332 arm64: dts: qcom: ipq5332: add support for the NSSCC arm64: defconfig: build NSS Clock Controller driver for Qualcomm IPQ5332 .../bindings/clock/qcom,ipq5332-nsscc.yaml | 60 ++ arch/arm64/boot/dts/qcom/ipq5332.dtsi | 28 + arch/arm64/configs/defconfig | 1 + drivers/clk/qcom/Kconfig | 7 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/gcc-ipq5332.c | 122 +-- drivers/clk/qcom/nsscc-ipq5332.c | 1031 ++++++++++++++++++++ include/dt-bindings/clock/qcom,ipq5332-gcc.h | 1 + include/dt-bindings/clock/qcom,ipq5332-nsscc.h | 86 ++ 9 files changed, 1260 insertions(+), 77 deletions(-) --- base-commit: 319fbd8fc6d339e0a1c7b067eed870c518a13a02 change-id: 20231030-ipq5332-nsscc-aeac9e153045 Best regards,