-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathtpm-soft-spi.dts
69 lines (60 loc) · 1.36 KB
/
tpm-soft-spi.dts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
* 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", "brcm,bcm2708", "brcm,bcm2709";
fragment@0 {
target = <&spi0>;
__overlay__ {
compatible = "spi-gpio";
pinctrl-names = "default";
pinctrl-0 = <&spi0_gpio7>;
gpio-sck = <&gpio 11 0>;
gpio-mosi = <&gpio 10 0>;
gpio-miso = <&gpio 9 0>;
cs-gpios = <&gpio 7 1>;
spi-delay-us = <0>;
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
/* for kernel driver */
sck-gpios = <&gpio 11 0>;
mosi-gpios = <&gpio 10 0>;
miso-gpios = <&gpio 9 0>;
num-chipselects = <1>;
slb9670: slb9670@0 {
compatible = "infineon,slb9670", "tis,tpm2-spi", "tcg,tpm_tis-spi";
reg = <0>;
gpio-reset = <&gpio 24 1>;
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
/* for kernel driver */
spi-max-frequency = <1000000>;
};
};
};
fragment@1 {
target = <&spi0_gpio7>;
__overlay__ {
brcm,pins = <7 8 9 10 11 24>;
brcm,function = <0>;
};
};
fragment@2 {
target = <&spidev0>;
__overlay__ {
status = "disabled";
};
};
fragment@3 {
target = <&spidev1>;
__overlay__ {
status = "disabled";
};
};
};