File 0017-enable-both-bluetooth.patch of Package imx93-devicetree
From 6b531c0142a852b6cbfad2cf5b647e23a8d571b6 Mon Sep 17 00:00:00 2001
From: Michael van der Raad <vanderraad@inventeers>
Date: Tue, 16 Sep 2025 10:40:59 +0000
Subject: [PATCH 01/18] Add devicetree with spi3, spi7 and bt-wifi enable
---
.../boot/dts/freescale/imx93-11x11-frdm.dts | 70 ++++++++++++++-----
1 file changed, 53 insertions(+), 17 deletions(-)
diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
index 068026c73017..dfae322ef388 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
@@ -18,7 +18,7 @@ aliases {
};
chosen {
- stdout-path = &lpuart1;
+ stdout-path = &lpuart2;
};
reserved-memory {
@@ -471,9 +471,9 @@ typec1_con: connector {
};
};
-&lpuart1 { /* console */
+&lpuart2 { /* console */
pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_uart1>;
+ pinctrl-0 = <&pinctrl_uart2>;
status = "okay";
};
@@ -581,12 +581,6 @@ &wdog3 {
status = "okay";
};
-&tpm3 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_led1>;
- status = "okay";
-};
-
&tpm4 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_led2>;
@@ -711,10 +705,10 @@ MX93_PAD_CCM_CLKO2__GPIO3_IO27 0x31e
>;
};
- pinctrl_uart1: uart1grp {
+ pinctrl_uart2: uart2grp {
fsl,pins = <
- MX93_PAD_UART1_RXD__LPUART1_RX 0x31e
- MX93_PAD_UART1_TXD__LPUART1_TX 0x31e
+ MX93_PAD_UART2_RXD__LPUART2_RX 0x31e
+ MX93_PAD_UART2_TXD__LPUART2_TX 0x31e
>;
};
@@ -916,12 +910,24 @@ MX93_PAD_GPIO_IO10__LPSPI3_SOUT 0x3fe
MX93_PAD_GPIO_IO11__LPSPI3_SCK 0x3fe
>;
};
- pinctrl_led1: ledsgrp1 {
+
+ pinctrl_lpspi7: lpspi7grp { /*!< Function assigned for the core: Cortex-A55[ca55] */
fsl,pins = <
- MX93_PAD_GPIO_IO04__TPM3_CH0 0x02
- MX93_PAD_GPIO_IO12__TPM3_CH2 0x02
+ MX93_PAD_GPIO_IO01__GPIO2_IO01 0x0000111E
+ MX93_PAD_GPIO_IO04__LPSPI7_PCS0 0x0000031E
+ MX93_PAD_GPIO_IO05__LPSPI7_SIN 0x0000011E
+ MX93_PAD_GPIO_IO06__LPSPI7_SOUT 0x0000011E
+ MX93_PAD_GPIO_IO07__LPSPI7_SCK 0x0000051E
+ /*
+ MX93_PAD_GPIO_IO12__LPUART8_TX 0x0000011E
+ MX93_PAD_GPIO_IO13__LPUART8_RX 0x0000011E
+ */
+ MX93_PAD_GPIO_IO25__LPSPI7_PCS1 0x0000031E
+ MX93_PAD_SAI1_RXD0__GPIO1_IO14 0x0000111E
+ MX93_PAD_SAI1_TXC__GPIO1_IO12 0x0000011E
>;
};
+
pinctrl_led2: ledsgrp2 {
fsl,pins = <
MX93_PAD_GPIO_IO13__TPM4_CH2 0x02
@@ -956,16 +962,46 @@ &lpspi3 {
pinctrl-0 = <&pinctrl_lpspi3>;
pinctrl-1 = <&pinctrl_lpspi3>;
cs-gpios = <&gpio2 8 GPIO_ACTIVE_LOW>;
- pinctrl-assert-gpios = <&pcal6408 0 GPIO_ACTIVE_HIGH>;
status = "okay";
- spidev0: spi@0 {
+ spi_rf: spi@0 {
+ reg = <0>;
+ compatible = "lwn,bk4";
+ spi-max-frequency = <1000000>;
+ };
+};
+
+&lpspi7 {
+ fsl,spi-num-chipselects = <2>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_lpspi7>;
+ cs-gpios = <&gpio2 4 GPIO_ACTIVE_LOW
+ &gpio2 25 GPIO_ACTIVE_LOW>;
+ status = "okay";
+
+ spi_psu: spi@0 {
reg = <0>;
compatible = "lwn,bk4";
spi-max-frequency = <1000000>;
};
+
+ spi_wifi_bl: spi@1 {
+ reg = <1>;
+ compatible = "lwn,bk4";
+ spi-max-frequency = <1000000>;
+ };
+};
+
+&gpio1 {
+ bt-wifi-enable-hog {
+ gpio-hog;
+ gpios = <12 GPIO_ACTIVE_LOW>; // Pin 12, active low
+ output-high; // Set output to high
+ line-name = "bt-wifi-en"; // Optional label
+ };
};
&ele_if0 {
memory-region = <&ele_reserved>;
};
+
--
2.51.0
From 167d72503942d018d4dde4142e07ee7e80232ebd Mon Sep 17 00:00:00 2001
From: Michael van der Raad <vanderraad@inventeers>
Date: Tue, 16 Sep 2025 11:16:10 +0000
Subject: [PATCH 02/18] Enable bluetooth driver and uart
---
.../boot/dts/freescale/imx93-11x11-frdm.dts | 33 ++++++++++---------
1 file changed, 17 insertions(+), 16 deletions(-)
diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
index dfae322ef388..852757f4a435 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
@@ -477,18 +477,6 @@ &lpuart2 { /* console */
status = "okay";
};
-&lpuart5 {
- /* BT */
- pinctrl-names = "default";
- pinctrl-assert-gpios = <&pcal6524 19 GPIO_ACTIVE_HIGH>;
- pinctrl-0 = <&pinctrl_uart5>;
- status = "okay";
-
- bluetooth {
- compatible = "nxp,88w8987-bt";
- };
-};
-
&usbotg1 {
dr_mode = "otg";
hnp-disable;
@@ -918,16 +906,19 @@ MX93_PAD_GPIO_IO04__LPSPI7_PCS0 0x0000031E
MX93_PAD_GPIO_IO05__LPSPI7_SIN 0x0000011E
MX93_PAD_GPIO_IO06__LPSPI7_SOUT 0x0000011E
MX93_PAD_GPIO_IO07__LPSPI7_SCK 0x0000051E
- /*
- MX93_PAD_GPIO_IO12__LPUART8_TX 0x0000011E
- MX93_PAD_GPIO_IO13__LPUART8_RX 0x0000011E
- */
MX93_PAD_GPIO_IO25__LPSPI7_PCS1 0x0000031E
MX93_PAD_SAI1_RXD0__GPIO1_IO14 0x0000111E
MX93_PAD_SAI1_TXC__GPIO1_IO12 0x0000011E
>;
};
+ pinctrl_lpuart8: lpuart8grp {
+ fsl,pins = <
+ MX93_PAD_GPIO_IO12__LPUART8_TX 0x0000011E
+ MX93_PAD_GPIO_IO13__LPUART8_RX 0x0000011E
+ >;
+ }
+
pinctrl_led2: ledsgrp2 {
fsl,pins = <
MX93_PAD_GPIO_IO13__TPM4_CH2 0x02
@@ -992,6 +983,16 @@ spi_wifi_bl: spi@1 {
};
};
+&lpuart8 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_lpuart8>;
+ status = "okay";
+
+ bluetooth {
+ compatible = "nxp,88w8987-bt";
+ };
+};
+
&gpio1 {
bt-wifi-enable-hog {
gpio-hog;
--
2.51.0
From a9c6abb07f90cfa4c735987d9a89ecd80c5b774d Mon Sep 17 00:00:00 2001
From: Michael van der Raad <vanderraad@inventeers>
Date: Tue, 16 Sep 2025 11:20:10 +0000
Subject: [PATCH 03/18] Fix devicetree
---
arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
index 852757f4a435..f50a01e05266 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
@@ -917,7 +917,7 @@ pinctrl_lpuart8: lpuart8grp {
MX93_PAD_GPIO_IO12__LPUART8_TX 0x0000011E
MX93_PAD_GPIO_IO13__LPUART8_RX 0x0000011E
>;
- }
+ };
pinctrl_led2: ledsgrp2 {
fsl,pins = <
--
2.51.0
From 4bf2bbe11b15b5de086ec322db49338f83b599bd Mon Sep 17 00:00:00 2001
From: Michael van der Raad <vanderraad@inventeers>
Date: Tue, 16 Sep 2025 12:32:03 +0000
Subject: [PATCH 04/18] Set correct bluetooth driver
---
arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
index f50a01e05266..2d7cb0ea5fc1 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
@@ -989,7 +989,7 @@ &lpuart8 {
status = "okay";
bluetooth {
- compatible = "nxp,88w8987-bt";
+ compatible = "brcm,bcm43438-bt";
};
};
--
2.51.0
From b169707151ec8eafae26e368f5ad14a4557a0c7d Mon Sep 17 00:00:00 2001
From: Michael van der Raad <vanderraad@inventeers>
Date: Tue, 16 Sep 2025 13:27:10 +0000
Subject: [PATCH 05/18] Remove tpm4
---
arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
index 2d7cb0ea5fc1..9ea3cbbd97d9 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
@@ -569,12 +569,6 @@ &wdog3 {
status = "okay";
};
-&tpm4 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_led2>;
- status = "okay";
-};
-
&iomuxc {
pinctrl_eqos: eqosgrp {
fsl,pins = <
@@ -918,12 +912,6 @@ MX93_PAD_GPIO_IO12__LPUART8_TX 0x0000011E
MX93_PAD_GPIO_IO13__LPUART8_RX 0x0000011E
>;
};
-
- pinctrl_led2: ledsgrp2 {
- fsl,pins = <
- MX93_PAD_GPIO_IO13__TPM4_CH2 0x02
- >;
- };
};
&media_blk_ctrl {
--
2.51.0
From e1d670159baf98cd6264f52ead5ef7dc12eed86e Mon Sep 17 00:00:00 2001
From: Michael van der Raad <vanderraad@inventeers>
Date: Tue, 16 Sep 2025 14:20:09 +0000
Subject: [PATCH 06/18] Set max baud rate
---
arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
index 9ea3cbbd97d9..986e71f592e9 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
@@ -978,17 +978,19 @@ &lpuart8 {
bluetooth {
compatible = "brcm,bcm43438-bt";
+ max-speed = <921600>;
+ shutdown-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
};
};
-&gpio1 {
+/*&gpio1 {
bt-wifi-enable-hog {
gpio-hog;
gpios = <12 GPIO_ACTIVE_LOW>; // Pin 12, active low
output-high; // Set output to high
line-name = "bt-wifi-en"; // Optional label
};
-};
+};*/
&ele_if0 {
memory-region = <&ele_reserved>;
--
2.51.0
From bf6ca6a1c5687748536729134a6084f92a26e775 Mon Sep 17 00:00:00 2001
From: Michael van der Raad <vanderraad@inventeers>
Date: Tue, 16 Sep 2025 14:37:11 +0000
Subject: [PATCH 07/18] Disable max speed
---
arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
index 986e71f592e9..38f9f4528f58 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
@@ -978,7 +978,6 @@ &lpuart8 {
bluetooth {
compatible = "brcm,bcm43438-bt";
- max-speed = <921600>;
shutdown-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
};
};
--
2.51.0
From 60f289981ae62e7c9d00df4a10f648f000bcb8e0 Mon Sep 17 00:00:00 2001
From: Michael van der Raad <vanderraad@inventeers>
Date: Tue, 16 Sep 2025 15:25:14 +0000
Subject: [PATCH 08/18] Add interrupt
---
arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
index 38f9f4528f58..2a84d6096695 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
@@ -979,6 +979,8 @@ &lpuart8 {
bluetooth {
compatible = "brcm,bcm43438-bt";
shutdown-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
+ interrupt-parent = <&gpio1>;
+ interrupts = <14 IRQ_TYPE_EDGE_FALLING>;
};
};
--
2.51.0
From 9533912f4d9bf0db328975c5ee6c0c87f3e9b143 Mon Sep 17 00:00:00 2001
From: Michael van der Raad <vanderraad@inventeers>
Date: Tue, 16 Sep 2025 16:03:37 +0000
Subject: [PATCH 09/18] Disable bt driver
---
arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
index 2a84d6096695..16ab75fbf3f3 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
@@ -976,12 +976,12 @@ &lpuart8 {
pinctrl-0 = <&pinctrl_lpuart8>;
status = "okay";
- bluetooth {
+ /*bluetooth {
compatible = "brcm,bcm43438-bt";
shutdown-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
interrupt-parent = <&gpio1>;
interrupts = <14 IRQ_TYPE_EDGE_FALLING>;
- };
+ };*/
};
/*&gpio1 {
--
2.51.0
From e730ff131c8ddbad641a52a763be32af2d8d8d0e Mon Sep 17 00:00:00 2001
From: Michael van der Raad <vanderraad@inventeers>
Date: Tue, 16 Sep 2025 16:59:14 +0000
Subject: [PATCH 10/18] enable multi compatibility
---
arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
index 16ab75fbf3f3..66685ea6929e 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
@@ -976,12 +976,10 @@ &lpuart8 {
pinctrl-0 = <&pinctrl_lpuart8>;
status = "okay";
- /*bluetooth {
- compatible = "brcm,bcm43438-bt";
+ bluetooth {
+ compatible = "infineon,cyw43439-bt", "brcm,bcm4329-bt";
shutdown-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
- interrupt-parent = <&gpio1>;
- interrupts = <14 IRQ_TYPE_EDGE_FALLING>;
- };*/
+ };
};
/*&gpio1 {
--
2.51.0
From ee752c25b2e3cc128e9253ce246d9c79de4ae998 Mon Sep 17 00:00:00 2001
From: Michael van der Raad <vanderraad@inventeers>
Date: Thu, 18 Sep 2025 12:41:59 +0000
Subject: [PATCH 11/18] Enable uart1 and attach to bluetooth driver for testing
---
.../boot/dts/freescale/imx93-11x11-frdm.dts | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
index 66685ea6929e..7266c147bacb 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
@@ -906,6 +906,13 @@ MX93_PAD_SAI1_TXC__GPIO1_IO12 0x0000011E
>;
};
+ pinctrl_lpuart1: lpuart1grp {
+ fsl,pins = <
+ MX93_PAD_UART1_RXD__LPUART1_RX 0x0000011E
+ MX93_PAD_UART1_TXD__LPUART1_TX 0x0000011E
+ >;
+ };
+
pinctrl_lpuart8: lpuart8grp {
fsl,pins = <
MX93_PAD_GPIO_IO12__LPUART8_TX 0x0000011E
@@ -971,9 +978,9 @@ spi_wifi_bl: spi@1 {
};
};
-&lpuart8 {
+&lpuart1 {
pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_lpuart8>;
+ pinctrl-0 = <&pinctrl_lpuart1>;
status = "okay";
bluetooth {
@@ -982,6 +989,12 @@ bluetooth {
};
};
+&lpuart8 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_lpuart8>;
+ status = "okay";
+};
+
/*&gpio1 {
bt-wifi-enable-hog {
gpio-hog;
--
2.51.0
From a0eeb5a6cbb65bc1921589c92f5c10149c7633c3 Mon Sep 17 00:00:00 2001
From: Michael van der Raad <vanderraad@inventeers>
Date: Thu, 18 Sep 2025 14:13:05 +0000
Subject: [PATCH 12/18] Disable bluetooth
---
arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
index 7266c147bacb..a1e0ed8e0f47 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
@@ -983,10 +983,10 @@ &lpuart1 {
pinctrl-0 = <&pinctrl_lpuart1>;
status = "okay";
- bluetooth {
+ /*bluetooth {
compatible = "infineon,cyw43439-bt", "brcm,bcm4329-bt";
shutdown-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
- };
+ };*/
};
&lpuart8 {
--
2.51.0
From 0b27a885f4508168f0de2b557815ef2d7d60b3de Mon Sep 17 00:00:00 2001
From: Michael van der Raad <vanderraad@inventeers>
Date: Thu, 18 Sep 2025 14:52:10 +0000
Subject: [PATCH 13/18] Set uart to pull up
---
arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
index a1e0ed8e0f47..389b2fc2bfed 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
@@ -908,15 +908,15 @@ MX93_PAD_SAI1_TXC__GPIO1_IO12 0x0000011E
pinctrl_lpuart1: lpuart1grp {
fsl,pins = <
- MX93_PAD_UART1_RXD__LPUART1_RX 0x0000011E
- MX93_PAD_UART1_TXD__LPUART1_TX 0x0000011E
+ MX93_PAD_UART1_RXD__LPUART1_RX 0x31e
+ MX93_PAD_UART1_TXD__LPUART1_TX 0x31e
>;
};
pinctrl_lpuart8: lpuart8grp {
fsl,pins = <
- MX93_PAD_GPIO_IO12__LPUART8_TX 0x0000011E
- MX93_PAD_GPIO_IO13__LPUART8_RX 0x0000011E
+ MX93_PAD_GPIO_IO12__LPUART8_TX 0x31e
+ MX93_PAD_GPIO_IO13__LPUART8_RX 0x31e
>;
};
};
@@ -993,6 +993,11 @@ &lpuart8 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lpuart8>;
status = "okay";
+
+ bluetooth {
+ compatible = "infineon,cyw43439-bt", "brcm,bcm4329-bt";
+ shutdown-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
+ };
};
/*&gpio1 {
--
2.51.0
From 385fcc23c3a7a95a4117771612978dc1d6bb3619 Mon Sep 17 00:00:00 2001
From: Michael van der Raad <vanderraad@inventeers>
Date: Thu, 18 Sep 2025 17:34:18 +0000
Subject: [PATCH 14/18] Setup
---
.../boot/dts/freescale/imx93-11x11-frdm.dts | 57 +++++++++----------
1 file changed, 28 insertions(+), 29 deletions(-)
diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
index 389b2fc2bfed..b47ead72929c 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
@@ -471,12 +471,33 @@ typec1_con: connector {
};
};
+&lpuart1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_uart1>;
+ status = "okay";
+ /*bluetooth {
+ compatible = "infineon,cyw43439-bt", "brcm,bcm4329-bt";
+ shutdown-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
+ };*/
+};
+
&lpuart2 { /* console */
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart2>;
status = "okay";
};
+/*&lpuart8 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_uart8>;
+ status = "okay";
+
+ bluetooth {
+ compatible = "infineon,cyw43439-bt", "brcm,bcm4329-bt";
+ shutdown-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
+ };
+};*/
+
&usbotg1 {
dr_mode = "otg";
hnp-disable;
@@ -906,19 +927,19 @@ MX93_PAD_SAI1_TXC__GPIO1_IO12 0x0000011E
>;
};
- pinctrl_lpuart1: lpuart1grp {
+ pinctrl_uart1: uart1grp {
fsl,pins = <
- MX93_PAD_UART1_RXD__LPUART1_RX 0x31e
- MX93_PAD_UART1_TXD__LPUART1_TX 0x31e
+ MX93_PAD_UART1_RXD__LPUART1_RX 0x0000011E
+ MX93_PAD_UART1_TXD__LPUART1_TX 0x0000031E
>;
};
- pinctrl_lpuart8: lpuart8grp {
+ /*pinctrl_uart8: uart8grp {
fsl,pins = <
- MX93_PAD_GPIO_IO12__LPUART8_TX 0x31e
- MX93_PAD_GPIO_IO13__LPUART8_RX 0x31e
+ MX93_PAD_GPIO_IO12__LPUART8_TX 0x0000031E
+ MX93_PAD_GPIO_IO13__LPUART8_RX 0x0000011E
>;
- };
+ };*/
};
&media_blk_ctrl {
@@ -978,28 +999,6 @@ spi_wifi_bl: spi@1 {
};
};
-&lpuart1 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_lpuart1>;
- status = "okay";
-
- /*bluetooth {
- compatible = "infineon,cyw43439-bt", "brcm,bcm4329-bt";
- shutdown-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
- };*/
-};
-
-&lpuart8 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_lpuart8>;
- status = "okay";
-
- bluetooth {
- compatible = "infineon,cyw43439-bt", "brcm,bcm4329-bt";
- shutdown-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
- };
-};
-
/*&gpio1 {
bt-wifi-enable-hog {
gpio-hog;
--
2.51.0
From b0a64938ab1ea410df3ea3f737629a1ca87b7226 Mon Sep 17 00:00:00 2001
From: Michael van der Raad <vanderraad@inventeers.nl>
Date: Mon, 29 Sep 2025 13:39:13 +0000
Subject: [PATCH 15/18] Enable bluetooth both uart6 and uart8
---
.../boot/dts/freescale/imx93-11x11-frdm.dts | 49 +++++++++++--------
1 file changed, 29 insertions(+), 20 deletions(-)
diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
index b47ead72929c..6a0ec54ef1f4 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
@@ -471,14 +471,21 @@ typec1_con: connector {
};
};
-&lpuart1 {
+/*&lpuart1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart1>;
status = "okay";
- /*bluetooth {
+};*/
+
+&lpuart6 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_uart6>;
+ status = "okay";
+
+ bluetooth {
compatible = "infineon,cyw43439-bt", "brcm,bcm4329-bt";
shutdown-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
- };*/
+ };
};
&lpuart2 { /* console */
@@ -487,7 +494,7 @@ &lpuart2 { /* console */
status = "okay";
};
-/*&lpuart8 {
+&lpuart8 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart8>;
status = "okay";
@@ -496,7 +503,7 @@ bluetooth {
compatible = "infineon,cyw43439-bt", "brcm,bcm4329-bt";
shutdown-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
};
-};*/
+};
&usbotg1 {
dr_mode = "otg";
@@ -715,15 +722,6 @@ MX93_PAD_UART2_TXD__LPUART2_TX 0x31e
>;
};
- pinctrl_uart5: uart5grp {
- fsl,pins = <
- MX93_PAD_DAP_TDO_TRACESWO__LPUART5_TX 0x31e
- MX93_PAD_DAP_TDI__LPUART5_RX 0x31e
- MX93_PAD_DAP_TMS_SWDIO__LPUART5_RTS_B 0x31e
- MX93_PAD_DAP_TCLK_SWCLK__LPUART5_CTS_B 0x31e
- >;
- };
-
/* need to config the SION for data and cmd pad, refer to ERR052021 */
pinctrl_usdhc1: usdhc1grp {
fsl,pins = <
@@ -914,7 +912,7 @@ MX93_PAD_GPIO_IO11__LPSPI3_SCK 0x3fe
>;
};
- pinctrl_lpspi7: lpspi7grp { /*!< Function assigned for the core: Cortex-A55[ca55] */
+ /*pinctrl_lpspi7: lpspi7grp {
fsl,pins = <
MX93_PAD_GPIO_IO01__GPIO2_IO01 0x0000111E
MX93_PAD_GPIO_IO04__LPSPI7_PCS0 0x0000031E
@@ -925,7 +923,7 @@ MX93_PAD_GPIO_IO25__LPSPI7_PCS1 0x0000031E
MX93_PAD_SAI1_RXD0__GPIO1_IO14 0x0000111E
MX93_PAD_SAI1_TXC__GPIO1_IO12 0x0000011E
>;
- };
+ };*/
pinctrl_uart1: uart1grp {
fsl,pins = <
@@ -934,12 +932,23 @@ MX93_PAD_UART1_TXD__LPUART1_TX 0x0000031E
>;
};
- /*pinctrl_uart8: uart8grp {
+ pinctrl_uart6: uart6grp {
+ fsl,pins = <
+ MX93_PAD_GPIO_IO04__LPUART6_TX 0x0000031E
+ MX93_PAD_GPIO_IO05__LPUART6_RX 0x0000011E
+ MX93_PAD_GPIO_IO06__LPUART6_CTS_B 0x0000031E
+ MX93_PAD_GPIO_IO07__LPUART6_RTS_B 0x0000031E
+ >;
+ };
+
+ pinctrl_uart8: uart8grp {
fsl,pins = <
MX93_PAD_GPIO_IO12__LPUART8_TX 0x0000031E
MX93_PAD_GPIO_IO13__LPUART8_RX 0x0000011E
+ MX93_PAD_GPIO_IO14__LPUART8_CTS_B 0x0000031E
+ MX93_PAD_GPIO_IO15__LPUART8_RTS_B 0x0000031E
>;
- };*/
+ };
};
&media_blk_ctrl {
@@ -978,7 +987,7 @@ spi_rf: spi@0 {
};
};
-&lpspi7 {
+/*&lpspi7 {
fsl,spi-num-chipselects = <2>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lpspi7>;
@@ -997,7 +1006,7 @@ spi_wifi_bl: spi@1 {
compatible = "lwn,bk4";
spi-max-frequency = <1000000>;
};
-};
+};*/
/*&gpio1 {
bt-wifi-enable-hog {
--
2.51.0
From 20787d04affdc0d78211e43954acca8fdb6d2cde Mon Sep 17 00:00:00 2001
From: Michael van der Raad <vanderraad@inventeers.nl>
Date: Mon, 29 Sep 2025 13:42:18 +0000
Subject: [PATCH 16/18] Revert "Enable bluetooth both uart6 and uart8"
This reverts commit b0a64938ab1ea410df3ea3f737629a1ca87b7226.
---
.../boot/dts/freescale/imx93-11x11-frdm.dts | 49 ++++++++-----------
1 file changed, 20 insertions(+), 29 deletions(-)
diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
index 6a0ec54ef1f4..b47ead72929c 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
@@ -471,21 +471,14 @@ typec1_con: connector {
};
};
-/*&lpuart1 {
+&lpuart1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart1>;
status = "okay";
-};*/
-
-&lpuart6 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_uart6>;
- status = "okay";
-
- bluetooth {
+ /*bluetooth {
compatible = "infineon,cyw43439-bt", "brcm,bcm4329-bt";
shutdown-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
- };
+ };*/
};
&lpuart2 { /* console */
@@ -494,7 +487,7 @@ &lpuart2 { /* console */
status = "okay";
};
-&lpuart8 {
+/*&lpuart8 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart8>;
status = "okay";
@@ -503,7 +496,7 @@ bluetooth {
compatible = "infineon,cyw43439-bt", "brcm,bcm4329-bt";
shutdown-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
};
-};
+};*/
&usbotg1 {
dr_mode = "otg";
@@ -722,6 +715,15 @@ MX93_PAD_UART2_TXD__LPUART2_TX 0x31e
>;
};
+ pinctrl_uart5: uart5grp {
+ fsl,pins = <
+ MX93_PAD_DAP_TDO_TRACESWO__LPUART5_TX 0x31e
+ MX93_PAD_DAP_TDI__LPUART5_RX 0x31e
+ MX93_PAD_DAP_TMS_SWDIO__LPUART5_RTS_B 0x31e
+ MX93_PAD_DAP_TCLK_SWCLK__LPUART5_CTS_B 0x31e
+ >;
+ };
+
/* need to config the SION for data and cmd pad, refer to ERR052021 */
pinctrl_usdhc1: usdhc1grp {
fsl,pins = <
@@ -912,7 +914,7 @@ MX93_PAD_GPIO_IO11__LPSPI3_SCK 0x3fe
>;
};
- /*pinctrl_lpspi7: lpspi7grp {
+ pinctrl_lpspi7: lpspi7grp { /*!< Function assigned for the core: Cortex-A55[ca55] */
fsl,pins = <
MX93_PAD_GPIO_IO01__GPIO2_IO01 0x0000111E
MX93_PAD_GPIO_IO04__LPSPI7_PCS0 0x0000031E
@@ -923,7 +925,7 @@ MX93_PAD_GPIO_IO25__LPSPI7_PCS1 0x0000031E
MX93_PAD_SAI1_RXD0__GPIO1_IO14 0x0000111E
MX93_PAD_SAI1_TXC__GPIO1_IO12 0x0000011E
>;
- };*/
+ };
pinctrl_uart1: uart1grp {
fsl,pins = <
@@ -932,23 +934,12 @@ MX93_PAD_UART1_TXD__LPUART1_TX 0x0000031E
>;
};
- pinctrl_uart6: uart6grp {
- fsl,pins = <
- MX93_PAD_GPIO_IO04__LPUART6_TX 0x0000031E
- MX93_PAD_GPIO_IO05__LPUART6_RX 0x0000011E
- MX93_PAD_GPIO_IO06__LPUART6_CTS_B 0x0000031E
- MX93_PAD_GPIO_IO07__LPUART6_RTS_B 0x0000031E
- >;
- };
-
- pinctrl_uart8: uart8grp {
+ /*pinctrl_uart8: uart8grp {
fsl,pins = <
MX93_PAD_GPIO_IO12__LPUART8_TX 0x0000031E
MX93_PAD_GPIO_IO13__LPUART8_RX 0x0000011E
- MX93_PAD_GPIO_IO14__LPUART8_CTS_B 0x0000031E
- MX93_PAD_GPIO_IO15__LPUART8_RTS_B 0x0000031E
>;
- };
+ };*/
};
&media_blk_ctrl {
@@ -987,7 +978,7 @@ spi_rf: spi@0 {
};
};
-/*&lpspi7 {
+&lpspi7 {
fsl,spi-num-chipselects = <2>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lpspi7>;
@@ -1006,7 +997,7 @@ spi_wifi_bl: spi@1 {
compatible = "lwn,bk4";
spi-max-frequency = <1000000>;
};
-};*/
+};
/*&gpio1 {
bt-wifi-enable-hog {
--
2.51.0
From f53f455cb891d82af82259d9cf6dc3ebbdf2c7a8 Mon Sep 17 00:00:00 2001
From: Michael van der Raad <vanderraad@inventeers.nl>
Date: Mon, 29 Sep 2025 14:17:09 +0000
Subject: [PATCH 17/18] Enable both uart8 and uart6 bluetooth
---
.../boot/dts/freescale/imx93-11x11-frdm.dts | 49 +++++++++++--------
1 file changed, 29 insertions(+), 20 deletions(-)
diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
index b47ead72929c..6a0ec54ef1f4 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
@@ -471,14 +471,21 @@ typec1_con: connector {
};
};
-&lpuart1 {
+/*&lpuart1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart1>;
status = "okay";
- /*bluetooth {
+};*/
+
+&lpuart6 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_uart6>;
+ status = "okay";
+
+ bluetooth {
compatible = "infineon,cyw43439-bt", "brcm,bcm4329-bt";
shutdown-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
- };*/
+ };
};
&lpuart2 { /* console */
@@ -487,7 +494,7 @@ &lpuart2 { /* console */
status = "okay";
};
-/*&lpuart8 {
+&lpuart8 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart8>;
status = "okay";
@@ -496,7 +503,7 @@ bluetooth {
compatible = "infineon,cyw43439-bt", "brcm,bcm4329-bt";
shutdown-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
};
-};*/
+};
&usbotg1 {
dr_mode = "otg";
@@ -715,15 +722,6 @@ MX93_PAD_UART2_TXD__LPUART2_TX 0x31e
>;
};
- pinctrl_uart5: uart5grp {
- fsl,pins = <
- MX93_PAD_DAP_TDO_TRACESWO__LPUART5_TX 0x31e
- MX93_PAD_DAP_TDI__LPUART5_RX 0x31e
- MX93_PAD_DAP_TMS_SWDIO__LPUART5_RTS_B 0x31e
- MX93_PAD_DAP_TCLK_SWCLK__LPUART5_CTS_B 0x31e
- >;
- };
-
/* need to config the SION for data and cmd pad, refer to ERR052021 */
pinctrl_usdhc1: usdhc1grp {
fsl,pins = <
@@ -914,7 +912,7 @@ MX93_PAD_GPIO_IO11__LPSPI3_SCK 0x3fe
>;
};
- pinctrl_lpspi7: lpspi7grp { /*!< Function assigned for the core: Cortex-A55[ca55] */
+ /*pinctrl_lpspi7: lpspi7grp {
fsl,pins = <
MX93_PAD_GPIO_IO01__GPIO2_IO01 0x0000111E
MX93_PAD_GPIO_IO04__LPSPI7_PCS0 0x0000031E
@@ -925,7 +923,7 @@ MX93_PAD_GPIO_IO25__LPSPI7_PCS1 0x0000031E
MX93_PAD_SAI1_RXD0__GPIO1_IO14 0x0000111E
MX93_PAD_SAI1_TXC__GPIO1_IO12 0x0000011E
>;
- };
+ };*/
pinctrl_uart1: uart1grp {
fsl,pins = <
@@ -934,12 +932,23 @@ MX93_PAD_UART1_TXD__LPUART1_TX 0x0000031E
>;
};
- /*pinctrl_uart8: uart8grp {
+ pinctrl_uart6: uart6grp {
+ fsl,pins = <
+ MX93_PAD_GPIO_IO04__LPUART6_TX 0x0000031E
+ MX93_PAD_GPIO_IO05__LPUART6_RX 0x0000011E
+ MX93_PAD_GPIO_IO06__LPUART6_CTS_B 0x0000031E
+ MX93_PAD_GPIO_IO07__LPUART6_RTS_B 0x0000031E
+ >;
+ };
+
+ pinctrl_uart8: uart8grp {
fsl,pins = <
MX93_PAD_GPIO_IO12__LPUART8_TX 0x0000031E
MX93_PAD_GPIO_IO13__LPUART8_RX 0x0000011E
+ MX93_PAD_GPIO_IO14__LPUART8_CTS_B 0x0000031E
+ MX93_PAD_GPIO_IO15__LPUART8_RTS_B 0x0000031E
>;
- };*/
+ };
};
&media_blk_ctrl {
@@ -978,7 +987,7 @@ spi_rf: spi@0 {
};
};
-&lpspi7 {
+/*&lpspi7 {
fsl,spi-num-chipselects = <2>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lpspi7>;
@@ -997,7 +1006,7 @@ spi_wifi_bl: spi@1 {
compatible = "lwn,bk4";
spi-max-frequency = <1000000>;
};
-};
+};*/
/*&gpio1 {
bt-wifi-enable-hog {
--
2.51.0
From 23087c3a2daaa4e82c57e816b669415b2dc33c5f Mon Sep 17 00:00:00 2001
From: Michael van der Raad <vanderraad@inventeers.nl>
Date: Mon, 29 Sep 2025 14:29:57 +0000
Subject: [PATCH 18/18] Remove duplicate
---
arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
index 6a0ec54ef1f4..e73b257e5360 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
@@ -484,7 +484,6 @@ &lpuart6 {
bluetooth {
compatible = "infineon,cyw43439-bt", "brcm,bcm4329-bt";
- shutdown-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
};
};
--
2.51.0