From patchwork Thu Dec 19 06:13:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Fang X-Patchwork-Id: 13914527 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2055.outbound.protection.outlook.com [40.107.20.55]) (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 F23782185BB for ; Thu, 19 Dec 2024 06:29:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734589793; cv=fail; b=o1X2w/X3D7GaFZ2tBQJOCto6C2ndpLjIMzmsIvG21UttDGQwI5K3c8gnW/DcwI7xBrPvk9nXKnBXq0XIUIIPRWcFLQWlagLBUrWB/aIm9nXdp9As8NzndWxFwGw/F7u/fkh+zzBkhZ3jUpOxgJYXaKBRNOvBPMAKjc8ylObUaj0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734589793; c=relaxed/simple; bh=S3mxJk7cUd78KxtFy8wwDF9eXP3MVre2TZlhCZ/uRyY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=l0UvSCoBNeAH4+tWdbg5A/Ic4qHbRTGoSzdXPfe3dC72DRWyhlikd0QOQNWL0VfFV0izTJ0sByjZFCADPlNh7rO+10IYDBNrJWRSldMx2KZEkUB5J95iDCba4g3+LOuceGNRIXoWfx51XT4+edhHhJ0y1YOY+mjTAvJVog/g4M0= 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=ScSR0+d/; arc=fail smtp.client-ip=40.107.20.55 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="ScSR0+d/" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=x6WajQbndf9afZZOO5MygnfiNoEhKL+x3fK/7WQbwhrWtoH/ky9yVwiFDUI2FhLO4GhnszngZAM8UV6fh0iXrXgZkkfk3IkNNl1Etb0tkx9I9wSTZUxYW5ltBTdi6l6cVgX9YstnSOal3KofZHkMWJ9HGt8giZutDeIm2gdkNq3u+igNM+ZXh/xlwxq9SuxbaaOl45oMfzyCsAk9Z84tx9yXAf8U0KdhWzfFgrQas8n6lnSSjqtsODvdkJyJWRtOgB3S9GzuPCrCuIiufUC1ILwMFFPVVwQrIAlli9Ku/sB3KI9slkSHvPTR3hYY1OXSOnOPDLHJnjWJPoeqxmw/xQ== 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=wgHvylmQzIm+01IEHntVj1LxS+bkF+vbHZVZnlGDztg=; b=CDkHc31iOAt07r7UehwhWnLzvMj5uImbx4WVJZyk6pg4TssSQKqtqOFa2WhY8vsUibbeGrXYi7BSaYH3EaKYx/i/gLomiI9nr6Vn8lhHugXDxi5NXBhX+yYP4Vjhsa44A+tnndgFUdgiKELsKdEgOPu5e5EsKutUQnKlUlrnzAAMuLkIHkz+W/dIQd39OD7iTABAabgO7SskItjDruW4fa9TQJwXELkhymchQuJXj20DKxo/70zPoVRKubxkBNqUWFrJnIA9QeQXkqAmvmxluoE1RuTH5vPhE7QqlU+EWe+K8t7LWuH9ejQcE5cu/R+rsnQSa0Whtxybc6UFEBdrzw== 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=wgHvylmQzIm+01IEHntVj1LxS+bkF+vbHZVZnlGDztg=; b=ScSR0+d/GwwWQjwWDo12EiM8qDdI2amPuf7TohaCXFpyyajDsomE1o7mM4rGboExMpIKxm7wC90Wa2OgeHPbCQGI0jmHUe2/Ap3TfF8ie/n4Trl8E86ELmO16ueIZDeJhjWunHEVs0kTRLNOTwdJjM5VfReCUXXJibg5JKlGKbPyF03qHL5y4bDG01s/szfEZVoq2pEFwildbfH7HCIWFXvF6M5mh98d8cG8xYxgZI21vPonhDv/AWQaNxFfh5UY6Sz25GrOPZaQJfqt38hJ6azpbpBehKU2vz06kKNBIuuZDuglWU64e5Q9tRNZ/D/AIh8xcXgNTHY3b1YhVqeQjw== 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 PA4PR04MB7966.eurprd04.prod.outlook.com (2603:10a6:102:c1::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.14; Thu, 19 Dec 2024 06:29:48 +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; Thu, 19 Dec 2024 06:29:48 +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 v2 1/2] arm64: dts: imx95: add NETC related nodes Date: Thu, 19 Dec 2024 14:13:39 +0800 Message-Id: <20241219061340.1633173-2-wei.fang@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241219061340.1633173-1-wei.fang@nxp.com> References: <20241219061340.1633173-1-wei.fang@nxp.com> X-ClientProxiedBy: SG2PR04CA0213.apcprd04.prod.outlook.com (2603:1096:4:187::11) To PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) 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: PAXPR04MB8510:EE_|PA4PR04MB7966:EE_ X-MS-Office365-Filtering-Correlation-Id: c4127de1-989e-437d-3c4a-08dd1ff68978 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|7416014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: EbL2LjOKp88WLLyimv9DapAFYSSwZhd7p3jzoAcOexrlBwrDCuOdMS/Qr0nyHdIdXpTxic5Lg2a6snLQi3eHY0bKg2tapOKFoxsRtx14RW9a1TJdR1uE7cqnLOiCLaakf31E82Sbm7rwK1lrfyz6XDc86618oGYLv0fN+sf5DTJzmcOY/Lr6ftBWx+mdmrbfLI6EyCxLwL1cN7kbhhcmj9++ehTXHxluTZXAA9qNUBwvX609JNVM8zWISwMCnqnDFYZ+L+qHeXi8/7EOY/8xzit5mIEaPXLSxgRTSybW35k9tKP3c2TKSyxiIi7A36/sjK2yIY2X08udXuT96kjgQGBSAOMdTjL7HhwCq8nzlP/DC8GQ/TBYpo+H3vT5waBBWq+gQH+Uy/w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: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)(7416014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: C+9cQrM385yXDVE6r8BX6K6OwdfeRhbi4EmTFHPsgEEx1+AVfEgH44NpXvTMqVKKiVxekqJo7yO3m8Sis69iHfJm7AnvYfh/6KMNkSVRoW46fyV5y/4sQaRde1xWVKqIwhqLkcY4nOlX3YTB6Wb5mqHHG/6Wd3JknoSYvb1g1da8DXHeUteEpG/AAwLMRAnRQHRLQ3x2adrM/BLwfDFogl2ZjM/p9onsRC7LQG2jGa714uI3kxw7RDDMKNa6x4EEiSEEzVKyJwGS2W/eyGmFN1p+Ag3D0reEVKdcE89k95QyEXKr2B8rjSGX5ro2u8Na2nIvl7oB7/31zR/pVf8WesnMGfwKuNLPKyCUwFOYShCF60ziFmNse5L5gqu4vR01A/DgLbg62ipXZagJ5pkBf4xtMmZaDBybuk0095AKT718NDTPWUGWyF+hIxbvJ9Uq6AhZx0zzBNxy4af29oKeDQX+hUj/KbqW6UksLZxb616w6A5+Uv4xEPN94+0MIZp+UIKrmdJmJCsNT/L7E1HA9Sq38+xWxjaZWnQTFqHbHhSYx5ZRAByWMWHSryMCNH9LLoAjexFeHf5+NitRrvBhIuT26zgovubiDlfPwkKMHRFD2HRo+SGjoLlkIMjQl4R9GjqRX/IaRESiBm/y5pcb1paKGYTj0A8w1/0pjfFL4g9eU9Xht+SNuhJ2XKbw9SVzVl4zefasjecgYM946ljM3r8KArU4QPTdLLiEDpVmPqp1ZhOZc8ZT2PrKOFJbV2OHqLouKEiLZ1fh74bbKMguEUwcy3W4+q7u1KMKHS5c0/lkgJNftpM9FFMaQHZeSNbQN+/AESk43fGNhW3uBiCKPsDvE/PSFSNhePdGg88coUSOwvSvD9WIsp9kIVlACGaY18BVliYlrJ7vJxJH4FytZQ2Gykxo3FIj0TaOx5YL2dAH1A7/YysD8Z6iST0yusfuRTGnA16c83Lj6kwuRLuMEXTP7EpgLWD/ooURINmvv01Sgd6GXyAG3oA6LOblanoXRMz5YO6GuNJlqpwx3xWS3sV9SpT7QKHISHkiatYF/p55Xyc5nYfCbZCCVcRQ6yn7EK0pAgUgSY4WMyPfdLGw1+jhXpDOxzzCcSvKwgKK86QKKrhk4+92dQUqDXmCKPRgUMydvQFS9c7eGcwsRSiahU2Qu1YNrLc3i8wIZPB5gtCRS3wG354i6JOX5hdNWD3j+JfZ5KO/17PigYfrWssiXRvumgMWc3Ghy6SfZ0HEOx6rIkZgmbSz6RXjt+70/ECOHibRP0TgHJUAF97KkHZjxbDwb2AhVQ9Wb3UH8WhQ06ul0jLNBE6MF6w9c8aB1S/TbR+CcFUyRVmzfWWQSzGN8WvUi/+NFJxbpbNo2LRUxPHeYBoABElk17ixihLvKA456R6bsgjrw+GpoD3QlzOia8SpWgODAOmG2mRGJFafAfR1XBNYvX2MqdAZMk7sdNs5+Dt0zLbGq+f9cfez//Qyq4xJI3A9bOlnOJMXKiWvJDMFd7o1wHwvjLJf5m7Y/7z/9LPm/FBYzlVKxlPpvQch3jXe+VbgqXTo/sSDWZIrI/E/NbJxlmUcnV2cuZXOl2ow X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c4127de1-989e-437d-3c4a-08dd1ff68978 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8510.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 06:29:48.7711 (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: K7HWApNzBzKdIoUYtO/sjyfIh1a8nu7mIlqxp0e2MKVxRJhReIW/t+9TU5DAkjbnl2X0lUFfzTyv+RV6gg5Xcg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7966 Add NETC related nodes for i.MX95. Signed-off-by: Wei Fang Reviewed-by: Frank Li --- arch/arm64/boot/dts/freescale/imx95.dtsi | 94 ++++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale/imx95.dtsi index e9c7a8265d71..8b0eb1d835e8 100644 --- a/arch/arm64/boot/dts/freescale/imx95.dtsi +++ b/arch/arm64/boot/dts/freescale/imx95.dtsi @@ -1697,10 +1697,104 @@ sai2: sai@4c880000 { status = "disabled"; }; + netc_blk_ctrl: system-controller@4cde0000 { + compatible = "nxp,imx95-netc-blk-ctrl"; + reg = <0x0 0x4cde0000 0x0 0x10000>, + <0x0 0x4cdf0000 0x0 0x10000>, + <0x0 0x4c81000c 0x0 0x18>; + reg-names = "ierb", "prb", "netcmix"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + power-domains = <&scmi_devpd IMX95_PD_NETC>; + assigned-clocks = <&scmi_clk IMX95_CLK_ENET>, + <&scmi_clk IMX95_CLK_ENETREF>; + assigned-clock-parents = <&scmi_clk IMX95_CLK_SYSPLL1_PFD2>, + <&scmi_clk IMX95_CLK_SYSPLL1_PFD0>; + assigned-clock-rates = <666666666>, <250000000>; + clocks = <&scmi_clk IMX95_CLK_ENET>; + clock-names = "ipg"; + status = "disabled"; + + netc_bus0: pcie@4ca00000 { + compatible = "pci-host-ecam-generic"; + reg = <0x0 0x4ca00000 0x0 0x100000>; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + bus-range = <0x0 0x0>; + msi-map = <0x0 &its 0x60 0x1>, //ENETC0 PF + <0x10 &its 0x61 0x1>, //ENETC0 VF0 + <0x20 &its 0x62 0x1>, //ENETC0 VF1 + <0x40 &its 0x63 0x1>, //ENETC1 PF + <0x80 &its 0x64 0x1>, //ENETC2 PF + <0x90 &its 0x65 0x1>, //ENETC2 VF0 + <0xa0 &its 0x66 0x1>, //ENETC2 VF1 + <0xc0 &its 0x67 0x1>; //NETC Timer + /* ENETC0~2 and Timer BAR0 - non-prefetchable memory */ + ranges = <0x82000000 0x0 0x4cc00000 0x0 0x4cc00000 0x0 0xe0000 + /* Timer BAR2 - prefetchable memory */ + 0xc2000000 0x0 0x4cd00000 0x0 0x4cd00000 0x0 0x10000 + /* ENETC0~2: VF0-1 BAR0 - non-prefetchable memory */ + 0x82000000 0x0 0x4cd20000 0x0 0x4cd20000 0x0 0x60000 + /* ENETC0~2: VF0-1 BAR2 - prefetchable memory */ + 0xc2000000 0x0 0x4cd80000 0x0 0x4cd80000 0x0 0x60000>; + + enetc_port0: ethernet@0,0 { + compatible = "pci1131,e101"; + reg = <0x000000 0 0 0 0>; + clocks = <&scmi_clk IMX95_CLK_ENETREF>; + clock-names = "ref"; + status = "disabled"; + }; + + enetc_port1: ethernet@8,0 { + compatible = "pci1131,e101"; + reg = <0x004000 0 0 0 0>; + clocks = <&scmi_clk IMX95_CLK_ENETREF>; + clock-names = "ref"; + status = "disabled"; + }; + + enetc_port2: ethernet@10,0 { + compatible = "pci1131,e101"; + reg = <0x008000 0 0 0 0>; + status = "disabled"; + }; + + netc_timer: ethernet@18,0 { + reg = <0x00c000 0 0 0 0>; + status = "disabled"; + }; + }; + + netc_bus1: pcie@4cb00000 { + compatible = "pci-host-ecam-generic"; + reg = <0x0 0x4cb00000 0x0 0x100000>; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + bus-range = <0x1 0x1>; + /* EMDIO BAR0 - non-prefetchable memory */ + ranges = <0x82000000 0x0 0x4cce0000 0x0 0x4cce0000 0x0 0x20000 + /* EMDIO BAR2 - prefetchable memory */ + 0xc2000000 0x0 0x4cd10000 0x0 0x4cd10000 0x0 0x10000>; + + netc_emdio: mdio@0,0 { + compatible = "pci1131,ee00"; + reg = <0x010000 0 0 0 0>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + }; + }; + ddr-pmu@4e090dc0 { compatible = "fsl,imx95-ddr-pmu", "fsl,imx93-ddr-pmu"; reg = <0x0 0x4e090dc0 0x0 0x200>; interrupts = ; }; + }; }; From patchwork Thu Dec 19 06:13:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Fang X-Patchwork-Id: 13914528 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2061.outbound.protection.outlook.com [40.107.20.61]) (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 CB2D5218858 for ; Thu, 19 Dec 2024 06:29:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.61 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734589797; cv=fail; b=TfJI+94fHRmZxdvQJyL2DqbQdEOGrGhB6g/EzDT4bkOXERvcgYlpsp0rSameJgf6vGZzXk8U9bPQeBcbRCHrvCduHi198iG/1xEf3ABlBWRFFSikisUUlhEyTYLPtdct6ngk4TE/Y5+yYnPOqSPkhc5mGhfNpLBwIXGekKGhZbE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734589797; c=relaxed/simple; bh=38VUdjWRAvKb+FOJsZGQrwYCCj3j5zQQXiCFds5et5M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=D2XSgYx3X+KRftQ0/atMjmxyFz+XZS96x7MGC0hjxzv0CifkVAfPR5Sb1bH5WsBhuuA2wgySTwoXIiw6Y/f/Noo5/h4xUICkAAv05IFSrziwd5kCtHS92FHi0euDRLhHQv4UDA8zKt1jX0jUfXwhHhHqKdySfZRQ+UmPAQNcYgg= 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=QYeYmeUw; arc=fail smtp.client-ip=40.107.20.61 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="QYeYmeUw" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=H6dNccC3TJu8Vi/+x0vEAhXGby9/Ov8+K8XmIbMjrve2ItJiJke9KyfLFPezys9Pyu7xXpi5XZPmp8xXdcE0jb/H5BppIwhqPrIrOC6gkoeM+Xj2xh068NX16va69fgz1PH6EU1u0tUR03xFF1rzpEyCAHKr73InvWt3FobqFm7otzPVsOmi29Nje1pPOxolSt9onCZhjyetwPuLpHwFfNv5IGwFPcCRufrWwEtLe4df2TsB17+QtbKVcSn4lz5dIVTkzlbLHjHUe9rJoBJl3LleO/LVZMdMY/Q0p0QDBCzo4fN5HsJ03NaXOkpKGiMl4DJiUUmTAWb4qnfakarzOA== 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=kv2bLhxgCipDgAlqGw2meVcvTJZKTGG7+QdJlzmxrfA=; b=pv6yu9vjv8cIMbWJiGr40j7Z5/j1bnNBhGw3bkFFQmNJhiuTNvAW4ZKsZfFe+n6EklStLv3PbQ9i2kosHXmmCO4lgSvvy2EcASTKQ494yGhgHDLJGzdOTsskxno/tyVMeKV404mj7OjWU7b3Y2XrWm75MoKCtowbbLM+WiWAON1HOZ+A2WFdmPxgCv6NGzIPhaV6HOB5lw/4CxeyQuwqnloflo6wwlxKLHkrbpL7Co4B4DvF4ZUGIpVJ5/d1U3IkNJV8Z5beqZWcUxrs1wo013LYbUq6eSLYLJI7jfYhP7KRoTlIkj31bJcFWVBmJ1QmhmTSZRZXXXduUp8w6IUJ4w== 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=kv2bLhxgCipDgAlqGw2meVcvTJZKTGG7+QdJlzmxrfA=; b=QYeYmeUwSaIuyjeYoixG8lY1B9wDaqTv8ZmHv3eBQObFI8AMqX9J/3oqvq8iw9M2N26PUYBMcdo48kpccBpoWMdkANrSNx1CbXapmF/86kfAWgQvLCHRWVcYe0fJ7ViDBHlLx6RgifHGzlP+NZDIEsw1EE+DNzBRZjvVM0eIfSBJJklgNJVaEC0NFeErlhY5Nr6YfcsNTkNqyMgykQeQ+smY5wJwTHwxXSIKB9W0X/3vKftJEdU+KZPIYzLG1veokZCD4EECCRQqqOb2HvD5B5GKYvjRIZsAnLaqUjdvS0dXTmluj8VW99wKWupu+8WeIfzE/ThxSX9tFA4k0lzCIQ== 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 PA4PR04MB7966.eurprd04.prod.outlook.com (2603:10a6:102:c1::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.14; Thu, 19 Dec 2024 06:29:53 +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; Thu, 19 Dec 2024 06:29:53 +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 v2 2/2] arm64: dts: imx95-19x19-evk: add ENETC 0 support Date: Thu, 19 Dec 2024 14:13:40 +0800 Message-Id: <20241219061340.1633173-3-wei.fang@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241219061340.1633173-1-wei.fang@nxp.com> References: <20241219061340.1633173-1-wei.fang@nxp.com> X-ClientProxiedBy: SG2PR04CA0213.apcprd04.prod.outlook.com (2603:1096:4:187::11) To PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) 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: PAXPR04MB8510:EE_|PA4PR04MB7966:EE_ X-MS-Office365-Filtering-Correlation-Id: 30e5b0a2-6c64-4070-8df8-08dd1ff68c5f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|7416014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: f8TvW/PoYw+J38Sm/V0q29JrWvqNQ/FVv5qU94RVOlPK2fSyuQfRKSlZXLnhXs4nE1OamgZQGst9DR6mC0okl4fYmJ/sMdqWEut0SA0PeIF8bs78T8DGAQvMWi0TnbkGogMjw1Q7gOmn9cGmpxuyjlyBXD468Mg/1R9Ub6NkR41nEUZwJAZ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boa1EluoYkOGxvtFvmANVjB+F+qib7b2fwK5mEsOpMhH7L3CcE4XCrowdyMxtY2FARtQ0OK/pULLLUuQPII4sJmj654YObR2diHQNsia0ufuahwNbQLBEICFGBZxOXGXD4FPJR4BNcxAxovNwkAbvtlBGrFHCv/U3O+3UaiC1idXKwrVV/VXa8b6W3zLlpwN1A1uAJmvvn6bVofRr+AHUu8Tyo 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)(7416014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GJOwRGp3G5iMcDPSLi9ciJ1jiW4oalCA2pEbls5kPFU5bg7xDpMKCGXAToIuteRpF1UNNIGQpMC49q8gQkHk2/ratpa7NI/9WYXS9Py01Lh4eG4lM7vlGy10jJME4QP35hLvicZLPAUvuLRMUJ0zqMsm9MXv24hyxcRXC1Qz57P+VOHpPMNOMp83RPZNRjixBYxk7dX5sb5dKosn+5tio53vA6nji4YtyDQZfyRJ+0DvROOFXbrzyoL556CDhWMmr41VMG3jpEHaXnbrQ9bcCbemIwGCoZKM3SijIGiO3b8XRfZ6+aHQXOQZQcfZ3ki4SZ6w3C//rxsxmXf56JGEhp/T2qTCYz3vnbkGrzm1PF9i13SpW9wFLCCrDQxv13xCg4MRtJd2rSkEtcaZ3jkVm8JLysFDYDkZt07CtqaOhOUmnQoBtlMyUMzEsIs7SWQg8qHCNRJ3RYR1/I9sYMOc7pywB2VgTuDFz5TwljttzUgHH0Wkl2bhEyrrZeVpQ+sWV02+dR5ZBZ827yUDPhN4IxNW/Xpq3LNSO+ftRgj9kN39Gx6sUOzFShsQU1VdTbTBJJuqt0IVoo83/DDOZxuKnr0B+H6aNdZ/JARC/dJpYQZ8xiukD3v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AXPR04MB8510.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 06:29:53.6040 (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: 8AUN4FOt1c2sjRZWm8JHBmJPARUTbbz7WL1dr2QxfV8vBdxAfCQW5kQ1NfWqBfGPWd0g7bDlpVXzPY3uTPaJBQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7966 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 Reviewed-by: Frank Li --- .../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..8bc066c3760c 100644 --- a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts @@ -22,6 +22,7 @@ / { compatible = "fsl,imx95-19x19-evk", "fsl,imx95"; aliases { + ethernet0 = &enetc_port0; gpio0 = &gpio1; gpio1 = &gpio2; gpio2 = &gpio3; @@ -193,6 +194,14 @@ sound-wm8962 { }; }; +&enetc_port0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_enetc0>; + phy-handle = <ðphy0>; + phy-mode = "rgmii-id"; + status = "okay"; +}; + &flexspi1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_flexspi1>; @@ -338,6 +347,25 @@ &mu7 { status = "okay"; }; +&netcmix_blk_ctrl { + status = "okay"; +}; + +&netc_blk_ctrl { + status = "okay"; +}; + +&netc_emdio { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_emdio>; + status = "okay"; + + ethphy0: ethernet-phy@1 { + reg = <1>; + realtek,clkout-disable; + }; +}; + &pcie0 { pinctrl-0 = <&pinctrl_pcie0>; pinctrl-names = "default"; @@ -429,6 +457,30 @@ &wdog3 { }; &scmi_iomuxc { + pinctrl_emdio: emdiogrp{ + fsl,pins = < + IMX95_PAD_ENET1_MDC__NETCMIX_TOP_NETC_MDC 0x57e + IMX95_PAD_ENET1_MDIO__NETCMIX_TOP_NETC_MDIO 0x97e + >; + }; + + 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_flexspi1: flexspi1grp { fsl,pins = < IMX95_PAD_XSPI1_SS0_B__FLEXSPI1_A_SS0_B 0x3fe