[05/10] arm64: dts: imx8mp-icore-mx8mp-ctouch2-of10: add CAN support

Message ID 20240513142747.238064-5-patrick.barsanti@amarulasolutions.com
State New
Headers show
Series
  • Untitled series #630
Related show

Commit Message

Patrick Barsanti May 13, 2024, 2:27 p.m. UTC
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>

The patch enable the flexcan controller.

Jira-Id: WAN-973
Upstream-Status: Pending
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
 .../freescale/imx8mp-icore-mx8mp-ctouch2-of10.dts   | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Patch

diff --git a/arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp-ctouch2-of10.dts b/arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp-ctouch2-of10.dts
index 3c6ba6693db7..4e861d8038bb 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp-ctouch2-of10.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp-ctouch2-of10.dts
@@ -104,6 +104,12 @@  ethphy0: ethernet-phy@0 {
 	};
 };
 
+&flexcan2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_flexcan2>;
+	status = "okay";
+};
+
 &lcdif2 {
 	status = "okay";
 };
@@ -205,6 +211,13 @@  MX8MP_IOMUXC_ENET_RD3__GPIO1_IO29	0x16 /* Reset */
 		>;
 	};
 
+	pinctrl_flexcan2: flexcan2grp {
+		fsl,pins = <
+			MX8MP_IOMUXC_SAI5_MCLK__CAN2_RX		0x154
+			MX8MP_IOMUXC_SAI5_RXD3__CAN2_TX		0x154
+		>;
+	};
+
 	pinctrl_pmic: pmicgrp {
 		fsl,pins = <
 			MX8MP_IOMUXC_NAND_CE0_B__GPIO3_IO01	0x41