Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for TPM SLB9670 module on RK3399 platform #385

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

ehbello
Copy link
Contributor

@ehbello ehbello commented Dec 7, 2024

This update introduces support for the Infineon SLB9670 Trusted Platform Module (TPM), which provides secure key storage and hardware random number generation (HWRNG). The implementation enables the TPM on the spi1 bus with CS1 using a GPIO pin for RK3399-based systems, potentially extensible to other boards.

Key Changes

  • Added the rk3399-spi1-add-cs1.dts overlay to support multi-CS configuration on SPI1 (CS0 is used by the SPI-flash on some boards)

  • Introduced the tpm-slb9670.dts overlay to configure and activate the SLB9670 TPM using the new available CS1.

Testing

The TPM functionality on SPI has been verified on a RockPi 4C using a GeeekPi TPM9670 Module (EP-0149) from 52pi.com, initially designed for the Raspberry Pi header.

Note: The Raspberry Pi header differs from RockPi one on PIN 26, which corresponds to ADC_IN0 with no CS functionality. Therefore, redirection or bridging to PIN 22 is required for proper operation.

I hope you find this contribution helpful.

Feel free to provide feedback or suggest further improvements.

@ehbello ehbello requested a review from RadxaYuntian as a code owner December 7, 2024 04:06
@ehbello
Copy link
Contributor Author

ehbello commented Dec 9, 2024

I refactored the overlay following to your indications. I hope it's ok, now.

@ehbello
Copy link
Contributor Author

ehbello commented Feb 8, 2025

I applied the implementation suggested by @CodeChenL at #385 (comment) and accordingly also renamed the file to rk3399-spi1-cs-gpio-slb9670.dts.

I hope it is finally ok, now.

Add support for TPM module SLB9670 using spi1-gpio on rk3399

Signed-off-by: Enrique Hernández Bello <ehbello@gmail.com>
@RadxaYuntian RadxaYuntian added this pull request to the merge queue Feb 11, 2025
Merged via the queue into radxa-pkg:main with commit 3816fce Feb 11, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants