Devicetree
 help / color / mirror / Atom feed
* [PATCH 1/2] arm64: dts: imx95-tqma9596sa-mb-smarc-2.dts: improve SD reset pulse
@ 2026-09-28 11:21 Alexander Stein
  2026-09-28 11:21 ` [PATCH 2/2] arm64: dts: imx95-tqma9596sa: Add thermal zones Alexander Stein
  2026-10-01 14:53 ` [PATCH 1/2] arm64: dts: imx95-tqma9596sa-mb-smarc-2.dts: improve SD reset pulse Frank.Li
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander Stein @ 2026-09-28 11:21 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Frank Li,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: Markus Niebel, linux, devicetree, imx, linux-arm-kernel,
	linux-kernel, Alexander Stein

From: Markus Niebel <Markus.Niebel@ew.tq-group.com>

SD card spec says that at least 1 msec of power cut is needed
to reset an SD card. This is needed to get out of UHS-I mode.

In fact this pulse length alone is far too short in real world
environment due to capacitance etc. Implement a longer pulse using
regulator settings: 200 msec as working for other SoM using MB-SMARC-2.

Signed-off-by: Markus Niebel <Markus.Niebel@ew.tq-group.com>
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
---
 arch/arm64/boot/dts/freescale/imx95-tqma9596sa-mb-smarc-2.dts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx95-tqma9596sa-mb-smarc-2.dts b/arch/arm64/boot/dts/freescale/imx95-tqma9596sa-mb-smarc-2.dts
index 97726eded0f86..e376d3a9d6180 100644
--- a/arch/arm64/boot/dts/freescale/imx95-tqma9596sa-mb-smarc-2.dts
+++ b/arch/arm64/boot/dts/freescale/imx95-tqma9596sa-mb-smarc-2.dts
@@ -243,6 +243,8 @@ &pcie1 {
 };
 
 &reg_sdvmmc {
+	startup-delay-us = <100>;
+	off-on-delay-us = <200000>;
 	status = "okay";
 };
 
-- 
2.55.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] arm64: dts: imx95-tqma9596sa: Add thermal zones
  2026-09-28 11:21 [PATCH 1/2] arm64: dts: imx95-tqma9596sa-mb-smarc-2.dts: improve SD reset pulse Alexander Stein
@ 2026-09-28 11:21 ` Alexander Stein
  2026-10-01 14:53 ` [PATCH 1/2] arm64: dts: imx95-tqma9596sa-mb-smarc-2.dts: improve SD reset pulse Frank.Li
  1 sibling, 0 replies; 3+ messages in thread
From: Alexander Stein @ 2026-09-28 11:21 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Frank Li,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: Alexander Stein, linux, devicetree, imx, linux-arm-kernel,
	linux-kernel

These PMIC sensors are provided by the SCMI firmware and are independent
from the mainboard.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
---
 .../boot/dts/freescale/imx95-tqma9596sa.dtsi  | 75 +++++++++++++++++++
 1 file changed, 75 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx95-tqma9596sa.dtsi b/arch/arm64/boot/dts/freescale/imx95-tqma9596sa.dtsi
index 456129f4a6825..6ed810733ff2d 100644
--- a/arch/arm64/boot/dts/freescale/imx95-tqma9596sa.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx95-tqma9596sa.dtsi
@@ -458,6 +458,81 @@ &scmi_bbm {
 	linux,code = <KEY_POWER>;
 };
 
+&thermal_zones {
+	pf09-thermal {
+		polling-delay = <2000>;
+		polling-delay-passive = <250>;
+		thermal-sensors = <&scmi_sensor 2>;
+
+		trips {
+			pf09_alert: trip0 {
+				hysteresis = <2000>;
+				temperature = <140000>;
+				type = "passive";
+			};
+
+			pf09_crit: trip1 {
+				hysteresis = <2000>;
+				temperature = <155000>;
+				type = "critical";
+			};
+		};
+	};
+
+	pf53arm-thermal {
+		polling-delay = <2000>;
+		polling-delay-passive = <250>;
+		thermal-sensors = <&scmi_sensor 4>;
+
+		cooling-maps {
+			map0 {
+				trip = <&pf5301_alert>;
+				cooling-device =
+					<&A55_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+					<&A55_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+					<&A55_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+					<&A55_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+					<&A55_4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+					<&A55_5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+			};
+		};
+
+		trips {
+			pf5301_alert: trip0 {
+				hysteresis = <2000>;
+				temperature = <140000>;
+				type = "passive";
+			};
+
+			pf5301_crit: trip1 {
+				hysteresis = <2000>;
+				temperature = <155000>;
+				type = "critical";
+			};
+		};
+	};
+
+	pf53soc-thermal {
+		polling-delay = <2000>;
+		polling-delay-passive = <250>;
+		thermal-sensors = <&scmi_sensor 3>;
+
+		trips {
+			pf5302_alert: trip0 {
+				hysteresis = <2000>;
+				temperature = <140000>;
+				type = "passive";
+			};
+
+			pf5302_crit: trip1 {
+				hysteresis = <2000>;
+				temperature = <155000>;
+				type = "critical";
+			};
+		};
+	};
+};
+
 &tpm3 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_tpm3>;
-- 
2.55.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] arm64: dts: imx95-tqma9596sa-mb-smarc-2.dts: improve SD reset pulse
  2026-09-28 11:21 [PATCH 1/2] arm64: dts: imx95-tqma9596sa-mb-smarc-2.dts: improve SD reset pulse Alexander Stein
  2026-09-28 11:21 ` [PATCH 2/2] arm64: dts: imx95-tqma9596sa: Add thermal zones Alexander Stein
@ 2026-10-01 14:53 ` Frank.Li
  1 sibling, 0 replies; 3+ messages in thread
From: Frank.Li @ 2026-10-01 14:53 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Alexander Stein
  Cc: Frank Li, Markus Niebel, linux, devicetree, imx, linux-arm-kernel,
	linux-kernel

From: Frank Li <Frank.Li@nxp.com>


On Mon, 28 Sep 2026 13:21:41 +0200, Alexander Stein wrote:
> SD card spec says that at least 1 msec of power cut is needed
> to reset an SD card. This is needed to get out of UHS-I mode.
> 
> In fact this pulse length alone is far too short in real world
> environment due to capacitance etc. Implement a longer pulse using
> regulator settings: 200 msec as working for other SoM using MB-SMARC-2.
> 
> [...]

Applied, thanks!

[1/2] arm64: dts: imx95-tqma9596sa-mb-smarc-2.dts: improve SD reset pulse
      commit: c994546c98ebee18ac062fc5763d99a37d439b0f
[2/2] arm64: dts: imx95-tqma9596sa: Add thermal zones
      commit: 7f47e8eafbf55a2ad0697e5d28f5e6cff2fa42f9

Best regards,
-- 
Frank Li <Frank.Li@nxp.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-01 14:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-28 11:21 [PATCH 1/2] arm64: dts: imx95-tqma9596sa-mb-smarc-2.dts: improve SD reset pulse Alexander Stein
2026-09-28 11:21 ` [PATCH 2/2] arm64: dts: imx95-tqma9596sa: Add thermal zones Alexander Stein
2026-10-01 14:53 ` [PATCH 1/2] arm64: dts: imx95-tqma9596sa-mb-smarc-2.dts: improve SD reset pulse Frank.Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox