From patchwork Mon Apr 22 19:50:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13638896 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2048.outbound.protection.outlook.com [40.107.21.48]) (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 19801156F28 for ; Mon, 22 Apr 2024 19:50:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.48 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713815444; cv=fail; b=VCji4PPCqNKIYEhW/TAKyxljuaOldFYL+7F6J9POBatun49T2umxvbg0kUqP40bduuGRCrJTjWsAbp3WujWYwB8H8Ehjha1U9XFG4Xwfo0/huxgF2TwrwnCag7RslE6HG9CmiDljsNN5oHHCoewy65hjU/7EDmVhxcK2KIuPIis= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713815444; c=relaxed/simple; bh=wsZtmo1X368uxHKKzJYqIGOBNQUZdp+gNhJ2pSukOZE=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=SMd1wW/+ATfSF5cliDisXj3GT0NF5rBw3HizPmlDwDMe9u6tuNlvre/IJ8Qz/TaOLasegeXYRRfqbMYg2Qcs8ODZ/WRXf5jECUgx6RngZ78hqWKeirtMmDqGqnWUQrYrTwIqmtzp6YXfcvu6aRHqUBEOZzlUDc+R4jjRUwrFMn4= 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=YXuOUOxG; arc=fail smtp.client-ip=40.107.21.48 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="YXuOUOxG" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gf8i08K4wq2z2yW5wV/Ii5j3/gR3pu0ly+K9rzMx5+RkICDxGiakA8uyXJmz30Hnu9vm9fggMv/DotsCYNutdwdbbtyHZBJZCRM6/9K+ZR5cq5e8EK3US21+b0EOciiqgNiMA6izOoMVrg08A20w4PXnnw+nE0EKT03WDwZ8V4hhbRDWL7pGnkT6osbmpPtCP0STVB5iSuTBcstuiJQ2UU9kpqtBmQ04PHFiTHzZdeoW+SUvBXX4lIlqpE+nGmEsu3Zy6+U4r9tuFi2k0sOhOKw9MajQoCdZ8+ksIYjRqVqtQOQakFaeda6omVCQ+JLrq4sAMos8fYQVAUbVHnjoBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=tKcoadm/C24ImwafKopnSSAfmE0qzaPiRGSTjyPpqwA=; b=VLi16PeEpee3Aoa4kk/fXmLqAH6xrxP6MvNSPM+2N/E8d0lllN791DfmVbeVibHQ1fKG9nvpvnAmDhU3AT3gliwAxyckD9tlNq0NwGd6nVn6X32yjUDEA/DBrprZypfOO3QedDFjhwBf/xYGL7pdSpU0x/sgP45njFLIJzmIH8+al4K/71gw43pue49zX28ekZy/XHh1wcuImNa2BcMDEXSKsxmmoaOT1dxANui9MBEC4nHkuK+JPYyP5xChcDbbn7AlZTBlyTZi+j3nqtXvxiExR4H2BaxZPUpmGKSixAPCgJyngiMbMfJXK2v/EbS20bJ7sTNPjiu5nwepwzRtqQ== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tKcoadm/C24ImwafKopnSSAfmE0qzaPiRGSTjyPpqwA=; b=YXuOUOxGbiWy66NWgi8JkcXDjSghwp1ZtGFyEfyNY4fLiJiHGH+e1DP8d6glt3xgDxSql0dONBjlvt9eMFk4cSnXnECynRs3Bme5GNBE1r6iE/7ziyzOc7rtaUpg4JlEsYaf6ibua4qRQLIYksXyawg9W+R8ZPNQ+6wDW5GM2AA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by GVXPR04MB9734.eurprd04.prod.outlook.com (2603:10a6:150:112::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Mon, 22 Apr 2024 19:50:35 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58%7]) with mapi id 15.20.7472.044; Mon, 22 Apr 2024 19:50:35 +0000 From: Frank Li Date: Mon, 22 Apr 2024 15:50:12 -0400 Subject: [PATCH v3 10/10] arm64: dts: imx8qm-mek: add fec2 support Message-Id: <20240422-dts_8qm_audio-v3-10-680cee731ced@nxp.com> References: <20240422-dts_8qm_audio-v3-0-680cee731ced@nxp.com> In-Reply-To: <20240422-dts_8qm_audio-v3-0-680cee731ced@nxp.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1713815413; l=2428; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=wsZtmo1X368uxHKKzJYqIGOBNQUZdp+gNhJ2pSukOZE=; b=tB6TGT4NpEWPL0QRi2Azna/jrLu/L5XnyJUOaWPm7rFnh+rkRY4nxJX1xaOMswQQ/XUReKhr7 lXQLUmx91rnDqzUGa+E2Q1AdgKuPuc1AKXR8wyu/G5+eEs1xC/1noMm X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SA1P222CA0189.NAMP222.PROD.OUTLOOK.COM (2603:10b6:806:3c4::15) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) 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: PAXPR04MB9642:EE_|GVXPR04MB9734:EE_ X-MS-Office365-Filtering-Correlation-Id: edf2dfbe-306b-4f32-8163-08dc63057a3f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?q?cu9SwwC6fCQP6bTEXKziB9Wmpsl1RY5?= =?utf-8?q?FLDPR1CqmNqifbmV3ZW7zZBSpGd9QLWSaXlhHY1RiPjUURH8qVMAtAN46ZZ/+1gWb?= =?utf-8?q?jQqR6QD/gcwlhWBlXWASL/v+PuMF3pfY+HPQxfF/dAZbYgvQVb7O39HZjAUhzRbLJ?= =?utf-8?q?/5gojjlu2Z8xEHOsLupUvRpFNBJj8e5jd+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ppsxtn0dBwru+hJkZIKr71omXN8YX1f6BYe?= =?utf-8?q?JCk7gZK9zXEFzG5MUeqwkznoqP69oWPTCmm+C2L7elw/FqxtzUQbEBeCamJKC/lck?= =?utf-8?q?lqOKXHgmHrzndSifphV+8WoyjoxsMdR32vgqi9c/b2+mfNbJgoJkEBSE4Piq2g5ry?= =?utf-8?q?/fZ0/HEkdrwwx+mKJDMywt3xNYVGd8ibw+ib1bjNZh7UxJqvjCkLKA94Ljsi8USyg?= =?utf-8?q?2r0h763l3cb0fIAB6KP8zZHFt2m6dUrAYNQ=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(52116005)(1800799015)(7416005)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?CFjXej18xURwsxZHunShZAj+8z2f?= =?utf-8?q?zmMwhnsR0vRvQfmOYAxOnwTXCa650f3cCNJM9ZGNjrQAV2mPENMcMzo6hv+0jq1Rr?= =?utf-8?q?HwTDCwJwV3JY73lkk74CjDOECCAmMaKXQpi4k0hJzH9jRUxk2M75MNzMa7eWK7yPX?= =?utf-8?q?cdkvOSK73aHkmHPjR8OG0NO5NhApRGjRKdEU4wnl/r0vPHEyYVOV4wBi9QcQZEf+s?= =?utf-8?q?v1b08FwyxrYWXYfF9eLG3oEU9x0zgg1ScxvkI4bDCuoRCKfvLW0lbeiqjrUxCL007?= =?utf-8?q?PKK6Qwc/IFNGDF5o76WrIMcjMSXYAt1aTaJVJrbVtgrDNGfYPL3q+xXSnS/aULR4C?= =?utf-8?q?f9L+WaqjSS4KDzdq4mxGCCZNCbuKGZ0ZkVBkVjtL36uOq06UIhYFE1vbQ5c+iJtSD?= =?utf-8?q?25x8MKpXiWiqct3GT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IsQ3JcsxOnrdIgeeJGx7x4Fzb9/0GAkoI3qAt/dX5q08PC4pU72QOcbL?= =?utf-8?q?qYW0yaVFFIdTrJZrRzPiL6Oon1KrLFn8XT9MPsfgfkH96upSwmD7I8qePSYN03cud?= =?utf-8?q?NfWXZf81C3E7d/0ycUIyqtvrBBG0IxaYhpVdATegSxNKrYngNuSQXZtxRXGKf4hko?= =?utf-8?q?U2vqFE4E7R6PETrN3lytUHdlzPREzRhsZrMP2/LNm3oI5xgL+vjilqZ1hp7cQoPwo?= =?utf-8?q?6G7/UScToAqO?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: edf2dfbe-306b-4f32-8163-08dc63057a3f X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2024 19:50:35.7343 (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: 3aug1l3ee78Cgsrj5IYoq3j2lQcOZtWBHHCUAYlhPZFphUmtfb21rB3zE1yZdD6ozPDTsl/ffe4iKmaocYPkaA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB9734 Add fec2 support. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts index cef395e919395..570a9bf583132 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -40,6 +40,15 @@ reg_usdhc2_vmmc: usdhc2-vmmc { enable-active-high; }; + reg_fec2_supply: fec2_nvcc { + compatible = "regulator-fixed"; + regulator-name = "fec2_nvcc"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&max7322 0 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + reg_can01_en: regulator-can01-gen { compatible = "regulator-fixed"; regulator-name = "can01-en"; @@ -381,6 +390,19 @@ ethphy1: ethernet-phy@1 { }; }; +&fec2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_fec2>; + phy-mode = "rgmii-txid"; + phy-handle = <ðphy1>; + phy-supply = <®_fec2_supply>; + nvmem-cells = <&fec_mac1>; + nvmem-cell-names = "mac-address"; + rx-internal-delay-ps = <2000>; + fsl,magic-packet; + status = "okay"; +}; + &usdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc1>; @@ -500,6 +522,24 @@ IMX8QM_QSPI0B_SS1_B_LSIO_QSPI0B_SS1_B 0x06000021 >; }; + pinctrl_fec2: fec2grp { + fsl,pins = < + IMX8QM_COMP_CTL_GPIO_1V8_3V3_ENET_ENETA_PAD 0x000014a0 + IMX8QM_ENET1_RGMII_TX_CTL_CONN_ENET1_RGMII_TX_CTL 0x00000060 + IMX8QM_ENET1_RGMII_TXC_CONN_ENET1_RGMII_TXC 0x00000060 + IMX8QM_ENET1_RGMII_TXD0_CONN_ENET1_RGMII_TXD0 0x00000060 + IMX8QM_ENET1_RGMII_TXD1_CONN_ENET1_RGMII_TXD1 0x00000060 + IMX8QM_ENET1_RGMII_TXD2_CONN_ENET1_RGMII_TXD2 0x00000060 + IMX8QM_ENET1_RGMII_TXD3_CONN_ENET1_RGMII_TXD3 0x00000060 + IMX8QM_ENET1_RGMII_RXC_CONN_ENET1_RGMII_RXC 0x00000060 + IMX8QM_ENET1_RGMII_RX_CTL_CONN_ENET1_RGMII_RX_CTL 0x00000060 + IMX8QM_ENET1_RGMII_RXD0_CONN_ENET1_RGMII_RXD0 0x00000060 + IMX8QM_ENET1_RGMII_RXD1_CONN_ENET1_RGMII_RXD1 0x00000060 + IMX8QM_ENET1_RGMII_RXD2_CONN_ENET1_RGMII_RXD2 0x00000060 + IMX8QM_ENET1_RGMII_RXD3_CONN_ENET1_RGMII_RXD3 0x00000060 + >; + }; + pinctrl_flexcan1: flexcan0grp { fsl,pins = < IMX8QM_FLEXCAN0_TX_DMA_FLEXCAN0_TX 0x21