Skip to contentSkip to conversation

arm64: dts: freescale: imx9[135]-toradex-osm-dev: Fix SDIO_B interface

PATCH Applied Francesco Dolcini 2 participants 4 messages Nov 22 – Nov 25

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover arm64: dts: freescale: imx9[135]-toradex-osm-dev: Fix SDIO_B interface

From: Francesco Dolcini <[email protected]>

On the OSM Development Board, OSM SDIO_B goes to the M.2 Key E slot for a Wi-Fi/Bluetooth module. The slot has no card detect signal, its supply is not software controlled, and the SDIO_B signals are fixed at 1.8V.

This was noticed from an anomalous interrupt rate on an idle system:
with the slot empty, mmc2 fired about 45 interrupts per second, because the empty slot was polled every second.

Describe the slot as non-removable, keep the module powered in suspend, and add the fixed 1.8V I/O supply, on both the OSM iMX93/iMX91 and the OSM iMX95 variants of the board.

Francesco Dolcini (2):
arm64: dts: freescale: imx93-imx91-toradex-osm-dev: Fix SDIO_B
definition
arm64: dts: freescale: imx95-toradex-osm-dev: Fix SDIO_B definition

 .../boot/dts/freescale/imx93-imx91-toradex-osm-common.dtsi     | 1 +
 .../boot/dts/freescale/imx93-imx91-toradex-osm-dev-common.dtsi | 3 +++
 arch/arm64/boot/dts/freescale/imx95-toradex-osm-dev.dts        | 3 +++
 arch/arm64/boot/dts/freescale/imx95-toradex-osm.dtsi           | 1 +
 4 files changed, 8 insertions(+)
Signature · 1 line
2.47.3
#1 lore raw

PATCH 1/2 arm64: dts: freescale: imx93-imx91-toradex-osm-dev: Fix SDIO_B definition

From: Francesco Dolcini <[email protected]>

On the OSM Development Board, SDIO_B goes to the M.2 Key E slot for a Wi-Fi/Bluetooth module. The slot has no card detect signal and M.2 modules are not hot-pluggable. The slot supply is not software controlled, so the module stays powered in suspend. The SDIO_B signals are fixed at 1.8V, supplied by the on-module +V1.8 rail.

Describe the slot as non-removable, keep the module powered in suspend, and add the fixed 1.8V I/O supply. Without this, the empty slot is polled every second.

Fixes e8a8c86875f4 ("arm64: dts: freescale: Add Toradex OSM iMX93")
---
 .../boot/dts/freescale/imx93-imx91-toradex-osm-common.dtsi     | 1 +
 .../boot/dts/freescale/imx93-imx91-toradex-osm-dev-common.dtsi | 3 +++
 2 files changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/imx93-imx91-toradex-osm-common.dtsi +1 -0
index f6fd64176893..d273f4bfb96b 100644
@@ -517,6 +517,7 @@ &usdhc3 {
 	pinctrl-1 = <&pinctrl_sdio_b>;
 	pinctrl-2 = <&pinctrl_sdio_b>;
 	disable-wp;
+	vqmmc-supply = <&reg_1v8>;
 };
 
 &wdog3 {
arch/arm64/boot/dts/freescale/imx93-imx91-toradex-osm-dev-common.dtsi +3 -0
index 61a0f49f198b..41bc471329eb 100644
@@ -316,5 +316,8 @@ &usdhc2 {
 
 /* OSM SDIO_B */
 &usdhc3 {
+	keep-power-in-suspend;
+	non-removable;
+
 	status = "okay";
 };
Signature · 1 line
2.47.3
#2 lore raw

PATCH 2/2 arm64: dts: freescale: imx95-toradex-osm-dev: Fix SDIO_B definition

In reply to Francesco Dolcini

From: Francesco Dolcini <[email protected]>

On the OSM Development Board, SDIO_B goes to the M.2 Key E slot for a Wi-Fi/Bluetooth module. The slot has no card detect signal and M.2 modules are not hot-pluggable. The slot supply is not software controlled, so the module stays powered in suspend. The SDIO_B signals are fixed at 1.8V, supplied by the on-module +V1.8 rail.

Describe the slot as non-removable, keep the module powered in suspend, and add the fixed 1.8V I/O supply. Without this, the empty slot is polled every second.

Fixes 39be5a7e3ecc ("arm64: dts: freescale: Add Toradex OSM iMX95")
---
 arch/arm64/boot/dts/freescale/imx95-toradex-osm-dev.dts | 3 +++
 arch/arm64/boot/dts/freescale/imx95-toradex-osm.dtsi    | 1 +
 2 files changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/imx95-toradex-osm-dev.dts +3 -0
index 24cc6d4d917a..bbb2010eecfe 100644
@@ -401,5 +401,8 @@ &usdhc2 {
 
 /* OSM SDIO_B */
 &usdhc3 {
+	keep-power-in-suspend;
+	non-removable;
+
 	status = "okay";
 };
arch/arm64/boot/dts/freescale/imx95-toradex-osm.dtsi +1 -0
index dc2ef7035246..ff44e8c71bf6 100644
@@ -669,6 +669,7 @@ &usdhc3 {
 	pinctrl-1 = <&pinctrl_sdio_b>;
 	pinctrl-2 = <&pinctrl_sdio_b_200mhz>;
 	disable-wp;
+	vqmmc-supply = <&reg_1p8v>;
 };
 
 &wdog3 {
Signature · 1 line
2.47.3
#3 lore raw
In reply to Francesco Dolcini

From: Frank Li <[email protected]>

Quoted 11 lines · Francesco Dolcini

From: Francesco Dolcini <[email protected]>

On the OSM Development Board, OSM SDIO_B goes to the M.2 Key E slot for a Wi-Fi/Bluetooth module. The slot has no card detect signal, its supply is not software controlled, and the SDIO_B signals are fixed at 1.8V.

This was noticed from an anomalous interrupt rate on an idle system:
with the slot empty, mmc2 fired about 45 interrupts per second, because the empty slot was polled every second.

[...]

Applied, thanks!

[1/2] arm64: dts: freescale: imx93-imx91-toradex-osm-dev: Fix SDIO_B definition

      commit: a9f5577f21dbdd097f8bd0bade4777cbc2c5b804
[2/2] arm64: dts: freescale: imx95-toradex-osm-dev: Fix SDIO_B definition
      commit: 25e472ca356c0395d7af26cb325b80bb09b2a183

drop tag "freescale", every one know imx is chip of nxp.

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