Commit 3042a7e5 authored by Peter Yin's avatar Peter Yin Committed by Andrew Jeffery

ARM: dts: aspeed: Harma: Add spi-gpio

Add spi-gpio for tpm device.
Signed-off-by: default avatarPeter Yin <peteryin.openbmc@gmail.com>
Link: https://lore.kernel.org/r/20240412091600.2534693-6-peteryin.openbmc@gmail.comSigned-off-by: default avatarAndrew Jeffery <andrew@codeconstruct.com.au>
parent 5a29fd7a
...@@ -28,6 +28,8 @@ aliases { ...@@ -28,6 +28,8 @@ aliases {
i2c29 = &imux29; i2c29 = &imux29;
i2c30 = &imux30; i2c30 = &imux30;
i2c31 = &imux31; i2c31 = &imux31;
spi1 = &spi_gpio;
}; };
chosen { chosen {
...@@ -67,6 +69,25 @@ led-2 { ...@@ -67,6 +69,25 @@ led-2 {
gpios = <&gpio0 124 GPIO_ACTIVE_HIGH>; gpios = <&gpio0 124 GPIO_ACTIVE_HIGH>;
}; };
}; };
spi_gpio: spi-gpio {
status = "okay";
compatible = "spi-gpio";
#address-cells = <1>;
#size-cells = <0>;
gpio-sck = <&gpio0 ASPEED_GPIO(Z, 3) GPIO_ACTIVE_HIGH>;
gpio-mosi = <&gpio0 ASPEED_GPIO(Z, 4) GPIO_ACTIVE_HIGH>;
gpio-miso = <&gpio0 ASPEED_GPIO(Z, 5) GPIO_ACTIVE_HIGH>;
num-chipselects = <1>;
cs-gpios = <&gpio0 ASPEED_GPIO(Z, 0) GPIO_ACTIVE_LOW>;
tpmdev@0 {
compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
spi-max-frequency = <33000000>;
reg = <0>;
};
};
}; };
// HOST BIOS Debug // HOST BIOS Debug
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment