summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrique Garcia <henrique.garcia@toradex.com>2022-03-28 08:32:41 -0300
committerhenrique.garcia <henrique.garcia@toradex.com>2022-03-31 12:54:24 -0300
commit80386a7042bf0aaa5caf43f91371a359c5af616f (patch)
tree74d82446d0deccad983488d77957329f7badf0b3
parentd1ffa500cceb084ffc54f82ecbc58b4e8edf1bcc (diff)
colibri-imx8x: add overlay to disable the cortex-m's uarttoradex_5.4-2.3.x-imx
Related-to: ELB-4380 Signed-off-by: Henrique Garcia <henrique.garcia@toradex.com>
-rw-r--r--overlays/Makefile1
-rw-r--r--overlays/colibri-imx8x_disable-cm40-uart_overlay.dts21
2 files changed, 22 insertions, 0 deletions
diff --git a/overlays/Makefile b/overlays/Makefile
index 19bd504..0abb532 100644
--- a/overlays/Makefile
+++ b/overlays/Makefile
@@ -70,6 +70,7 @@ dtb-y += colibri-imx7_lcd-vga_overlay.dtbo
dtb-y += colibri-imx8x_ad7879_overlay.dtbo
dtb-y += colibri-imx8x_atmel-mxt-adapter_overlay.dtbo
dtb-y += colibri-imx8x_atmel-mxt-connector_overlay.dtbo
+dtb-y += colibri-imx8x_disable-cm40-uart_overlay.dtbo
dtb-y += colibri-imx8x_display-lcdif_overlay.dtbo
dtb-y += colibri-imx8x_dsihdmi_overlay.dtbo
dtb-y += colibri-imx8x-eval_spidev_overlay.dtbo
diff --git a/overlays/colibri-imx8x_disable-cm40-uart_overlay.dts b/overlays/colibri-imx8x_disable-cm40-uart_overlay.dts
new file mode 100644
index 0000000..e778c87
--- /dev/null
+++ b/overlays/colibri-imx8x_disable-cm40-uart_overlay.dts
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Copyright 2021 Toradex
+ */
+
+// Disables, at the Linux side, the UART that is shared with Cortex-M
+
+/dts-v1/;
+/plugin/;
+
+/{
+ compatible = "toradex,colibri-imx8";
+};
+
+&cm40_lpuart {
+ status = "disabled";
+};
+
+&cm40_uart_lpcg {
+ status = "disabled";
+};