From patchwork Wed Dec 18 06:17:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Fang X-Patchwork-Id: 13913096 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 3782BE77183 for ; Wed, 18 Dec 2024 06:37:10 +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=xg6RsNj47F9ldSala7Vn8qF/dDp/5Z6TQWPz1iCRSUQ=; b=rBCe6tYGtfOZ8z0tbxktTFrV0b i4Huw1hEbEDvYi7XkzNSET2i5d8WDUoO8GArZODpKPGUDK81KrI7UyvN0UVBO2KxBNKdmqqMw+xxM qilljht8gALpdE7Ho0P3fVTdGhkvii//cS7kiVIKtG2aaXrI4d0g0Z2CY3DpZYmArit5o/9RpktwM 8Hqo5qsbLeo4j4vCcQI20Pb2MvsNXuACxZgBUNpKdjy1JS1EgQjBlLAfdRF8Y4YIJPeOvvAIyrEZC 5ClhQUf+mlu1gIwJReXpL1L7qnYryQad2vaIL+bJNMYTqG9HxJAkGsjGaKh94rq7dTwnUiyIn60lQ 5ZVkcGDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tNng2-0000000Fjza-2DDF; Wed, 18 Dec 2024 06:36:58 +0000 Received: from mail-am0eur02on2062a.outbound.protection.outlook.com ([2a01:111:f403:2606::62a] helo=EUR02-AM0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tNncu-0000000FjOW-0vyW for linux-arm-kernel@lists.infradead.org; Wed, 18 Dec 2024 06:33:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rklJfMLQktlVl0pLaN3jNLeyuOh4cTco37xoBYiKCmsvl0H9SFJAGpgsVuub/QYqsZP0N5AXxUN6OYVu0qO4QGzC5t8lcKcsFTudRzlx1C6CkCZGh19wZ/DcBEnG6p/iNVBw/FKggw+yOpTlxxXQg00DGhneUL2buXq7Dge0tuPXeFW3R0Qs6Oqf19k6qhcKpSFwL4F16FeWa/mzbOmU2TSjmhw1eFD3kCXT4Ue38iLtpU57N7rppGsNbEVm5yIcj0IlSk6ZcRYu6tTFUIuYPRGFTTiPOnkEom5zsXz8l7zSlQEIiLWZQPN9IfFOR1mTT0HBMy/v+v2/TeXnsxI4jQ== 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=xg6RsNj47F9ldSala7Vn8qF/dDp/5Z6TQWPz1iCRSUQ=; b=ESE3ws/vNQBJSLpSoRl2TOD2bdUKjrc8osBD0A/mo4qf2Z5U9dLLiMSBUU/lEH3enwXppcavreXi0DfA2UZ5iHTvyqE9Wc3FZAUr5sc1vN3wG9gids05RQCAUfsSb6v6ogSBAldYJD3g8Ol+MfBptLC2EtqXG1USazKjOg75pQC30qWfEZiFpoj+TR771CmB/fsDHqKyOkF7MXKqMm0hygJnLws3NGOe4OgYaOnWQhe6M5iKJ/VFcJ0K3ZHTbwjseXgOHLMXGEV+XFbnlA8CyxypwO/V0mQO7kBBm1Rd0aeXH6ijR+dUS6SN+oAvnKntc/amXt4NJQXevpSG+z9P5A== 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=xg6RsNj47F9ldSala7Vn8qF/dDp/5Z6TQWPz1iCRSUQ=; b=CeZjehNntSgift12+twxBCENqvEzr9BWROg8W+qV3wdVtrFOQLTJkF9SgyAbiM2lExkvT3muHa43BACvXawHh/Jc36s8p0dgAT6mFGobsU12lUTuuXkt1rGS7MkngugYJseuzRKG6gWHyuynODrh8ahmLLmpMexpbQHrVEtBYvoCL6r7+7h16a4si3FPeXU2DNN0xC3R8P0wvtW0nqZ4KHAfnU/NZAlJndlUg8ZtCChSFZCLo29g4IlxvJzpSt6BT90GhKIZQtu1ZO0Z4tLDnXMxvr+xQ8z0wi/mGTmBoJuwpcODoP+t3ScRmVElLRCzdve/NUyqS+DivQAOyWJuQw== 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 AS8PR04MB9192.eurprd04.prod.outlook.com (2603:10a6:20b:44f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.13; Wed, 18 Dec 2024 06:33:41 +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.8272.005; Wed, 18 Dec 2024 06:33:41 +0000 From: Wei Fang To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, frank.li@nxp.com Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: imx95: add ENETC 0 support Date: Wed, 18 Dec 2024 14:17:25 +0800 Message-Id: <20241218061725.1608466-3-wei.fang@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241218061725.1608466-1-wei.fang@nxp.com> References: <20241218061725.1608466-1-wei.fang@nxp.com> X-ClientProxiedBy: SI1PR02CA0060.apcprd02.prod.outlook.com (2603:1096:4:1f5::17) To PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8510:EE_|AS8PR04MB9192:EE_ X-MS-Office365-Filtering-Correlation-Id: fc0fb76e-d82a-40e6-4eb7-08dd1f2de9c6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|7416014|52116014|366016|38350700014; X-Microsoft-Antispam-Message-Info: L6kgzPeSf4e27OhXjvyRnzItMGJ1UkuZpXcK2Gs7ANMJMyI9G72K892MWm9hOpzfLrPGia+F4INUpaW2KvGyGb/PX7Lk9yTChkq8jElcJpyHa+DZNEb1g1r/aiHMorCYG5Lrb6YvZbCmw3bfLcSD1DDbPqZvpHxJ/JqwZPGWxE7BadtYG7+teVb8uoq7xqgOgkayQwtwsOvPHMuJk6kLYoui4gZ9IcWZVhety+ROoUxZCfi+WHbftTGRlsC5qDlhq3MNDK+4nBUF/I0dk53t5H01Tcw8QFhXUTTKhzFXSyKDiuXH/8JWFAmNmptgq4Swl20Z0fE8aqaZPLPac18BRDLL2M41jF/OZC0CtS6N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Jx/f1RWUT69D19qnqT/O 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)(1800799024)(376014)(7416014)(52116014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: aRsmFnoqTLZieXnbAx0Zhz7o1j7a2cDQ+2SmnoWtyehSF2Jj2JSSV1plwp7VHVkurS34WyEU9D9BZ6a+VWKSd3xEcCF2bo9Q+Sp5+a2pPc7h+tgO6hvwu+Zmt4GgN7NrICngLiLoyC5ZGz7PQ70n3Y7/9+dlju3WRvP83eQuNpuQqDGKsvItIAiUCTwavJzw5D6hCiXgS6k0OkBRCopKrcUawD2O7gUhDbsZoslubceRq4QRFXOrS9RWYBM+riEUdYwhbRHQ3pFiqTn+VxaYUSiwrT4rngWJHbmJbowWN1W8kZOgGj2oNydZfQGK/qsgTqV5q453FZGS7OQeE1poNox0EGm5NwJYJzjRVdJOMbRkORCWIAcnCi3PivlnyAo+samx40Lf0w4ehp1gZXPEsOaZ4N6SfG/B7NhB152LoHZ2gh7Vv0UgsN4gYkc/Es4/WStoZs30vBlb+YXiOYHp092o78a/L33jta1IUb+GhsB9u+BUjxgT7dgcgmX06BfZ4pZS/R4Jx5mMTsS14bTlxZQaaPpxFDBULbwSNacU7movClxucrKwqgKKgCZVRD32VTek1gaI5SoyDfYtSzK6IfUbG2z2ypPeeD8P5oLxIX1ntTTGEEz77a9m5c6Pr+6WaB7ZxNjn9y/wEeE772fJVK8W4XUnM6brb/RbcOWXkFUbwcSlxwDhxoUTWcmQvzyPSC7Ynp7LNu+l5bHhYNqGa3Cf8BwTI9NVepAetn8RlFXxPly0ZCTGXcRDLMtHVnInvz2zTqZzce4v9mX2w9wfUuKWtRWMUpi8cWdDWuwbDMA+frJ3GARl/UvUU2I0tN4l1yrkiovYKbkPTfpzUy5APk8XIOeuXsYOPdDZpucgYTz3XJu1IzqKI+s7e/vy4w8shI/jz+UJy9D7QfMvJepzfiaN5L4PzTD/8PihvxoF26wIJD4c65lQmE1R8HDUXUuT/h6R5/aJ7yxbh7afbicZ3Y+ytZWMcq8MguXSW3PYt6iHxl/6ICykjF1HFs+RqV3F3yzRI9Fbt2y5xpqBW+3jnNNShuqsWuBg6zY8tszJNWK4maAOfpxDRljdpXHgi6rvDnraafganb5/0jrnNvi6Ha298ECOZy9hNhwUCJ/XUTTnUnrq3X8vDnE0IO4M6AfTPYu+xS1DD8NokUj8Wp4ycF+Jg9XnXRHcYTYtXP5GX1mQhmMf87PkPTswRutbU3yUOhNGUBiVgJNlNVoaC8karJQBE6QzH8J8tOQgzFywAYAkdtBYTafJez7xYqaID8uIrkRbP2t505WOarvdfIQturMm0FrRlUni77dyBj7uX8AnJSpXWEx4gD4fAxUMX5Sv+gYjTtpn9BZzisLJZjdNgiqmK+fNN6TqEv83tvhQP1sVrNVXh1iequaiW5acS3tHfpSh5VoOjm22uAJAKTaPv/BmBZ/2B8T3acRj2YZ0uzzQ2lrB/Mkewjfq37VvBSziUlpXcyzoxwRilK5UqT8iuWVL8zeXUgODTp0jGUzWj9h36VbhsinzhIT+RBckZN5irrgfMlVThd1MaAsMJi1W2K7WIYB4ITla/f1I2OSdamTTkq5vmi/VJ8t1zuUIWvUn X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fc0fb76e-d82a-40e6-4eb7-08dd1f2de9c6 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8510.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2024 06:33:41.4301 (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: Q/gyAjyj8vbSG7c5RPiiPAvg57ViJqOc8i4QhsYcVgdDGm7efU8CZ27GjXXGZCnAjIgurAdtiE8YIcHi8nRfEg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9192 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241217_223344_260874_61AB592B X-CRM114-Status: GOOD ( 10.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add ENETC 0 (1G ethernet port) support for i.MX95-19x19-EVK board. In addition, because all ENETC instances share MDIO bus, so enable EMDIO at the same time. Signed-off-by: Wei Fang --- .../boot/dts/freescale/imx95-19x19-evk.dts | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts index 6086cb7fa5a0..e838234c8317 100644 --- a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts @@ -38,6 +38,7 @@ aliases { mmc0 = &usdhc1; mmc1 = &usdhc2; serial0 = &lpuart1; + ethernet0 = &enetc_port0; }; bt_sco_codec: audio-codec-bt-sco { @@ -428,6 +429,33 @@ &wdog3 { status = "okay"; }; +&netcmix_blk_ctrl { + status = "okay"; +}; + +&netc_blk_ctrl { + status = "okay"; +}; + +&enetc_port0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_enetc0>; + phy-handle = <ðphy0>; + phy-mode = "rgmii-id"; + status = "okay"; +}; + +&netc_emdio { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_emdio>; + status = "okay"; + + ethphy0: ethernet-phy@1 { + reg = <1>; + realtek,clkout-disable; + }; +}; + &scmi_iomuxc { pinctrl_flexspi1: flexspi1grp { fsl,pins = < @@ -665,6 +693,30 @@ IMX95_PAD_SD2_DATA3__USDHC2_DATA3 0x13fe IMX95_PAD_SD2_VSELECT__USDHC2_VSELECT 0x51e >; }; + + pinctrl_enetc0: enetc0grp { + fsl,pins = < + IMX95_PAD_ENET1_TD3__NETCMIX_TOP_ETH0_RGMII_TD3 0x57e + IMX95_PAD_ENET1_TD2__NETCMIX_TOP_ETH0_RGMII_TD2 0x57e + IMX95_PAD_ENET1_TD1__NETCMIX_TOP_ETH0_RGMII_TD1 0x57e + IMX95_PAD_ENET1_TD0__NETCMIX_TOP_ETH0_RGMII_TD0 0x57e + IMX95_PAD_ENET1_TX_CTL__NETCMIX_TOP_ETH0_RGMII_TX_CTL 0x57e + IMX95_PAD_ENET1_TXC__NETCMIX_TOP_ETH0_RGMII_TX_CLK 0x58e + IMX95_PAD_ENET1_RX_CTL__NETCMIX_TOP_ETH0_RGMII_RX_CTL 0x57e + IMX95_PAD_ENET1_RXC__NETCMIX_TOP_ETH0_RGMII_RX_CLK 0x58e + IMX95_PAD_ENET1_RD0__NETCMIX_TOP_ETH0_RGMII_RD0 0x57e + IMX95_PAD_ENET1_RD1__NETCMIX_TOP_ETH0_RGMII_RD1 0x57e + IMX95_PAD_ENET1_RD2__NETCMIX_TOP_ETH0_RGMII_RD2 0x57e + IMX95_PAD_ENET1_RD3__NETCMIX_TOP_ETH0_RGMII_RD3 0x57e + >; + }; + + pinctrl_emdio: emdiogrp{ + fsl,pins = < + IMX95_PAD_ENET1_MDC__NETCMIX_TOP_NETC_MDC 0x57e + IMX95_PAD_ENET1_MDIO__NETCMIX_TOP_NETC_MDIO 0x97e + >; + }; }; &thermal_zones {