From patchwork Mon Apr 15 19:46:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13630679 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2046.outbound.protection.outlook.com [40.107.21.46]) (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 9F5A4161920 for ; Mon, 15 Apr 2024 19:47:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.46 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713210459; cv=fail; b=jYWb5WLgYQPh/LRGBCsX5N18JikqugcljtOh4pVhwSEzIVB3zjpO4PQxHwioaHfUC7ozsRWcb5QbnwyChzKwNiLeVbYA+ffQWWZcIxUdGrzmX7/noEEgoHxCIptb7b8myC+/BP1VRPKoTUpG0MC9LC6FXq+jcZpgizKqHcfd9CM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713210459; c=relaxed/simple; bh=QYcBTO0DJIGgBY1H48Gg1/3ZmHABa2cHIw+DBG2kg4k=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=Sw45lMt4ML7ZMYR5poi3P9+UIcf/7dn+2X41DKdUWhGHoeVrLwDfVUD7+1dRzVWAB9RvG4pcZyKYGydo0BlGQoFWB054SQmF7V+Fj4O7x+OMKT33kbWjt69y2drrIGyF62GPWver6anXb9b5OoMT03XQD6lfPpzqTzqgH0dekjg= 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=Oo32UvU7; arc=fail smtp.client-ip=40.107.21.46 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="Oo32UvU7" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hAMRnR9wPcWTG4kVDB/Ny6xZEcUuriXZUfKLikOOMPKVrhmMKkVA4yGeGizHwN+u+1nwSl+GWXFt5+lXaZdy88B2hhyTI4HaU3X2bPjOPwZ2d2CUeFq1pEGJsHkco2NMfUpYyzzjZro94EoA0bQlPQctxA0c50QvbWItMSGHjy+KudQJjLtvBLXeiq/SATc0sz5POIN2BNUUBQJJ4kVAxtYSaTqx6ywmwr4TjgCZBAEwdU0ByJllZB4Q/2ayo7umHz8ECC1mRtapyPMZoNTKQOrKBa6tbqxZzCsIlmL9O85T5r/WmFApGUt7kVIjUUFeJ/VpPoGrRG36niKXR6Oybw== 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=8Iqg2SvkHjEtNt/RHGFIr2r2ij9ttF5UpZBwVpmIvfY=; b=e/maj4xVBO3hzbVOyfytt0KW0dg678KFrNpQ/3NRR9gMNjKDGdb4+fBPVMSCs07kvlF+FhP+f88O27pHmss6DGGvcRljROLpDbfUQw4uPRFoI7ZintVcRmVWsDFgbP9ILKPR7cNlXyHuLGdHiW1TCYdy8I8rzpqEt64kVEiRAaVcNh6tKz/xUXK5QpbjqMszHep2xaMTZWVK6Y0XxTtx7+qOCsxQiKC2zwIUN+Ce+RS+hCKEX6WQcI6WTq172O1Yjs2eeIUxqSixsGB/+tnFgDXOqpT7NVG24gFqknpMft72dSf3NqOjgZdsrm7wq6anZ68XPz0UjClSEIaqHp5zsg== 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=8Iqg2SvkHjEtNt/RHGFIr2r2ij9ttF5UpZBwVpmIvfY=; b=Oo32UvU7Z/Gamvz81cMKExeOD5bBMo4mED/fuisuFyM0ptbpanFCWda7TC6E6t1xOrNBslj05hpIXgEw9nspbChYZvQwSHYpRy/zngIyusBY1QnXJBqCrc/dbGhEFl+y7xDNNV+pI5BvrZxDsD/dnQZPstbn+DZ5lCKcQkIDiew= 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 PAXPR04MB9060.eurprd04.prod.outlook.com (2603:10a6:102:223::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.55; Mon, 15 Apr 2024 19:47:33 +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.7452.049; Mon, 15 Apr 2024 19:47:33 +0000 From: Frank Li Date: Mon, 15 Apr 2024 15:46:46 -0400 Subject: [PATCH 10/10] arm64: dts: imx8qm-mek: add fec2 support Message-Id: <20240415-dts_8qm_audio-v1-10-2976c35a0c52@nxp.com> References: <20240415-dts_8qm_audio-v1-0-2976c35a0c52@nxp.com> In-Reply-To: <20240415-dts_8qm_audio-v1-0-2976c35a0c52@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=1713210421; l=2437; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=QYcBTO0DJIGgBY1H48Gg1/3ZmHABa2cHIw+DBG2kg4k=; b=2qcpOpMxO5ealvsnsSKdYFDGU0oMJNHK8SOift4X89e/HomlR+qv7+VGRTaME5nykQRp7ykGr awCIyrtdnVLBHOE8Xvb2upc4Pxe1hhpnfnAqPZP2uYrOhZ8ZLKq1pGX X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR05CA0061.namprd05.prod.outlook.com (2603:10b6:a03:74::38) 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_|PAXPR04MB9060:EE_ X-MS-Office365-Filtering-Correlation-Id: 23229a2b-9fe9-439f-3447-08dc5d84e4db X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gvyuaAd0kvuFkX1TQy+MkTuNZ7UK0qFQG1BFHtNZM2Vem7M8o2t8134UZ5GoV5fqHafXtYowtd9iV9OsiT+RC06M/mUfEE+GfUAoI8DtPvOqMOGlT7NpO4/eIVbn/4gUUVtI3kz44cH2+wF0V8y1PrkH5bfmDav08N460FpEqzhwQ+aiG3teWQCMjgSBbbyAxWC4LWg9Ie79YSPhXtkTgsdaMWDCNSdMxx+UlVpHJja8YYunDT872OnSLWGRX5WB4H6A7EbMhoIOl8vfZlYh9zsSq2cg0QvBKc2LwHEwuatVbxh4XiNG4Tj0cFCthuIt9ZrQD7BPBJrztzowsCiV/gdvn8IT8+ebi+hoxEJ+SpkdpCoVTHX6U+D5doKsimOFviLnKvHrWDNM1qNsELwR8xqi4oJT9XEUl1KgfXBk2WRrL/aSlZ4k9Yymi/IqsPTAdFeH0SkH+bzPJ/Uc+UM3qhs253OjgvjPeN9Wm7F48hDscend87dSrjYrWX2rim/51JC0FjM5CeWHBc8IIuab6DEAi3w0BTMPNfJoWra6mpZEh/MM3Eg0oTaSbL1iaja1IdZioiq3MhdlsHT6z6TMn0yt2FwCu4aXIaSU0VoiZj+QfAqmuKoiOrCZh0utSlS0LU/c66MocVOpDF3FUWrZR7GlGAkgOWQeE+lOEnYQ+L+CURJeYc5TyxgPLRSf3A/Iq9gmPWXiPAexXG0tPgx73A== 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)(1800799015)(376005)(366007)(52116005)(7416005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?iKxGrjcq9MLBhH4h+CPkiuWvwpNn?= =?utf-8?q?7rmzzw7qRoLnTLCI4FZOvGaVPpGh3JtbV2qQBhM1POFGVdTmC6z/zXe9AiCuKx9/M?= =?utf-8?q?aZgWTl6pp3JuDkgZ8X/nBwYnbYwpD5S4N8Ra+ZvQCizZMqcNF1l+aW9RZrHpb4r9u?= =?utf-8?q?w6YEoLSEhXRPVKcq40GvCmSYKkPrJqoHplu/mQjE33+f3K/R8unMQ8GC7JYHBOoeI?= =?utf-8?q?23jPCg0Cm+rbJPhIJQ51+/MoX8DciydONouUTVorH5tD/VhVger/FDmswBgAFUiZh?=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utf-8?q?LWK3Ww0auhW9CVjNEy4R1PihUaZLGoZk3AlQYYcaJsvEHr8ukcr0V0wLLY8UhhS9F?= =?utf-8?q?5kZ3uqG6VzI+mMsVWos9i3RPMLAMfzZEJzyHhvF32n7o9WzXB3snQ5AfjKMq3NLTs?= =?utf-8?q?O0vNOZUSw6+XxUlnouJBavLOXyE/Xia+kwTdYQz6szEPrOsn8A1eKUa31RBvpTSPM?= =?utf-8?q?aABW+81y1GEP55BIg0xKcu5yBALfRzHV8BH8pasXrX5AIgkBSqA68YrO3Dj04jGB2?= =?utf-8?q?dBnYTlyxt+wmae1NskAj3VryF6zuL2S0tC5obxhzeIhjRAGo8l9Feadaxvusg0l7S?= =?utf-8?q?UMQnJycwfgnZ2aBsGf87MIZ5A+hsAqxO4ZWgZy2bRFOS/w05h1UT+jxBcJ8c2iwVb?= =?utf-8?q?2J6c1lhZFPmE?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 23229a2b-9fe9-439f-3447-08dc5d84e4db X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2024 19:47:33.7290 (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: pwGkbLbVSrdkv8sl32O8TXu0Ddbkcp2OTkH0BENCSNp5G8hZ46rvm1218l+lmYjVAmkZjjkcBxP07mJhc1b2Aw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9060 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 da17161055179..84372c060e200 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"; @@ -382,6 +391,19 @@ ethphy1: ethernet-phy@1 { }; }; +&fec2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_fec2>; + phy-mode = "rgmii-txid"; + phy-handle = <ðphy1>; + phy-supply = <®_fec2_supply>; + fsl,magic-packet; + nvmem-cells = <&fec_mac1>; + nvmem-cell-names = "mac-address"; + rx-internal-delay-ps = <2000>; + status = "okay"; +}; + &usdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc1>; @@ -501,6 +523,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