Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7512

Device Tree • Re: CM5 and LetsTrust TPM with u-boot and Linux

$
0
0
That overlay you link to looks like it's had everything thrown at it in the hope something works - the phrase "cargo cult" comes to mind.

There is a standard overlay for that TPM that may just work for you, or it may be a cleaner starting point. Try just adding the following to config.txt:

Code:

dtoverlay=tpm-slb9670
For comparison, this is the source code:

Code:

/* * Device Tree overlay for the Infineon SLB9670 Trusted Platform Module add-on * boards, which can be used as a secure key storage and hwrng. * available as "Iridium SLB9670" by Infineon and "LetsTrust TPM" by pi3g. *//dts-v1/;/plugin/;/ {compatible = "brcm,bcm2835";fragment@0 {target = <&spi0>;__overlay__ {status = "okay";};};fragment@1 {target = <&spidev1>;__overlay__ {status = "disabled";};};fragment@2 {target = <&spi0>;__overlay__ {/* needed to avoid dtc warning */#address-cells = <1>;#size-cells = <0>;slb9670: slb9670@1 {compatible = "infineon,slb9670";reg = <1>;/* CE1 */#address-cells = <1>;#size-cells = <0>;spi-max-frequency = <32000000>;status = "okay";};};};};
An obvious difference is that it is for CE1, it lacks the reset signal, and the SPI frequency is higher. You could try compiling this instead to get a bit closer:

Code:

/dts-v1/;/plugin/;/ {compatible = "brcm,bcm2835";fragment@0 {target = <&spi0>;__overlay__ {status = "okay";};};fragment@1 {target = <&spidev1>;__overlay__ {status = "disabled";};};fragment@2 {target = <&spi0>;__overlay__ {/* needed to avoid dtc warning */#address-cells = <1>;#size-cells = <0>;slb9670: slb9670@0 {compatible = "infineon,slb9670";reg = <0>;/* CE0 */#address-cells = <1>;#size-cells = <0>;spi-max-frequency = <1000000>;gpio-reset = <&gpio 24 1>;status = "okay";};};};};

Statistics: Posted by PhilE — Mon Jul 07, 2025 4:23 pm



Viewing all articles
Browse latest Browse all 7512

Trending Articles