From patchwork Thu Jul 25 12:25:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tarang Raval X-Patchwork-Id: 13741871 Received: from IND01-MAX-obe.outbound.protection.outlook.com (mail-maxind01on2091.outbound.protection.outlook.com [40.107.222.91]) (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 BFE491428E5 for ; Thu, 25 Jul 2024 12:25:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.222.91 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721910352; cv=fail; b=lkPNm7GlMncmzHP6eN/G7FOEYrnsc/lIA3MEelCsOZBgOgtSTNYKRwbZR9gvpyuTvfGKNR63gv7JPP2KNgkBbXopi6+g9/nG2Jdocs9O+PHVFIEap/UTxX0jvD9PxNKv+lOTR2INtyA44BrBWGLrsolYPjWO8dsPBTWNoQrsLAU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721910352; c=relaxed/simple; bh=uRKWtujoR2bq37CVVxo3b9xLRxUuAwPnntO8wvmXpRQ=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=SH8JfHxBWa80jkNfhSVE0Ys28OsT5gzaEu8sE69KDyv7vfSBL1dn5PEgfIRT/Ii+JEy62XhcxDL/IYexqA3BlE9kDJVQLEPrtlv+zVFK8Oe9Q90pakSGh9Aj//MKS4s+SioPHfznO4yGjDJt3BtF6Js7rLDpccRtnuq83DFxCys= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=siliconsignals.io; spf=pass smtp.mailfrom=siliconsignals.io; arc=fail smtp.client-ip=40.107.222.91 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=siliconsignals.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=siliconsignals.io ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=AlXQDCExAkWIJ4V0D2Eqsz2AH/ZY2LDxESlFCegabD+vPTqmYpQp7cKkVP+dkUqb1BPQOjZJ7Tqar+rQlTUx6EhlZ+9at4AhTEYhS7RRgJHu9wRFEtvPcVzbfNgmckOYHWqAWSHXBkrbsvK/EjlrW/vEznU0Y+8G14ZqRNLLfyF3QtNr+vPGhDcDrKHbXxnQzonUuRsYyrP8iS3zBLVFaBTjo3Q8yMwq+K0XD2kioZB7e/Q36nu4Rb7hBj3K+rNFo6f6SmG3sDUm48XRwjmcwn6V8Tw8Bk7JH/uZGbvVrQ9JgHN+DbBT9DXFRrYk60OducV1+cDBWTWRzXgM83/83A== 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=OcZ6WnWBXWfNxv4vcdHHGVx2N4QYjuRhPmKOkS7PJ7Q=; b=ae1oyMmquuxuunrtanZqcrXTxg4limX0YHNXy1k1rRyTz7r8zZWKICNNUtp+rgxnsnz+QnQdU96dIaG2F387Mis1nzDRj4auQAg2Ml20x0MSB349qPNccTZyj92z81M8p9UzzsudQK1E5OfmM1QzcjDA5593U46utiI80uDcv75KWmtnNEs15nd0QCAeuYIDu2fQJy/iY5lbGIOd28MUjC2z5g8B9BDGw42Cyd0CVTjxgJQgcBTFquCXTXA+hopM1gkGKTegzslXmQ7OLqxvJTuDME6j4ETiOZx84Rp6UpOr+il9Q+Rvm5hi5PuOHA8B0uwyzBgVmbwJ9NJiAKAVZg== 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 PN0P287MB0446.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:11b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.28; Thu, 25 Jul 2024 12:25:47 +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; Thu, 25 Jul 2024 12:25:47 +0000 From: Tarang Raval To: krzk+dt@kernel.org, shawnguo@kernel.org, festevam@gmail.com Cc: tarang.raval@siliconsignals.io, Rob Herring , Conor Dooley , Sascha Hauer , Pengutronix Kernel Team , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3] arm64: dts: imx8mm-emtop-baseboard: Add Ethernet Support Date: Thu, 25 Jul 2024 17:55:22 +0530 Message-Id: <20240725122522.5030-1-tarang.raval@siliconsignals.io> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: BMXP287CA0023.INDP287.PROD.OUTLOOK.COM (2603:1096:b00:2c::36) To PN3P287MB1829.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:199::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: PN3P287MB1829:EE_|PN0P287MB0446:EE_ X-MS-Office365-Filtering-Correlation-Id: dd117632-8b51-4d71-5ef0-08dcaca4e96f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: ONpircWNG5WdMb4tgt2FSIkpjmLcc3GWgJkj4ZVPKRYtPCDoIAjFak9epaVcG/2+v/mS2CsSgj8O+cm5K0snf+YOLctfFQNDi3j3D88II9cKZBbgOUAYCoRhTNqkn+IC/CZvOx83jzu72EWDqFCCrhvhcApY/6RLboWz5O32pnRsNoqFyivM8J3dVS/wYX2y1MYe4S2HlB+YlDJwb5qyRG8SGHTbJMB9Eiux7dPYQRglwBg2tir9l80kmHt8GhwLwyo5e0u2gKdthIwGSHWmNteS0PVd0vw40o38NDZ3feoN8b6sIw0s5L3PcNlzT1jqvceRC+rCXjwfcP3Ljf+4OkPcqJVHgkgQptHdX+zVHeMSxVSavJOmoueRLhU/h7qMcrTbtV6hYlUUAq/oXmqCnn6g83jLS8wkV/qFFeG0m+g1Bpp5B1hmFG2dD+8lmioQijsuDc7pDdOgQmFCBiLvd3icN+jPgFPE442bsWp3o1DenZwneVfKS1ozCN9/u8uxkBSCo3pQG9xCgSiXHpsuQ+vOpGjlTYI4YaQtkrbwBrJOvil/aSGuRbtiH3SJmhvB6HVupBn5i2kcFikmY/xz2B/QYW97YziY8BiWSfH6yGsLXFCg+9fj4CSJNNQfjZHAKn/uHIcovXVlU3RV8cuZkRk9HYhFhbJn1c4yo3Abtb4YCTRUqcao8u6DCxnBSSeHuiQVXyzlesO0Kl3JAHNSLrov6t6ITUQqGXatlft7ceyZuKl30sZTm30rUjZ11yz+5ohd2ug74QBU3MZtgbO47uAj+MDGvxnndFITHPcwCrZAqJxTEBpp7sQYwTSRbJi9tcE/XGfVXM8KSqMrYK1ZJIVDNSlCJMOH+VCTR7CGKnZddzDX3A3OcKP5paplIrEQFtB5uPLWTkcvQRuInsXbxPYcu/O8Q36WHu6HUF7WSi656cv0yPUlP3Oyc8EQy8AC2X6VOcl+AnwGdEGksOh0Zqy7OuoxcEloMwPB8n6Ma6FceIM+qBvZs9FNkgguL/9uf5ucaJhwNktSv6jYYsmYTWZk7idsDvPSvE+X6x+herEnliLcPi+jU5YmF7e1gXCXiXTP62Oios0FuuhcwuOKO/9VFVJenlb2kkLtRL++fRsxa4xWeR9yYsUMGKByLffwda9ynfH1D4UPbi2i7vgxlz3tL71U9UuE49lDeI8jcpi4/u4XHCesf9Wt1ZifrkJb+a+6gU/rwQXf5ZqM3O6xhpMs0Lbvf9De4PoiRTRJ08YtkN5+yiSJuqFJL7+xmZ2mJsqYu2dLdBcwWT4+HRtMzx3wv8gsdNwuBsQf/y0o3g7+eJlPpuUxoEFN6T+/mq5dXSguW0P8zfhLR9mo3PUZoiQxCjBjpBR/T/q2gV8dbU5Jih5ZxncCvyKRdDd0ZsqQfXdeIM2WqrjH8eqe2sHNeQ== 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)(7416014)(376014)(52116014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AhPxex+MSKHJIDNNP9wW0syNC46S8w00zqhu4yhqyzb0nC1CfLVvEdzMLbaA3q4MqWxWqgvayxtezC0ZqYJxcI8mg/CGuVm4LRaph8Z5oVgdliydweo2lKktJN/kWiNgsTcL8c/PxCbePSHYZTFB3yx90q3nZKwArL9E6Cx9RO/WxAHJOt3PlRONpRSFR4CTPiAS07xdgKMOSJ5dc/6BESXTHxBxj+lpdMLEDXAEknKf0smvvCCqv2NkhOGthyicIz2kxpngbqR+7XXye7nm8b5Xbs/Q3QhV1JWUh6syYMELhbDWdw4SjEvgfLZREMdC2ROj4t5gr0rkglfErbz7BD2dNghn6hBkpqil0fKWExIolXyPAgeaeezypczC04ezzha+5WAiEJ3k1abrQJmY3TLX6cypY4art4ceG3qY/97FZ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5EDkVsL+MNWwvwsVWG/uZBZhz+S7accD1LCuTFJtMCkxx2gG3BGSPi+enT0Vz8q/+mwXcQFeWe3Zv2NPcJY1sNPrBpTeLvW2HbtipJDaM5wm5lZ7pOkmpfgHSKKIgid/BJ5U= X-OriginatorOrg: siliconsignals.io X-MS-Exchange-CrossTenant-Network-Message-Id: dd117632-8b51-4d71-5ef0-08dcaca4e96f X-MS-Exchange-CrossTenant-AuthSource: PN3P287MB1829.INDP287.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2024 12:25:47.2147 (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: cf9G2glYeixCjRehNld52h+FkgKG+FnUqUWL1ntBiTdkH5YBteKkzNxftgj5Y4ZAJBjILpHtaLpBjm4K1YpCFrrbTf1UvNOPQlKhDCm+5tE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PN0P287MB0446 Add ethernet support for emtop imx8mm basboard Signed-off-by: Tarang Raval --- Change in V3 1. Add appropriate commit 2. Add Changelog at correct place Change in V2 1. Add Board name into subject 2. Remove below properties - at803x,eee-disabled; - at803x,vddio-1p8v; --- .../dts/freescale/imx8mm-emtop-baseboard.dts | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-emtop-baseboard.dts b/arch/arm64/boot/dts/freescale/imx8mm-emtop-baseboard.dts index 1c4e4d175989..7d2cb74c64ee 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-emtop-baseboard.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-emtop-baseboard.dts @@ -11,5 +11,53 @@ / { 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>; + reset-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>; + reset-assert-us = <10000>; + vddio-supply = <&vddio>; + + vddio: vddio-regulator { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + }; + }; +}; +&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 + >; + }; };