Skip to contentSkip to conversation

arm64: dts: freescale: imx8mm-var-dart-sonata: Fix TPM reset polarity

PATCH Applied Stefano Radaelli 3 participants 3 messages Oct 26 – Nov 5

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

PATCH 1/1 arm64: dts: freescale: imx8mm-var-dart-sonata: Fix TPM reset polarity

From: Stefano Radaelli <[email protected]>

The reset input of the ST33KTPM on the Sonata carrier is active low, but its reset-gpios property is declared GPIO_ACTIVE_HIGH. This reverses the asserted and deasserted levels of the reset signal.

Use GPIO_ACTIVE_LOW to describe the reset polarity correctly. This fixes the TPM not responding on I2C and the resulting absence of /dev/tpm0.

Fixes 770aba46ea0f ("arm64: dts: imx8mm-var-dart: Add support for Variscite Sonata board")
---
 arch/arm64/boot/dts/freescale/imx8mm-var-dart-sonata.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/imx8mm-var-dart-sonata.dts +1 -1
index 57d29a5c3821..2644b7c1239c 100644
@@ -259,7 +259,7 @@ st33ktpm2xi2c: tpm@2e {
 		compatible = "st,st33ktpm2xi2c", "tcg,tpm-tis-i2c";
 		reg = <0x2e>;
 		label = "tpm";
-		reset-gpios = <&pca9534 0 GPIO_ACTIVE_HIGH>;
+		reset-gpios = <&pca9534 0 GPIO_ACTIVE_LOW>;
 	};
 };
 
Signature · 1 line
2.47.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Stefano Radaelli

From: Stefano Radaelli <[email protected]>

The reset input of the ST33KTPM on the Sonata carrier is active low, but its reset-gpios property is declared GPIO_ACTIVE_HIGH. This reverses the asserted and deasserted levels of the reset signal.

Quoted 8 lines

Use GPIO_ACTIVE_LOW to describe the reset polarity correctly. This fixes the TPM not responding on I2C and the resulting absence of /dev/tpm0.

Fixes 770aba46ea0f ("arm64: dts: imx8mm-var-dart: Add support for Variscite Sonata board")
Quoted 17 lines
---
 arch/arm64/boot/dts/freescale/imx8mm-var-dart-sonata.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/imx8mm-var-dart-sonata.dts +1 -1
index 57d29a5c3821..2644b7c1239c 100644
@@ -259,7 +259,7 @@ st33ktpm2xi2c: tpm@2e {
 		compatible = "st,st33ktpm2xi2c", "tcg,tpm-tis-i2c";
 		reg = <0x2e>;
 		label = "tpm";
-		reset-gpios = <&pca9534 0 GPIO_ACTIVE_HIGH>;
+		reset-gpios = <&pca9534 0 GPIO_ACTIVE_LOW>;
 	};
 };
 
#2 lore raw
In reply to Stefano Radaelli

From: Frank Li <[email protected]>

Quoted 9 lines · Stefano Radaelli

The reset input of the ST33KTPM on the Sonata carrier is active low, but its reset-gpios property is declared GPIO_ACTIVE_HIGH. This reverses the asserted and deasserted levels of the reset signal.

Use GPIO_ACTIVE_LOW to describe the reset polarity correctly. This fixes the TPM not responding on I2C and the resulting absence of /dev/tpm0.

[...]

Applied, thanks!

[1/1] arm64: dts: freescale: imx8mm-var-dart-sonata: Fix TPM reset polarity

      commit: c3feb96e841c637c5d6354e6528a3780fa40a059

Best regards,

Signature · 1 line
Frank Li <[email protected]>