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: 13741886 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 8CE1DC3DA49 for ; Thu, 25 Jul 2024 12:26:32 +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=OcZ6WnWBXWfNxv4vcdHHGVx2N4QYjuRhPmKOkS7PJ7Q=; b=nWMtb6WubQOB6kfWmSIqe0GaqN 4srmxrONCY3P/Ma6OVDb2qa2VsbR1HvqNtzXAHuO+9sggenvl9rwaXpTYsp1SU6Imh0/FQZdVXptM kJsJo6XA3sXvXTSt0fNfLhsY3upCFwUoDg/weZRQ6U+rJod9ilr7/nxYHBTwdYuqJ1XkN+zxQVu8a rKXCI4/lSXoMl26sTZOFhqosfXVpq5wbYdVaOcrwgsRM2sBeOCE0e1fcN9Y2KIPfa9sOkztb6nDSs 7d0Vgv/A2FutMnfuk6DWZD7ztY+GLFge95qH3A9hpMHnyA+cXanzDFnunSSGQQtGxOCwZTSt28AiC 83YcjOyg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWxY5-00000000uia-2iKb; Thu, 25 Jul 2024 12:26:21 +0000 Received: from mail-bmxind01on2072f.outbound.protection.outlook.com ([2a01:111:f403:2021::72f] helo=IND01-BMX-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWxXg-00000000ue0-2QKT for linux-arm-kernel@lists.infradead.org; Thu, 25 Jul 2024 12:25:57 +0000 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) 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+7XXye7nm8b5Xb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WrtU/33LNzj1UL+YvC4bfrdbODuFt8eiGeHnTvCsiHTazdc2AH3Fk2j23aQ5EF19T0viV/QBWWhV0hwABvRSW2sl5pZafUiKisRWPDFhx92zqNRNnBhCFcTVPVT+GtZxxceXW+aT+wzG5EDkVsL+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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240725_052556_643998_52454060 X-CRM114-Status: UNSURE ( 9.45 ) 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 --- 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 + >; + }; };