From patchwork Wed Jul 24 10:58:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tarang Raval X-Patchwork-Id: 13740847 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 34585C3DA63 for ; Wed, 24 Jul 2024 11:00:04 +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: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:In-Reply-To:References:List-Owner; bh=oQOUFVx+CNTGXvadA57ye+DiT3p6Sf0Xo00SZie2Mmo=; b=LP7eRkzro/rQ3Emo5fsMdiQT7B KgFkQHzcxK476Z5c+yKETCFur7UJYVx+svoFHYFX5KigFfZO3K18qVoBre+3jf9qD65rA3+RU6l9F ysNnlbxxgIP67s3XUH9730UFmvEEuUkLfkUNifKfaaVDJBBxLVjWSQ476KOZLgOJ489yYttWAypYg Z2Em7DzkV5ayscTU22txsqRferdL6gGtl42c4SkZ2qcplvqxm1IktuieBw/T3IhyBc1B5wEwBAdnc Mjbjq1oDiIBrx8GxwCrpAJrbd01qgX/opCQDCKoj9FegFVbBZQv18kGy33vp52Lh4UQvN0xJwRnEb ffm4z/bQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWZih-0000000F9CZ-0155; Wed, 24 Jul 2024 10:59:43 +0000 Received: from mail-maxind01on20700.outbound.protection.outlook.com ([2a01:111:f403:2020::700] helo=IND01-MAX-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWZiJ-0000000F98z-2fHE for linux-arm-kernel@lists.infradead.org; Wed, 24 Jul 2024 10:59:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=e4oJVCDuErms70/Rjl5G4KvKjXoanJyf76ZddfbHREarxgVUAE7/LAcbEZxqtjGAcjbriESzmDvz5PeBnEA3kmIxZYmW2Bpou7tyWWdZJyqT+eyGLIktu+75+DswkaAm4jB1aGcBv2P2KaaYx84ps38WGozli1whHb8dYJQepRxhMuD2QEwLnLmF3T0J/Tsuf8J91s82NGSGVEdobF4YjUbWYr9BD0KRWcYxc18/UJtd01fBHsgWewufX/mkmx87HSTI/tSNUC1FGrfS63gNIpi/059soHWMxEN229ICN3Rp4eW9/RbQXZPv3lJ2yNox8NvD0Ls6NJG/NJVxBmz/+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=oQOUFVx+CNTGXvadA57ye+DiT3p6Sf0Xo00SZie2Mmo=; b=a/caMqG9bwKOlWBT3hAOpE6wIk6lmHpHx2FdBHsKdeHoyuPJUQ0GarG3de0llWZNn+gw09y4Bz45MaYCbtUNadMfj8V0vrq09OcRStaGsu6hnwOWYUi7Pt5ypT0aYwD7tbZW7Kgupp6pitrEsNe3OBF2pD26ZfCy0zcT48tTRFYaNl+O8iB7OcyxauCQPR4l15YfHyIcQl1R6VthMsqf17QK6veDuHJu692OL90v8MgRJO46xNRm/QDRpSqajK6qfFZp7N5nFb5bfZ+e60puoIr6y3jWVEJxoQCeFZeIV69pf0xDHd2evTpF7x5skB0Gpd75n8ss47yR6DiLbdk9dw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siliconsignals.io; dmarc=pass action=none header.from=siliconsignals.io; dkim=pass header.d=siliconsignals.io; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siliconsignals.io; Received: from PN3P287MB1829.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:199::7) by PN2P287MB1359.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:1a5::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.18; Wed, 24 Jul 2024 10:59:05 +0000 Received: from PN3P287MB1829.INDP287.PROD.OUTLOOK.COM ([fe80::58ec:81a0:9454:689f]) by PN3P287MB1829.INDP287.PROD.OUTLOOK.COM ([fe80::58ec:81a0:9454:689f%5]) with mapi id 15.20.7784.017; Wed, 24 Jul 2024 10:59:05 +0000 From: Tarang Raval To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org Cc: tarang.raval@siliconsignals.io, Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: freescale: Add Ethernet Support Date: Wed, 24 Jul 2024 16:28:47 +0530 Message-Id: <20240724105847.46962-1-tarang.raval@siliconsignals.io> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: PN2PR01CA0240.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:eb::17) To PN3P287MB1829.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:199::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PN3P287MB1829:EE_|PN2P287MB1359:EE_ X-MS-Office365-Filtering-Correlation-Id: b8b2f8af-f803-4b9d-85db-08dcabcfa26f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: uyXo8s/a6DR4Dj3KpXFta4v3PO1egDlhOmpYP6rFVMBs+kmGxdg3jPxaqO9EuNc3O01cCO/Lx48+8K0nlpjp5B/M9XkRWUAmgSHVaMtMSws/MgK7szro5KCbCFBs3RwuvFOQv+gZoDkLlbl+ZDKze7TuyHjICIQfLGoBJSdvvhx8FxodFyjTynvN6PlbKquhNii4owZZWZEXkVij7vjXcDFoJvIxDPfOB3ZOtBJhFUTrBB7Qvi1i/Qzl3e49pLDz7HOn2Q/ezqUa+LlQA6zebECKXhSipON/HtONPjk4XzQse94md8yTakPN7NjswV87NjYHgymyapAWHR3l+vqUTOrtNhgMZfS/kQusrtukJFg5tpL57RQh903/OPKr3Nj8K6TQsmhHaNYnHzROBg8pbqJKwGgPQLxaic4Vyd7pD7W5kIu8JzcvsA0/Aibh2NuHBRW2pR84/YcsS2iNWr5BQKXcse2LsVtcPGF7JOx6WLkURBDB5ZNs89nEF46/ubnfCg4ZMR9mJKRDh6k+9H+XlooVq+7iwcmBggaAH9EcPLRq7oKEGiq+9J/FpRvbwMj8qGys/b2C06QRh8M02aVsxQA6vPd2xJqal+B+cVUV1/bNoCCgRMISJrpoDTI6VRM8dunOhGfkK8MJs5nJ9MM+5p9UZx48I/kn5lKTIsdkvbmf2PxIQSrSttgTNmpXXjFeI7CZwbSXyC8tS93rOE8DJa+NH/+QzCkeFHrkMi5y6az8SnglreVKB+cAafjJkBTQYAG3dVXL5r6hU09rOh8AbEmJY0R7pINgWQS7KieNjtY1vA0W0MwtrTxo2SZQuORn0ghB7kKRw+J/FaVMUCeEjwap/XfMcrfo+nmmzBsNv8EJCY2LbmzCijVV48/XN+1150t+EiE6aAIrpJxO/JXH3bytRHiUUN26bHJveKgQevcCk0BBCjEDSk4eshXlQJoeO7cZ0IZinZTM1MBeFK0d0UzWlVcN4v0K19yMqzjb5Sd0V5FFBSUWA/zTN7LvpNBeUM18WSFqLGEoehTtIrCPn8H3X+X69W7v3CD9puD5FeeEoW1GqN1Eq78QAx3SOKB8GOdj41PlyQmWjv3SXst103pj2YjcKL9CXtgPv96yElBpfPYL0nbXmlNzysQIbFBdvSwse4J9W3YjUK92ZRww79bUoK8EXq3+nVD6FFrHDSJMw/aDn/U7ik1vT7gNSXwwvWR0a3y55vmCZbQlp+bgFrLRgoXsRdm/+3CBxpTtIlBST1D6qSXf7ZgyYBAeh5dt8gTi/f5lvoimOuzMDJGh3Le24yYWLa0C69Y+4DQl7U5O0/nzUOwXkUKSWhPitq2H/njYrAhg4Cp3z+v3xJE4kll59wdTx7vHCkCbwagztazfh8GEfcG0afqbXPF0tLB07jtWrD20RYG1gI+sm7/YQQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PN3P287MB1829.INDP287.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(52116014)(376014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: CUBYs1ofie50r+pqNJ5cRS224Mk7thK0cp1SqXT9Ne/epmk20vgCQpz5L8GoPi8i+igpNdiiaHFd/FoaKO9tBGqEQguB4ih4mnuN+5p4gY2QZMbKOlfkFKaJD3E2ai5cil9xGy6gOfHPB7oPTREQkt37pWX6eNi/XKGnIq5A1T8R1JE5E1roMPtZiGigkh5sErRL/whWGYR8zz1dWP0HMpwKMDz+Wl6lOe+h+gtPWmX2YZy2NWSbaOjnDTl83X7gbzh0Cpr32PmUjENNvUsbVrBrWtcSh2jopZEbFQcCSELCGs4CPzF7KnVQOp5wcLQjwGnXzJrbtiIH0KBDdtHudZnfRDNnBWnY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6YWzg65t4tnv6bBqrl70bGuN+gJH6uVSheAmC05RQFVyIjZZJxrc8RLph7eHWAD4wXnuoYi2A/JFJddzdvVuTKSW18OZy/J7ha6ghqRwSJvwgzTslbWLnGB53wwwjE87Nbtgh5TCXeJDBrw60DtRX2ukI/6ChUKEdh5NW9GFQ1kSqdXAq9bhS0QL/67s4XlN/nFnsfyXEhY7CQoOYkDJlRHJhwnoj4w= X-OriginatorOrg: siliconsignals.io X-MS-Exchange-CrossTenant-Network-Message-Id: b8b2f8af-f803-4b9d-85db-08dcabcfa26f X-MS-Exchange-CrossTenant-AuthSource: PN3P287MB1829.INDP287.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2024 10:59:05.3344 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 7ec5089e-a433-4bd1-a638-82ee62e21d37 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kU/wPH08P/c3bstJnwI0BHv43XrAMO6+YuQJ4ItfMi5VP92MRWISA4s0mI4BJxc63Dd5gAn7N/X1if87YHSforZLX/CufO2qXDr653VaB4A= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PN2P287MB1359 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240724_035919_684286_E2D46CEE X-CRM114-Status: UNSURE ( 7.59 ) X-CRM114-Notice: Please train this message. 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 ethernet support for emtop imx8mm basboard Signed-off-by: Tarang Raval diff --git a/arch/arm64/boot/dts/freescale/imx8mm-emtop-baseboard.dts b/arch/arm64/boot/dts/freescale/imx8mm-emtop-baseboard.dts index 1c4e4d175989..63d391eecbb6 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-emtop-baseboard.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-emtop-baseboard.dts @@ -11,5 +11,47 @@ / { model = "Emtop Embedded Solutions i.MX8M Mini Baseboard V1"; compatible = "ees,imx8mm-emtop-baseboard", "ees,imx8mm-emtop-som", "fsl,imx8mm"; +}; + +&fec1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_fec1>; + phy-mode = "rgmii-id"; + phy-handle = <ðphy0>; + fsl,magic-packet; + status = "okay"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethphy0: ethernet-phy@4 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <4>; + at803x,eee-disabled; + at803x,vddio-1p8v; + }; + }; +}; +&iomuxc { + pinctrl_fec1: fec1grp { + fsl,pins = < + MX8MM_IOMUXC_ENET_MDC_ENET1_MDC 0x3 + MX8MM_IOMUXC_ENET_MDIO_ENET1_MDIO 0x3 + MX8MM_IOMUXC_ENET_TD3_ENET1_RGMII_TD3 0x1f + MX8MM_IOMUXC_ENET_TD2_ENET1_RGMII_TD2 0x1f + MX8MM_IOMUXC_ENET_TD1_ENET1_RGMII_TD1 0x1f + MX8MM_IOMUXC_ENET_TD0_ENET1_RGMII_TD0 0x1f + MX8MM_IOMUXC_ENET_RD3_ENET1_RGMII_RD3 0x91 + MX8MM_IOMUXC_ENET_RD2_ENET1_RGMII_RD2 0x91 + MX8MM_IOMUXC_ENET_RD1_ENET1_RGMII_RD1 0x91 + MX8MM_IOMUXC_ENET_RD0_ENET1_RGMII_RD0 0x91 + MX8MM_IOMUXC_ENET_TXC_ENET1_RGMII_TXC 0x1f + MX8MM_IOMUXC_ENET_RXC_ENET1_RGMII_RXC 0x91 + MX8MM_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x91 + MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f + MX8MM_IOMUXC_SAI2_RXC_GPIO4_IO22 0x19 + >; + }; };