Skip to contentSkip to conversation

arm64: dts: imx93-evk/qsb: add m2-pcm-level-shifter-hog to enable BT HFP

PATCH Applied Sherry Sun 3 participants 4 messages Jan 21 – Feb 24

Subsystems (2)
lore
Share & tools
lore

Sherry Sun

author
#0 lore raw

PATCH v2 1/1 arm64: dts: imx93-evk/qsb: add m2-pcm-level-shifter-hog to enable BT HFP

For i.MX93 11x11 EVK and 9x9 QSB boards, add the gpio-hog to enable the M.2 PCM pins level shifter connected between soc sai1 interface and M.2 PCM pins so that HFP feature can be supported.

Since the HFP is only used at a later stage — after the BT firmware has been downloaded and the BT connection with the remote device has been established — both the pcal6524 expander and sai1 interface are already fully initialized and available by that time. Therefore, using a gpio-hog here will not introduce any probe ordering or dependency issues for the HFP use case.

---
Changes in V2:
1. Improve the commit message to avoid confusion.

---
 arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts | 6 ++++++
 arch/arm64/boot/dts/freescale/imx93-9x9-qsb.dts   | 6 ++++++
 2 files changed, 12 insertions(+)
arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +6 -0
index 8dd5340e8141..acb160d3186c 100644
@@ -356,6 +356,12 @@ pcal6524: gpio@22 {
 		#interrupt-cells = <2>;
 		interrupt-parent = <&gpio3>;
 		interrupts = <27 IRQ_TYPE_LEVEL_LOW>;
+
+		m2-pcm-level-shifter-hog {
+			gpio-hog;
+			gpios = <19 GPIO_ACTIVE_HIGH>;
+			output-high;
+		};
 	};
 
 	pmic@25 {
arch/arm64/boot/dts/freescale/imx93-9x9-qsb.dts +6 -0
index 0852067eab2c..11e08673083b 100644
@@ -349,6 +349,12 @@ mic-can-sel-hog {
 			gpios = <17 GPIO_ACTIVE_HIGH>;
 			output-low;
 		};
+
+		m2-pcm-level-shifter-hog {
+			gpio-hog;
+			gpios = <19 GPIO_ACTIVE_HIGH>;
+			output-high;
+		};
 	};
 
 	pmic@25 {
Signature · 1 line
2.37.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 4 lines · Sherry Sun

For i.MX93 11x11 EVK and 9x9 QSB boards, add the gpio-hog to enable the M.2 PCM pins level shifter connected between soc sai1 interface and M.2 PCM pins so that HFP feature can be supported.

Quoted 8 lines

Since the HFP is only used at a later stage — after the BT firmware has been downloaded and the BT connection with the remote device has been established — both the pcal6524 expander and sai1 interface are already fully initialized and available by that time. Therefore, using a gpio-hog here will not introduce any probe ordering or dependency issues for the HFP use case.

maintainer Reviewed-by on v2 1/1
#2 lore raw
In reply to Sherry Sun
Quoted 11 lines · Sherry Sun

For i.MX93 11x11 EVK and 9x9 QSB boards, add the gpio-hog to enable the M.2 PCM pins level shifter connected between soc sai1 interface and M.2 PCM pins so that HFP feature can be supported.

Since the HFP is only used at a later stage — after the BT firmware has been downloaded and the BT connection with the remote device has been established — both the pcal6524 expander and sai1 interface are already fully initialized and available by that time. Therefore, using a gpio-hog here will not introduce any probe ordering or dependency issues for the HFP use case.

Quoted 2 lines

---

Quoted 44 lines

Changes in V2:
1. Improve the commit message to avoid confusion.

---
 arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts | 6 ++++++
 arch/arm64/boot/dts/freescale/imx93-9x9-qsb.dts   | 6 ++++++
 2 files changed, 12 insertions(+)
arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +6 -0
index 8dd5340e8141..acb160d3186c 100644
@@ -356,6 +356,12 @@ pcal6524: gpio@22 {
 		#interrupt-cells = <2>;
 		interrupt-parent = <&gpio3>;
 		interrupts = <27 IRQ_TYPE_LEVEL_LOW>;
+
+		m2-pcm-level-shifter-hog {
+			gpio-hog;
+			gpios = <19 GPIO_ACTIVE_HIGH>;
+			output-high;
+		};
 	};
 
 	pmic@25 {
arch/arm64/boot/dts/freescale/imx93-9x9-qsb.dts +6 -1
index 0852067eab2c..11e08673083b 100644
@@ -349,6 +349,12 @@ mic-can-sel-hog {
 			gpios = <17 GPIO_ACTIVE_HIGH>;
 			output-low;
 		};
+
+		m2-pcm-level-shifter-hog {
+			gpio-hog;
+			gpios = <19 GPIO_ACTIVE_HIGH>;
+			output-high;
+		};
 	};
 
 	pmic@25 {
--

2.37.1

maintainer Applied
#3 lore raw
In reply to Sherry Sun
Quoted 4 lines · Sherry Sun

For i.MX93 11x11 EVK and 9x9 QSB boards, add the gpio-hog to enable the M.2 PCM pins level shifter connected between soc sai1 interface and M.2 PCM pins so that HFP feature can be supported.

Quoted 8 lines

Since the HFP is only used at a later stage — after the BT firmware has been downloaded and the BT connection with the remote device has been established — both the pcal6524 expander and sai1 interface are already fully initialized and available by that time. Therefore, using a gpio-hog here will not introduce any probe ordering or dependency issues for the HFP use case.

[...]

Applied, thanks!

[1/1] arm64: dts: imx93-evk/qsb: add m2-pcm-level-shifter-hog to enable BT HFP

Best regards,
--
Frank Li <[email protected]>