* [PATCH v2] arm64: dts: qcom: sdm845-cheza: Add cr50 spi node
@ 2019-12-16 23:42 Stephen Boyd
2019-12-17 0:08 ` Doug Anderson
2019-12-17 3:13 ` Bjorn Andersson
0 siblings, 2 replies; 3+ messages in thread
From: Stephen Boyd @ 2019-12-16 23:42 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson; +Cc: linux-kernel, linux-arm-msm, Douglas Anderson
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 <dianders@chromium.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
---
Changes from v1:
- Fixed node name to be tpm
arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
index 9a4ff57fc877..b59cfd73616f 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
@@ -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";
--
Sent by a computer, using git, on the internet
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH v2] arm64: dts: qcom: sdm845-cheza: Add cr50 spi node
2019-12-16 23:42 [PATCH v2] arm64: dts: qcom: sdm845-cheza: Add cr50 spi node Stephen Boyd
@ 2019-12-17 0:08 ` Doug Anderson
2019-12-17 3:13 ` Bjorn Andersson
1 sibling, 0 replies; 3+ messages in thread
From: Doug Anderson @ 2019-12-17 0:08 UTC (permalink / raw)
To: Stephen Boyd
Cc: Andy Gross, Bjorn Andersson, LKML, linux-arm-msm,
Matthias Kaehlcke
Hi,
On Mon, Dec 16, 2019 at 3:42 PM Stephen Boyd <swboyd@chromium.org> wrote:
>
> 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 <dianders@chromium.org>
> Signed-off-by: Stephen Boyd <swboyd@chromium.org>
> ---
>
> Changes from v1:
>
> - Fixed node name to be tpm
>
> arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
Reviewed-by: Douglas Anderson <dianders@chromium.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] arm64: dts: qcom: sdm845-cheza: Add cr50 spi node
2019-12-16 23:42 [PATCH v2] arm64: dts: qcom: sdm845-cheza: Add cr50 spi node Stephen Boyd
2019-12-17 0:08 ` Doug Anderson
@ 2019-12-17 3:13 ` Bjorn Andersson
1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Andersson @ 2019-12-17 3:13 UTC (permalink / raw)
To: Stephen Boyd; +Cc: Andy Gross, linux-kernel, linux-arm-msm, Douglas Anderson
On Mon 16 Dec 15:42 PST 2019, Stephen Boyd wrote:
> 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 <dianders@chromium.org>
> Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Applied
Thanks,
Bjorn
> ---
>
> Changes from v1:
>
> - Fixed node name to be tpm
>
> arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
> index 9a4ff57fc877..b59cfd73616f 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
> @@ -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";
>
> --
> Sent by a computer, using git, on the internet
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-12-17 3:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-16 23:42 [PATCH v2] arm64: dts: qcom: sdm845-cheza: Add cr50 spi node Stephen Boyd
2019-12-17 0:08 ` Doug Anderson
2019-12-17 3:13 ` Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox