Skip to contentSkip to conversation

ARM: dts: aspeed: yosemite4: Enable spi-gpio setting for TPM

PATCH In review Delphine CC Chiu 2 participants 2 messages Sep 20, 2024 – Sep 23, 2024

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

PATCH v2 1/1 ARM: dts: aspeed: yosemite4: Enable spi-gpio setting for TPM

From: Ricky CX Wu <[email protected]>

Enable spi-gpio setting for TPM device in yosemite4.

---
 .../aspeed/aspeed-bmc-facebook-yosemite4.dts   | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +18 -0
index 98477792aa00..869aa8b3f411 100644
@@ -34,6 +34,24 @@ iio-hwmon {
 				<&adc0 4>, <&adc0 5>, <&adc0 6>, <&adc0 7>,
 				<&adc1 0>, <&adc1 1>;
 	};
+
+	spi {
+		compatible = "spi-gpio";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		sck-gpios = <&gpio0 ASPEED_GPIO(X, 3) GPIO_ACTIVE_HIGH>;
+		mosi-gpios = <&gpio0 ASPEED_GPIO(X, 4) GPIO_ACTIVE_HIGH>;
+		miso-gpios = <&gpio0 ASPEED_GPIO(X, 5) GPIO_ACTIVE_HIGH>;
+		cs-gpios = <&gpio0 ASPEED_GPIO(X, 0) GPIO_ACTIVE_LOW>;
+		num-chipselects = <1>;
+
+		tpm at 0 {
+			compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
+			reg = <0>;
+			spi-max-frequency = <33000000>;
+		};
+	};
 };
 
 &uart1 {
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 4 lines · Delphine CC Chiu

From: Ricky CX Wu <[email protected]>

Enable spi-gpio setting for TPM device in yosemite4.

Thanks, I've applied this to be picked up through the BMC tree.

Andrew