From: Alexander Feilke <[email protected]>

This commit can be reverted once the upstream linux device trees are
synchronized.

Signed-off-by: Alexander Feilke <[email protected]>
---
 arch/arm/dts/imx7s-mba7-u-boot.dtsi  | 23 ++++++++++++++++++++++-
 arch/arm/dts/imx7s-tqma7-u-boot.dtsi | 22 ++++++++++++++++++++++
 2 files changed, 44 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/imx7s-tqma7-u-boot.dtsi

diff --git a/arch/arm/dts/imx7s-mba7-u-boot.dtsi 
b/arch/arm/dts/imx7s-mba7-u-boot.dtsi
index 2ed3f9c4769..bb560f4d85b 100644
--- a/arch/arm/dts/imx7s-mba7-u-boot.dtsi
+++ b/arch/arm/dts/imx7s-mba7-u-boot.dtsi
@@ -7,7 +7,7 @@
  * Author: Steffen Doster
  */
 
-#include "imx7s-u-boot.dtsi"
+#include "imx7s-tqma7-u-boot.dtsi"
 
 / {
        config {
@@ -21,7 +21,28 @@
        };
 };
 
+&gpio4 {
+       /* Deassert BOOT_EN after boot to separate BOOT_CFG circuits from LCD 
signals */
+       boot-en-hog {
+               gpio-hog;
+               gpios = <3 GPIO_ACTIVE_LOW>;
+               output-low;
+       };
+};
+
 &wdog1 {
        u-boot,noautostart;
        timeout-sec = <60>;
 };
+
+&iomuxc {
+       bootph-pre-ram;
+};
+
+&pinctrl_uart6 {
+       bootph-pre-ram;
+};
+
+&uart6 {
+       bootph-pre-ram;
+};
diff --git a/arch/arm/dts/imx7s-tqma7-u-boot.dtsi 
b/arch/arm/dts/imx7s-tqma7-u-boot.dtsi
new file mode 100644
index 00000000000..2d1d614cd57
--- /dev/null
+++ b/arch/arm/dts/imx7s-tqma7-u-boot.dtsi
@@ -0,0 +1,22 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Device Tree Source for TQ-Systems TQMa7S module.
+ *
+ * Copyright (C) 2024-2026 TQ-Systems GmbH <[email protected]>,
+ * D-82229 Seefeld, Germany
+ * Author: Steffen Doster
+ */
+
+#include "imx7s-u-boot.dtsi"
+
+&soc {
+       bootph-pre-ram;
+};
+
+&aips1 {
+       bootph-pre-ram;
+};
+
+&aips3 {
+       bootph-pre-ram;
+};
-- 
2.34.1

Reply via email to