From patchwork Mon Oct 14 18:24:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pengfei Li X-Patchwork-Id: 13834079 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2047.outbound.protection.outlook.com [40.107.20.47]) (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 27B7B44C77; Mon, 14 Oct 2024 02:23:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.47 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728872629; cv=fail; b=eduEklVL16SIiumWlv/SMcntCXTbNkH+roSh425Bkc//DE5QUPw9XULFoqLMA1yDA2n1a79xQ7krVd+BOoQIuAp2j6HpMtnEOS4mt5b2ZcAwDkAQBVI+JidkZ74Of/GQ4WZrvreXHPlTvY1h5HVVjyfMguAwo/8RD7imAxe1RpE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728872629; c=relaxed/simple; bh=tSg9UBMm3ZnFCuZVWj46eFf3317ntAx2oD04Av1KvcU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=fAw9EijLgzy5x44MXrl2dQGKSyqFHT/dR2+MxBCmXYEs76jryU8BQcleXtANX6gxJkcs6C3vh0j6s2t7IuxB3tcSyxrDTazoLIEOK/n5/lAupnHH7Psmx1xEuBDvQHkTGefuKYRYaszZsAfKmi/iGzFoD+IoXH3ztKpbVviyyiE= 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=SO2adAYJ; arc=fail smtp.client-ip=40.107.20.47 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="SO2adAYJ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=iGDTCUJ0OGaN+0MClD/qpgBC1Yt1fyMC6F9Lr7aBPV7b/2U+MNtF12xc6RC7j2XpHO2XvVvngHhUo7KNKJZV/co+9EhImROniIVrCSashUizt1NBZ/5Qb56suM7gaYSfEN7EyIi8xs3y9L71FvKMSBCe/yxp2gQMIAJIOHizS7HyxenjEvmWYYJEnBEkLLmjTjjeq/NDy4dXfnNGB4pOsle4arUKq2SLhzRdicUBydCnK4TKt6aYRWcBOWHxM+qQ9aE+SpkLo6xHIfSg8Tm5rzZEVif/zirnnRKGtoUJ/MKtCzNToPOXJrmW8Ufq+pAcGc1vbylAh1bxkGYySOfQfw== 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=V1OAJdReJttTaYWJtW0DQh4jBxgvKCVFq2CojZ44yy4=; b=TtuK1Zold1TpktnStl4HqBMEn7oqftVLXOPBU1zqVNgT/z1/jBU2YXNK5E/1inPYftn+dk96HH0XGHu2hp1rPdbOg2OxxouVFfJHFi3h1ip3kYgB6l8cCdxn3kI2iEBlNil2Z80BlpR0QlAz7NC6f92ecqtjAP5Js4qUrWRZ4M2sDSNKIxS2uTBGCrDQafjzh/a+Gp/sV3MhirHD7M0noRMINFzv17339A2MZzpynvydlza+y/A5QoiNs/l+WLDV/vIMMuQz1mPWbDu8hzEV6zmGu06txPGSBAyKwfsVDcVFJY+kTWhRmDQXRWl0YEV5ul7vxOT/rsgEh/uRo+Q03A== 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=V1OAJdReJttTaYWJtW0DQh4jBxgvKCVFq2CojZ44yy4=; b=SO2adAYJc3aRW2BDURYkE0Owzish6ONT5jadju9j9jBSzpio7zOa825yj77snS8iAkqqVJyI0Wb1s1QcYM7XYdI4/E600vSHtagRz/bt6IIWD3Dgd0t6IjjsSfOKTTCJhg+YAYjAvZmbC3ErEs6olE0XVv7Y15qN9xsbd2y7eid92YHWGh9J6lCK5LDhN1y6cii5JP31BTOev+WTJxVVTUGrT2Di0yoejKVidLjkeI9lbksQW4p5cSnu4SW1feSUpLe9mUGYxKR/DzDdKnJblbwI1zQWuN+y6x+xt/7uTBhPMy4HvhMuJUrJBGl+BLHU6mtayMFbCrRI3eMkeMZwnw== 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 DB9PR04MB9378.eurprd04.prod.outlook.com (2603:10a6:10:36a::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.24; Mon, 14 Oct 2024 02:23:44 +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.8048.020; Mon, 14 Oct 2024 02:23:44 +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 v4 1/4] clk: imx93: Move IMX93_CLK_END macro to clk driver Date: Mon, 14 Oct 2024 11:24:35 -0700 Message-Id: <20241014182438.732444-2-pengfei.li_1@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241014182438.732444-1-pengfei.li_1@nxp.com> References: <20241014182438.732444-1-pengfei.li_1@nxp.com> X-ClientProxiedBy: SI2PR02CA0040.apcprd02.prod.outlook.com (2603:1096:4:196::6) To DB8PR04MB7065.eurprd04.prod.outlook.com (2603:10a6:10:127::9) Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB8PR04MB7065:EE_|DB9PR04MB9378:EE_ X-MS-Office365-Filtering-Correlation-Id: 65f0e081-a140-45f9-791d-08dcebf739ff X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: a6ixNrxk/R6LLoz/P/0CuF2N6oBXAIg7ROA9BVSlcsphWexjcb6cY0nDp2v3jjSUhPrvLLt0D7es6URQSwZ8ErKn6y7TZuwP4jal15rH+NRw+0YbAbbGZT27pC78IXQBmMm4QmeuOj2Mddfo1PX1mPaA6raHzypvauCJoZB9Kf8Whyj8wWiXJL/wRp54Uek8kfc+ydyYRea2uvZ0lUmJQAkqE2PfUnc+3T1j4Oa/Fv2ik2hBgGv/SEjyZ2vSb2Wc93qMnkMRYBVY4ChzrC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ABce9GxMfna4n/TBOun5LfQ== 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)(1800799024)(7416014)(376014)(366016)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: M3y9tq7cXbv6OxSODsLZzT56xrX7xjzGwuFP5seho7Is/lejhZU4wHB4CKD/3ZNqXViA0S0LK2afVvOIoQhlfj6a1GnLSSO2YQNTMWAg52QXqB6GTUxzJfNvBk2FVeeekOtC3G+friTHieDvB2c2Ju2FOXxUB3Wrby3eBWrPQvyeBw8am+/6vgyVsoTQnMS6fDeAbLIPvC4Zi2t/D6/c+H0OX8XnLQqemsdnHjES3ET/Dk268zy6ch4GbKtRB94+A7QgQqOwTg3bmhr2t54Zc7Q6fSBmIddlstjlephYZXa1SAZJ/5vKwLwH6MdcADkOQ1qILgoqby1jf+5Y60qUxyqW9i2y6c61SRPYDhJyrTSdfqy6ddVsuBMbFxfFfJs6BAxvfJTWOPAT5hGKHy6dIXNwHVqPJVGbVgZu0gfUxu2yJPF/obXtc/2qPWA88Eksc0O9GlNAxP0NeGQrXa2XuQz0jMn8RpSVKAq4GaKOjYCgaXQQFcWfpf3MlBT/soIFakUJsbkLxufhdWkDnYUf7zby8u9Avj1wVSL9q65jBDTKED1EhMtbcNX3Pb8kArH4Df83EPae0MMDDdUQUTUTeDOZQtkFNFuMRE514Hy6Ixf1S+XtZ5kDRtprJrOw902mq0nmrd3stXvDy7HHD1blaKp8LxOKuE63vJ+HZ+mCo30l+r5oA5PcTssM7hexgthPo5bfrIRykPmySfpGzXbknJy2lSseUj6LEU7N8H0SQ2g3JXuwcAD+NsEJH+MP/WmT9K+EpcODrrLA0UCdZnyHYxItSuAejjTghKQ9qG30Dy6RmBmfp+lhuyuaoMbtrADDTvZARugchY3EHWTaxpqRdv3ziPRE63b8Rx/kc7YInR570i2pyB4p+3S9awfJmQOYd/ldpUHaYtHT8CgfKT7a9Y4/dNMPU9Ve4T+q+0OYJuunNwFH92PwFAkxdYYcBUcNYuCKFTBLecUvCNEZ1vD754QzjOIAyvaT//4gcHQh2bs2BPAx0sv0Y7coGvITx683U21w0d4XRzIReqa/XesD4/gJcGjUiRwh7MyQ6HJL/rsG0gxOVm2o5H6xNxPFFelGVnEqbz5c/t5h+q4HaHK4xMX2tHpoDFuW5Z8uqoIc3p1gyxltxIzS+5WkqimBn/SIppZmUtYXfx3vtBY58Y62XK5dr4W36q2xNQT22I3omE7FhFcLdk3G7g6Eu3njl8z2/PSqlixHjCb3lxyPJqyePbnY0eGOpu4V37tBGi1qp3MmirIuDnoWjbVq1i4JIUytWOIhlYR+WLTLnX2IOY3aw6DeF12pA9GKutSKMvz3H7WkXz/jlJMq6bWkcVoEGNwKCuVBO+a8KT+VQfJd8i3c+oyKxgbADTPehYZ+wTSuggG2nwDut+7HGPEbSemwkCK0gRT1aqgsVEBE/SoydwITxBxI8DojKCDNQaR0ll4nhsB8Z6TAZj99W90DB5eTW3rapoBcBp469rIN0GmusX1J0/PyngLSonYdUNedHg1oGM4PWwSdUnmT4F75woNK5aRuIfCnus4dtK7rCv/7PD/Bqm/1xx7ELwKxHxcXLlNm9RP/vAXIEqiVWC9UQ6COvYY3 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 65f0e081-a140-45f9-791d-08dcebf739ff X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB7065.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2024 02:23:44.6539 (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: cerp+qdVN64o/zxTt6uUuSCAOOS7Rg3xzRY+ni60IyDf2bmO+ffoHA6HH5F3tvNnZ6u25lT4o/Te3eBrGIrTJA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9378 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 Mon Oct 14 18:24:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pengfei Li X-Patchwork-Id: 13834080 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2040.outbound.protection.outlook.com [40.107.20.40]) (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 D9E9675809; Mon, 14 Oct 2024 02:23:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.40 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728872634; cv=fail; b=r9mHK/oWCB4xtCb34Tw1yFfora6Jekz5+6fbSdgqlT9HBPtLU0cFQq8OjQjBoM4+3GpDPWQJwU7kPAFBpOeq1uohBp6//c2BUh0ZRoVtdn1iD12eWn52x0IS/Vuhb8g7RSBc8LXlH14hGDhD126vs97zjBT8aS3RzHUrZSkVwns= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728872634; c=relaxed/simple; bh=gQT5Ex8gffizdxeEwhJIjboK1q1LfeHy4PmbLwgo/pA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=KABvw3/U0Tp/vbb67wwJGWLh6SORmwhAY2HwV+SSn7EWE9/9/fSjBnT6gkprb/MTJ1OHfLZHkHTM/kVRg50GPp8CRVSoBLLgFKLxxlJxisPATujoeK8zMG+1PzSkCRtbKQX8fqxVVHG4yoewiI0lmDk41C+SAWOFBjcOuFL8q4g= 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=K8gSqAjf; arc=fail smtp.client-ip=40.107.20.40 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="K8gSqAjf" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WrSNFrOV62Xe8ZM9oD+YY866LnhtAA2OLcC2BlOH0J5nr/G4AezaPvGUXW502p+Y3SSSSTvzVuQQ5clsp3u9atlnZorIrGNislC3FgFTlKk8vscdf4EvU803Y5RhB66rlghxNV1/ZXmiOierYg0K+1gYJjJnjX+S7EWfTge+TGi/PhXFDP6/YB6P95CT7xJXtyK4xudDKnGAvxgVFpDS20iGwQ2ZlYbNucm4nz46TxSvrv73HwO6paohcaKnwvQhxzRj0YnLR4bbRO/riJm/0FuJbrbWpEw+EFrFoaj0du9ek/A1bWrboqvwDqEFnjj36O49egF68j9Pol5hXTZUSg== 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=2QZH2YX3rWAv4l6hHsJW4LfTksut3YCn6Qp65bhVg3s=; b=BClPr7mC+CiIkysKr6g9KkpIkR6YAOHLLlROxOzALVBAga9TOY0rwAlJnmdNkWUk8L+1cB2ia+4nelMtIE9ocMpmxkduNnsp2w0PUZhs/+hcSWI4OWgdhr8hTgfQAwj5VtFZXxVtjWbWXKZFNM4zbCDmdDy6DNkuCFYO4dI9JqpNlaDevpoH7X/HGBrkRkSpFlT270HIF/H0dB2PYbSXuZgA/Zr9WXx6bsWsvBmYNhbf4d3xHmOELZkNmdQSoHsZ3p8NUqTue5VEHpTiuCyEKckPalMDKTgCdNo9AA4rKIQVaak8zIH68/spPyfdTxChrlTVmSR8jUJPGvgCg9/t+g== 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=2QZH2YX3rWAv4l6hHsJW4LfTksut3YCn6Qp65bhVg3s=; b=K8gSqAjfoKGrX4hpHgHtKbsEKRhBxsSR9cPeJooZJl/6tBxrJHr0pQp7BXx3tIdABc8libG9jKg5Iu3Dkh9r05u/ZawPFyyLIBPDg5C882VyIrop6Nkd/Q76uHVMUeVR/0u8OZXzIVsa1P/XrmrRh0m+9SAsLkuDWRFX3j+X5fSFgMRRrqcbRo4fzUkdCf7pidyx1j4QThQuX5K6SzoZGI5oe/gFoKPd6BswMAHMfHu3+DO1rDLb4rclBRE26Om3ZKQXhHaqPKgQp6JG9VDY9txEnIdTm8M3pi8igEnhtykUhNaoC4VKHNHA8N4YOFiRafLujjJXr+9NtoYhyhxnPw== 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 DB9PR04MB9378.eurprd04.prod.outlook.com (2603:10a6:10:36a::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.24; Mon, 14 Oct 2024 02:23:50 +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.8048.020; Mon, 14 Oct 2024 02:23:50 +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 v4 2/4] dt-bindings: clock: imx93: Drop IMX93_CLK_END macro definition Date: Mon, 14 Oct 2024 11:24:36 -0700 Message-Id: <20241014182438.732444-3-pengfei.li_1@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241014182438.732444-1-pengfei.li_1@nxp.com> References: <20241014182438.732444-1-pengfei.li_1@nxp.com> X-ClientProxiedBy: SI2PR02CA0040.apcprd02.prod.outlook.com (2603:1096:4:196::6) To DB8PR04MB7065.eurprd04.prod.outlook.com (2603:10a6:10:127::9) Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB8PR04MB7065:EE_|DB9PR04MB9378:EE_ X-MS-Office365-Filtering-Correlation-Id: 0010ee5c-5ab3-4bd8-aebe-08dcebf73da5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: AJfFdEgu5AQ5o1GDqihTfyr6gC4vaAOhbUymrrHN9p9Lk5pYTVPA4SgIiZopFf+0mxg8XgcjNydBKntCLYq+eJMy/KXv+zQlBAbrdqHGBC2cOCBuVB1Y5QddM7CsohPGv2A+PO7AVsmBUDPh2CkRw+bjkvruayOOu1ySyBHG3CkAbBeZ00w1rjCFjxwf+MgP1vGmn0KoYmMewAfgccPnMYJ0bBBcfP+eoaIHmgkwXKGpwWj/BTjPio1Pab761FvLgD7W6QzAIoBbTDJR8ssLyLzLR4Oi0cqYILtPXmomIHQuda7uxMSZpQ3nVLMzwfKKtas8zWkUmwWgOxXODXwUxcPNETosyhNPTLAHeVxlWaWbznVZQBNZ9Bi7mlSS97YN/jbB9skWxOFTFUZdZMZDfFuyTw6Aj2WsX0FMbkEvRH7zwwfCNfm8vKsigAlgdhX32fX6PdM8DIwjefburEwA8a76dIIQnCB1adsRZdLZ56ZNogT0ZX62HeExEyHUkReKP+pC1sklY+X9xv8nbWEGDsASy+icWlmbsNxFiO6lGcpNTKhqUXSjqqz2jZ1Kt5jKFcr6QoM3NEEbZ+46yA4zlQx5VCE3LtsLZSj1Z79tBqj8rc356BddxHAZUbJhCUdkCiI+amVyrYU5IsNNEddCifEvniaqUNxGHzaV6gWNz1j67cWBAURnoFgIFcxJC6LMVo06aLjIJ+81oNw9U6gLdZUscHVvvSJDR+0Tqk4l3WbIEDx7lZHE8K8ESuofhQmx64h49m0v6xPvR3rbqZjHOm6Z2tTp6aeSrKmR/gxIqsTixod0fVFa/c2+KOOLmY42qqSOhG5YvnMbtWc00KuOxvPgbcLjO9odl7jVMjq0jzMePoq/cySzkeQyItHdypoQ1eWKCc8eLbfiUXTbZhuu+1qLwaDjKvfKE4R39l+yx4jaa0gfAFOBZh5sCAfz3wL0QDXl3Ox2erJmXYTBOE4Z22V8IqTN2hPPT3J/RE2+enqe8utFgf4h8oKckw0mDpwqLC26MtLhlJ0zZT+WAlHZ3jiU2GG4+OFHcH1qGk5NbuHjng4JlUlnigqJtSmpNo+peJ4LTtD/KIAF/rPDRR3+ZW6IiYicNxi0Bk75vgdAzhmh7U2QJcLSHFz4xstsdj6CJWMS3eAt58or05CoakKlxx2zs19JQmsAsLaOP+PZv1uc9Lf52SSUA4cDwbPH/5HSuHbq7ZcbtF0V60TwhUsKHZo+vz45sB1Z9d5MKsxzjfy+Ko+wtqipf+I7R+8wb+MVSVC18Q0CfaqCCwSaf9/9Qu5vHOSczXNB7OANXjZmVFsR+lPTSZvIVS/llK+2U/ysrwZWnTfNTO8FaKHQe+xrs5TPhOQTUha0boYu9eBP4mU= 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)(1800799024)(7416014)(376014)(366016)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yHu9sHHWhxtWhem4YXcVi7lykeQR3V82jZVuQej412gHI6UuuOOgycmbp1c9ufyKC0GsaF4ZDqe6relbnuFYWDU8jI0quVuyp49myl9k7un7wqajIcDu8odrcJGyzKZKmoiidTbu8C6xGREkqjgiFx1ValnwPDMeG9ot78xKrBaqRhiunNKe6PU4b/IroVxn0B07efssHwb6ab+laHHxpehOVG+7XMiB6p0ED94BAAhEHJvPcC69eomSAR4B2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SVKCKRWXcO6+AfHDA7Ox9T5dy5YgN9jaEsMmd1v2lrRz5zwgPVcieYUWuHSaqSOJG2KLbWQ24rrHLKFm+kZIpifeUsMiG8b0j1mdhxIMzXBLse1qAlEJLXTeAZKCWc2DjPJ+n8m3qghxQQ9otmPtYyOTMCeM+zxf73wuFv2oCyRwZVPdpQWRJtAaoyNHBoJADJfthd4g4iY30OtNuVVrNZAplDx3cr88JFAZ9+K0tQIySLFe/a2cxpJArw4RtNGONH6K/Fnfit4JQ7EEq7Nluvtsyia X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0010ee5c-5ab3-4bd8-aebe-08dcebf73da5 X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB7065.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2024 02:23:50.7196 (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: xCB0ZVNLGbGkc6fj+xVbwCzuv+RfFzLipVEMUC9euJQv5mD+7vqZko/CcrlBogJLh36Dc0uA/kjrHx0YSmrQjQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9378 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 Mon Oct 14 18:24:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pengfei Li X-Patchwork-Id: 13834081 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2089.outbound.protection.outlook.com [40.107.22.89]) (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 4B3A212E1CD; Mon, 14 Oct 2024 02:23:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.89 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728872641; cv=fail; b=YYi8KO5CBlmCGRZGB+L73FE9rxnNieh/0R503ptlyuKWqN3NMwZQiW7JGzMy6PfTd87bC/RUxnydKU14BkYGsVRt0XAdztToS9EXM1xWrBxg4f/0BeVqYMyFeleTNjHppIa/9SQUqttsCUO7j05Tf1LXrBOTcHOZxkIbP2Fi304= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728872641; c=relaxed/simple; bh=T9f3TE0nu3y1EO7KYr+2Q76ZEngXgxM2dH7CMpDhRRE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=SvdriDIKu4IhMDvx3XlQb2dGoxG0AyUwLBLAuNjZcybRLAHKrvWoUjQVt2IPKB+BpWPprP0xiknw4a/Dc6bn6TJMvsJrf7M9OMK/CCJTILYFkDPp6ez+HLIZILXetWahWvlCIVFZiiDOtk3RclReCSu+6qtzYLqFqJqhsMUxA54= 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=CkK1bDkl; arc=fail smtp.client-ip=40.107.22.89 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="CkK1bDkl" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qX5TiKszfGI9A8QmGCsfKh6AfDFifQDpd1O0jgjGe9zGGrK3e76+ZviqdHWFrvaUjH2PocnwMsH1GZ+b3TTNGPC93ErdkifFzGdUirYzFFpAC4funRTnBpcIf9A7eEKXGULYp5uyBF7eLVoqBsnpBXyTT6FMCEK+USYSQim8NuH9ltPpkVAmpmFx0Sjw+supK5dUprJkMFkLMoecmBrWBYo7VXRMpZOxqbSNQQfU7ORjIJ8UIogsPoZPsGGWZtPVRtM3k/uJbbvlp5gr5knz2iNj4XUfhuVhFxeYH4DT+AmIIPfPCaQojLPvouhA/83VmR/i7uzaEEN0i5ZwiFf7JQ== 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=VdRy/cGz1rlLd/QngPadPKRazaOghqcsrt6SN34Joro=; b=O4QbWBmEpUhgw0K8DiaEJaZNLPp+PWnUZh3L7G8rEpYmHLgwH0d1mMBO4mmO4RB2LTbpO/RhPQ4Xs4Tv/QkOELARosr1sO0n4c5Ltc+wceqkW31ngXARjANHq4GCxhBNpvTyp62dKMQM2DtH1Ow8rE+e5EKJhZE58uvBDiZLOu962t6PzRcCeIn/pnuJvOR2U2zFK8QK//i/D6LFD1IkpWGBdmb3g89t9jYJGKp016jn9qB11TAeZgFtyi0haWkGmVnS29f3hPXUTaEYJG175HV8tRpa/oxBPMoXHy+Ww4bs/F2kw3oq752OEZwkOlim5XUYaPkQImUMd+kV+KQF8Q== 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=VdRy/cGz1rlLd/QngPadPKRazaOghqcsrt6SN34Joro=; b=CkK1bDklPbErPxM+YCfIJT+7pooLySo2MERuQVHGLxiBZVUnzPtolbME1XXWKeWYMe5n0S+ASdbUkGzPfyu8f4HxIDvugmz7eMTePU9EvdTQsJJ1LPs0013KYn8eV7mrQeFwTeyrxZ0Uq8idV2YTvQLemfiV+cNkwWeOJz5PWVQ6mInaKdGaPCMPUGKSmwuN+mOne7KzHDkT6ZPVDVQZVMGTPlBujmvHn/gFVPFZrRQ5cFJyQ+iDKgeqtOIKX3u9K0fxQN/wYDSf8pc3tNqUKWIlTf2wk0RHV46pbztD50Zi+y5Kj2LCVB0ctQNWVtFkCz2C+aQaUh6gOFSdBtDAiA== 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 DB9PR04MB9378.eurprd04.prod.outlook.com (2603:10a6:10:36a::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.24; Mon, 14 Oct 2024 02:23:56 +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.8048.020; Mon, 14 Oct 2024 02:23:56 +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 v4 3/4] dt-bindings: clock: Add i.MX91 clock support Date: Mon, 14 Oct 2024 11:24:37 -0700 Message-Id: <20241014182438.732444-4-pengfei.li_1@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241014182438.732444-1-pengfei.li_1@nxp.com> References: <20241014182438.732444-1-pengfei.li_1@nxp.com> X-ClientProxiedBy: SI2PR02CA0040.apcprd02.prod.outlook.com (2603:1096:4:196::6) To DB8PR04MB7065.eurprd04.prod.outlook.com (2603:10a6:10:127::9) Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB8PR04MB7065:EE_|DB9PR04MB9378:EE_ X-MS-Office365-Filtering-Correlation-Id: 3860c62b-1c32-41ea-8628-08dcebf7413a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: 1lijnfHFkaxKaUDhpeZlPrH/QSjI6YXnVJE45bKDCyEAfl24Gi4znvChVdiA5hI4N93V42ZQTTdlxgBhvsHwEwQ1xhuyatXx19JFo9S6tESS/mJt/tIzTZW1cCRYeA8UaoXXgU3bdLd90mgaDIGqymzGPPzjzKw1vJv539VVYJyBYnEvULUPQEftSjnZx2vRM2a6vo9mvuV/2lOiCZ+qQu6pY8DunZ7+0SfAeuKZqvBcn84HXL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nCTjKFrBSk6MoE7Fe4G1nYffYbd5DPLrlt5DMET0wm9pPNQ= 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)(1800799024)(7416014)(376014)(366016)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5VbHmKEPLTyovzgYrW5AuFxYK/m+4c2BnZ32whW8TLmzZzNyEHYDlFGStSpr+/Cc7yNE2xl7vQMuZAZeDxAqN5S9wUlN2xuQAptMDMdexhzzcI93qjHPtaLcM2bpaibxDNFKADl0OT7Zw25NLeOG7UY4/ycsPiqU8wRIHsSEGPQ7o7NcJZkbJr5OquDYfKm4L/ygtXF+DiUNjyEnBJKL2s/gg/WHMnMrq43AoVIbCP5XWu7ljdv9iQw1lXr6AwG//C3CVhQhLKLdkWlYx5ff+Zj/lVPXNwfc+oWAR9DUwxvibqTJsP0ZKcIf62YqCsOZKrJoT9x6Zi1l5MveOEoW/OyQPPJk8ag/0tXlbrN3YIAbJZc31Xyy7LzNn3vYprDAcDVwkMxP6sB0uk2zj/msdYmks/A29Oau5Q4/5/7VhYQr9+MqdMlD8jpI0/eXNu02XlYHkBw3G4abIqXrM6eOfNFceprfJWXsnU8Hk17jkFMPFDxXIEEYokCP6+vEjNDv85jRGVmXfIwOznhY0Nh71sFFcHGJCi+0jOmKJxSHS3vpeInUjRyhRQ2gFaPhj5CmMvl2m1rhmH5/EtqdQOfPsU7z/XGaTTxCNuMWaWp9NOgA753CtdS7XAYDtwFBgjX+pe8YLI2qeqXVqPXxqCdqazmv1XB1/E/bsgkUWQQ/KTFZvUg1DnkcdMOt42hvn21x5iur6UvjvHsECBJzSr7Nmyvx1I8iqnVR8tC7GY5lz27nt3Qp+rGFs++6o5MOM6szVJKXA8rPxihtIy2du255hJmgk5upNlglbkab35o6dMa+yfBmkW/uSdCXRZ6bMPgWY8ueYWMAUXIR4OBbafmZJ3D9Kk1DilhdVYXsolCouaIayf6Qw3QpU+17A9sbfLSvAX8ilP/xIQvt+Bbxwr9TKwwmHUXE/r6uuaAqMk57iLYeW62Gk8AsGupZ8mB2HeySNfFj42kH2UzRVf+gkKtUJRihT06GtQ0sWOlCQBfdLz0kvoXJ5BiXer2cx50HN8KbHxks0jPjF1Jr5UX3RSwysZV5XUHtvEZHTCrDbDsjXqj6+3yrOkHKbd2UkZ81yAxNhe9SiCbk0FyrvRkYgiehcbXnTTCnHf3XRU3OoD0IbLnNRHC3JvWN1k1YxVY3QF8FJeXj4Qon4UoighZQC4EOR2V7pNTi2DtVHHHsAzO4tM9cMwNlGLGLIVs1/m4DQdxUJEOc1JiNQHYReHdXW1T87WEu5o0cU5tsnDMPuSydWPXZtF6TF/1xaPBn0K+s5V4vIs/vqBcoKByqmhj7Z6XnHvfRE8QitLf9V5YqNY9rHZ63QqATKUv9qRwVECVKQ22Y8/sMVr1cU55al1+7pH9gm5qUY5Uf7Rzvn51JKB4L4c2o+0Zes7SffcKxcXqEzDIozyFlSFrAjatXj1brdKOtgZmr5197d0E3g9LYkVAAp7l9mziEcIxaiZog0yVHvKNqUCPxlBxH0LboVyZ3LpKJ/8Ow1ZGzgwQ96MEdLdaxRXye61zE0p+NolJ00xD5glgBwAhfVBPtHAq2srY7sw2jNx6BkgvPu0+fJOBq+dDiTz8XcwuHKy/7L+syKKm1naHs X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3860c62b-1c32-41ea-8628-08dcebf7413a X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB7065.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2024 02:23:56.6109 (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: 7NrZjCPv3nS4jcx9PPPwaR3fpSNLnS+HMMFND1BiV17yuURAtrSxdwRdsQ61RSQGkcUVNk2TebHuhMqtox2BdQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9378 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 Mon Oct 14 18:24:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pengfei Li X-Patchwork-Id: 13834082 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2078.outbound.protection.outlook.com [40.107.22.78]) (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 2F828136353; Mon, 14 Oct 2024 02:24:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.78 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728872647; cv=fail; b=j4XzmzDE1Ub3aNM0eqnghBaOhM7kDge+SRovjAux7FaQvthbENpXu9p7yQvcvsOXqoduv4otQuvOFPB8KMGZRuTBksB25l4TNiwUIxnNN9AIlOxT/DoXctBSah5Y1dgraB2Wji78eOPXpT2NHsFNWh8KJf1xzGdqIRQMA5TsymA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728872647; c=relaxed/simple; bh=0tK5pxzW6EX1Yt9NnGPlWdu+lCZB1stadVajiiZ7Joo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=gZQh2F8oTOvJRNmpAe/rvzdwkibCpnp/1OwQi4yIcZSbg3KzNnzGMjlG4k5xRc1FWrXeAAYtHSZbKJD15yBlFBf5j4mYpiiamLqR4vWBrRdWZiOuldHyB7ij6es8QLe3YRQGo1ui48DHozH3tnpFMIFoMsKMEYtWN7HTX6k57Js= 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=g340pS4H; arc=fail smtp.client-ip=40.107.22.78 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="g340pS4H" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=iWQJriXLMkzI8sBwsyvJIxs6fegy3ek91ZqJeC5NwjL6kpAQOfjGsq2E40rJG1kxoZlv2iQlDjdXUoQnCSU9EvgCnL300PTdrp4LyMSy8S5rp9fgs1bL4y5vkCu/qqZUN5bElvpBGkwlXSlReJ9C4SGIPLdqH5hTHmX/02vW7CD8XkHpLIbIU9Tzwn4NKzOrFEXJe85geUIYHA32u25fXBcPxvov5dwh3z0ZvWycsDVxaREtub5G5GxRVuzIfnVnOQP+Jy2QbcA3HjdrdwvWUxhy0NUTkw2ZownssZL1hceY27zzPPh/BzatO9SVjPw5DU3zJWWMS+Q9py/057zbrA== 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=JRz9LDeDCS8uHYwuZ5jm+hLyanYM/G7FTb4tvvbVrH8=; b=UgBxb6UoKhWszzuEE+KeRgpyNTOUZnbsDlA1MPf9x0B3yrFgZ2L4NiSjMMzpFt/wpKSxAbb1K0+MIP+NCtTo6eRkIz9dPgdSeuvNlK8g0kyeJ/SNDbxwCLeu20fRWU6szc1Q/iY0SMpvFJ+m5ojqID9UjJ0FRjshVwqLQS+1sEHdBokgUWHYvPrZ1RJSDcDktbriCYHrlxGLtbdOaG/2cEGxz/jTccHO6DjTyeqtrmJvc5tzfjR5Y9vz9vHCDUug+Oucm/SPkh3nVea6TuVDmt9L/a82oFqyR4cN4qsD5Q11qhsVnjw6EzrIfXNKrtVunj/GxLkBb8B24Jid+P6MuA== 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=JRz9LDeDCS8uHYwuZ5jm+hLyanYM/G7FTb4tvvbVrH8=; b=g340pS4HNcptBCcZANFh+QDKYPJfQvUb5QA/QQHgBMWVB2r+g39DuqaGBUqO8m6TjLxB4bIki6OF7Dsb4VySpDVGpJohRP47zaRQZ+Lzk3fqNamKRSELQGqts0psSbBi1+f66vWqL2HZ6OqmSsdSxuh/H75D2IepPRYd7mnzQqTP7LhVifLjlOvTHzS2EBBWX9GG/76xJhtn8tu78DIdJIjDQNcZpTfU3MylHYv4Ar9n8NQmmsTQNwpR+WWUoqNCmNcVIslhKGqIj4gs4TN69LI2plbsE4+ZqyUEiDUmgDhuuDRtxQ8UQF6Ch3Ybs9HXvg6f6NC2S/tgcLDcO/Jxfg== 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 DB9PR04MB9378.eurprd04.prod.outlook.com (2603:10a6:10:36a::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.24; Mon, 14 Oct 2024 02:24:02 +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.8048.020; Mon, 14 Oct 2024 02:24:02 +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 v4 4/4] clk: imx: add i.MX91 clk Date: Mon, 14 Oct 2024 11:24:38 -0700 Message-Id: <20241014182438.732444-5-pengfei.li_1@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241014182438.732444-1-pengfei.li_1@nxp.com> References: <20241014182438.732444-1-pengfei.li_1@nxp.com> X-ClientProxiedBy: SI2PR02CA0040.apcprd02.prod.outlook.com (2603:1096:4:196::6) To DB8PR04MB7065.eurprd04.prod.outlook.com (2603:10a6:10:127::9) Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB8PR04MB7065:EE_|DB9PR04MB9378:EE_ X-MS-Office365-Filtering-Correlation-Id: ae3ac55f-d861-4a48-ba0a-08dcebf744c1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: wq9i2X3A/8a87MF8c/y01fat6fawaQNtZfZhdjnbwUVdrGNfPbBpN0yJanTDImh9WCaD4b0cL31cuN+aRyrxnzqjIdROl0sMS+iWzMFiKObsOxMOVR90bCHciHUaRMzzP04RWxx0dGdUWFnY0WX7PUEmWX9fPZzDjKGXXw8LG7R6ydb1Prj4lQai9cfvUEuReJFTLdsQPSiQIi3jvShEXQouaTREtvgTHgoUg52OW5PCLktwvAUKUaffUyBybJQ8pwt3zt2jgTCBDXdL8ieuBepc0LGr78btAGoVp3i7Pb7DvPk+qDdmx74hmTqQ/0wGxaO47grXcsPDXDHzO1wBel4Km3JV62+zlvWNu5zK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urprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(366016)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: RgtPlznmnI+uwiWsOMOHFiB2nIt2PDwvCcLgo/4Tbrxx7LXsV1FLCLhP0o9Zr7GRcXzTFJE0LHLpcIjU7ix2zod/Bk5NxL7M8UlEmJuQzWZY4D+9cnbJReFvYpYFKmL0wBdk+kTSmP2/8xixS2/v0jN2k2PQUWabGDgWx3nwSe0/rV0aPVAxkBdq1UWrDKe/AgR3sG56KHm5D76mRYxUFS423KzTN0JEwAHF0hfQmuKvgf4BM9GJ6LvsqI66Hm2NqHc54Ab8mMPCbX1H7uWU6TLFrxu4WV867eo0l/1GRrXWDee+C+k3R47b6HS3iDGcBerelh8hQShqDIu0Ov6XjJW8ZHn1w7+kQWZuJ9h3vlLFVthy8OdyPvWQQATHUyl5sJiAAq9DoAuCXrDvwPGtdqJXujOycMaE2YnDDP1P0rz7wPuDJw2C4Md06omUeVj9Pino442oFDLjz3ouXAeUklTUfFiIHYpGMjAxA6jyn+5QucYE0WwrZ8xttBbgRJYIauJmbbfJxyZ9zXBGg246LqxH9cMDQ3kmseZqCpkRBB5VOzXP34lGj6ybsnIh1hSUA31WYEQbjqH2FLhjaApESDoC6sTMPQ83hflrMkCY/zYC3R3sHCPAyAiJaHam0vJEC2KCo/0gA3HxTAvUJc4kHCP1cKXxpwqUJIQzv1FLLra2BlPdLGbwlvRrE5AfX6FhWPqMD9lLfedSv1stFQBdwTP2eZJpRgu8hCiDqK82OeuGij9v0NgVlQ9j8epEyr5HaecgN2HYfiQ8m1XfbBRBne4OQb0GpcY+Sm9SWX2ydUxUGLyrUYzsiv0UZI+/0Vpc3/YyU/ALhrOkQzKT0gxZ88NJSRqMQmrVRVIsWids+wG1tZXf8DnGyT/KWeYGxuI77gdrdDbfEnjMhb7HT++04qtlP+mEYYnwZM7Dtu5n8G9d1j+xLAfWINxx+gSz6Lf00+Pww/rFM0HPj3CIG7xgViE8GZlGMRa/URkGmPujD+WBohcL3HOHXtwAV1zSOe2rOjMHbgTrNTgJxaa0NCJG3MiOkF5rRKG+LCZB6nypcoP2ys9vUoW0dsoAUfOQZHOuOiABkFNSD47rJPM2+BPNyC6eGet27wIVejxz5UT1M9c++PF5oF9W3fFHe8XEzUA25GvVpPpnQsHFpuN8Cb37eMGamUD+ACXcKxisDRGI24eR/gwa6FhOVpK05Lxm/nT+ZI32iGrBms9p6345XKDEymDmWRT5IXzBLxj2JZYKx8IXedmswZDjwUbM54cRW4zKTHyYuSApVr9meW+iiFgJCPb9IiGQ1vf4JfDZP7v21MDgZatMu0QjteCenAJIujw1NcJnB/J0HQzONpS5/ICulw0QnxQYSYNNXALAU3WUs/IHxPZhrPpPp/vYDoui9qeQQU997AmLqhFejpjqwxn1AZjmyLyzTqd3D3yZbtXhzSfY9BgXPODqzG7I91nXwtQIQ73N209wLqCBHfdeuUMGiNRmGH6pM8srzja8TXuSKYl79ZAWNrSf3MuaR7EVNZnvnfp0LoHWwYxKSCNRKGLbWxe3GcTEg2e1S6zT5FGm2sU/I1nYf9g3IkvefQ86uXxt X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ae3ac55f-d861-4a48-ba0a-08dcebf744c1 X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB7065.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2024 02:24:02.6365 (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: T7ldV/pTBksyiTYovdiIL0te5E1fGSqTxijiRzB1EkC6xD7Vkl1OZwrGHbisYZvx0D6FFjSHaatPgN3QtOcvmg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9378 Add i.MX91 clk driver which reuses the 93 driver and removes some clks. Signed-off-by: Pengfei Li Reviewed-by: Peng Fan --- drivers/clk/imx/clk-imx93.c | 64 +++++++++++++++++++++++-------------- 1 file changed, 40 insertions(+), 24 deletions(-) diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c index c8b65146e76e..4d1123f51903 100644 --- a/drivers/clk/imx/clk-imx93.c +++ b/drivers/clk/imx/clk-imx93.c @@ -15,7 +15,11 @@ #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 +59,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 +70,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 +127,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 +144,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 +165,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 +255,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 +278,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 +328,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 +371,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);