arm64: dts: qcom: shikra: enable ST33 TPM support
v5 cover arm64: dts: qcom: shikra: enable ST33 TPM support
The Shikra EVK platforms support an ST33 TPM connected over SPI5.
This series first removes GPIOs 14-17 from the reserved ranges so that SPI5 can be used by Linux, and then enables the ST33 TPM in the common Shikra EVK device tree.
Changes in v5:
- Add Reviewed-by tag from Konrad Dybcio for v4-patch 1.
- Keep node references in alphabetical order.
Link to v4: https://lore.kernel.org/r/[email protected]
Changes in v4:
- Send the interdependent GPIO and TPM changes together.
- Add the SPI5 and TPM nodes to shikra-evk.dtsi.
- Remove GPIOs 14-17 from the reserved ranges.
Link to v3: https://lore.kernel.org/all/[email protected]/
---
Khalid Faisal Ansari (2):
arm64: dts: qcom: shikra: unreserve GPIOs 14-17
arm64: dts: qcom: shikra: enable ST33 TPM
arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi | 1 - arch/arm64/boot/dts/qcom/shikra-evk.dtsi | 10 ++++++++++ arch/arm64/boot/dts/qcom/shikra-iqs-som.dtsi | 1 - 3 files changed, 10 insertions(+), 2 deletions(-)
---
base-commit: 65eb47183e176d8c1220cb945edac71dbedceac1
change-id: 20260825-shikra-dtpm-7490cacf0266
Best regards,
Signature · 1 line
Khalid Faisal Ansari <[email protected]>
PATCH v5 1/2 arm64: dts: qcom: shikra: unreserve GPIOs 14-17
GPIOs 14-17 were previously reserved in the tlmm gpio-reserved-ranges, preventing Linux from accessing SPI5. Removing them from the reserved list across all three Shikra EVK variants (CQM, CQS, IQS) enables it for dTPM usecase.
--- arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi | 1 - arch/arm64/boot/dts/qcom/shikra-iqs-som.dtsi | 1 - 2 files changed, 2 deletions(-)
arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi +0 -1
@@ -197,7 +197,6 @@ pm4125_l22: l22 { &tlmm { gpio-reserved-ranges = <6 4>, /* Fingerprint SPI */ - <14 4>, /* eSE SPI */ <30 2>, /* NFC SPI */ <138 1>, /* NFC Secure IO */ <155 11>; /* eMMC Boot */
arch/arm64/boot/dts/qcom/shikra-iqs-som.dtsi +0 -1
@@ -219,7 +219,6 @@ pm8150_l18: l18 { &tlmm { gpio-reserved-ranges = <6 4>, /* Fingerprint SPI */ - <14 4>, /* eSE SPI */ <30 2>, /* NFC SPI */ <138 1>, /* NFC Secure IO */ <155 11>; /* eMMC Boot */
Signature · 1 line
2.34.1
Re: [PATCH v5 1/2] arm64: dts: qcom: shikra: unreserve GPIOs 14-17
Quoted 7 lines · Khalid Faisal Ansari
GPIOs 14-17 were previously reserved in the tlmm gpio-reserved-ranges, preventing Linux from accessing SPI5. Removing them from the reserved list across all three Shikra EVK variants (CQM, CQS, IQS) enables it for dTPM usecase.
Signed-off-by Khalid Faisal Ansari <[email protected]>Reviewed-by Konrad Dybcio <[email protected]>
PATCH v5 2/2 arm64: dts: qcom: shikra: enable ST33 TPM
In reply to Khalid Faisal AnsariEnable ST33HTPM TPM over SPI5 on the Shikra IoT EVK by adding the required SPI and TPM nodes.
--- arch/arm64/boot/dts/qcom/shikra-evk.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/qcom/shikra-evk.dtsi +10 -0
@@ -9,6 +9,16 @@ &qupv3_0 { status = "okay"; }; +&spi5 { + status = "okay"; + + tpm@0 { + compatible = "st,st33htpm-spi", "tcg,tpm_tis-spi"; + reg = <0>; + spi-max-frequency = <20000000>; + }; +}; + &uart0 { status = "okay"; };
Signature · 1 line
2.34.1
Re: [PATCH v5 2/2] arm64: dts: qcom: shikra: enable ST33 TPM
Quoted 4 lines · Khalid Faisal Ansari
Enable ST33HTPM TPM over SPI5 on the Shikra IoT EVK by adding the required SPI and TPM nodes.
Signed-off-by Khalid Faisal Ansari <[email protected]>
Re: [PATCH v5 2/2] arm64: dts: qcom: shikra: enable ST33 TPM
In reply to Khalid Faisal AnsariQuoted 5 lines · Khalid Faisal Ansari
Enable ST33HTPM TPM over SPI5 on the Shikra IoT EVK by adding the required SPI and TPM nodes.
Signed-off-by Khalid Faisal Ansari <[email protected]>---
Konrad
Re: (subset) [PATCH v5 0/2] arm64: dts: qcom: shikra: enable ST33 TPM support
In reply to Khalid Faisal AnsariQuoted 11 lines · Khalid Faisal Ansari
The Shikra EVK platforms support an ST33 TPM connected over SPI5.
This series first removes GPIOs 14-17 from the reserved ranges so that SPI5 can be used by Linux, and then enables the ST33 TPM in the common Shikra EVK device tree.
Changes in v5:
- Add Reviewed-by tag from Konrad Dybcio for v4-patch 1.
- Keep node references in alphabetical order.[...]
Applied, thanks!
[2/2] arm64: dts: qcom: shikra: enable ST33 TPM
commit: 9f27d5c53a4d3b5a5ab80fe2efa7c72ed04e350e
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>