Skip to contentSkip to conversation

arm64: dts: qcom: sdm845-cheza: Add cr50 spi node

PATCH Applied Stephen Boyd 3 participants 3 messages Dec 16, 2019 – Dec 17, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm64: dts: qcom: sdm845-cheza: Add cr50 spi node

Add the cr50 device to the spi controller it is attached to. This enables /dev/tpm0 and some login things on Cheza.

Cc Douglas Anderson <[email protected]>

---

Changes from v1:

- Fixed node name to be tpm

 arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi +14 -0
index 9a4ff57fc877..b59cfd73616f 100644
@@ -651,6 +651,20 @@ &spi0 {
 	status = "okay";
 };
 
+&spi5 {
+	status = "okay";
+
+	tpm@0 {
+		compatible = "google,cr50";
+		reg = <0>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&h1_ap_int_odl>;
+		spi-max-frequency = <800000>;
+		interrupt-parent = <&tlmm>;
+		interrupts = <129 IRQ_TYPE_EDGE_RISING>;
+	};
+};
+
 &spi10 {
 	status = "okay";
 
Signature · 1 line
Sent by a computer, using git, on the internet
Reviewed-by on v2 1/1
#1 lore raw

Hi,

Quoted 6 lines · Stephen Boyd

Add the cr50 device to the spi controller it is attached to. This enables /dev/tpm0 and some login things on Cheza.

Cc Douglas Anderson <[email protected]>
Quoted 8 lines

---

Changes from v1:

- Fixed node name to be tpm

 arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
#2 lore raw
In reply to Stephen Boyd
Quoted 5 lines · Stephen Boyd

Add the cr50 device to the spi controller it is attached to. This enables /dev/tpm0 and some login things on Cheza.

Cc Douglas Anderson <[email protected]>

Applied

Thanks,
Bjorn

Quoted 37 lines

---

Changes from v1:

- Fixed node name to be tpm

 arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi +14 -0
index 9a4ff57fc877..b59cfd73616f 100644
@@ -651,6 +651,20 @@ &spi0 {
 	status = "okay";
 };
 
+&spi5 {
+	status = "okay";
+
+	tpm@0 {
+		compatible = "google,cr50";
+		reg = <0>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&h1_ap_int_odl>;
+		spi-max-frequency = <800000>;
+		interrupt-parent = <&tlmm>;
+		interrupts = <129 IRQ_TYPE_EDGE_RISING>;
+	};
+};
+
 &spi10 {
 	status = "okay";
 
Signature · 1 line
Sent by a computer, using git, on the internet