* [PATCH] arm64: dts: rockchip: add cr50 tpm to rk3399-gru scarlet and bob
@ 2018-08-22 12:09 ` Heiko Stuebner
0 siblings, 0 replies; 4+ messages in thread
From: Heiko Stuebner @ 2018-08-22 12:09 UTC (permalink / raw)
To: linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Cc: amstan-F7+t8E8rja9g9hUCZPvPmw,
briannorris-F7+t8E8rja9g9hUCZPvPmw,
dianders-F7+t8E8rja9g9hUCZPvPmw, smbarber-F7+t8E8rja9g9hUCZPvPmw,
apronin-F7+t8E8rja9g9hUCZPvPmw,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
Heiko Stuebner
Scarlet and Bob use the Google-developed cr50 chip to do things
like TPM and closed-case-debugging.
Add the nodes describing the cr50 and its spi-connection.
Signed-off-by: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
---
The last activity on upstreaming the cr50 happened in 2016 it seems [0].
And while I hope that this will continue at some point, I've split this
out of the patches adding Gru-Bob and -Scarlet devicetrees to the mainline
kernel and am putting this out here, so I can keep track of it and maybe
inspire [= prod ;-) ] someone from CrOS to resume upstreaming the driver
part ;-) .
[0] https://patchwork.kernel.org/patch/9251895/
arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts | 10 ++++++++++
arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi | 10 ++++++++++
2 files changed, 20 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts b/arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts
index 1ee0dc0d9f10..a16c5afe1636 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts
@@ -68,6 +68,16 @@
&spi0 {
status = "okay";
+
+ cr50@0 {
+ compatible = "google,cr50";
+ reg = <0>;
+ interrupt-parent = <&gpio0>;
+ interrupts = <5 IRQ_TYPE_EDGE_RISING>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&h1_int_od_l>;
+ spi-max-frequency = <800000>;
+ };
};
&pinctrl {
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi
index fc50b3ef758c..7a93d0774108 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi
@@ -435,6 +435,16 @@ camera: &i2c7 {
&spi2 {
status = "okay";
+
+ cr50@0 {
+ compatible = "google,cr50";
+ reg = <0>;
+ interrupt-parent = <&gpio1>;
+ interrupts = <17 IRQ_TYPE_EDGE_RISING>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&h1_int_od_l>;
+ spi-max-frequency = <800000>;
+ };
};
&wake_on_bt {
--
2.17.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] arm64: dts: rockchip: add cr50 tpm to rk3399-gru scarlet and bob
@ 2018-08-22 12:09 ` Heiko Stuebner
0 siblings, 0 replies; 4+ messages in thread
From: Heiko Stuebner @ 2018-08-22 12:09 UTC (permalink / raw)
To: linux-arm-kernel
Scarlet and Bob use the Google-developed cr50 chip to do things
like TPM and closed-case-debugging.
Add the nodes describing the cr50 and its spi-connection.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
The last activity on upstreaming the cr50 happened in 2016 it seems [0].
And while I hope that this will continue at some point, I've split this
out of the patches adding Gru-Bob and -Scarlet devicetrees to the mainline
kernel and am putting this out here, so I can keep track of it and maybe
inspire [= prod ;-) ] someone from CrOS to resume upstreaming the driver
part ;-) .
[0] https://patchwork.kernel.org/patch/9251895/
arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts | 10 ++++++++++
arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi | 10 ++++++++++
2 files changed, 20 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts b/arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts
index 1ee0dc0d9f10..a16c5afe1636 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts
@@ -68,6 +68,16 @@
&spi0 {
status = "okay";
+
+ cr50 at 0 {
+ compatible = "google,cr50";
+ reg = <0>;
+ interrupt-parent = <&gpio0>;
+ interrupts = <5 IRQ_TYPE_EDGE_RISING>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&h1_int_od_l>;
+ spi-max-frequency = <800000>;
+ };
};
&pinctrl {
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi
index fc50b3ef758c..7a93d0774108 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi
@@ -435,6 +435,16 @@ camera: &i2c7 {
&spi2 {
status = "okay";
+
+ cr50 at 0 {
+ compatible = "google,cr50";
+ reg = <0>;
+ interrupt-parent = <&gpio1>;
+ interrupts = <17 IRQ_TYPE_EDGE_RISING>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&h1_int_od_l>;
+ spi-max-frequency = <800000>;
+ };
};
&wake_on_bt {
--
2.17.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: dts: rockchip: add cr50 tpm to rk3399-gru scarlet and bob
2018-08-22 12:09 ` Heiko Stuebner
@ 2019-10-10 21:21 ` Heiko Stuebner
-1 siblings, 0 replies; 4+ messages in thread
From: Heiko Stuebner @ 2019-10-10 21:21 UTC (permalink / raw)
To: linux-rockchip
Cc: amstan, sboyd, briannorris, dianders, smbarber, apronin,
linux-arm-kernel
Am Mittwoch, 22. August 2018, 14:09:25 CEST schrieb Heiko Stuebner:
> Scarlet and Bob use the Google-developed cr50 chip to do things
> like TPM and closed-case-debugging.
>
> Add the nodes describing the cr50 and its spi-connection.
>
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
with the cr50 now having reached a maintainer tree,
applied for 5.5
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: dts: rockchip: add cr50 tpm to rk3399-gru scarlet and bob
@ 2019-10-10 21:21 ` Heiko Stuebner
0 siblings, 0 replies; 4+ messages in thread
From: Heiko Stuebner @ 2019-10-10 21:21 UTC (permalink / raw)
To: linux-rockchip
Cc: amstan, sboyd, briannorris, dianders, smbarber, apronin,
linux-arm-kernel
Am Mittwoch, 22. August 2018, 14:09:25 CEST schrieb Heiko Stuebner:
> Scarlet and Bob use the Google-developed cr50 chip to do things
> like TPM and closed-case-debugging.
>
> Add the nodes describing the cr50 and its spi-connection.
>
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
with the cr50 now having reached a maintainer tree,
applied for 5.5
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-10-10 21:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-22 12:09 [PATCH] arm64: dts: rockchip: add cr50 tpm to rk3399-gru scarlet and bob Heiko Stuebner
2018-08-22 12:09 ` Heiko Stuebner
2019-10-10 21:21 ` Heiko Stuebner
2019-10-10 21:21 ` Heiko Stuebner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.