From patchwork Mon Apr 15 19:46:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13630676 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2078.outbound.protection.outlook.com [40.107.105.78]) (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 B0C9715FD1A for ; Mon, 15 Apr 2024 19:47:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.78 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713210450; cv=fail; b=BBec3f/yzMi0nsGbXVsf4LjP5YDuwO63wXSFTpnIjy3imSOhnVs35yarowUHFcuzlSKnKJ2BMJOoKwzTypzCkI97oIAexlxYOUIjZZfIcXo18qWofXyivRVebcOYV5A/ZYiYLc354IP6LG18swY62cse2iTsaHdE9mb0IW7UoCY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713210450; c=relaxed/simple; bh=xzVOLJ/3QBUu2XUZlH46uC1t8owOViMEX5LP9eNp/Gk=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=iZItNOuOG2d9EBAiiA6blUe05OmGu7vpjekIcR1EreuCjcBA04OOWFPkVqng/WEFTpRs930JQjctKLiC+1b+nXfXJCf1H38I7kLKTAivfLL6ObZRylJ6bzm+TYlgsd8IbaHV9YeeS3RU6cKAY0sT0Zibjh75hITH4MIYI0nmLOo= 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=cCg+Uwvb; arc=fail smtp.client-ip=40.107.105.78 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="cCg+Uwvb" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JU7LNdj4m29zunNBq5PTu4DMCM54ulu9IVmS3NNRRIxLg57S+xeLZjfxzEL/HH/joY2Z/FB0s+4nsTyeARsmmx4jrsCqloIvpRI+r7iLPsVT0oIQ9jKAsVpuD80KCQpQGU3lvfMYiiPrGe5/1mO0q8d1qtddu+9vlNupznDy9Qwmuv/gVwRoDynoOEmv2QrIQtaBr+gvm7dxbK6t8Ib/Zd58R9QdJwijzD0C9lO4ZgA5BPJ3EyGRfCSTo9e+2sF9hAaOqzLXHWVtDMRYxBESCscw0Dirv6z1tyMQKc8u4RmkQ8Vp2dxTDL7Ya3mkYDxiRYCrLk2p5OFoe6mj9N61iQ== 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=NyK9BLivKiYoYpvLScwI5qT/jokZbg+UE8GDQ/BWAhQ=; b=CVxP7bXwzlvXxPPw76O39zWBuLTS4gzu74jgOP31/clOeB2vqQMI3eSL9Yx7Sco9YZ4JcnB0aMHUrtYFqo9G3FXzoebklO+kZjsEiUPTtkUpMMX/A2QFUJicFAZgEec2f1h/NM+xrKjRaXPxqcN+CgDt9VZM4A5HDTrDo4My4Dy5BAHe7YJHlgVDtwl6abeK6yAYupBKTDTWSlzRUsuDMxYXAGfe3+zAEmxvBN8jOq4GvtENkax5YdcKDg4bRqSO7rA4/b1IEJ9Wmm0mh4KfApBkCW8V6Kt7UZcwM2N50jH6EznGWG6DLG6F6Frs9Oz6+2iCrIR3Bha6ehHdMD8XNw== 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=NyK9BLivKiYoYpvLScwI5qT/jokZbg+UE8GDQ/BWAhQ=; b=cCg+UwvbjQTlL3EXLZLmRu2XPGLbZXOeFPx2mP31Lp9Iri9xdc3C3Y271tuSZ2diPzbDdtAHMOMA7qt2qJI/8Ks0CVErJyvuHoaUea1OmWuWdpLMQnLN2LTZ87ewApvA3WY2K506cSCZA1VMUxEVspfS6NFToWcoUxm6A4C9mUo= 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 VE1PR04MB7328.eurprd04.prod.outlook.com (2603:10a6:800:1a5::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Mon, 15 Apr 2024 19:47:24 +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:24 +0000 From: Frank Li Date: Mon, 15 Apr 2024 15:46:43 -0400 Subject: [PATCH 07/10] arm64: dts: imx8qm-mek: add flexcan support Message-Id: <20240415-dts_8qm_audio-v1-7-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=3123; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=xzVOLJ/3QBUu2XUZlH46uC1t8owOViMEX5LP9eNp/Gk=; b=HyDEuz7c78V/4aphrTwXTYu93M0RdolD3qrxG/9az+F2ytzHmHxyxBd0YSfPv+RwxWD7T+5Bq 7qUqKaqpl7kBOlqIbcRdSnW/++cUUwQqW/0z5gBYA+4wHxspHiOM5Ps 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_|VE1PR04MB7328:EE_ X-MS-Office365-Filtering-Correlation-Id: 3a2d64d4-08a0-4d11-8542-08dc5d84df80 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: A0h0AwMmyH0FYvtH2XdOThBn6HiIIaNl2XTRlX8ysvcPoQQVA56+ybypaMJJ54pSgzln+AvC8Dvhm1cE5xlvyxq8C9Fnu8mpIloqUnuWk2NCVisFOBEPba6J07ocD1dtUdblhDnr4LDDXBOaMl++5cEeHq7s+eRvndMMJE4HcRFumdO5Az6sOqpylNDmAnl89IU1fUF33LYWGCYksFFN8I2DUgPYIFvs3zpd2iTn3jFcsiFHumGNwk8bO2hHqbT0MJ/HJwoTbCK4eb4shftKn+ggc/AHWD9ky1BU5Y5Hn6NWq8Kc3nXS9MOyB8PhQcO19KBHwA5aFJojXv57HouEQZ06xxBmAOwwxO1lX42GTYRHPDYz4GKR6RznyeXf1egfXfiExQirWbpfAUtgCNm57PrzQ5r4TRz2cCQ6TB9Rl3tEl8MKa53GLHazcUXQmY80/qIvATUrTq+s+dWfBKSDS6zmgWZyh1Bj89zMfBXS6aPhEEN4jVI540xISXMW6ZPsh7opluanwlQRZI90Ln3N0Cqf0EXyuzYNrQ6uz1HL1NU7VwJq2toJVEMj7kexMBLITfeLHYgRXco5j6CvP8Lb2qoNYOBDpLiI0+fs2eEoTJL9FJJj9i/TYgiBFSoDUlGA17mLaSz7JdYujBsCQH3oe/GOpps86nJthJ41j55uJa8DNAxN8Dty2YYVcMBXDnXnlfgzuPiZ69xVA1bnw4O6zw== 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)(7416005)(376005)(52116005)(1800799015)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?7vMVsyeiaFb845rFOEy4roWKpadD?= =?utf-8?q?r/5pDTvPvcYAlYZJeDvizpOMJjs9RuJPv6wROTKRejZ7MBV9j0IafsDUxhL8EQM43?= =?utf-8?q?Jl50VnuI5NfrbDSplI6I4DrDjItFpn54usAup9xaoS175qOJla1Q1PWxJ1+cnAvof?= =?utf-8?q?MxjeqgVvuCs70ZYu06fXNes3mJGSuS5ucZDhXIPTRWFC6GqInXECF+OPyUnAsarfR?= =?utf-8?q?KkUugM5Lcc0tH4zS4F+1X3tomxWkchbbNQnJdiE30Mqi9jtMhpMSoZPq2Yn5P16j+?= =?utf-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8?q?fsuwyRr301oG0GMCYeAXEwoZJxNKcmb78rS3CfjDk5lRUilNxLCU5wh6c2qYL7WoJ?= =?utf-8?q?KMoFunW/XGHBAoywvIyFMw3ZQZjzm1m+PaEY7RKDwMKrF0ANy4ull5rte4aTG3qaP?= =?utf-8?q?KI3C/iBWCOHtCPjIn3yxWgfV8y+lkLYL5deR4ZsHK8RwhR85XI4YulBS1K1m4jm3b?= =?utf-8?q?qZcYqabO6+pt2E0a2AX7hmtuUJ5ITvUDEUO3udGrqZIsC4kfbFOsqXci8K0mM7Q0v?= =?utf-8?q?EAg0t8H5pxcKp3W4AlsTqq92LVgjZhnR03l7g2CQzo/rRi2uSfL4H2jtHBSfPmZOo?= =?utf-8?q?b2J3lOLe/FF4RdmO7PH+gIRAd64bkD6s+j1aSJLPQqQ2EMeDwWwPOYW2P4dp+EYur?= =?utf-8?q?EwgzOC5OLFaM?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a2d64d4-08a0-4d11-8542-08dc5d84df80 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:24.7863 (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: c3D9I679+3zkWXQcXRY7NP2K/raeRczGmVz21F8tx2HLw4mCx1NQh8rLsWjHkBb0cJfUlApL8yHLav77rYtb3w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7328 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 4b87e13923328..94a4195d92320 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