summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Paulo Gonçalves <joao.goncalves@toradex.com>2024-10-17 16:49:12 -0300
committerJoão Paulo Gonçalves <joao.goncalves@toradex.com>2024-10-18 14:08:01 -0300
commit76b7c98535458d12897f172dffc1cbc3364f95c8 (patch)
treeeaadcd31c58cf3c61305754bd22c637f18a241b7
parent759b20c7a4fb143a4571176e35f4256eba1bc506 (diff)
verdin-am62: add mezzanine can support
The Verdin-AM62 Mezzanine exposes the third CAN interface available on the AM62. This commit adds a new overlay to enable the interface. Related-to: ELB-6020 Signed-off-by: João Paulo Gonçalves <joao.goncalves@toradex.com>
-rw-r--r--overlays/verdin-am62_mezzanine_can.dts30
1 files changed, 30 insertions, 0 deletions
diff --git a/overlays/verdin-am62_mezzanine_can.dts b/overlays/verdin-am62_mezzanine_can.dts
new file mode 100644
index 0000000..4c71caf
--- /dev/null
+++ b/overlays/verdin-am62_mezzanine_can.dts
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Copyright 2024 Toradex
+ */
+
+// Verdin AM62 Mezzanine CAN
+
+/dts-v1/;
+/plugin/;
+
+#include "k3-pinctrl.h"
+
+/ {
+ compatible = "toradex,verdin-am62";
+};
+
+&mcu_pmx0 {
+ pinctrl_mcu_mcan1: mcu-mcan1-default-pins {
+ pinctrl-single,pins = <
+ AM62X_MCU_IOPAD(0x0040, PIN_INPUT, 0) /* (D4) MCU_MCAN1_RX */ /* SODIMM 116 */
+ AM62X_MCU_IOPAD(0x003c, PIN_OUTPUT, 0) /* (E5) MCU_MCAN1_TX */ /* SODIMM 128 */
+ >;
+ };
+};
+
+&mcu_mcan1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_mcu_mcan1>;
+ status = "okay";
+};