arm64: dts: imx8m*-venice-gw7: Fix TPM schema violations
authorTim Harvey <tharvey@gateworks.com>
Tue, 2 Apr 2024 19:33:55 +0000 (12:33 -0700)
committerShawn Guo <shawnguo@kernel.org>
Wed, 3 Apr 2024 01:20:28 +0000 (09:20 +0800)
Since commit 26c9d152ebf3 ("dt-bindings: tpm: Consolidate TCG TIS
bindings"), several issues are reported by "make dtbs_check" for arm64
devicetrees:

The compatible property needs to contain the chip's name in addition to
the generic "tcg,tpm_tis-spi".

tpm@1: compatible: ['tcg,tpm_tis-spi'] is too short
from schema $id:
http://devicetree.org/schemas/tpm/tcg,tpm_tis-spi.yaml#

Fix these schema violations.

Gateworks Venice uses an Atmel ATTPM20P:
https://trac.gateworks.com/wiki/tpm

Cc: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi
arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts
arch/arm64/boot/dts/freescale/imx8mp-venice-gw71xx.dtsi

index 41c966147b9454d49502c351978b1992af2affbf..429be2bab8a2d5188dc9769ff7ad000e8769c53e 100644 (file)
@@ -57,7 +57,7 @@
        status = "okay";
 
        tpm@1 {
-               compatible = "tcg,tpm_tis-spi";
+               compatible = "atmel,attpm20p", "tcg,tpm_tis-spi";
                reg = <0x1>;
                spi-max-frequency = <36000000>;
        };
index 5e2cbaf27e0fc8dd44351e9426fb9df56ee52354..35ae0faa815bc5d436c2665882e7127bf5ff3bb1 100644 (file)
        };
 
        tpm@1 {
-               compatible = "tcg,tpm_tis-spi";
+               compatible = "atmel,attpm20p", "tcg,tpm_tis-spi";
                reg = <0x1>;
                spi-max-frequency = <36000000>;
        };
index e7bf032265e010eecb031e8c9dabe958077a31f1..2f740d74707bdfd612a977217b298f50562abacf 100644 (file)
@@ -68,7 +68,7 @@
        status = "okay";
 
        tpm@1 {
-               compatible = "tcg,tpm_tis-spi";
+               compatible = "atmel,attpm20p", "tcg,tpm_tis-spi";
                reg = <0x1>;
                spi-max-frequency = <36000000>;
        };