diff mbox series

[u-boot,v2019.04-aspeed-openbmc,v4,6/6] ast2600: Add GPIO controller and hog TPM reset pin

Message ID 20220207231334.59845-7-eajames@linux.ibm.com
State New
Headers show
Series Add GPIO hog support | expand

Commit Message

Eddie James Feb. 7, 2022, 11:13 p.m. UTC
Hog the GPIO pin to reset the TPM.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
---
 arch/arm/dts/ast2600-rainier.dts | 11 +++++++++++
 1 file changed, 11 insertions(+)

Comments

Andrew Jeffery Feb. 8, 2022, 3:56 a.m. UTC | #1
On Tue, 8 Feb 2022, at 09:43, Eddie James wrote:
> Hog the GPIO pin to reset the TPM.
>
> Signed-off-by: Eddie James <eajames@linux.ibm.com>

Reviewed-by: Andrew Jeffery <andrew@aj.id.au>

> ---
>  arch/arm/dts/ast2600-rainier.dts | 11 +++++++++++
>  1 file changed, 11 insertions(+)
>
> diff --git a/arch/arm/dts/ast2600-rainier.dts b/arch/arm/dts/ast2600-rainier.dts
> index aae507b4c2..d0e82d1512 100755
> --- a/arch/arm/dts/ast2600-rainier.dts
> +++ b/arch/arm/dts/ast2600-rainier.dts
> @@ -108,3 +108,14 @@
>  	u-boot,dm-pre-reloc;
>  	status = "okay";
>  };
> +
> +&gpio0 {
> +	u-boot,dm-pre-reloc;
> +
> +	tpm_reset {
> +		u-boot,dm-pre-reloc;
> +		gpio-hog;
> +		output-high;
> +		gpios = <ASPEED_GPIO(R, 0) GPIO_ACTIVE_HIGH>;
> +	};
> +};
> -- 
> 2.27.0
diff mbox series

Patch

diff --git a/arch/arm/dts/ast2600-rainier.dts b/arch/arm/dts/ast2600-rainier.dts
index aae507b4c2..d0e82d1512 100755
--- a/arch/arm/dts/ast2600-rainier.dts
+++ b/arch/arm/dts/ast2600-rainier.dts
@@ -108,3 +108,14 @@ 
 	u-boot,dm-pre-reloc;
 	status = "okay";
 };
+
+&gpio0 {
+	u-boot,dm-pre-reloc;
+
+	tpm_reset {
+		u-boot,dm-pre-reloc;
+		gpio-hog;
+		output-high;
+		gpios = <ASPEED_GPIO(R, 0) GPIO_ACTIVE_HIGH>;
+	};
+};