From patchwork Wed Oct 23 18:46:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pengfei Li X-Patchwork-Id: 13846352 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2068.outbound.protection.outlook.com [40.107.103.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 890F012C54B for ; Wed, 23 Oct 2024 02:47:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.103.68 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729651646; cv=fail; b=l1tRXec60FXT3UO1mxgzaHAUa1KIO/w4XVbWg/vaIUGNzyhB/jAAiDH5KotxbVf3hrISG7BeILWgqpAX2nJZqtmJsQW5Eg4fdnijgNuKO5NM8ccX/ocWhuzLoV2ZrSUiQPWsYqLFYTRnwKe7i8Im0BSUp6XIDe+EbD9KdoCgvwI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729651646; c=relaxed/simple; bh=wTkA3ngYBhMsulTRh/8lBQFKmSkAkOePEg2Kmiq1HAQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=gJMldaP2gTpUg1nMFjMtuHyBboeJxv0OLmwfL9819nWCtXg+x0aEJtLMm24WtF3WH4LnN6KxHif6e3F4b7Yu3wJTQNOGy7ohjRQTRcWbWdiFGuTMAZ8sUgWYVGl1ABb2O/9xwI4TuseqQ4QB3pPz3YPKXsstQ7aJBzjFCGnP0nQ= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=CRFBsOm9; arc=fail smtp.client-ip=40.107.103.68 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="CRFBsOm9" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Fs1IqIahjEh3fd5GjgkKtZTySTMLbl+8Z9P8a7rurX2y8pA3oAWpDbA4lJZ/JFRZOJSAVBoSENP7ZB5aHD5l0ucL8mZQ0ZbuqhjqhqFqFSYs2jBo4yiHOKRck323+VfUyH7dVBsB1/WtC5K9rVGVmvXmXPZ1lSFQ+z4NzS7sYqPx/UOQw603eQrbcQow85I2Y3uBVp8ru6QIBc9zRLRq3EFDGytgbIdLNL6SmTeSAqeYjABy61E/dr/pFyIjTA5nroZQsQO48Vhw8yZ7YEO9tyXdJoKUIbscTyuoMFbNla0aTTAZkX+eTbRiRUiyFJqeRPwr4/+YiMsJ7mRuAq8Q/Q== 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=2MJPG4jjD/tGPJ2fbTa4lfbpamOfTzslr5V3dRrJePs=; b=uiIrZiHMtqkjFGm+GB0wrsjzJaR6Q0LjI4c/ORcGc9o4km0UduW/UZqPtZLG7A5pBlrx8J+/1cE3uoDK5y08FSQie2VVChxTNB60rrz9w8AwTJmUrN6CM3PsOOlgqc+5kpQaafHgIrZi4Jl1cM++Welk4cgxVVtleHw4+pGtIXdRHMbR2pRkN9kV0sbiYSCLK6StLwg5+cwekqaSJlmUrGqA8z0ao5HFHrrBc6NuWERr4qUeYDH46XTKGJkIk45ZnwHLk2il46Kgk+bZzK5BSNHYMvF1qvVKqD/MxfXzqiqxIgxV5oVMwAiuWO1gk/M9cy0LtTAHdfzXzcgdXpwGPQ== 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=2MJPG4jjD/tGPJ2fbTa4lfbpamOfTzslr5V3dRrJePs=; b=CRFBsOm9HbdyeYvjx1FkXMlGsRlFffvFwe4CsiLDef0kJeXAqxvzSER6M1/rzPWavzAB3HpUNiBzaiSCau1Ci6mFoakiqV/hobI04GZxNPJqNDHiDroNRZLi6ejfjYdxXs1VoRNbPqCrVG32EaRb+IoHp7f2lrd+xq2TRu1eNDhSDOQ6WuIqXcQnAwE82lmDb601k7TbDdHJoeZRzIVcdryKvvT5zPkgrz/9xVNkXGq3ZsmWKznDF/jyeH3usC43QKNsTmi6n9P4XEzlqvcW6Iw34jlYZ+ESCBztGhfYeijxjbgXYP7ZCTnfA2j+l6iRIwlra+uoZRUCSmqEZPuVvA== 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:21 +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:21 +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 1/4] clk: imx93: Move IMX93_CLK_END macro to clk driver Date: Wed, 23 Oct 2024 11:46:47 -0700 Message-Id: <20241023184651.381265-2-pengfei.li_1@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241023184651.381265-1-pengfei.li_1@nxp.com> References: <20241023184651.381265-1-pengfei.li_1@nxp.com> X-ClientProxiedBy: SG2PR03CA0118.apcprd03.prod.outlook.com (2603:1096:4:91::22) To DB8PR04MB7065.eurprd04.prod.outlook.com (2603:10a6:10:127::9) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB8PR04MB7065:EE_|GV1PR04MB9216:EE_ X-MS-Office365-Filtering-Correlation-Id: 35479956-c7c5-4f37-aadf-08dcf30d0416 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: Fi7AHDAuX/0LQi5zCyZMv2yCCJuq1LIAb1epnkkQwnyu9C4kSnusqIGDmRmM5YITAKTZJF51DdPEMR3q5fgmGxAvP3tnMU0/qtd4pAy9rve/BEMTX7EoXCNPB3MIxcngbWufIvjyK/065ZVIif85G85UFoqLr5XjJV0NjzQ8Wo4lzKmLeKQg11Ko1bwuE3ItMz2DSosSYMiOkgs5bEB4kJAezY5ecVGcTXR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XzI2GfGeFqyhA2tzE7arVEUZtB+ScVT6NnI30NQ1DolNgkFW1FY9NCEgJNs+dck080I7NIltfGdO2gsr4Iu0nqOmtLK4ZZef5XLFX/u6g X-Forefront-Antispam-Report: CIP:255.255.255.255;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: /lAxsReEcHr4FOGMpGw4Qf2p5+gn+ICeJFf1Z5ubb2jn9iiLbTIv4D2jbpnlNIhqtRGcaOLaqNiv98HKq40O8LbmNmNVLI9Pw4DiZOUShm/gDIcA/l+sDCGDIOqGUQg2RKzvXoGzPJuq+w9rp1ataw7Np3TLHny/wiy0yEyb+CurQ7mVDzIJ+kXj5BCpl5KEZ0NBp3sCxEArt4+O4XVm7yztbKGg6G/wZtQqn/fV45R2bTZ3M/nmNKxBeCqDqY6PRnA9kqDHo0kQo9IGYLB46QlWKoQ2V/LhE5aYC16GTDSLk97wUcKFy0+LXxq7nnVCIWaFjH3j/5dGtCC+ivHdYKYkqTaJ+OJvUa1ZXfcE+sa4jnXIJhfWjQBBYa21qvdcC0mAjlOoFud8YeMkV62WhiTvVEQRC7m6wX6PBrnbG6hyCfEZO3P8JdOItDrXxVuUkNDgETC9Zz5O2Iffn0nc5jRQnFF5vQX0nKLEkWD97vr1AoqLy1NCD2qmkPpU6O+gg0FDRLNYFBhf4KAtazSdpcr3pWPnTlPCRZfLwLhb2xEVgwqkbsa7NLYoWZuMRaIR7cRxti/RHvaGopqU49wgzSOgDxvCB8lkTGdog7VmQzCgl2Gcx3OjM4FkVU2mw34s0FRo5URtHN54Ij2m38MkQAZJu1BZWj7Xwoyb86sfNy/Npd1sX4NiOapM0tURbEr5iP/PFhJWUcKpJNtXi+2ynGkCPdrx+UQ9THjpH/txHMi07MuJQ7asQieAtjruKq3N+/AXVQDB3sF4Z69q1K52anRUIzTCiyq1+XGjz2uQnS2cEfvQgxefPYlRDTWPZZJahhQi7WRWy0pSSZOTIbCbvu3bbfAyvXP2lTP0wI9vBHgDaXHZxoOSqb6vmO9gUBZpp45GsBYxG31Mtpuj3cT0yGE5L6vYvI6w/KymV6tZuP8NLYaXTky30lbEfVtBIdBAduhu5jLKovqXgWK1Z+jk16KWylanVheFbeTJbwl8g/jGSOkerrkQGnT8Om37Bwb4S53EK2EnJ7mXb8hBbF21sOn2r6YkGB6fg/St3b0IRzS2VL765MrvAzRnhU+W2Gro8kEAMaNkEqmfvymJ0430FJ+NZ9VXLwBWMz899ypxEUPdj7OUEn/y/uwb1AXg5xGaJQePBK90LRT6IzylIGZasTQT50IwBV7sBWV+OhyYJjNrwxTKlcJDkL+15DHTI3p087T7SLKa5J97FIgqCc6RIOItmt8xu8k4pt9tNS50l6hGvT21AwAe7HcQO/QZnNzVaNPZBhgFYiGuQj78S9c49cnFUPycbLWKiuUGQ9y0adI2O5/sR0QEAMvIfR9MeywrjE+aGp/SNC8JZwyU7LszW2R+ZinHcy1q3WV9pazpzEKxX3lPagNLPPljuCqXmJHH7jKtsn/h/7ajvZC+JkheWE8wjlQaCcxKA41xNNv3BB3IK35vO+bHdvi4tCLRrR/bW4x62WBTn1ZPYBaVrKKrA9UyhGE6EazWTa8nF2qQBMI10bgaxTLZFwrFoKSyRMys6AyUpUznGcbP2sf+oysxCWR/Hx+9DZ0Fz7WDF13Q1pW88JKKVOrUtQMWZ5UhPs/B X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 35479956-c7c5-4f37-aadf-08dcf30d0416 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:21.1768 (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: Aq9qfIzRY3hvj9JVYYrCc/Ew+6XiRsSyxfpjt6S1Xr4ic9R+IDJxXmXmPkXEqBrkNvJlT6lm5kl9fCm5pL+6ZA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9216 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. Signed-off-by: Pengfei Li Reviewed-by: Abel Vesa --- drivers/clk/imx/clk-imx93.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c index c6a9bc8ecc1f..c8b65146e76e 100644 --- a/drivers/clk/imx/clk-imx93.c +++ b/drivers/clk/imx/clk-imx93.c @@ -15,6 +15,8 @@ #include "clk.h" +#define IMX93_CLK_END 202 + enum clk_sel { LOW_SPEED_IO_SEL, NON_IO_SEL, From patchwork Wed Oct 23 18:46:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pengfei Li X-Patchwork-Id: 13846353 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2048.outbound.protection.outlook.com [40.107.103.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C739713213E for ; Wed, 23 Oct 2024 02:47:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.103.48 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729651651; cv=fail; b=gV4UB1S93fe2ppShUF7/N7rgky9qQ/7RoYgJWWrSS+LrYCC2MXJ5IPbOK8k9cGcv/BsAZ+OcHR7wDigO46VXUudb5vK1TnNEoDLKHPd5F9lTiU+g7LudzX/wGlrD/+4aXF8mTArwBPsU/6nuZhh+IvpfqCIPreI9qzp1LoTm/MA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729651651; c=relaxed/simple; bh=kox4S0U50cg+oceZbn73PPi7fpT//cYbkBaA5hfu9nU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=M4uWoQJ1ql7Bqea6lCGT3fRbEMVxR7FZYmjc44qnRLRuHuHIBWL+JRS0nVP/YtPA45zjd7lf9rsU9vMcVHW5nAKrmqAVZW1LEcWE4JxR5Ynl6WCoOV5uw0+0Nx8SxIStW7lm+9/ymXGhFGaguGta7ddVSGd0GAtZJI8tBDRMu7A= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=TlbwYwLi; arc=fail smtp.client-ip=40.107.103.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="TlbwYwLi" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=f7YWoYyqcczTaMu7g2qArSqZBvV1Ry290kF7vF9A3g0XYUmEpcsFpxW3PJKh7mJ9XHhA6m1LiVbJMn76Y2TXonbhlCbsa9pR0lNJxHkt/3E6jjU2q9mOmYKy9pGXi2Zx77fcLw8BnDLIOMFfr7qdOc9eR6RgtV47po5f2dtDIB67ZTPCtkb5TKTxY53puunQezM44iYt/XP03rhmvFDC7HcToJ9gRC+tEJawbePTkRTAQG8PjkO4UFtpoGp+wBM1jBMhr5qWM42btLNNknJ4RF2t2p93rTEEzo7VnYYfLawv0+01+vmMcCI6y1QVHdmgrZbiVa8CMM4Bul+nthqqoA== 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=YGOreLL6v3FxwLAj80VblzRDR94u9mUNZuVBNQCURjA=; b=h4rPXU93lEpBV8ZopEgJUNNrqf6KcJkg2TXbPJPoipTBNRZtlImwmZE8lGGeAhMJBMDQ9tQZ3NqbIYox9jJgWH1SAMFwIJHdV+i+ejTtprtmV4JmXQ0u3keHt7JYVBkabLnlDuf4j3sDUbZmp0bcqg4lscTs1ESlgxAv23CeYCAV+dGRpTeeL0u8Jgc21KxUuQ1ntj8rz5V5TDQtB1U/nCT6AlksYrW+ZKzsOPRzx5zsByb57tlLMOyvRI9cRax7/Sx3n0qYZduksCoVcLhSBfnmTH8lffwC2SDoJSymf4V+Jo2eUxstBsB+peDZ2kAf1miS2kPGRJs45tPdWxdBtg== 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=YGOreLL6v3FxwLAj80VblzRDR94u9mUNZuVBNQCURjA=; b=TlbwYwLiJ35klQwwAa14TM46m987OAVx1dERVjuhcjSYheb9hqMc7kDFJ5dG4CilTo8ZWxEEdl9VFBiv6KkqLTRC6x8luvxPnaJJS+duUVy2unJPyDvQaztN+Xg376eQHbViSTHFQZNQLBHcUCNnhvtdD9KZBR17An0bDntyQBMsCU/5N45Lyrflfg+LPWGgke2XaBNdTUwhLi5yN+p94rZynAjsJb5dcpovd1ek8yd80kY5svY979QookPkdRHHovMzpNkm3pwT1elFbH6h1T3hbO5e4RMR41Bp10ptEtvuwZyx4kwC5wytCb4n5lWYfn37jQLwayJ2ULUG5wXYCA== 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:27 +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:27 +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 2/4] dt-bindings: clock: imx93: Drop IMX93_CLK_END macro definition Date: Wed, 23 Oct 2024 11:46:48 -0700 Message-Id: <20241023184651.381265-3-pengfei.li_1@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241023184651.381265-1-pengfei.li_1@nxp.com> References: <20241023184651.381265-1-pengfei.li_1@nxp.com> X-ClientProxiedBy: SG2PR03CA0118.apcprd03.prod.outlook.com (2603:1096:4:91::22) To DB8PR04MB7065.eurprd04.prod.outlook.com (2603:10a6:10:127::9) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB8PR04MB7065:EE_|GV1PR04MB9216:EE_ X-MS-Office365-Filtering-Correlation-Id: 1240707e-3f78-486d-7e61-08dcf30d078b 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: GMPDKcAVwJtMhj9UZmICx/k8GCMRY3w4tmZ++Gr+BMJqlK9X1QbzfYfVzdO1hiSOXgSwHkZEELkWsiaVHdUI3b+3bHkjUG/kXUNKCGZG/h09XbtokiYyDAKaOKLW8hGfUxBjaUeQ5OBMTBpKNPf1J+srjO1KuNW6ZWPPF9fvKlqbNc6bK89oD8HYw4cpcLmZs25uP7xOwGO/i9SqRbj36UJyTlHwEYksmWYRH/fa4mvkI0H4aY3+P9tRC0c96p3XAWAKqMucAdNDtCZRm/cD8SUi1Z3Ac6L4yWxhLr9pb982zRXBinlaevGiv+7Cv6NdP1VmRoybuDDSjENmTL2awaHOCH7NlpEEZxulN3w+Gtz2g2/FdMbkImCKJQkqgdcp4lo9lFxXxnhmv0Zq6hBThL8bNEfwfn95hlFrDf27eGwMinyqVoUF6oyReCZSXlG4Y+jKwQEa8w+Y8RFpq3kHaWB84e+nJS1vPAgiIiCIouIw3hGv/ETpHoWkka6YS3mPtgY+9WAlFrAFDauWviRoHg+kLcg1sloEQtn1SB+6DodZti1Wq157d1FX24DUIy/ebWq9gc9h/QqLNyl6IRBDeL72J35HzFViDG8Lup3mgnVXTjPNeqt2pNYfxQRPf1nA2DMhAjg21Rr2sza9dbb7OjIggVBhdvblXwNwBzVw5nckNho8eqc7qqcY5RYR1ypferg7S8hyzvWJlN9/AAyJYoIuFudKdKDCXWBD8DcfxaDDD7+HfBpvJpK5+UQRNd8QXc+CEqY2G3uPUxZl/cB8uDIY97VIYfX59vVoBt8l6T62ggd2noUpK5DQ8VaQfuW8SlBjE4oDDN2v2O8vbec7A2tgYakC77vcYSc80jvjev1BSgD4aLXRRf7FwNhl5ZobGFgWq74Y2dg1kGSfIMT633a/T2qSXUQaFW5leXi66cXv8CHIskFxv6F4zt1d13y5VEo5fDq+wL2UsByhO46GkC70/yiNh9RgMroMbQkbQhe5zvwdRKnjHo32BCS0pZ0lOfYizyPcfqiCrzXSJbBQiYOOYF4vwf6/5y4wHSO8I+ddNhg1+Xaa1zKwl+hrApLrw91xs5mSw4ihc3+PS3AknzEesgWJ2+X2ny82K0vmXJRrU5KqOZcyIY6yPN3VxIK/qejpOPy6kh7PgUhkYcUM2ve7kgoEAHYoBDq+ykl/FEsnVMluwiU3SnZsOkmjJOFsTyG/2touNNxkfUGQzTNaC/WRY6c3fkahEIpLGDz9amg0rpqVU6LoUUbUyersYCaun3N/+nAXGCtdygbAwduI32fQO+fwLNN3PIrpaEPIpG0Y7hwifwgKLejlG6dGO49m2oM95JyQfInGeSDLQJNSPeZZmgnHqFPIIs8K2vUpX/Id3ShAHXIORujN2h4fsmmx X-Forefront-Antispam-Report: CIP:255.255.255.255;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: nxWZRkyZeuXLoj/OPZc8VXP2EuntUoSqKFHQ9D9yXlMIgvD4P5ilDhkBNqXumCmrGzhDRbnv3Edcdtx6+lHW2kkf2ofK+fz7pO4EAwT2GYGDeH6me4gb1EErPco3aIAGJh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+17An51S7x+DHpDHWMkuH0a69q4suit7PT3+qMI2Vfv5kW61CXG25C21epWkpf1YiDMN8HeFtNWxcF7e8QhirorLW3vKCKAUtcPFXio6la+Pds8xWBAt3Gp1F4yd4oVlOSx+exqTjCcjE24KIL9NaDaZ+CmpVWSzZealSk0W28ckmwkiJCh4LL/R6r1C4s+La32N3y0HwqSnsvFGl3fXXcsQDWEus9ih06otQR4lBVy5lgSFZbor2zGShbNPYTqNOSfakfKrf/2h4ToVOaq20SnmSuKb0lCJStvREWvFMZ/UjP823GW8ZPDHJURurbNgXODEfxAW/rHwjHjgW0A9PBJT8OVNo0+wSmdc9P7NKT3hk773D+AItTz/4cskUaWVrfl3aKflNrSdsTfU X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1240707e-3f78-486d-7e61-08dcf30d078b 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:26.9483 (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: ixUADuck+//zxeQHrD5s2L8lfxDFEtCZFxCueZYEUaV2pveK/FmFCCwRKulC9Gn5U9seyUkCnPIszuNv2KmOMw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9216 IMX93_CLK_END should be dropped as it is not part of the ABI. Signed-off-by: Pengfei Li Acked-by: Krzysztof Kozlowski --- include/dt-bindings/clock/imx93-clock.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/dt-bindings/clock/imx93-clock.h b/include/dt-bindings/clock/imx93-clock.h index 787c9e74dc96..a1d0b326bb6b 100644 --- a/include/dt-bindings/clock/imx93-clock.h +++ b/include/dt-bindings/clock/imx93-clock.h @@ -204,6 +204,5 @@ #define IMX93_CLK_A55_SEL 199 #define IMX93_CLK_A55_CORE 200 #define IMX93_CLK_PDM_IPG 201 -#define IMX93_CLK_END 202 #endif From patchwork Wed Oct 23 18:46:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pengfei Li X-Patchwork-Id: 13846354 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2052.outbound.protection.outlook.com [40.107.103.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D100132132 for ; Wed, 23 Oct 2024 02:47:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.103.52 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729651657; cv=fail; b=qgFubsKjsOWR0ApSrBauJYFqmIwedaJg5Ao/sISmW+TFk+XJtB1rk9lxd0O8S8egyNshiQ0FzpW/QBgA8eN/YMM5XZeCA7tVDJtMuPTF/PD6nN0UZiWtQr8xcO+bO7DBlXFWQaRd2EVuQVUw2XuuCsoPRzheoD3rrfg7OpTSXwQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729651657; c=relaxed/simple; bh=y8Ppxl90zorPlqLUk38jXQH/WPGiq4hxJL6TkOoxBgc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=XnEb1qvn50bhczJrrbbcu8ChONriHAGMV4NwH5Ll03XebGAP+jzQIpr1uvTruUwY+PdKPQ6ea324GYxtDMqWEKWtmBUkwP+aLdVkgKPVmRUEG0zenk/OOBaXf+q/HSfrKhpi/dJ9zvrSoTetH0ihKOeqklmCn0ENWr21OyD8Alg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=jTRkAOUt; arc=fail smtp.client-ip=40.107.103.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="jTRkAOUt" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Lh8fskZTt2MfTXxM3R8RJNdx16HwCKVvQGkQ+mb38I+Qi9oqzupYbsGmNAVfRGOlB8iYbar18ibUcvC77ZNMyWF9FGUhrbt4uYIsnA7tJYlhvQ7aZZqTCOYogJeASJ1BGrYycyPJa76pRxRTBRB9NvLkPTmj9MvvWOnJivkFMNciGUBaxBIv/AKCUfPKIHr02E5igF3lYsmYur0b67ZFXxUUkAr15LQP3RZeU5AYcsYaMQk9ACIesASwT9ybRzNdDgzGbyONFJf0ftOLp8IoNtZe7wYOkjvz6UNune7D/gXir4P0YrTx5btuCV5gecDarsrj97uRUKej55IOPr0hXg== 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=c2HNXhTaV09438FPwaxBxpX3LsGkzxD1G2+lVD0T40c=; b=ZTHmpZ6ujVxaWv9OcWGDbXqXDsUVHJ1iPjZ4Lpq3C0BZAu/yuqpQiS7Oy6OigVh8T4BrNY38SM0B+pDZvEPV9Xrf/PijhGbasXAga2NdjFo9ArX3XbrL88zqXbLT34Pwm/WHJ1ePT+nvg1w7p6elROEHHzgnnLj/BqB+1gQqm8vGPzkQNH3SJihu+Y0Yeei/N21hrd12ztpuDhxSlpC5oiXpe89Gi87aZzvBQZoz8IdAm/GE5IYMlkCUnZICmNCnXyNvsImLe5iUBKYWBfGif1g21bSOKAumCbBTWxoblkimBDtVIWwG8AJiNFCy/rtuWOAgUMLRrCv4j6aO91JUVg== 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=c2HNXhTaV09438FPwaxBxpX3LsGkzxD1G2+lVD0T40c=; b=jTRkAOUtRTY5UHII4MBf60LjoC94eIYP416SuIDZht2/qR3c3bRTz9oNcMk/G/1srQCWdERjieSq1QShhLLCMIAlDcjJaezirDO7vmR1d+wlP32zT6PF1RqtN63HL3iJ//QkBB/d0x6oppI1p82JpBGBshQcEA3C53mF1J3XA+icmkGSadnzN7ghtvsL/3UactYlBx6U1THNivLLkEJi247DVEk966yx8TkQgzc+i2Z+i20W1IHQQ2RJEKRTMfXDh7psUEMn7BPAZonLSuj6IxY0vZMqISdlqvSHStytjuuboNQSm78YIQ7tHdowGRgzdsA2M3OZaCF9fg5DGew3Yg== 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:33 +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:33 +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 3/4] dt-bindings: clock: Add i.MX91 clock support Date: Wed, 23 Oct 2024 11:46:49 -0700 Message-Id: <20241023184651.381265-4-pengfei.li_1@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241023184651.381265-1-pengfei.li_1@nxp.com> References: <20241023184651.381265-1-pengfei.li_1@nxp.com> X-ClientProxiedBy: SG2PR03CA0118.apcprd03.prod.outlook.com (2603:1096:4:91::22) To DB8PR04MB7065.eurprd04.prod.outlook.com (2603:10a6:10:127::9) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB8PR04MB7065:EE_|GV1PR04MB9216:EE_ X-MS-Office365-Filtering-Correlation-Id: 2d978561-7106-4079-9201-08dcf30d0b34 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: tdmntU/zi4UnexPjVZF/mOOfWp/o/N/tlATjlLXVnRixzKSdGnZ5tuSx7nBHhnXfvXQszukocpdaNBKtgql0e2ipoxxJ6AftSzxLi9faZRikINyYK2BKC5y50Y2Bt4Sw3JhSH0Ydk8yUtD0NVjDwMdu2gh4QGjpnhUAPaZcI59VyX3L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ZhrxCXscjLRmEpgzg1I6g80Ap7PcH8Ye4JBY1noOV7I9uO3MbR9U/xUWqVJuQ79sagF+1K3qrO5lU86tou7cjljDba9wksixfOddowXm7Piad8e9+TvjkEu9kbDl2mtmrL8f/s4yq0IOho X-Forefront-Antispam-Report: CIP:255.255.255.255;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: uXQtwMgcNInmc5VzHq1TgPAjX2UezppLcFAORoT648qNOmmHS+RPQEUsfDGee2vFMryhw3ABvqhDXxpLQBzuTc0cLtW5rQBY+mPYs7wF4QLnS9QREqbPMhxFxuNHm3KbIiId2Os+DDLKrH5haYhCqLGICopAu2LIOSAn8DluvuFXapZFphi+e7frYesqY6g141jpmxSPFcX0dkxoS1Mty69BFyGCUjU4VHpGSlQDkBtnNf9c8kSEUQcCqzxcevy9jB1KHLM1/6mBJ8zdE/339j9Bwpi1i1FK4qGEz+2CJPW/aBoSpjgciZ0R3XsJG62YzOcRDTJtpnTck8OpK56hLhgY3mG/JLTh8iZc5yNch5i80wk1WZr6XnceoO/SZqsieQgeP1dx7wLA1pizYEco2ggU2dvkKC7pKbZfYADD8tzps09lCPn07Gwu/444ZoVaTH9w2EjY4jLeZvIsVqfoPCkv086PMEOmDmW4MufJzJkIDzcYFC+UqhuNw/y4LT0RK6+acqqqNau8kkQoXRGpvIthJsPWiTIqDXT93HFQU9b6V0jXmTxlx4lk5ZhRZx53JugnKNKg+pKYNcv4vEWMlttrPiRZPBHwy0LqQOc4E9syYjvIcbLXQ3QTrNUyFKD/rRLBw0lCUCEWisiI+lcWEMuG8sHgzE7BBedoWKHRJC3S3a5/lePFYflK02dzjs2c8ib6nuBD7DoUqkUJTpz5cuYSFnVH4OJLfg4Jt0jIiZdS+vVcJplHIQ/fmrk8oZJaTxZ+/TMMv8hcNScIvJo/eACq70npd1ErZjnqCXV0ztZmLADy2WrbVOj9yeS23hw6UNBFggDihh8l7ePAWrr5MwwWJh9T+1mI5pOjBCw3/cmVgaLiim0W5u+/GyPIogUVPyN6eJ9c1GjfFMqzN2FkZM5wEV+UN94IBlEb7BdUnDi+UI9PnWBR9QYvcqiyOMoBMcAnW6RA15dtFkw0b9cNwEjNYN1XfkQ3uGO90bTqIvTzk8rotkesh9pYjfq/qCiqg+yBVpxZ26GdQfx0y4GsHWScrKV+jFFovst4FLFrx/YynHjigUqLwnUwJBYDKnackUMEbGPj6nyZiVMCPDrwIEyfuY6/5QLEhxftGZsJpIyndg6/ncZncUQehatCMipqGlpOCNxrHX4+moSM2wegYf0ectGiaHE3jRXQjOIZCPTNV1vh0jb6k3b8OA3EVnLhKa90i3vlt5UV0LvRzYlMC1q8hbMsxD7ME51+ZDI81CVnlAr3nw3GqJ7LNkDA5CEkHIg3vYxEF46AbPvOMFroKE3M7/WEUT2oPRNjvCoc8uKRZRtg6hrcbciSs3MXr/iu9eC7jDsn2vjIAYnH4dSUIHFetRq8Uiza02C+eadLVD06IbtRhONvTq4kNN+05mQORq0eoyhLCy2JK/qZl+nOD6b7phlH2zP53gpD5AR31bco432Xl4S/+NSiePPU0sAa1ENWTmuAf2I2DHTBqER42OSe9MHVGaaWfcQLjcFGVg9ykBID5eDq8XiufWuJeeFlaQo2n7x8lfd2bfO2qY3TEYRx66oGhujDvrvzRPa2NviLP1O75V/tIX8vdLbDrwWS X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2d978561-7106-4079-9201-08dcf30d0b34 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:32.9447 (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: OsYDJZFjWxqy7FPrZM2aHqFnnd5fEEtuZ3FBuQKgXSHfFMVkid7fgDxiZkFquc2roQNLnYK8Dkqov5g7EHebdw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9216 i.MX91 has similar Clock Control Module(CCM) design as i.MX93, only add few new clock compared to i.MX93. Add a new compatible string and some new clocks for i.MX91. Signed-off-by: Pengfei Li Reviewed-by: Frank Li Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/clock/imx93-clock.yaml | 1 + include/dt-bindings/clock/imx93-clock.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/imx93-clock.yaml b/Documentation/devicetree/bindings/clock/imx93-clock.yaml index ccb53c6b96c1..98c0800732ef 100644 --- a/Documentation/devicetree/bindings/clock/imx93-clock.yaml +++ b/Documentation/devicetree/bindings/clock/imx93-clock.yaml @@ -16,6 +16,7 @@ description: | properties: compatible: enum: + - fsl,imx91-ccm - fsl,imx93-ccm reg: diff --git a/include/dt-bindings/clock/imx93-clock.h b/include/dt-bindings/clock/imx93-clock.h index a1d0b326bb6b..6c685067288b 100644 --- a/include/dt-bindings/clock/imx93-clock.h +++ b/include/dt-bindings/clock/imx93-clock.h @@ -204,5 +204,10 @@ #define IMX93_CLK_A55_SEL 199 #define IMX93_CLK_A55_CORE 200 #define IMX93_CLK_PDM_IPG 201 +#define IMX91_CLK_ENET1_QOS_TSN 202 +#define IMX91_CLK_ENET_TIMER 203 +#define IMX91_CLK_ENET2_REGULAR 204 +#define IMX91_CLK_ENET2_REGULAR_GATE 205 +#define IMX91_CLK_ENET1_QOS_TSN_GATE 206 #endif From patchwork Wed Oct 23 18:46:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pengfei Li X-Patchwork-Id: 13846355 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2086.outbound.protection.outlook.com [40.107.103.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AEAB713BC02 for ; Wed, 23 Oct 2024 02:47:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.103.86 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729651663; cv=fail; b=Os1GRRG9RXDyfFsA0AAJaNLB2FgodAHaYzIvbMqKt3WAS7zwmaShfh1ZID9teqn9pdRaepiL8d9MtIyNUfpnWvlQ39YfXznFb/pLkVbAi9VBZtA6YvumUwh0r8/tZKE1aOD3xXq+CbZBdAvmfk78FSvUP3LWZqMRJ3WFkiX3T4k= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729651663; c=relaxed/simple; bh=dsJUhRf3WFwwdBnoQgPyqzl1gZF/+HiiOZNZZT4YVGc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=gIE8mq9ogAdgat5uB14Ff3JjWaoBUwBp/nwKl8ezVhVftsg1mwRF4hz0OHqdgQnA7vN18Fwlj50/W2+1aaocP62rLqGH3GK/0+obPf8+AnwIr5K17b8YsvFSPg0Z3WtDl/hdYuabYAwtMuqAcYkL3uxUq4GWLylZ35gbVxrwuGU= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=fTLqLTSm; arc=fail smtp.client-ip=40.107.103.86 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="fTLqLTSm" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=usrAm/ADXA5eIUQwk5zDgLsWpnjL3aNMXWU2BwTk6r/NVEaBnsN8s0Y9dMBeDhP8Rl+vo1YZjB67wuZy6LY9EA70qsEpp9q5+eCyWIvumHd0qQgA3FiMoxaDTK2Yq5LaZT4WYyXD+YhY0zrQK9DzZCKjGLTjysuYXsuL783AsvJoyrEtpdeDxe6Or6Rf74yjC9P2hv9vakBh8EzEqHvNH9Cnc5YeECZHUeAN42NQblCirI6QvvNO1D4rFhR5JJbN7Zv7ZVofpOUqS3jEgZcB1iuNZdEywTfQo6WPqPjyGEWVMj76317imaCrdpkAId+ptBJjekP2vuapRsCYu45rTw== 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=L0n344qQC3f8FUTADAPFjyF7uantGbrmJpV5T7shvyk=; b=QYp11jvRc6mLZ27KGHyE6OaZSAk/s9Mim56FuvsCu3k5yaGryy2deSxpBmzspP6bbKJ398m3vKmuV9wn4qTMXsrSwa2zRK4fP+iD09zsKK7zaS643eCDm0tm2S5qf7bNjM/8jz6P/Qjx4gbxetZVHKAXejKWgvTvAPNUggEY92I0TC4DQ8Eq4+eOoQxCBo6NLQ01cFpNRYIPy2FgDYVP1xiSHwqVUTtVz3flfB4i6fyOmcXo8ENMrPzvA1h1uQeH2VGu1aknxkVmRepijey7rV2JFY4i09JIdr2VmoDzF6rQnqsrD2UiH8By0wYkB8fU2VMEiJGcXS2zOAdSQ5mOqg== 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=L0n344qQC3f8FUTADAPFjyF7uantGbrmJpV5T7shvyk=; b=fTLqLTSmVcWNvJC5sUCuEiP/XsCKcH/H1OVGrE9op0zA+fj0RRHoPlf3nChkEbnWVzCeFXX8BgrOV6ciMZ9uOQhaX4NIFITuS3z7AlccZH2pj7/YoB6OwhCa3hl/5pO9T329t8SqzS9+1+SSDoWLwmsf+RUyC08axLZw0gyFIIYtc2IF0XZdDEVmrgiOcAmUN2U4pH5SjwdxaETVqt7qpcpegpVXV2KA6mJGAkbvU4yGqjxLsoTY4HQsOEDGUb+wzNybdO5dVDttHOJgNn3/1noa4cDT7epUv8O0EKHRY4hAwlMmxVsg1RWV1DpRTiK3VM7uWcWRrsDoBtdKv3InBw== 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:38 +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:38 +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 4/4] clk: imx: add i.MX91 clk Date: Wed, 23 Oct 2024 11:46:50 -0700 Message-Id: <20241023184651.381265-5-pengfei.li_1@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241023184651.381265-1-pengfei.li_1@nxp.com> References: <20241023184651.381265-1-pengfei.li_1@nxp.com> X-ClientProxiedBy: SG2PR03CA0118.apcprd03.prod.outlook.com (2603:1096:4:91::22) To DB8PR04MB7065.eurprd04.prod.outlook.com (2603:10a6:10:127::9) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB8PR04MB7065:EE_|GV1PR04MB9216:EE_ X-MS-Office365-Filtering-Correlation-Id: 2adb2154-c45c-4ce8-a22d-08dcf30d0e94 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: nyJZhq4qI5eOmS1WCrvHjr0sA1ZtW/gJ7z7RPvPbkmbS+AYB6gXidbwun+aqHCzsX04aZ44uk/Cf+CXeQeeTmJc0tP+iMaQR99XLqc2PKjANqQncp7jF2fqmpBafbNcWu2D7Zx+o1rXO6Fr2jCyQMTOFxo3CSyaL3eECP08nZD/SdX9vYmhufbZFgCJpYghngDYfPjZslxaHZEkvZlfnl8W3j8J6P014oku5vKIytv7X0p31KNgRKfJW9TAlMVYgjhwf/rSo3b7l9+tSJeO3I+7HGNWT16Ncel8kO6bZ6ShabCy3qURfVfo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PK7w X-Forefront-Antispam-Report: CIP:255.255.255.255;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: pihp0AJguZkejKxzdN4Xv6sXG9oYCcarUW3We5/3FHg3NOMM3IWZtzjJX99fJO3AeUXvJW9kJBaeARBuqiPnTGLjHSECQ/hGFaN+uQp7qYCNe3A/ivT6a3QJGkejFytD/2X5NPsv+iy1YgxIpM0vsJ1c8Q9x58QhT6n2m/A0rzIoDYuKywhSnTdHXqDFsecnJfYRyUJX2RYUR4A1pDQMPREDWB9mVyhoSmj5uyTBSs/1vo0HUhwEo6CX0OXrDoM1SDKEmq7FQa3+jOUUJniTvl3thG/uv3k/7GDEf4OEtYmIcXuVsorrwYZv/7cfCZGKlSd3ssRuktgLb3uQgqARuz9epk7I4InEiifXjEos7ta+/A/as2CZxbfZ4UdlPYlkxDkUnF8kBSpxm/3ZDM2xE7iuJytQHOH65xtSENSkAwJz8uJxfVstYdqvoz0zAqlCT+p8du/bHLq1rkDIAbt/AHF/qMyx2JY0p+K0DeCZX5VgLsQWLKBfk7JpZZCkli22AkCxhOfuD+L1o+6aLjP8TZW98CAe12zUXe1ss6iKeXwJQ2hxc++fwOsrRhI/r2z4PKpQH2B/pWO8jex9egINu502sVagKkor7uaAODIs0waAr6jKrjVDZDDdGJWlll9LRNC802J6DN24efYJ20OzcZM7yzhaWUdG87b6n+R3IvQDY2F9SoZxmy5/QvqL3Rmqxo8Pp8f4LLcV1Qqo97t2DTdEeHZdhmiLB4tAOrcYxZyAVow//SYaXH1ovk3wm97OThXJlp6EYcZIBb3UpD/a0Dvekx4WAFgTKEXFi4HVB4d4zcQnsSZJY1etJy+VWWvQUhmE8mGSk2pZqllq5U2B/iJV5lu36xVjykt9wp4T8XaSk2Y+73ZORGToVQfj7byS0P5R+734fM2dQklsW7s1UhA8/+uy8srlI/YGsEe+N6VjdA7Y680KlgJJUfvkrm0c30LtKGupIxuUYCAJrXn3meRW4CFDzKa8iBA3dZw4mppfAW5qZu9+hlhFiWkexYGUGyf/YwHv6j67i82mB0+Dcwk+M/4aYoQtrfCMCjsSnkcXjTUbMhkPEm00RhOVnYhfYOr54BKEyViMJya/nzSmhxhgwMg44Qv9as2MBwSORLcFCiU0id4O19JorPs2/nQA+djzSvHTRZprHi6CFk0h9VlG3F+HvB+LDjjgoQmjXw2U6KZcHqtHVUavEFy4iL+McQuY5tVx7U41DZ+FHFyGDqOgN1sWXY5ovi/AlAqWC/I4iSdO8xbKL/io8zmpwvZvD+kY6PYW0gvoheI5gHh+VjBNZW2tSFheNSYBtYtXZ70k2Zkcb6CQLbQ/n6BM88q2dNddVmDIxX7XQppgYAbBByXnjAQ05F8J6POz1oi+3zhX9ZJIEVYkB2FhIwmOHrfZ5Ki6uCjzGdf7Ty2sE9ZRM+BLU0Aj9Z/QgzNWkBI14hUbHlo8q3ugyqzjliM5zsMib7pF+fDA5eFxvcjDkYwVETooCOjMlt02KQmnYVdibQ6IMUqDVHrIZa1P4CnDKujP8DLlCmoxXsLZc5lXbOcyaUCjDg7y0qvIn4LuY72lJmDTM6oJ1kcwHVQrrF5lMJgd X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2adb2154-c45c-4ce8-a22d-08dcf30d0e94 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:38.7242 (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: DHfhR0OMH3tPrDPVSDzc/JXc+9PYmIqrWWckXjJHG+B8cyCjQyxGf68/AYO5QvpMDL42J8bl5yvAFFPKmyEhCw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9216 Reuse i.MX93 clk driver for i.MX91, because i.MX91 reuses the Clock Control Module from i.MX93, with only a few clocks removed and a few clocks added. For clocks specific to i.MX93 use PLAT_IMX93 to flag them, for clocks specific to i.MX91, use PLAT_IMX91 to flag them. Others are shared by both. Signed-off-by: Pengfei Li Reviewed-by: Peng Fan --- drivers/clk/imx/clk-imx93.c | 63 +++++++++++++++++++++++-------------- 1 file changed, 39 insertions(+), 24 deletions(-) diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c index c8b65146e76e..58a516dd385b 100644 --- a/drivers/clk/imx/clk-imx93.c +++ b/drivers/clk/imx/clk-imx93.c @@ -15,7 +15,10 @@ #include "clk.h" -#define IMX93_CLK_END 202 +#define IMX93_CLK_END 207 + +#define PLAT_IMX93 BIT(0) +#define PLAT_IMX91 BIT(1) enum clk_sel { LOW_SPEED_IO_SEL, @@ -55,6 +58,7 @@ static const struct imx93_clk_root { u32 off; enum clk_sel sel; unsigned long flags; + unsigned long plat; } root_array[] = { /* a55/m33/bus critical clk for system run */ { IMX93_CLK_A55_PERIPH, "a55_periph_root", 0x0000, FAST_SEL, CLK_IS_CRITICAL }, @@ -65,7 +69,7 @@ static const struct imx93_clk_root { { IMX93_CLK_BUS_AON, "bus_aon_root", 0x0300, LOW_SPEED_IO_SEL, CLK_IS_CRITICAL }, { IMX93_CLK_WAKEUP_AXI, "wakeup_axi_root", 0x0380, FAST_SEL, CLK_IS_CRITICAL }, { IMX93_CLK_SWO_TRACE, "swo_trace_root", 0x0400, LOW_SPEED_IO_SEL, }, - { IMX93_CLK_M33_SYSTICK, "m33_systick_root", 0x0480, LOW_SPEED_IO_SEL, }, + { IMX93_CLK_M33_SYSTICK, "m33_systick_root", 0x0480, LOW_SPEED_IO_SEL, 0, PLAT_IMX93, }, { IMX93_CLK_FLEXIO1, "flexio1_root", 0x0500, LOW_SPEED_IO_SEL, }, { IMX93_CLK_FLEXIO2, "flexio2_root", 0x0580, LOW_SPEED_IO_SEL, }, { IMX93_CLK_LPTMR1, "lptmr1_root", 0x0700, LOW_SPEED_IO_SEL, }, @@ -122,15 +126,15 @@ static const struct imx93_clk_root { { IMX93_CLK_HSIO_ACSCAN_80M, "hsio_acscan_80m_root", 0x1f80, LOW_SPEED_IO_SEL, }, { IMX93_CLK_HSIO_ACSCAN_480M, "hsio_acscan_480m_root", 0x2000, MISC_SEL, }, { IMX93_CLK_NIC_AXI, "nic_axi_root", 0x2080, FAST_SEL, CLK_IS_CRITICAL, }, - { IMX93_CLK_ML_APB, "ml_apb_root", 0x2180, LOW_SPEED_IO_SEL, }, - { IMX93_CLK_ML, "ml_root", 0x2200, FAST_SEL, }, + { IMX93_CLK_ML_APB, "ml_apb_root", 0x2180, LOW_SPEED_IO_SEL, 0, PLAT_IMX93, }, + { IMX93_CLK_ML, "ml_root", 0x2200, FAST_SEL, 0, PLAT_IMX93, }, { IMX93_CLK_MEDIA_AXI, "media_axi_root", 0x2280, FAST_SEL, }, { IMX93_CLK_MEDIA_APB, "media_apb_root", 0x2300, LOW_SPEED_IO_SEL, }, - { IMX93_CLK_MEDIA_LDB, "media_ldb_root", 0x2380, VIDEO_SEL, }, + { IMX93_CLK_MEDIA_LDB, "media_ldb_root", 0x2380, VIDEO_SEL, 0, PLAT_IMX93, }, { IMX93_CLK_MEDIA_DISP_PIX, "media_disp_pix_root", 0x2400, VIDEO_SEL, }, { IMX93_CLK_CAM_PIX, "cam_pix_root", 0x2480, VIDEO_SEL, }, - { IMX93_CLK_MIPI_TEST_BYTE, "mipi_test_byte_root", 0x2500, VIDEO_SEL, }, - { IMX93_CLK_MIPI_PHY_CFG, "mipi_phy_cfg_root", 0x2580, VIDEO_SEL, }, + { IMX93_CLK_MIPI_TEST_BYTE, "mipi_test_byte_root", 0x2500, VIDEO_SEL, 0, PLAT_IMX93, }, + { IMX93_CLK_MIPI_PHY_CFG, "mipi_phy_cfg_root", 0x2580, VIDEO_SEL, 0, PLAT_IMX93, }, { IMX93_CLK_ADC, "adc_root", 0x2700, LOW_SPEED_IO_SEL, }, { IMX93_CLK_PDM, "pdm_root", 0x2780, AUDIO_SEL, }, { IMX93_CLK_TSTMR1, "tstmr1_root", 0x2800, LOW_SPEED_IO_SEL, }, @@ -139,13 +143,16 @@ static const struct imx93_clk_root { { IMX93_CLK_MQS2, "mqs2_root", 0x2980, AUDIO_SEL, }, { IMX93_CLK_AUDIO_XCVR, "audio_xcvr_root", 0x2a00, NON_IO_SEL, }, { IMX93_CLK_SPDIF, "spdif_root", 0x2a80, AUDIO_SEL, }, - { IMX93_CLK_ENET, "enet_root", 0x2b00, NON_IO_SEL, }, - { IMX93_CLK_ENET_TIMER1, "enet_timer1_root", 0x2b80, LOW_SPEED_IO_SEL, }, - { IMX93_CLK_ENET_TIMER2, "enet_timer2_root", 0x2c00, LOW_SPEED_IO_SEL, }, - { IMX93_CLK_ENET_REF, "enet_ref_root", 0x2c80, NON_IO_SEL, }, - { IMX93_CLK_ENET_REF_PHY, "enet_ref_phy_root", 0x2d00, LOW_SPEED_IO_SEL, }, - { IMX93_CLK_I3C1_SLOW, "i3c1_slow_root", 0x2d80, LOW_SPEED_IO_SEL, }, - { IMX93_CLK_I3C2_SLOW, "i3c2_slow_root", 0x2e00, LOW_SPEED_IO_SEL, }, + { IMX93_CLK_ENET, "enet_root", 0x2b00, NON_IO_SEL, 0, PLAT_IMX93, }, + { IMX93_CLK_ENET_TIMER1, "enet_timer1_root", 0x2b80, LOW_SPEED_IO_SEL, 0, PLAT_IMX93, }, + { IMX93_CLK_ENET_TIMER2, "enet_timer2_root", 0x2c00, LOW_SPEED_IO_SEL, 0, PLAT_IMX93, }, + { IMX93_CLK_ENET_REF, "enet_ref_root", 0x2c80, NON_IO_SEL, 0, PLAT_IMX93, }, + { IMX93_CLK_ENET_REF_PHY, "enet_ref_phy_root", 0x2d00, LOW_SPEED_IO_SEL, 0, PLAT_IMX93, }, + { IMX91_CLK_ENET1_QOS_TSN, "enet1_qos_tsn_root", 0x2b00, NON_IO_SEL, 0, PLAT_IMX91, }, + { IMX91_CLK_ENET_TIMER, "enet_timer_root", 0x2b80, LOW_SPEED_IO_SEL, 0, PLAT_IMX91, }, + { IMX91_CLK_ENET2_REGULAR, "enet2_regular_root", 0x2c80, NON_IO_SEL, 0, PLAT_IMX91, }, + { IMX93_CLK_I3C1_SLOW, "i3c1_slow_root", 0x2d80, LOW_SPEED_IO_SEL, 0, PLAT_IMX93, }, + { IMX93_CLK_I3C2_SLOW, "i3c2_slow_root", 0x2e00, LOW_SPEED_IO_SEL, 0, PLAT_IMX93, }, { IMX93_CLK_USB_PHY_BURUNIN, "usb_phy_root", 0x2e80, LOW_SPEED_IO_SEL, }, { IMX93_CLK_PAL_CAME_SCAN, "pal_came_scan_root", 0x2f00, MISC_SEL, } }; @@ -157,6 +164,7 @@ static const struct imx93_clk_ccgr { u32 off; unsigned long flags; u32 *shared_count; + unsigned long plat; } ccgr_array[] = { { IMX93_CLK_A55_GATE, "a55_alt", "a55_alt_root", 0x8000, }, /* M33 critical clk for system run */ @@ -246,8 +254,10 @@ static const struct imx93_clk_ccgr { { IMX93_CLK_AUD_XCVR_GATE, "aud_xcvr", "audio_xcvr_root", 0x9b80, }, { IMX93_CLK_SPDIF_GATE, "spdif", "spdif_root", 0x9c00, }, { IMX93_CLK_HSIO_32K_GATE, "hsio_32k", "osc_32k", 0x9dc0, }, - { IMX93_CLK_ENET1_GATE, "enet1", "wakeup_axi_root", 0x9e00, }, - { IMX93_CLK_ENET_QOS_GATE, "enet_qos", "wakeup_axi_root", 0x9e40, }, + { IMX93_CLK_ENET1_GATE, "enet1", "wakeup_axi_root", 0x9e00, 0, NULL, PLAT_IMX93, }, + { IMX93_CLK_ENET_QOS_GATE, "enet_qos", "wakeup_axi_root", 0x9e40, 0, NULL, PLAT_IMX93, }, + { IMX91_CLK_ENET2_REGULAR_GATE, "enet2_regular", "wakeup_axi_root", 0x9e00, 0, NULL, PLAT_IMX91, }, + { IMX91_CLK_ENET1_QOS_TSN_GATE, "enet1_qos_tsn", "wakeup_axi_root", 0x9e40, 0, NULL, PLAT_IMX91, }, /* Critical because clk accessed during CPU idle */ { IMX93_CLK_SYS_CNT_GATE, "sys_cnt", "osc_24m", 0x9e80, CLK_IS_CRITICAL}, { IMX93_CLK_TSTMR1_GATE, "tstmr1", "bus_aon_root", 0x9ec0, }, @@ -267,6 +277,7 @@ static int imx93_clocks_probe(struct platform_device *pdev) const struct imx93_clk_ccgr *ccgr; void __iomem *base, *anatop_base; int i, ret; + const unsigned long plat = (unsigned long)device_get_match_data(&pdev->dev); clk_hw_data = devm_kzalloc(dev, struct_size(clk_hw_data, hws, IMX93_CLK_END), GFP_KERNEL); @@ -316,17 +327,20 @@ static int imx93_clocks_probe(struct platform_device *pdev) for (i = 0; i < ARRAY_SIZE(root_array); i++) { root = &root_array[i]; - clks[root->clk] = imx93_clk_composite_flags(root->name, - parent_names[root->sel], - 4, base + root->off, 3, - root->flags); + if (!root->plat || root->plat & plat) + clks[root->clk] = imx93_clk_composite_flags(root->name, + parent_names[root->sel], + 4, base + root->off, 3, + root->flags); } for (i = 0; i < ARRAY_SIZE(ccgr_array); i++) { ccgr = &ccgr_array[i]; - clks[ccgr->clk] = imx93_clk_gate(NULL, ccgr->name, ccgr->parent_name, - ccgr->flags, base + ccgr->off, 0, 1, 1, 3, - ccgr->shared_count); + if (!ccgr->plat || ccgr->plat & plat) + clks[ccgr->clk] = imx93_clk_gate(NULL, + ccgr->name, ccgr->parent_name, + ccgr->flags, base + ccgr->off, 0, 1, 1, 3, + ccgr->shared_count); } clks[IMX93_CLK_A55_SEL] = imx_clk_hw_mux2("a55_sel", base + 0x4820, 0, 1, a55_core_sels, @@ -356,7 +370,8 @@ static int imx93_clocks_probe(struct platform_device *pdev) } static const struct of_device_id imx93_clk_of_match[] = { - { .compatible = "fsl,imx93-ccm" }, + { .compatible = "fsl,imx93-ccm", .data = (void *)PLAT_IMX93 }, + { .compatible = "fsl,imx91-ccm", .data = (void *)PLAT_IMX91 }, { /* Sentinel */ }, }; MODULE_DEVICE_TABLE(of, imx93_clk_of_match);