File 0001-LTE-add-modem.patch of Package uboot-imx

From f5e990359e08bf65fa709634a036cd24dfa9fc5f Mon Sep 17 00:00:00 2001
From: dewit <dewit@inventeers.nl>
Date: Fri, 5 Sep 2025 17:08:29 +0200
Subject: [PATCH] 0001-LTE-add-modem

---
 arch/arm/dts/imx93-11x11-frdm.dts | 55 +++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

diff --git a/arch/arm/dts/imx93-11x11-frdm.dts b/arch/arm/dts/imx93-11x11-frdm.dts
index 6da60393cf4..d8e98eeb1c4 100644
--- a/arch/arm/dts/imx93-11x11-frdm.dts
+++ b/arch/arm/dts/imx93-11x11-frdm.dts
@@ -72,6 +72,17 @@
 		enable-active-high;
 	};
 
+    reg_vdd_3v8 : regulator-vdd-3v8 {
+		compatible = "regulator-fixed";
+		regulator-name = "reg_vdd_3v8";
+		regulator-min-microvolt = <3700000>;
+		regulator-max-microvolt = <4200000>;
+		gpio = <&gpio2 14 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+        // off-on-delay-us = <10000000>;
+        regulator-always-on;
+	};
+
 };
 
 &adc1 {
@@ -315,6 +326,36 @@
 
 };
 
+&lpuart1 { /* LTE */
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_hl7845_uart>;
+    current-speed = <115200>;
+	status = "okay";
+
+    hl7845: hl7845@0 {
+		compatible = "gpio-modem";
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_hl7845_ctrl>;
+
+		vbat-supply = <&reg_vdd_3v8>;
+
+		mdm-pwr-on-gpios  = <&gpio1 8 GPIO_ACTIVE_HIGH>;
+		// mdm-reset-gpios not connected
+		mdm-wake-gpios    = <&gpio3 23 GPIO_ACTIVE_HIGH>;
+
+		wakeup {
+			compatible = "gpio-keys";
+			hlwake: key-wake {
+				label = "hl7845-wakeup";
+				linux,code = <KEY_WAKEUP>;
+				gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
+				wakeup-source;
+				debounce-interval = <10>;
+			};
+		};
+	};
+};
+
 &lpuart2 { /* console */
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_uart2>;
@@ -479,6 +520,20 @@
 		>;
 	};
 
+    pinctrl_hl7845_uart: hl7845-uartgrp {
+		fsl,pins = <
+			MX93_PAD_UART1_RXD__LPUART1_RX			0x31e
+			MX93_PAD_UART1_TXD__LPUART1_TX			0x31e
+		>;
+	};
+
+    pinctrl_hl7845_ctrl: hl7845-ctrlgrp {
+		fsl,pins = <
+			MX93_PAD_PDM_CLK__GPIO1_IO08			0x31e /* Power key */
+			MX93_PAD_SD3_DATA1__GPIO3_IO23			0x31e /* Wake up */
+		>;
+	};
+
 	pinctrl_uart2: uart2grp {
 		fsl,pins = <
 			MX93_PAD_UART2_RXD__LPUART2_RX			0x31e
-- 
2.51.0.windows.1

openSUSE Build Service is sponsored by