From patchwork Wed Oct 23 18:46:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pengfei Li X-Patchwork-Id: 13846356 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 73890D2E00A for ; Wed, 23 Oct 2024 02:50:25 +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:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:Date:Subject:Cc:To: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=jJ09kDpAHUt6XodVDNFWX/4H++vYijEWhFOErDupOyY=; b=hTWRvyjvC7JMDt1z2kq5FptvRu P5b92+39UuDzvs7kLEB+Nl+1m6cejB0h4s7Fd8EOiCDa2lDPRyAonPGUHMs0K0Ydieu2XTYVWe4d4 CQGosULH7E/e7lSi1mr8kewL4gWCH0b1vUGt5nHMbG2S0Boa2KG7OnqfGg2AdFymHXh7iVjq/iz9h DayoHk/oWMibRM6WPqKARXlEhBZ/iwBYx2eA+WX/GCOaEc+DQSHfG9MCEMS51SxwRmK5HeNE8DCTM 5hskSbeT9FsGSjYrj2PY6G4DP50AiSXN9O1laUKNW13SwkxCyh8oC8Od1SORVqTrndBjdPts+ilCU 7n3eMqQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t3RRt-0000000Ckne-0XRp; Wed, 23 Oct 2024 02:50:13 +0000 Received: from mail-vi1eur03on20620.outbound.protection.outlook.com ([2a01:111:f403:260c::620] helo=EUR03-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t3RPF-0000000CkCB-2InW for linux-arm-kernel@lists.infradead.org; Wed, 23 Oct 2024 02:47:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BFwugvaY1K4VLFiJ3cIss2WRhcnK0kYyTl5wrMM+SMV8B8FoEiUb/9DqbC47o/0GPIimKekPE1o/9HlWOjmAn+d1Jg6F7GHsYfVkymMoZoyVGPVL0LFVvDsctuc1URaGVpgsn1avemjineOBKhuhIGtZ8YTSvCBmZ8yQbYMKXM8udTAXorLq49RcR87EiSmgBIXQ7mCxzFqxB5uyDzTR+zASC5KE8xlGEHr5NsDneiAzk54JWRaJSaBR0aO01RNsxXUC6JzeRt5dhTpG3sWLEx3fkse6xXRJ2W7TuODmWmE3aWfdLaBEhE2CqVfZwFoakcvC4N5I72cBtOmhvBUuFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jJ09kDpAHUt6XodVDNFWX/4H++vYijEWhFOErDupOyY=; b=kZix8Hd3KCbJSwVBxkXeDgJk33ToGv21g2+YKXqAJliholvtRw04C7SITCy+YstzmnVThG5EMtoZxs7+IsRsbEbvUBxrIRetOw1EFDNQe7L6969whVCFn+gmd9+iMlPETL8NQVFsAOP1yFEj2X6EA+JHqOKPLYkzpY8CuW+7KPIlO+QAVGKDfVX2LiPJbAWxA4femzYGARER3OQoIRXzbhjxJI8Zb+bbRu9bCrp9RGnckMLQSks8gtZ9MIK2583QPKmf201Uiee81bO/QdcjEN33eF3AwwQY2+IAViobvCxyxNvIni6Tbe+85jbcvw0krIPqePcbrnBSSM+RkoLQhQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jJ09kDpAHUt6XodVDNFWX/4H++vYijEWhFOErDupOyY=; b=A1xbwQ4sYBfKp+snDI43cUgPPW8KXtZYlLwddq3meodKYNK66wKVG5/syPytu5N4UCuDUZPbyhH2w13ZAg8T7iK9feY29ybXx2J8Sl//x0yQTI+yTf/cUHdyztneL2SfYevS+YVyB8jOBtRt0PjWKLRfGpOlBLtfUI12P71Z4d45uUwxC9aBgwDzjeG0iWSa08/F0MY3Yy5brdkNzmZLs8dHK0Ly0tkF3D7mx8tNzE1NZv63+fiFY5XDhBV3Ge91QlabN3nAZ6YeMQfDN89c9lWqmxKr9nZQGwPaBSYdmunuwTe7REBAwn3yd1gL2n6ya2sk7ArokVNf/K6hMMm++w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB7065.eurprd04.prod.outlook.com (2603:10a6:10:127::9) by GV1PR04MB9216.eurprd04.prod.outlook.com (2603:10a6:150:2b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.18; Wed, 23 Oct 2024 02:47:15 +0000 Received: from DB8PR04MB7065.eurprd04.prod.outlook.com ([fe80::8af7:8659:9d42:bd84]) by DB8PR04MB7065.eurprd04.prod.outlook.com ([fe80::8af7:8659:9d42:bd84%6]) with mapi id 15.20.8069.027; Wed, 23 Oct 2024 02:47:15 +0000 From: Pengfei Li To: krzk+dt@kernel.org, robh@kernel.org, abelvesa@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, ping.bai@nxp.com, ye.li@nxp.com, peng.fan@nxp.com, aisheng.dong@nxp.com, frank.li@nxp.com Cc: kernel@pengutronix.de, festevam@gmail.com, linux-clk@vger.kernel.org, imx@lists.linux.dev, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 0/4] Add iMX91 clock driver support Date: Wed, 23 Oct 2024 11:46:46 -0700 Message-Id: <20241023184651.381265-1-pengfei.li_1@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SG2PR03CA0118.apcprd03.prod.outlook.com (2603:1096:4:91::22) To DB8PR04MB7065.eurprd04.prod.outlook.com (2603:10a6:10:127::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB8PR04MB7065:EE_|GV1PR04MB9216:EE_ X-MS-Office365-Filtering-Correlation-Id: ca7e6b4e-eefe-4189-af91-08dcf30d0096 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|52116014|376014|366016|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: EQnchLd4B3jxFZcJ+ZIxSuncmHmupDw7Jks4+zwCA0qIpvApmUOx7KwneTeeDDPKpiJt3Pz+54pk2DDg7gDc3PY1CHvA4F1LMMXPeMr6DDuvEagzitYP56WITxSDy4a2Hv3Ftzr0hHqcQt8eP+l5JDpjlyS6PPzoDq7uQ/0lOL4BUZn55WRlTd1GD0knvcpWZrEavQliPjvzcvBUYi/LLjMLcAzZVxs5afhUuw+LO7XgT3QofFlM6yUdN2rlWG28pfwllz4H1iV2Gha6nKf/Ws8oBUxg83cu/9jwNg7tZCbqF2zWS7CK6vXNbUIH++Lr7ngjS1U1/CjE1s4P8bc9pF2u/Fxe31d8VNsvAsU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CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB8PR04MB7065.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(52116014)(376014)(366016)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YBgZoG8cLVmcAPyWVoSiq0/izH6t/uHbQMBBS84cwdcMkyB/pnqDU2ssty6CUFDngOFrtxy8G6ZPn2x/q5phIWkgSglBxEYOXjlis+qQEOdCLls646abbRE/LD8pchqdtM/UQF1jvx4CkD4vRIUKtCQpeWrq2vX8WiiTMMl3tD/yP1wb97e/HeBjbSWVG/AqglyNAwIUOazRl7DQqG4a1yeUgAf+2aH5G1jkReIJmeaBphdwFdP+AbzMDIsFKVi5vtI4ZC7kFWGIvHQ3YSdNkQzmoOwejP3fF5VeGTg1uJUHOj+5bML6gPFwgHmtCvHP79c3mzpypNe6nhq1QHvdMi469qek7AsPB22jWoJP8Zn4XiMkOG79E3gcMXaqi/zooHYbOQOBrJ86QqIpI8QKQDCRTxzlqri3tDXKIZ4TQDr9awThixMBoqkcFddVrHNG1N0qc/mvqmmfFPip/I2eYqu2xNBQwoma8Hr8cyFyiuNbZRUCEHx/wfFNdYt4FEFPC+wHTUpugvRZ6W5P5kT0Lmu2sHVVe+Y8fyJg2KMcZrTMzacmXvN6seIeQ5gV+4uxuEKFNsLPsRnl0Cq6PXNhDJmQpLsUJBPNWynPxPlVbz9VIj/4gqkOcgxh9vGW+v04W2BDYd4sUJtQ5C2mAEoc6ZaY78M2QcR1PNuPbCjIzGHNk1QxA4n92uRgEJCt++x/VNWce4qPgo5Qrcbh7YXx3/yQNX+HLaSpaaHkkm4aGr30ox6u2zBCWyPbPZ4rbd2LQJjA4nsUUmfbtszjV4Yi5wIaZJl8JTvOOv7YPfoEFwG0ttQmksZj7mTPCMpEMlNsEFdTXkGy7uVQ2i2RFqAM0BHic+patBl2JNHphHS/PONchaC9+GvNgy7T52fMj5pbv8AOSyeN75Rqmr/7Nh4ccErW8IZs6bdXWfgdtiIxfCExFp04U1Om3AoUXjG48XmNAGNxyg2kemX1yk8GDLiXWHItfcWf44DZdLPUt1ne8X0THLGvTOPaqpUhUXsyoKgwJ+UzAxKhlPnTrF3t0nYrn0ANVpSevNftr0hj67Q/c6KPf7sLkiUsZCGBtcz3mcuz02zCP7aE95oDIML/Yrq6W6jXZ5dxt9c3//v4YacE0Zf83WD348tcwPMlGsoZQRibs8EQLcG/vkDrNbUh8fy14hL143yiUmPHroZqDUODVEvDzBny4KEcclH8UGFWUGKd68JEe64zoajvs2+3C/PmRPWjADSwYHRP8ri34H2DDeQBLoP6wmfZ8/5exqgNB8rW5toJgKNZ1G3sMXPwuc1wK8djab7a0QYy7v7T1okIQZLFrs/bpyAFHTIovp9HoOxQwk/3FeLTtW4/pMN9mSh7wAUbQv6/qcr/3PTVwhgAAnwv7RNi7LrdtPFS2RoQ5TaxhJPKHkygGxeJ/a2GsJY0TU8q3+LkOYOB0JbJGmjYb1GiDOaGBJDQfJqb92Tpqh6WYA4WQc5nUEvJ9KE/gDkRqRMvN4Atkgs/8OXKVaYd5KJyoF+kCQ2r0wISqBdU0ivN1jwXhruwK4lSrQg8kw8Z/HejFvUpimpAKQFXcJIrv4Qd08QskTPb9E8GwBrtvjtL X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ca7e6b4e-eefe-4189-af91-08dcf30d0096 X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB7065.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2024 02:47:15.3429 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 4C8PGrHvYdGyiXjZVUAcy9GxO51uSuCwZ4fMy/UO1BK7pRFDvgY3LV5U6m/9IL3r8aPn7zY6/ZJPJo4/jXnWYw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9216 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241022_194729_624050_A72AF955 X-CRM114-Status: GOOD ( 10.95 ) 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 This patch set is to add some new clocks to binding header and driver. IMX93_CLK_END was previously defined in imx93-clock.h to indicate the number of clocks. However, it is not part of the ABI. For starters it does no really appear in DTS. But what's more important - new clocks are described later, which contradicts this define in binding header. So move this macro to clock driver. --- Change for v6: - Fix checkpatch issues for patch 4: 'clk: imx: add i.MX91 clk' - link to v5: https://lore.kernel.org/all/20241017225137.1158924-1-pengfei.li_1@nxp.com/ Pengfei Li (4): clk: imx93: Move IMX93_CLK_END macro to clk driver dt-bindings: clock: imx93: Drop IMX93_CLK_END macro definition dt-bindings: clock: Add i.MX91 clock support clk: imx: add i.MX91 clk .../bindings/clock/imx93-clock.yaml | 1 + drivers/clk/imx/clk-imx93.c | 63 ++++++++++++------- include/dt-bindings/clock/imx93-clock.h | 6 +- 3 files changed, 46 insertions(+), 24 deletions(-)