From patchwork Mon Jul 29 01:27:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Fang X-Patchwork-Id: 13744135 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 32472C3DA64 for ; Mon, 29 Jul 2024 01:43:06 +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:References:In-Reply-To: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:List-Owner; bh=eUJji3CwxHa2eKv1eEevXAwfhAeqyeO+Z4rFtAH5qMw=; b=V8q1dWQvCWW3Ip60LqdvLaW3hX IffIk56HVPbBT8BQ1LWzUfxtaWRj/rtBU6/vgCcYuzUDQAwLxmt0M23qMUqpZw2P/FomDOZls3xxA 2TlbNKsdATULSyR1+DkPBQeT69hsaZSi2Mehat8bYwzmK9scjDP+KR7DUgMrUmeBzCa6hXXjkxvXa lh1hUvE9e2axoGrJqtUa7isir9ojslL3+zb/zeRPacr5WAtI1FXbUXGmCG2QOdw4mbZ12NyA3JEXv WEsEmZ0e0kG5j68MV1wD1y9aoOSEKlh+ie2viNrltOyZWDsJGn+OKUooyZVh+2jS8VU6+SzlNoisZ 3mpUguvw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYFPb-00000009ctD-1FuG; Mon, 29 Jul 2024 01:42:55 +0000 Received: from mail-westeuropeazlp170110003.outbound.protection.outlook.com ([2a01:111:f403:c201::3] helo=AS8PR04CU009.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYFOI-00000009cSJ-31O7 for linux-arm-kernel@lists.infradead.org; Mon, 29 Jul 2024 01:41:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=a7kxFdCvHwCNORTTYOKKT/LN4iATLvAT8neX5uF0YumEfRIdItcjoa3hxzwjrW8XzUkFUHIw3Km0L8F0N9Bvt/Pgn/gu/HSM/g5Ok/aYqASbGWh9KEEseUQoSCL3ojvcs0z/H1BWsfpRGlvQEqHBDz7BNBmhXqfcOSQ5n8Q//TYTc4JdVepH4RkEYq3sFaD56Gfhm4q5EGjHzMk+h6UzK48vH0OF6Qg8iBtIQSpJQbRaE1YCBdCBddQLmE2xE+gPkwishnPK+QtGDPVZ+Yr6ulLVi+7ZiZFghNVWDdX8oCo5viCcRzl+wS6uiaFOueseEQ34Z3pQHbaUQL3e0DUj3Q== 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=eUJji3CwxHa2eKv1eEevXAwfhAeqyeO+Z4rFtAH5qMw=; b=IQcaocvewvSTdU3kz1bwTVtTQ3yVwBP5h1Iqy2wqGIQkhVF1nNyA1zyb/VkFbxGRUC/IQMvEh7U5zU48Z2cmNeq7IzOKzYKgRPFpsvyqvC3SEuY7scOefsFshhANPNC3O00NdyD7zW5EksMWgWK7uj2lptqRByumduCjrHvaG1bL5AXeL3BFbIKd2C0OIXNKK5HxmIjNXkzxCNiRr1pxblegergya7uV55KKfq4b3E5yKbmXOeK7UZ40YVbjv7YkNnq7dNPhZJE7m1QtapoyrNhnAhzZt28won9X95CK1fiXA8Ct0lMJCCo80bqEn+xdGSWJ/GjnmVmDOGC3u0r14w== 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=eUJji3CwxHa2eKv1eEevXAwfhAeqyeO+Z4rFtAH5qMw=; b=fBNUbU6d5gyUtibaGYdYRePd+tLoj9lpb/C7A7WKbu3IPbtjxL6BcBtd21b9AwLnonE2pMafasDDtdDnQ2C+ReCtUSPwPLkkqhEE0CKn+Ur8zL1ggi4f9YrcUjL4Gp3oyHPph0NTJnjJbITr1tmlz3R7s7sA/x4HsgkeCREF+z+elYRVPBH2GJVnpcAjP8Jtx+xCWr5YiVXEzRUDFmQ666LNN6PgZENqclHF9KEvu4rz/V1VR2GtHBbbiM+DkofhiFaI2LjDYbD3kImr3iM++Il8lWY1aKZ3gBDI4Zcg4VmZ/e4Xvo3GoPKShHI5TVSyjoLfR8JVdHLsd1BNkTFRLg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) by DBBPR04MB7610.eurprd04.prod.outlook.com (2603:10a6:10:1f6::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Mon, 29 Jul 2024 01:41:31 +0000 Received: from PAXPR04MB8510.eurprd04.prod.outlook.com ([fe80::a7c2:e2fa:8e04:40db]) by PAXPR04MB8510.eurprd04.prod.outlook.com ([fe80::a7c2:e2fa:8e04:40db%6]) with mapi id 15.20.7784.017; Mon, 29 Jul 2024 01:41:31 +0000 From: Wei Fang To: mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, abelvesa@kernel.org, peng.fan@nxp.com Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 RESEND 3/4] clk: imx95: enable the clock of NETCMIX block control Date: Mon, 29 Jul 2024 09:27:55 +0800 Message-Id: <20240729012756.3686758-4-wei.fang@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240729012756.3686758-1-wei.fang@nxp.com> References: <20240729012756.3686758-1-wei.fang@nxp.com> X-ClientProxiedBy: SI2PR02CA0034.apcprd02.prod.outlook.com (2603:1096:4:195::9) To PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8510:EE_|DBBPR04MB7610:EE_ X-MS-Office365-Filtering-Correlation-Id: cc181883-95e1-4c58-6f62-08dcaf6f9228 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|7416014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: 1xQSwh/t+5qEo8jJc0/jOVI/RJeda0XKFrpRc4YEebiwtsg9cRYygbBonDZGKL9uYoedfJJV2TVoTZ3jt1/nGwZJ5l2bxuFNr0yrVEHIgBKA8d95SUNSmz+r7komhuFUQlZQW4OuiMLBtnu+EvJaFIdfSE4AdxcNuX3PMEF1lWKpGDI5AASEjOfrYBHAE6Y7Yh6mvM8HEG/sRPCe2ISPvcrGfJDzifzfzmhvyY8sDs/0MPRTodHqR5MzWjKz2kUaYw8pKgww51Oe+m2ObtIbqRfUZLAwIDlWzdlUmQwpwQ2wWRc0vSkJcRJ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aw4papWYnx+p/DzRgrSdN4Kr+VNBW9w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8510.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(7416014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Cz8txV3Hi7nipGkJfZcYq/DA+nwK63ts3VY3ADtNWwQkjdINBpcLZLRcaZ6h78gCYgo17IrLy9Ku11lJluIBWh6LtnzFJhQE/StJvaIFo8Ox1guydEATGiVndgLTLsQT4ynFMonL0CcK1siIHVWZTOAFLC6NcPiiDAlArvu7krU7cemXrapIHNI+/76tC0fBpALJVdhNBrDtSMfLqM1OGA0WnBRecUAyT1lkgaajWyGu1bdOAGtho3i2KPEyHpEnYjz29TaHx4ODrLFOZ6aozh9zIKfymTeMnd1WNSsICG3inNZ1A5A6MwMHzaz00pBxHq4FY0Mic9f6WjzjNtKu+Zqkcph6fPlzOrzpKKfruUxoHw617Q2bEgDK/5STb62l5/pcxnt8PBNdXw/qSAIXtrJ7iREyjSZkJpm/f9KX4dJ4PcMvb8PZu9DZhe2qKfE1S+H6rrUdUoeCjt0Gmi8ioi27n3B3WcuIK02MbnU+TGri5+rd5tXvrKoDQOhX2SP1zrH6SYgCrRSzVs1+fLj8qoxcRVJO6GtUGJHXT1qYCb7cKFzV3Wk6Ca1zXUsf3PRG+29DgyptEYFWOneMq7R+FsJyVNfgbBevzPGqjyHSW58WMi4cufjufWap20djp1Hh5ZKgdHRi7ZrHowRIRR+VGhPTk5bSsrgooe6DtBEoFKcKZE3fao2LA7RoEiuCBML0LxDuPTmoMTM/1//oKyFACsH+YML6acHBj3Kg7+468jaWpoIY9QDmbbICyyyqd39n0eD+PxNA8bZllESNGSQTcyLaMv81PziX9piWaPuqi0NeQSj/dLvW7X4hoPPPN0Gkc/EuE5ldmuQ7R65B3WebdM+RUQYbtT8uT3wCNhW/kT72Tf8gdeKPyGwVsuvgPhjQxv7kALMKgLEpbLhx9MoD+/6bivuYobLhTF7hbsgtxrPf1KAxdRcK5CZW4K14O+o0y4CS+XtqfK8S1xcUqXNYE3vweJcWuONO33PtZcKPnZ6qi4vL+cNzgtbVey3sqSTywQvRjFDoJHKF/N7E70Y6Vi6mBRJrvnUefRYRr9nuuaDrXgYAeBNf98UYLlN7I8ql8CQVKDyfbPKXa7QVdUnEX/7mMuTuTT18mPxSpfeIBU9KsgY2SpvuOLFZdZPOmDcFzBP0P+zmqd2k75tu3fc3RHWQkv6R10gsVKImg6PbLknNlX6RErXfIFZWi1E5+PHTVE0I7DT4jM635XXMcfTPTkCz/m+0LNZVyQ1X8lw8o0CY0V/69iFnZkBIRFUZQFKbPhNUVucUoaOQq2macHDlDJVSP8WZRO1DSnc/Yezt+j94FFm5HDFSO7vbr3aElCcarq2oSaOzIPQ3gbQ3xkSajqYMRKj0OhAgMG+wJcY28tnh+6vX/bYX31SYwCu0OBFq8WPAJxNxwxImDwdaJkIu23oYb1gEd/Bwf3TZjAWFeDUrmByXuUyQFFVqYaSN3fyNkgXzbEVu3d5x50iCdYLA6R2n+wHiWI1fGjjO0oZ3WLARWqWq1XifTDlbNchmRwcwgDiZkzBHHXuVhysYT1VZ+o8QKt6fZKAjhb7OY9019kACL40vfTHefELiLEuZKFAA X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cc181883-95e1-4c58-6f62-08dcaf6f9228 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8510.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2024 01:41:31.3106 (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: 22oZwAItNg6MFKwSkcaYUtiXu4K8UwXbZ5V1O/F2wJ0B9iYiGFhVD1w55duAmDd3eGbKX3B+sRLVbnTtBcN+6w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7610 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240728_184134_789922_E644F29B X-CRM114-Status: GOOD ( 13.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The NETCMIX block control consists of registers for configuration of peripherals in the NETC domain, so enable the clock of NETCMIX to support the configuration. Signed-off-by: Wei Fang Reviewed-by: Peng Fan --- drivers/clk/imx/clk-imx95-blk-ctl.c | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/drivers/clk/imx/clk-imx95-blk-ctl.c b/drivers/clk/imx/clk-imx95-blk-ctl.c index 74f595f9e5e3..19a62da74be4 100644 --- a/drivers/clk/imx/clk-imx95-blk-ctl.c +++ b/drivers/clk/imx/clk-imx95-blk-ctl.c @@ -248,6 +248,35 @@ static const struct imx95_blk_ctl_dev_data dispmix_csr_dev_data = { .clk_reg_offset = 0, }; +static const struct imx95_blk_ctl_clk_dev_data netxmix_clk_dev_data[] = { + [IMX95_CLK_NETCMIX_ENETC0_RMII] = { + .name = "enetc0_rmii_sel", + .parent_names = (const char *[]){"ext_enetref", "enetref"}, + .num_parents = 2, + .reg = 4, + .bit_idx = 5, + .bit_width = 1, + .type = CLK_MUX, + .flags = CLK_SET_RATE_NO_REPARENT | CLK_SET_RATE_PARENT, + }, + [IMX95_CLK_NETCMIX_ENETC1_RMII] = { + .name = "enetc1_rmii_sel", + .parent_names = (const char *[]){"ext_enetref", "enetref"}, + .num_parents = 2, + .reg = 4, + .bit_idx = 10, + .bit_width = 1, + .type = CLK_MUX, + .flags = CLK_SET_RATE_NO_REPARENT | CLK_SET_RATE_PARENT, + }, +}; + +static const struct imx95_blk_ctl_dev_data netcmix_dev_data = { + .num_clks = ARRAY_SIZE(netxmix_clk_dev_data), + .clk_dev_data = netxmix_clk_dev_data, + .clk_reg_offset = 0, +}; + static int imx95_bc_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -419,6 +448,7 @@ static const struct of_device_id imx95_bc_of_match[] = { { .compatible = "nxp,imx95-lvds-csr", .data = &lvds_csr_dev_data }, { .compatible = "nxp,imx95-display-csr", .data = &dispmix_csr_dev_data }, { .compatible = "nxp,imx95-vpu-csr", .data = &vpublk_dev_data }, + { .compatible = "nxp,imx95-netcmix-blk-ctrl", .data = &netcmix_dev_data}, { /* Sentinel */ }, }; MODULE_DEVICE_TABLE(of, imx95_bc_of_match);