Skip to contentSkip to conversation

arm64: dts: rockchip: add cr50 tpm to rk3399-gru scarlet and bob

PATCH In review Heiko Stuebner 1 participant 2 messages Aug 22, 2018 – Oct 10, 2019

Subsystems (2)
lore
Share & tools
lore

Heiko Stuebner

author maintainer
#0 lore raw

PATCH 1/1 arm64: dts: rockchip: add cr50 tpm to rk3399-gru scarlet and bob

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.

---
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(+)
arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts +10 -0
index 1ee0dc0d9f10..a16c5afe1636 100644
@@ -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 {
arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi +10 -0
index fc50b3ef758c..7a93d0774108 100644
@@ -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 {
Signature · 1 line
2.17.0
author maintainer
#1 lore raw

Am Mittwoch, 22. August 2018, 14:09:25 CEST schrieb Heiko Stuebner:

Quoted 6 lines

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.

with the cr50 now having reached a maintainer tree, applied for 5.5