Skip to content

Commit 3042a7e

Browse files
Peter Yinamboar
authored andcommitted
ARM: dts: aspeed: Harma: Add spi-gpio
Add spi-gpio for tpm device. Signed-off-by: Peter Yin <peteryin.openbmc@gmail.com> Link: https://lore.kernel.org/r/20240412091600.2534693-6-peteryin.openbmc@gmail.com Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
1 parent 5a29fd7 commit 3042a7e

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
i2c29 = &imux29;
2929
i2c30 = &imux30;
3030
i2c31 = &imux31;
31+
32+
spi1 = &spi_gpio;
3133
};
3234

3335
chosen {
@@ -67,6 +69,25 @@
6769
gpios = <&gpio0 124 GPIO_ACTIVE_HIGH>;
6870
};
6971
};
72+
73+
spi_gpio: spi-gpio {
74+
status = "okay";
75+
compatible = "spi-gpio";
76+
#address-cells = <1>;
77+
#size-cells = <0>;
78+
79+
gpio-sck = <&gpio0 ASPEED_GPIO(Z, 3) GPIO_ACTIVE_HIGH>;
80+
gpio-mosi = <&gpio0 ASPEED_GPIO(Z, 4) GPIO_ACTIVE_HIGH>;
81+
gpio-miso = <&gpio0 ASPEED_GPIO(Z, 5) GPIO_ACTIVE_HIGH>;
82+
num-chipselects = <1>;
83+
cs-gpios = <&gpio0 ASPEED_GPIO(Z, 0) GPIO_ACTIVE_LOW>;
84+
85+
tpmdev@0 {
86+
compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
87+
spi-max-frequency = <33000000>;
88+
reg = <0>;
89+
};
90+
};
7091
};
7192

7293
// HOST BIOS Debug

0 commit comments

Comments
 (0)