From patchwork Mon Apr 22 19:50:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13638893 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 E5DA515697B for ; Mon, 22 Apr 2024 19:50:36 +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=1713815438; cv=fail; b=vAm9IUNKjjjZol7eMvJ1+TCWTLz5AqyXdqmysCaY7Fh6+vSGiPhDRjy5S6Clye/gs1R2g3PSJekcS4KbiYh/doQClFz3XGDgznUZV0A4U4J7wp/UbEon+/Fx5X7tBWUr6akzNhJF8jXYCC5N7utZd7qbeUzbAiyJMr6vZTzbg00= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713815438; c=relaxed/simple; bh=6OOXkM+2/9s7Gte+2idEtd7dgphQ7pl6WSs6xuYBucA=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=PO14LXa/mKXQaZs4kKJWZ7BhWKe1PzBQyqtPFh9mUWWXjWbzoFOnMinHce5S8YfocRRqMEOC44Fpmoa5xAlwnhMlMGA+wi3aMqz024vvBoeVBsRoNVgMf5RQeMmRu63+4/CMcSQawNIYwjZkB/4CYktLyB9hTcSTlJYrDf/Nak4= 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=IG7gSkli; 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="IG7gSkli" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N9RFjbgjmxIWWgHOpYF5ED17OLQlzdcSvtMYZhzbQ3bfSQk38KazxgQPLhJQ1fg6ayJfL7p8GhspAdM9UTLTyZ6xi6xw9WHWs9wSTNkUN3QCOks5JXpW6tMPqvcqNKZMTEpee9RvpiRhSnojK5e6MhDWBTT2RWc+weR8HRvohhY9LJvzV6F5vYI5EXftmnFxoynH+rFzpLPwzXV3Vl+j7ae99XyTp85CJq9upqZjV0dsQZ1cs3YLf4W1de4yLTvAZjJiEyaF811a6/lR9n08HW/cZ5irRiwMbYqBJMuo/BvdmfMnSHmTeJ80ZtVj2De4qbZuPYV0/mDVJrf88C+Zig== 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=yjmAn/avbYTncc27pYxd33Wqjmb+DbimrzovFkyFIRc=; b=C1ydNvN2TJlVf+3UIe8QxGNvNcm7PMGMQB7ZKIgSRP/x8+E3AtbNn1kNn+qVusM4NNQKEdvvrfOem7n5/WGK1+EXGHCfheqYdOv16l1MQIzu3A0ojRpy1HwtbKCDVhcua+4uTyr/yML61+uJVndc7UyEK733YyxqVUubYbwDKgD/IUfzBzwpqA90X80jM73aVTZMY0J7XF1gmFY/O03QKoBWxWtlmcZojJO2DGgW7v42Ik/ij8fz3tvDva2YdfIoBNSSdG2RN3BgiOUxqk9+Z2RFw0vnyvMCNZqBugT6JL366b+XIFsNlPiOg16AsZTueaUjkoiHuwJZt69C8SklQw== 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=yjmAn/avbYTncc27pYxd33Wqjmb+DbimrzovFkyFIRc=; b=IG7gSkliLOhFAeto8I0Dz5zlT/kOXeTLbbAcQQDkHodlT3L2qK5nF9Hpt+mSV4dE6Fn+xfv8yzZlyvb/afADUqPfV+1PjhMiTVHW6/m4mGkg6WifX1RJd1BT3tynytsDkxAPyCYuIiLKTVh3TF181VnMJKWGUwVJfre29yfHuu8= 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:29 +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:29 +0000 From: Frank Li Date: Mon, 22 Apr 2024 15:50:09 -0400 Subject: [PATCH v3 07/10] arm64: dts: imx8qm-mek: add flexcan support Message-Id: <20240422-dts_8qm_audio-v3-7-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=3069; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=6OOXkM+2/9s7Gte+2idEtd7dgphQ7pl6WSs6xuYBucA=; b=mTzWoTUNl4KN81cRkR95UUIlxsnch3yQEFgkaSFdvY5EqKm7eSxOK3qCO2nO9zuMOpQ9A1p+P MQWQ2b3qHfuBHYHsoUktdbRTGwKN42emmyD1ZF7sGHA+GUhFgZnDiEA 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: 942a1875-6e53-486c-42cd-08dc630576a1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?q?0ZLOia/AephtkEYx9D6BdX8YWI0udk0?= =?utf-8?q?fvh8HnpKY6z1omGhCNk6HpwfH5bMGu7lpgqVOQ1bAcF1pi4VjX40xUKrCDhF+85hZ?= =?utf-8?q?ocvTyuERthlaYurinQQDu/vfmdV1IZwQs1CRdkKsQS/z23aOruAHURLv93+1xWw6Q?= =?utf-8?q?UM3xHt12jarUCK6m9+jDD67liXImpM7s95z2ccVziVgSC1IorXm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utf-8?q?2srxlEfXU4slOcUY5pknwRgRz3fmNG4TRPmTS/vL3Y34pYO9taaFIS/t2OlxM+Y0x?= =?utf-8?q?cHuAUD2nHgrqdCqUl3uVJSDZyZ0cvL6XdGNDBjDrW8tFwOfDNu8sY0QwZSey2Ftxb?= =?utf-8?q?jE3/rPML6l4E7xCdcAUIgIMoT0DGXuRApujV+TPJkiATJAbFvJhgKWVnyAI9pcMse?= =?utf-8?q?uCpFHLmfA/mipEuknS0JP9jVkN1TiBRWtWA=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?WKIgQwfO+nvLiLev4vlJS5EzM/0s?= =?utf-8?q?nb2BfSLQq6Ved8iQ7jQ2i0Hs0tSQOfmYSaruWec3AiL4W6UcJm+ylcjtJFoNjfYez?= =?utf-8?q?7TN/tBvpHzHwL6NATLUAKh4Og3Zb2F7NSzH1aJQTn8JGSEpuFfNRS54rA1TIaAZkl?= =?utf-8?q?NLmt+yAXLq5qaDMbe70v3Ms7YTXXEW9QxQsUBjrMA1jBG+KZpVbTdJysKbHr8HppL?= =?utf-8?q?SUbYWRsf/YL58rObnp+ALuX5bgCzoZ8ggbq57PCBrQ+wbjWe/WrNX7ruCqaNLgfpp?= =?utf-8?q?0xEA4LzrZXYEmVtVZog8mwjQ2EAbfh+2jdW0bcqA9hVellENIv8El6Qk5nylpIRXF?= =?utf-8?q?+3kwy+HE+3e+ye4TicO/RbtGLGO26h2dL8FYzm0PBS5sPS4i564+6atSwqOpu9x3O?= =?utf-8?q?7FNHkNM/9hzaz0h8hZ8BuhBuqZnRrKBp/aepM/8DkIX1t9x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GKW5FPjuf/6TUx+?= =?utf-8?q?ZWr6Mi+FbWJNSTearSwenV2SqdKHNvYvwPFs5Vh5K2omPObk+Ae5PpHAUn1Z7QUqj?= =?utf-8?q?WpjUhGuQOIli0+RK80Uh1U81u5WPr6WtbIoldz0GAS9o0718torsDB4q68Z7O7t2t?= =?utf-8?q?VVHxhRkiIK4w1j8Aeh48IMg890DFB8BNNCcagTKEZ+4okTfl0r1wwsY9pcR72CzfG?= =?utf-8?q?GEmpHbZvb+GO?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 942a1875-6e53-486c-42cd-08dc630576a1 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:29.6909 (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: amOO6+Vp+Dn64f8DtaKJ0eu8sEDcrdgGsspMyXj/i1BOmoj92xrUFCUlOnaUpBpBEq6tbYH9hdKdjjO3Ez1VaA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB9734 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 3ab2fab7f7fa3..62ea3efd1ee2c 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"; @@ -241,6 +279,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>; @@ -433,6 +492,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