From patchwork Mon Sep 30 21:26:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13817111 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010023.outbound.protection.outlook.com [52.101.69.23]) (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 DA25E1A2643 for ; Mon, 30 Sep 2024 21:26:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.23 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727731595; cv=fail; b=FGBjQZWZpdapCzrZgeLoNKnmkI/gAmXQURIwnijYKGAlcs8VYp/v6h7kRqT2p6aqSUGiQ481b4XKNGGprui85qfkCCFDdSHDOdd9Wl/AVrAT0ozqr2jnRHHOgIQ8Q1UH3ztAvmxyHcXu0L/g8ejuC3rrOnoe2/BjzU21plZWPG4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727731595; c=relaxed/simple; bh=V+cUmen76+QSvNOaNsQaekErp6ZtPvSSrX6L+9zsQtQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=clOnpAT5ly2HJCgXhOlRjo5mltVo6BPN8OmP4/pXt8KKpptXnLx9dDn9wMVO3wpOjMtFT3GRTaBxq4Dvs90CX73k0uH6aEf7DlkPNZu/RQ4b2sWrPMr8KJXQwvmTWUan24mQ5UPF0caVrNwXWpu50FVvOqCeoZPej3GCpg0JeWE= 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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=XPDDGoE8; arc=fail smtp.client-ip=52.101.69.23 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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="XPDDGoE8" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Lt4c2FMsl94/E2UwnxZBKAAlBxxwklvyr7wpqojHpCAvVxuGu4EUSTOhqh1FS0NjAQXcFBuQ+R5/5f/pkkfgvr9SjbqrxpxR4ay/oxVtIGe82iFxLluOwo5C+Ul3QwoFvYV1TKMb3w2EKT0ue73BukQhCOXO3QZhC/ZcSOI7xVrKBOqnq2E13ulwXdNTQhjnspg6czfPcaI+EHOHI5A+Lj/93RyON/w7YdnScS55JZDweC7GFCqqzHB0Vn48IYURzD0YDLDv/F12JxfOltN6FXDkQaHQth6bkD/t+0uKfu0mLW8Cl47gl8PV8D+77l4xI2hjC5DqR98D/fZ3/lOEcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=UxAbTP9/cFSEcem0Q10DvxvcYyul2O+RBfGNBzRdAtA=; b=PvXiXbiF0NDeZwRFtcF1/Jvz1xThpJY+FnazQu0fmgXAszdzZMvrBNKsKQz8DSNhH2qf1LMKvJDvTZZmvDUrl7zKYcPW7/6Eo+FVlzteTPKbMjZQMVxEusPdoAAQzYSEO+xk2+eLrvd7mocFhN7IJEEYopTUkKpItF9KjBu1wUHQjdXCUzNv05abNqbtJepLuGMNceo7ADgUMIZjSibihK0AwJg6m/fAba2m9EUMk6OD+gcaD5Fd2cMl5skGFVCz+0/xqO5RI3HbE9SAgdvQYURTp0KqVErBe109jYxwJgxguEqjbz7eCsIIHQEul+WKB8/66P3e7nBGn2rjMcuqxQ== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UxAbTP9/cFSEcem0Q10DvxvcYyul2O+RBfGNBzRdAtA=; b=XPDDGoE8AOjGfBtVmkSZQM3/lGdJ5BYvdoahoWPFwqx1t7EdN2RJFX23IupiGdIAN1SmVLKXUjNXQGvwZNyDgldCTpjkHgaEmy7X1+yWt2tmbVq0MMKKOk/uGdTflG1gAcyb4GQC8Btw3mbAmUqMwC2a/UutlZ728MATFmW6BhxYGxCZtS9yErXMjGcVKzvSJuVll7gz/8B/zyiuk6mdw0OYKgCtcPWbPPjOBdFTVp1oQFBjt4M8sVekPv9cb0uRSWhynZR+rdxALHY0s5etFejlINwJmlRTEmvbnD8Yad+VWM1pMabtnOkV4Teg4pRhEYpONfdPOdUA3OBIcxJ/zQ== 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 AM9PR04MB7601.eurprd04.prod.outlook.com (2603:10a6:20b:285::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.27; Mon, 30 Sep 2024 21:26:32 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8005.024; Mon, 30 Sep 2024 21:26:32 +0000 From: Frank Li To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), imx@lists.linux.dev (open list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Cc: imx@lists.linux.dev Subject: [PATCH 4/6] arm64: dts: imx8qxp-mek: add flexcan1 and flexcan2 Date: Mon, 30 Sep 2024 17:26:01 -0400 Message-Id: <20240930212604.118756-4-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240930212604.118756-1-Frank.Li@nxp.com> References: <20240930212604.118756-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR03CA0335.namprd03.prod.outlook.com (2603:10b6:a03:39c::10) 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_|AM9PR04MB7601:EE_ X-MS-Office365-Filtering-Correlation-Id: 3d3b0dd9-36c9-44a2-e1f3-08dce1968dd8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|376014|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: y2ShizVF6NMtjFObAHIt9+CNglDugZW/j24WTSbQqwJqKi1Ce+EvWubWMAbGgWwLfm7j1+XpHCF21Dg432KHdXblz+fADUk/viwJTqgstv74zYE5pWgjb2HAsNB9JFH1+woBbgLaNZ50guBGL4Q+S5sX0D2lLU8JiSu177N/JRg8fG80RfNFGaQ0mUHzgU53OKN60DTwamgdoL3JWNdPOjm2JqCjwjV/HAEf2c/liKKW/vePoMrZj4yYHtqxiG4e+k2sk/B6I77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og5msYvKzUegijrPSbMNSSnB6A3LqV/wQmDvfhYQpa/b1+aDCEgU6aRjH9Yd8FoM821gKnsvOlWd02tAVSIcF3rOH4XrGRJItYcGGexSp3s= 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:(13230040)(1800799024)(366016)(52116014)(376014)(7416014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4yfhTUHoELs6ObdXhWGyX9mNWvcBV7EDAeW9secuC4fahdflp3ZK1NJUZAqrkkD6GVFAk/2DgeW5tFo3Xk6Rb3TeJ+yMPnIBe5Aigru7URdTGfhsWxNQZt+GcHA9lDEE5WoHCk99SIx9FGWTxeHScEbCzUlomIwM6AEfrTn+JbpLN3R/+wYTr4g3u1g4u8XoZteMONfAmRhppNpQixpcNlg4pu1lmZZYjdJQ9YmH2OJaCCwjLmB+cGOoEeVdsRLHy9/7c6W94YwRbygW+eF+Z4zUvEnDM8Tp0sWHP8RSW9gBbgc+nVGF1FOzk5d+irWfiaerYJCUG53swSfkM7RgylgVIqhfMPakK6gYRev+U8IbKpkpmpLbkQAmiHP+J1yfrQALG5IX0BbpVOwzXOaDKXAk+euTbLmOt7/4d2HGjqnBKuGlyPPcOtCuwEox1WpNqiGl/WaN7bp4NMiNYGq6exXNYWdNe9nbDKjifRDEqP4lySGZEVfSCV5dtvN+Z+3jPxAdfWIMn+fIgbOm0vxXwMsSH+2J5MpsRgNLu/0Hf0euWaaysD/8H7P3219tpw+jWNLuKrIHvoHf2/giZpE1Q0kg/iiyWqoNSP0LyZBU5iBckgzFBDlBFrYRRlVGDZxglZWA82d2JTERHOTXAaxuXJO0yGCHFhtxfscis+yQWRMwGgh2w1anDNKQ7M19XLnkwdNiR0q7ZRm7Q5fLYhoP9CYPEOWvvdBrXNkql3Wxn0SzkhwKYTqNagMcdmHpZGKzstwGHUTjC0rm5S01hIuvnRfimNfBfUU+iJCondXkTl8GEkJ4BJTwKtMnKM0hB5SYAndEMMjnRGPiLGXeYa0GGxtZwHBuldTLmdC5k85Y6NeK3OaRygJ9FCjFNo7NEXcabPD0Zlno2o9FQrV/Fcudq/TURSzRL4x38TuIJ1ErvT8T9gNpl3lknf5U6seenfScZByeF6EPrnnZ9w3EdFi50ku31lH+xwGKsxtyhdJmwx1UPTX5hY5CyMMDxK8WSikia79Pg9FF2KQGfYOytIOa4KrGszfDQ0ITLgMBzaGo+HqzFXeVhAo3Q5aI4kce9XXeVi0BCsewk7FshfDgfuM0jLxTbZWVCZc7wR6mfQdl9E45xDEoCKdO82mJOXcaZtgJH0O+AmVMR+Mb7IxvPvdJPF9V+1woYPQVJO36FQ/+nZZAQums9Gp+MUCmqII7QYb1+kXBqEwH3qmf6+e27OXarJFecbq/OLp4CnR5SspPRJnWHdIHmxdLDEBua625LnnTWOBUdn8JMrxUMn8P0gFgHMwbWH2JSN2+gmnjfRXyetSdo4oAeZwI+6kk3NzM8oTP5Stx6zwkF4imjHVHZYg427sKlKrTDbMajjm+3GHBhLXN+NhtGI8QUqNNJjRUf0w9IafzAXfhuReyj3KC6NFCQyxs53wFK7rPa88tNsOniuIJs8/L6xWd3Jc/rbmeqr9JcefJ6neiW1d/sYpdmDGsI33bRerPFO4QW/o+8ywLsWI9Dj9z5gbKc6WCO3j5BDfsSBguN3YqVYDgJ9l5gIJIKohoc++J4C6SE+gjRW9JM64= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3d3b0dd9-36c9-44a2-e1f3-08dce1968dd8 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 21:26:32.2404 (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: qrszWvFeycfeeofenjrKRQcctP1wKsr33qo/UMHz+cDyG9MIKOb0M1v+JASZj9nywPU1DyY6YXY/0GzWPuBFNA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB7601 Add flexcan1 and flexcan2. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts index 505015f91c823..621ad618aee7b 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts @@ -57,6 +57,25 @@ reg_audio: regulator-audio { regulator-name = "cs42888_supply"; }; + reg_can_en: regulator-can-en { + compatible = "regulator-fixed"; + regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <3300000>; + regulator-name = "can-en"; + gpio = <&pca6416 3 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + reg_can_stby: regulator-can-stby { + compatible = "regulator-fixed"; + regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <3300000>; + regulator-name = "can-stby"; + gpio = <&pca6416 5 GPIO_ACTIVE_HIGH>; + enable-active-high; + vin-supply = <®_can_en>; + }; + sound-bt-sco { compatible = "simple-audio-card"; simple-audio-card,bitclock-inversion; @@ -339,6 +358,20 @@ &cm40_intmux { status = "okay"; }; +&flexcan1 { + pinctrl-0 = <&pinctrl_flexcan1>; + pinctrl-names = "default"; + xceiver-supply = <®_can_stby>; + status = "okay"; +}; + +&flexcan2 { + pinctrl-0 = <&pinctrl_flexcan2>; + pinctrl-names = "default"; + xceiver-supply = <®_can_stby>; + status = "okay"; +}; + &jpegdec { status = "okay"; }; @@ -569,6 +602,20 @@ IMX8QXP_ENET0_RGMII_RXD3_CONN_ENET0_RGMII_RXD3 0x06000020 >; }; + pinctrl_flexcan1: flexcan0grp { + fsl,pins = < + IMX8QXP_FLEXCAN0_TX_ADMA_FLEXCAN0_TX 0x21 + IMX8QXP_FLEXCAN0_RX_ADMA_FLEXCAN0_RX 0x21 + >; + }; + + pinctrl_flexcan2: flexcan1grp { + fsl,pins = < + IMX8QXP_FLEXCAN1_TX_ADMA_FLEXCAN1_TX 0x21 + IMX8QXP_FLEXCAN1_RX_ADMA_FLEXCAN1_RX 0x21 + >; + }; + pinctrl_ioexp_rst: ioexprstgrp { fsl,pins = < IMX8QXP_SPI2_SDO_LSIO_GPIO1_IO01 0x06000021