From patchwork Thu Jul 25 06:53:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tarang Raval X-Patchwork-Id: 13741583 Received: from IND01-MAX-obe.outbound.protection.outlook.com (mail-maxind01on2118.outbound.protection.outlook.com [40.107.222.118]) (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 7F4DB16EBEE for ; Thu, 25 Jul 2024 06:54:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.222.118 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721890449; cv=fail; b=mzwRlHca2ZlFneWBKO1j8I+t4KDSPGjSpLgoSncO8KY8ANKQaaqaYPsZItVz2Ip9kAsCcnPe5otjZ0rgwoMs9xOrFEo6Hb8WiDcYjqYNzm1y5AEUIOpBOWwhqV3Xt0Mxp/3ay5DYF1nZPQnjMNe/Vxs7A4EccmSpw9R51VleKDM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721890449; c=relaxed/simple; bh=2bXa5dLbUqnB7PYr+/2KTgT0huM2vi8FVKmGj9pV2/0=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=eMCfnMK6CuLoDl32oq0Yl9m0EV0AcIXdvUu6d+wu4ehUeBVY9jDMufXHHO1owmMfIr/xVFmkVvbgqXqVZvpvXLgjwEzIDL5yNvKdQ8PXducioCDDVhYrw4rVJChDHpNqDOCUk6q/yVb+B0S4KDisY2/vjV2Dj9bpeRayrANOiiw= 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.118 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=oyStVw/JsF5BtQMRXb3OIrRZ7yTBlcz1IEjphK0U3SxRp9IlpU2xCmsb+CPrS2cD2CILV8PIDIHTv4WmqqiBF3B26n7tpJoHWy8TXDivH5W9bwzJwTWTx5ak4BIKu7zOYKf/FmyOD6oIdTXESpQIE18ydHJE/4cs45Nt/lgNo+FTcUz19W6zn1ax/dFDapRwQIhgOw8h50hPeaxWInfBvreNdp2PLvelOO4ZXqJ4x9biC34m2Y/lChh9O3uKMwXgIeyjb3pN6uIiZxrONiMIrSHGbnmOjRRpBlTNo+eggVVdZAAddov4znjzbedWIilpk62lj9weiPUYwKxwQFk9AA== 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=sACp/BLPjVBpLnplI3xPN5ej+7DYUFsFQg6kEpMLwfQ=; b=RGlQho2oR9t80IKSXqdz8eiZeBtKjlJByJf3/jkRsTF5Ys6JZJtOGRrykntcPNmUTti23/i2+bLDqXYIHV1Q0OyN30zfqN0r8CE+2dWjLZix5DaXUPFbN8iqaIe53hN4ZWefVnefWF5vt9bbcICddstBl9hJYDq/+agi9CfkjTGP+f9HIhQ5lMbWnmZKUth9WS4HqRgqyBoP/AN+0ZGOq6uWyXDJgPELKH6WUv4t/KXzWUmpzIfoGDwUGDP4UsGYflkGt0dsprUxK0JBhqd56kpNHF0wEa4ySJE1YFPcegJRb8/Y779F5aN7+AIQcnIN6PoQxu/wxptteebNLpRS4w== 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 PN3P287MB1446.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:1a0::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.20; Thu, 25 Jul 2024 06:54:03 +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 06:54:03 +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 v2] arm64: dts: imx8mm-emtop-baseboard: Add Ethernet Support Date: Thu, 25 Jul 2024 12:23:41 +0530 Message-Id: <20240725065342.9308-1-tarang.raval@siliconsignals.io> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: PN2PR01CA0075.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:23::20) 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_|PN3P287MB1446:EE_ X-MS-Office365-Filtering-Correlation-Id: 3a2afe68-de51-4853-9999-08dcac7691de X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antisp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pdpJXYDW4Ssb8VQbjg/bQxzcyDxCqdOmVzYW/oPQ3F6PcktQH2p9xeMSZo7kzBkAkVcJhg0rf4S3nednnKqu4gmw9agQas+d2qxKAwf15Fmmit4iXvKaIO2pLxV2oCy21VXuHjGslXU4eX5uSgnY6HiFh40OJAZeSrtmfYairoeRzVsrzrGZxMGh9cOu3AIw1BTXEVi8pht9Z8P9x4clt2IVfRIyWGKsrROH1szc1lK01cwHR/Uwcpx/os5Z3E6xV/t7U5fvan55isHYn+7ssexpEhZRPHy6dIlqyqHAb9gpIbG5KTkiQfTMpKlJlu88M4inAqpgYiTfp4ar2mJDKFYWnrBS0oldmOO/RoWlELOFBTac08JcAcDYwTrQPEJ/oTzYU4j18Dg09dkBU1oYt3KuqfFTCum2Whw== 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)(366016)(1800799024)(52116014)(7416014)(376014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4XKvwpeCP8j0CUpRm73bLdXddD9It+HfFKYd+Z8oxPPouw486F36s336eQK68Hp2gYKp2LdSAnM9DdrMIIoXPn65X39BVLt2l4PTTpFp2wvJ/iXScrtHDUPYdijWsZ/GZXBifzrtVhhdKoNXFwhJDmOYlAq8uIxtuMFKaXDcNnLx/LASkWhw3VufvYhnr5puAs3c9GEiKDQYbuoB0JxBFvJieesN/2/oEvmodxN9kOro5UkGXunntW30uvr03vZZ2rVZoBGDHESP4rCS3telRo3kndllTKLlP+GxM6DuV5qIRVQkRGz7RM2ynObUA8Xgs9uLc7nHvdVYnRSkoQxBUVHcRSAKejgGRnG/888Is8OGWj9hyvJHfqL53QV388WGg/s4ciMi2bAQ+v5zp4lyCsmvxAFiHEp570yhSwcYTWyAI925MYXTXiy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Dd/f62uiPGnV9TBXufpMrad3pcNsPmcboIh72jjlnKKefxnc5XuA+pKqUjNkuV1DAb9NHD0xSyRjhM79MTTyuEgVbb5OjUlRfxjkIPOr4Gk= X-OriginatorOrg: siliconsignals.io X-MS-Exchange-CrossTenant-Network-Message-Id: 3a2afe68-de51-4853-9999-08dcac7691de X-MS-Exchange-CrossTenant-AuthSource: PN3P287MB1829.INDP287.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2024 06:54:03.4116 (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: 4F4uUdNxtjiWK1LgDdLYiJvl7WHUrvOGSjQnrWVht+ZlqI7peO8KHFuyiWXMlaSx+65fPgXF6Hvpaff+e9a8CDfuIhZODjV856z5go4j2YA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PN3P287MB1446 Change in V2 1. Add Board name into subject 2. Remove below properties - at803x,eee-disabled; - at803x,vddio-1p8v; Signed-off-by: Tarang Raval --- .../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 + >; + }; };