Skip to content

Commit 044d19f

Browse files
AndreasFuchsTPMpopcornmix
authored andcommitted
Add overlay for SLB9673 TPM
Device Tree overlay for the Infineon SLB9673 Trusted Platform Module addon boards that communicate using I2C. Signed-off-by: Andreas Fuchs <[email protected]>
1 parent 52f0e7e commit 044d19f

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
243243
tc358743-audio.dtbo \
244244
tinylcd35.dtbo \
245245
tpm-slb9670.dtbo \
246+
tpm-slb9673.dtbo \
246247
uart0.dtbo \
247248
uart1.dtbo \
248249
uart2.dtbo \

arch/arm/boot/dts/overlays/README

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4021,6 +4021,14 @@ Load: dtoverlay=tpm-slb9670
40214021
Params: <None>
40224022

40234023

4024+
Name: tpm-slb9673
4025+
Info: Enables support for Infineon SLB9673 Trusted Platform Module add-on
4026+
boards, which can be used as a secure key storage and hwrng
4027+
via the I2C protocol.
4028+
Load: dtoverlay=tpm-slb9673
4029+
Params: <None>
4030+
4031+
40244032
Name: uart0
40254033
Info: Change the pin usage of uart0
40264034
Load: dtoverlay=uart0,<param>=<val>
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
* Device Tree overlay for the Infineon SLB9673 Trusted Platform Module add-on
3+
* boards, which can be used as a secure key storage and hwrng.
4+
*/
5+
6+
/dts-v1/;
7+
/plugin/;
8+
9+
/ {
10+
compatible = "brcm,bcm2835";
11+
12+
/* Due to issue https://github.com/raspberrypi/linux/issues/4884 the
13+
hardware I2C needs to be disabled and software I2C enabled */
14+
fragment@0 {
15+
target = <&i2c_arm>;
16+
__overlay__ {
17+
status = "disabled";
18+
};
19+
};
20+
21+
fragment@1 {
22+
target-path = "/";
23+
__overlay__ {
24+
i2c1: i2c-gpio@1 {
25+
#address-cells = <1>;
26+
#size-cells = <0>;
27+
compatible = "i2c-gpio";
28+
gpios = <&gpio 2 6>, /* SDA GPIO_OPEN_DRAIN */
29+
<&gpio 3 6>; /* CLK GPIO_OPEN_DRAIN */
30+
clock-frequency = <400000>;
31+
status = "okay";
32+
};
33+
};
34+
};
35+
36+
/* Add the TPM */
37+
fragment@2 {
38+
target = <&i2c1>;
39+
__overlay__ {
40+
#address-cells = <1>;
41+
#size-cells = <0>;
42+
43+
slb9673: slb9673@2e {
44+
compatible = "infineon,slb9673", "tcg,tpm-tis-i2c";
45+
reg = <0x2e>;
46+
status = "okay";
47+
};
48+
};
49+
};
50+
};

0 commit comments

Comments
 (0)