linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Yang Chen <yangchen.openbmc@gmail.com>
To: joel@jms.id.au, andrew@codeconstruct.com.au, patrick@stwcx.xyz,
	linux-arm-kernel@lists.infradead.org,
	linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org
Cc: Jerry.Lin@quantatw.com, yangchen.openbmc@gmail.com
Subject: [PATCH v1 17/17] ARM: dts: aspeed: minerva: Add spi-gpio
Date: Wed, 26 Jun 2024 21:03:32 +0800	[thread overview]
Message-ID: <20240626130332.929534-18-yangchen.openbmc@gmail.com> (raw)
In-Reply-To: <20240626130332.929534-1-yangchen.openbmc@gmail.com>

From: Yang Chen <yang.chen@quantatw.com>

Add spi-gpio for TPM device.

Signed-off-by: Yang Chen <yang.chen@quantatw.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



  parent reply	other threads:[~2024-06-26 13:08 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-26 13:03 [PATCH v1 00/17] Revise Facebook Minerva BMC DTS Yang Chen
2024-06-26 13:03 ` [PATCH v1 01/17] ARM: dts: aspeed: minerva: change the address of tmp75 Yang Chen
2024-06-26 13:03 ` [PATCH v1 02/17] ARM: dts: aspeed: minerva: change aliases for uart Yang Chen
2024-06-26 13:03 ` [PATCH v1 03/17] ARM: dts: aspeed: minerva: add eeprom on i2c bus Yang Chen
2024-06-26 13:03 ` [PATCH v1 04/17] ARM: dts: aspeed: minerva: change RTC reference Yang Chen
2024-06-26 13:03 ` [PATCH v1 05/17] ARM: dts: aspeed: minerva: enable mdio3 Yang Chen
2024-06-26 13:03 ` [PATCH v1 06/17] ARM: dts: aspeed: minerva: remove unused bus and device Yang Chen
2024-06-26 13:03 ` [PATCH v1 07/17] ARM: dts: aspeed: minerva: Define the LEDs node name Yang Chen
2024-06-26 13:03 ` [PATCH v1 08/17] ARM: dts: aspeed: minerva: Add adc sensors for fan board Yang Chen
2024-06-26 13:03 ` [PATCH v1 09/17] ARM: dts: aspeed: minerva: add linename of two pins Yang Chen
2024-06-26 13:03 ` [PATCH v1 10/17] ARM: dts: aspeed: minerva: enable ehci0 for USB Yang Chen
2024-06-26 13:03 ` [PATCH v1 11/17] ARM: dts: aspeed: minerva: add tmp75 sensor Yang Chen
2024-06-26 13:03 ` [PATCH v1 12/17] ARM: dts: aspeed: minerva: add power monitor xdp710 Yang Chen
2024-06-26 13:03 ` [PATCH v1 13/17] ARM: dts: aspeed: minerva: revise sgpio line name Yang Chen
2024-06-26 13:03 ` [PATCH v1 14/17] ARM: dts: aspeed: minerva: Switch the i2c bus number Yang Chen
2024-06-26 13:03 ` [PATCH v1 15/17] ARM: dts: aspeed: minerva: remove unused power device Yang Chen
2024-06-26 13:03 ` [PATCH v1 16/17] ARM: dts: aspeed: minerva: add ltc4287 device Yang Chen
2024-06-26 13:03 ` Yang Chen [this message]
2024-06-26 13:38 ` [PATCH v1 00/17] Revise Facebook Minerva BMC DTS Rob Herring
2024-06-26 14:01   ` Yang Chen
2024-06-26 14:52     ` Rob Herring
2024-06-27  2:48 ` Andrew Jeffery

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240626130332.929534-18-yangchen.openbmc@gmail.com \
    --to=yangchen.openbmc@gmail.com \
    --cc=Jerry.Lin@quantatw.com \
    --cc=andrew@codeconstruct.com.au \
    --cc=devicetree@vger.kernel.org \
    --cc=joel@jms.id.au \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-aspeed@lists.ozlabs.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patrick@stwcx.xyz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).