From 6cc8bc67ec8e62bcfd56aa0e01c464c2e0b04e75 Mon Sep 17 00:00:00 2001 From: Denys Drozdov Date: Tue, 14 Sep 2021 10:12:43 +0300 Subject: apalis-imx8: overlay for flexcan3 on mezzanine Enable flexcan3 interface. Keep CAN transceiver Silent Mode OFF MXM Pin 193 (GPIO2_IO18) low. Related-to: ELB-2578 Signed-off-by: Denys Drozdov --- overlays/apalis-imx8_mezzanine-can_overlay.dts | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 overlays/apalis-imx8_mezzanine-can_overlay.dts (limited to 'overlays/apalis-imx8_mezzanine-can_overlay.dts') diff --git a/overlays/apalis-imx8_mezzanine-can_overlay.dts b/overlays/apalis-imx8_mezzanine-can_overlay.dts new file mode 100644 index 0000000..0bcab87 --- /dev/null +++ b/overlays/apalis-imx8_mezzanine-can_overlay.dts @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2020-2021 Toradex + */ + +// Apalis iMX8 Mezzanine CAN overlay + +/dts-v1/; +/plugin/; + +#include + +/ { + compatible = "toradex,apalis-imx8"; +}; + +/* Please note atmel_mxt_ts node should be disabled */ +&flexcan3 { + status = "okay"; +}; + +&lsio_gpio2 { + /* Disable CAN transceiver silent mode */ + CAN_SILENT { + gpio-hog; + gpios = <18 GPIO_ACTIVE_HIGH>; /* SODIMM 193 */ + line-name = "CAN_SILENT"; + output-low; + }; +}; -- cgit v1.2.3