[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240626130332.929534-18-yangchen.openbmc@gmail.com>
Date: Wed, 26 Jun 2024 21:03:32 +0800
From: Yang Chen <yangchen.openbmc@...il.com>
To: joel@....id.au,
andrew@...econstruct.com.au,
patrick@...cx.xyz,
linux-arm-kernel@...ts.infradead.org,
linux-aspeed@...ts.ozlabs.org,
linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org
Cc: Jerry.Lin@...ntatw.com,
yangchen.openbmc@...il.com
Subject: [PATCH v1 17/17] ARM: dts: aspeed: minerva: Add spi-gpio
From: Yang Chen <yang.chen@...ntatw.com>
Add spi-gpio for TPM device.
Signed-off-by: Yang Chen <yang.chen@...ntatw.com>
---
.../aspeed/aspeed-bmc-facebook-minerva.dts | 21 +++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva.dts
index 8180fa5c1854..f5ac248097b4 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva.dts
@@ -23,6 +23,8 @@ aliases {
i2c19 = &imux19;
i2c20 = &imux20;
i2c21 = &imux21;
+
+ spi1 = &spi_gpio;
};
chosen {
@@ -74,6 +76,25 @@ led-4 {
default-state = "off";
};
};
+
+ spi_gpio: spi {
+ status = "okay";
+ compatible = "spi-gpio";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ sck-gpios = <&gpio0 ASPEED_GPIO(Z, 3) GPIO_ACTIVE_HIGH>;
+ mosi-gpios = <&gpio0 ASPEED_GPIO(Z, 4) GPIO_ACTIVE_HIGH>;
+ miso-gpios = <&gpio0 ASPEED_GPIO(Z, 5) GPIO_ACTIVE_HIGH>;
+ num-chipselects = <1>;
+ cs-gpios = <&gpio0 ASPEED_GPIO(Z, 0) GPIO_ACTIVE_LOW>;
+
+ tpm@0 {
+ compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
+ spi-max-frequency = <33000000>;
+ reg = <0>;
+ };
+ };
};
&uart6 {
--
2.34.1
Powered by blists - more mailing lists