brcm2708: add kernel 4.14 support
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.14 / 950-0449-Add-overlay-for-SLB9760-Iridium-LetsTrust-TPM.patch
1 From 0e9dac6a2530f94fd8f3d195d929523536bc7ab2 Mon Sep 17 00:00:00 2001
2 From: Peter Huewe <peterhuewe@gmx.de>
3 Date: Thu, 14 Jun 2018 22:51:24 +0200
4 Subject: [PATCH 449/454] Add overlay for SLB9760 Iridium /LetsTrust TPM
5
6 Device Tree overlay for the Infineon SLB9670 Trusted Platform Module add-on
7 boards, which can be used as a secure key storage and hwrng.
8 available as "Iridium SLB9670" by Infineon and "LetsTrust TPM" by
9 pi3g.
10
11 Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
12 ---
13 arch/arm/boot/dts/overlays/Makefile | 1 +
14 arch/arm/boot/dts/overlays/README | 8 ++++
15 .../boot/dts/overlays/tpm-slb9670-overlay.dts | 44 +++++++++++++++++++
16 3 files changed, 53 insertions(+)
17 create mode 100644 arch/arm/boot/dts/overlays/tpm-slb9670-overlay.dts
18
19 --- a/arch/arm/boot/dts/overlays/Makefile
20 +++ b/arch/arm/boot/dts/overlays/Makefile
21 @@ -138,6 +138,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
22 tc358743.dtbo \
23 tc358743-audio.dtbo \
24 tinylcd35.dtbo \
25 + tpm-slb9670.dtbo \
26 uart0.dtbo \
27 uart1.dtbo \
28 upstream.dtbo \
29 --- a/arch/arm/boot/dts/overlays/README
30 +++ b/arch/arm/boot/dts/overlays/README
31 @@ -1994,6 +1994,14 @@ Params: speed Display
32 dtoverlay=tinylcd35,touch,touchgpio=3
33
34
35 +Name: tpm-slb9670
36 +Info: Enables support for Infineon SLB9670 Trusted Platform Module add-on
37 + boards, which can be used as a secure key storage and hwrng,
38 + available as "Iridium SLB9670" by Infineon and "LetsTrust TPM" by pi3g.
39 +Load: dtoverlay=tpm-slb9670
40 +Params: <None>
41 +
42 +
43 Name: uart0
44 Info: Change the pin usage of uart0
45 Load: dtoverlay=uart0,<param>=<val>
46 --- /dev/null
47 +++ b/arch/arm/boot/dts/overlays/tpm-slb9670-overlay.dts
48 @@ -0,0 +1,44 @@
49 +/*
50 + * Device Tree overlay for the Infineon SLB9670 Trusted Platform Module add-on
51 + * boards, which can be used as a secure key storage and hwrng.
52 + * available as "Iridium SLB9670" by Infineon and "LetsTrust TPM" by pi3g.
53 + */
54 +
55 +/dts-v1/;
56 +/plugin/;
57 +
58 +/ {
59 + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
60 +
61 + fragment@0 {
62 + target = <&spi0>;
63 + __overlay__ {
64 + status = "okay";
65 + };
66 + };
67 +
68 + fragment@1 {
69 + target = <&spidev1>;
70 + __overlay__ {
71 + status = "disabled";
72 + };
73 + };
74 +
75 + fragment@2 {
76 + target = <&spi0>;
77 + __overlay__ {
78 + /* needed to avoid dtc warning */
79 + #address-cells = <1>;
80 + #size-cells = <0>;
81 + slb9670: slb9670@1 {
82 + compatible = "infineon,slb9670";
83 + reg = <1>; /* CE1 */
84 + #address-cells = <1>;
85 + #size-cells = <0>;
86 + spi-max-frequency = <32000000>;
87 + status = "okay";
88 + };
89 +
90 + };
91 + };
92 +};