From patchwork Thu Apr 18 16:36:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13635115 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2080.outbound.protection.outlook.com [40.107.104.80]) (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 78E59178CF2 for ; Thu, 18 Apr 2024 16:37:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.104.80 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713458241; cv=fail; b=Xj8NM9SXaIxmpbTmWwAmcKaO6WOva79Pu7Xb8zpqZLwQ1G/PrlKFFXj0SJz7vc2DkFOObRwXYm+FStfQIOOxobhKHuFMa4t7dFNytxcH16rSMSs6GtUilk2mcutVkRoA5DYikDrGNtGOZh6Nw8tg7xmqLcnEgqSrjFCbLkLDNS0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713458241; c=relaxed/simple; bh=U/DnG+FGcXigMnyuuG1EoDI7itzwetaHR2aYuCsXZng=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=g1BmpevgfR2ua1m4hs9XsgLlLSgEspSLz3AN1I0l/GOq2v/6wZDlaKUkUReiOEkKT4EZL3E6ETG3y0mhJoAJ9THqHjcsKODabk4BzhDQt79sjwlyiQ30ie8t2Bk6LZfx2l6tamUIIGQzMtFDDr5yWw/9ZK7/u2zwIWX9TBMr68I= 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=MeJ8IAGA; arc=fail smtp.client-ip=40.107.104.80 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="MeJ8IAGA" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jeZhLA5Xq9oAQ7xQwG3mlUKGRHubEfLfpNZVShdQ7LUUmYN96PSOsVV5FppNyL4zuSJFYrQENZCMbh193q4nR0hbBJUGBb51xH0lNDGQIlpM1bZnfjtcAvbEqicJwsiznMhhbW9noF/e2zkVvt1g6+TwK14fgHX/keCh2AMYQbuBoR7Bi1tGBfZHqsbtejlLdLp63J8TU4PiZLDDVrj1fjirG/N+9qvCLikvKG61m8hiIcYa/D1yFVIOjG8hCfdq+vnHM9E0Pqr6Oil+4XKMBnfcGVPM0MS4M2hGmFhhl88Ro/rmrwIAKTzzCEOH4ZMKyJEZK+qcUYEm5bXAcz03zg== 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=dZtRRCqhXVCDe2q5J7khme35bBWcuz60jNui5paDWqI=; b=Tj08BUhBlS4S7A6jOJlPDwlKTTukMYAxqWozmeezoCMSCoH6Dc23v68XgVtJ65UwXINkopmORRKcw03NgedisGztLmxe3PTS5vpOjxPiYe3b5wU6Yg+Dev/SvKzNyIT/8H1Wi3ZotreOUwtH+o4WgrZSiv9y8mOCzgy0CzP9MxZsA8HLyoMJ2Js6Xgejlwhqbgqr6UTwBkIwrmsS2gvkxSEZM/9Lv8i1mzP1EGAOGfZVR65/znjq9rj722lr+NIdM39KCKc9EWEAcLdTRZZQkQSI4OgXa3lCRhvz0Eord+sszQaPfrHP13tc5pu5KToRse1hCIpClocBWD8tGfnuoA== 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=dZtRRCqhXVCDe2q5J7khme35bBWcuz60jNui5paDWqI=; b=MeJ8IAGAEjBgkShqP+0zWKcexwgoIrBFzq9NKRkmIGt3ncu0xfWlM6doIoY2Q+gxEkNNC9dpUS/M6OgqdbTafK8IKCqDWAhGEpRW3+bWA3dw3W5V1XMlEoT1SEIxfSc2EzHjteaSTEMeIbjpfeDkoiQqRTbCKS3yAjdPY682i4U= 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 AM7PR04MB7079.eurprd04.prod.outlook.com (2603:10a6:20b:11d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.39; Thu, 18 Apr 2024 16:37:16 +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.037; Thu, 18 Apr 2024 16:37:16 +0000 From: Frank Li Date: Thu, 18 Apr 2024 12:36:42 -0400 Subject: [PATCH v2 07/10] arm64: dts: imx8qm-mek: add flexcan support Message-Id: <20240418-dts_8qm_audio-v2-7-e40fe76b60a6@nxp.com> References: <20240418-dts_8qm_audio-v2-0-e40fe76b60a6@nxp.com> In-Reply-To: <20240418-dts_8qm_audio-v2-0-e40fe76b60a6@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=1713458209; l=3123; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=U/DnG+FGcXigMnyuuG1EoDI7itzwetaHR2aYuCsXZng=; b=Fe9d02z0ySmdG2QLqcnTlAWmptppsP2xLLLPAIggcGzsPKIqQWjQPdJxgwDsIl5fGDiCAPbuS hnBAdFVr0W0BQcuwib7ws+S2goVKoIojw0so4cjO8HQ+c0sa/27duU8 X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BY3PR05CA0045.namprd05.prod.outlook.com (2603:10b6:a03:39b::20) 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_|AM7PR04MB7079:EE_ X-MS-Office365-Filtering-Correlation-Id: efde89f9-82a8-44d2-7e44-08dc5fc5ceb2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7TZHObl2nZWomF10wpdAIMe38mNVc9A8Suy1RPwnnUeFJRi0YfSD3+pHGzNF0rRCKtIVw6aR0ZuAA85y5sMiBMLJceG0TXBuoN5es5ycvIsEAuEsTLMyKXvUv2GIHoaJYu3ITtgskk6JQzE95u+i4LnlpFdnupODfyPXq6XsRdUL/QOCHZr9WJAYqHip1u2RierTDK4CFyeVRd19C7JmnOchqRSRj8eyFlykQabG/FV9JGEt2T53Kue3HbL3IrTtoUftVKtEcVpawayZHW+/s+Wz0QQFdvjzRYeY9gwdTGICqwzmV/rL8K20ZHlpxkzl5WWTK8CZUpOtkCgC28ID8DrVL+GbmC7Mu5PCZneLqMYpT43B5IqQwWTwoWhCUb7aO+NAcLWhYyfPoYgN1v7yltmRyP2zRj3iQWj4NoxbEomvB4lZXI7z3GjitVE8J/yyFRNdUS3qX2vlyI2paA5nTU4Suf/f682UE1HAiB025xJRz+2r2BksC1OWtnFYip1kb+M2gL2Q1biVmMXOytyO8+/oEIoTZn9omJBNefcywyvAFDKKA8tl0HsjGBSaSXHPh8kFdIVH7Mob+pJFpSPG6G2gWCdh7GSD65RTUoX6r1H/7H3iOIA7ujfBHLUfVOtw4hXP7WSJUfrtM+Mr9Zr8DwUrcumCp+DfD+3Z8idW9U9Fwij+RXYDgZX/+3fcRbPeE0RA9vSRGcrMwR2/SuF2Dg== 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)(52116005)(376005)(7416005)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?0RzQ9u4lDFobZtwwdvODx+h1Ca/7?= =?utf-8?q?9Ipig9YEmXF9PgzK3e46bsFAmQ546+vKed5PMBHM7l1JlNFSmw1tFtXl4ubCb0a9A?= =?utf-8?q?I+KFdBCGbgIMEwZh3eVodJ5RbiDHUJHovOdlcAoNyxP3ZHggPIMLz/WqnsiGwdq0B?= =?utf-8?q?/BuFZjyVxHdLQBk5+5Q/uPk5umpuHCV0PrZ+1mBqlFMlUfZ18Jv6wAOWRMLq3EMRA?= =?utf-8?q?lLDHT1uyPdldXMs4NOtivKa4V3Xc6BK+xHR++w32gA946g7nAEaZPJak+NzZXLI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5yx9Z3UUpPv9tFvyW+JPjn4LGY8J03WjnOuhE558Q/Q/d5zY49g46Ml1LmYTJ?= =?utf-8?q?S6/88Oh/ZUfcaR2WXEUe0BjQz1PfB/QIoLkFglzMOwwvAS5yKZ23Fvma2CK1rXtd+?= =?utf-8?q?odcq8eYsPR4NcAcSOosr83AYQns2gVEYjo22pAx+dXJAUdWAjN28QNNGkgJEf9t9A?= =?utf-8?q?mdr9fQvUoObN7cJs36Co3wXsUIRmO33weoAaoGReDyxA7qfbPde+ccethpJMtCX0u?= =?utf-8?q?QfsNnsvMjutNBsYXPic2ZXM4kbuf8ic492TGrzTOvtGPtw8Svo2yuBG/5L4Q/fswi?= =?utf-8?q?uNUX9cGmyG1fmN19rLZSs+QTgqQ+0PX2jhC/dnewnSr38x1+IODZ//D7sDCgrCfAq?= =?utf-8?q?LAn2aRI9Fbng?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: efde89f9-82a8-44d2-7e44-08dc5fc5ceb2 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2024 16:37:16.1647 (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: 81ZHf7eb/GR5x/7p6LYjBLpAObJWH8gXKYBX8texygn3jSupKbTxe0nI7VWe3vmrW6m+JqkldkdFqTupTRxoyw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB7079 Add flexcan[1,2,3] support for imx8qm-mek board. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 80 ++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts index 765ff15b16410..068bb77ed08aa 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -40,6 +40,44 @@ reg_usdhc2_vmmc: usdhc2-vmmc { enable-active-high; }; + reg_can01_en: regulator-can01-gen { + compatible = "regulator-fixed"; + regulator-name = "can01-en"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&pca6416 3 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + reg_can2_en: regulator-can2-gen { + compatible = "regulator-fixed"; + regulator-name = "can2-en"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&pca6416 4 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + reg_can01_stby: regulator-can01-stby { + compatible = "regulator-fixed"; + regulator-name = "can01-stby"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&pca6416 5 GPIO_ACTIVE_HIGH>; + enable-active-high; + vin-supply = <®_can01_en>; + }; + + reg_can2_stby: regulator-can2-stby { + compatible = "regulator-fixed"; + regulator-name = "can2-stby"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&pca6416 6 GPIO_ACTIVE_HIGH>; + enable-active-high; + vin-supply = <®_can2_en>; + }; + reg_vref_1v8: regulator-adc-vref { compatible = "regulator-fixed"; regulator-name = "vref_1v8"; @@ -242,6 +280,27 @@ &cm41_intmux { status = "okay"; }; +&flexcan1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan1>; + xceiver-supply = <®_can01_stby>; + status = "okay"; +}; + +&flexcan2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan2>; + xceiver-supply = <®_can01_stby>; + status = "okay"; +}; + +&flexcan3 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan3>; + xceiver-supply = <®_can2_stby>; + status = "okay"; +}; + &lpuart0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_lpuart0>; @@ -434,6 +493,27 @@ IMX8QM_QSPI0B_SS1_B_LSIO_QSPI0B_SS1_B 0x06000021 >; }; + pinctrl_flexcan1: flexcan0grp { + fsl,pins = < + IMX8QM_FLEXCAN0_TX_DMA_FLEXCAN0_TX 0x21 + IMX8QM_FLEXCAN0_RX_DMA_FLEXCAN0_RX 0x21 + >; + }; + + pinctrl_flexcan2: flexcan1grp { + fsl,pins = < + IMX8QM_FLEXCAN1_TX_DMA_FLEXCAN1_TX 0x21 + IMX8QM_FLEXCAN1_RX_DMA_FLEXCAN1_RX 0x21 + >; + }; + + pinctrl_flexcan3: flexcan3grp { + fsl,pins = < + IMX8QM_FLEXCAN2_TX_DMA_FLEXCAN2_TX 0x21 + IMX8QM_FLEXCAN2_RX_DMA_FLEXCAN2_RX 0x21 + >; + }; + pinctrl_lpuart0: lpuart0grp { fsl,pins = < IMX8QM_UART0_RX_DMA_UART0_RX 0x06000020