]> git.itanic.dy.fi Git - linux-stable/commit
dt-bindings: tpm: Convert Google Cr50 bindings to DT schema
authorLukas Wunner <lukas@wunner.de>
Sun, 17 Dec 2023 10:13:32 +0000 (11:13 +0100)
committerRob Herring <robh@kernel.org>
Tue, 9 Jan 2024 16:56:18 +0000 (10:56 -0600)
commitd3b8b0855a1181b5a9f8ef58022474f34cba09fd
tree327454159a07dbb2dfec3436ffadbff626374c30
parent26c9d152ebf3a16661f2d2a619bd71099c71299d
dt-bindings: tpm: Convert Google Cr50 bindings to DT schema

Convert the devicetree bindings for the Google Security Chip H1 running
Cr50 firmware to DT schema.

The chip can be attached to SPI or I²C.  Existing devicetrees use the
same "google,cr50" compatible string for both cases without additionally
specifying a generic "tcg,tpm_tis-spi" or "tcg,tpm-tis-i2c" compatible.

The chip therefore cannot be documented in the tcg,tpm_tis-spi.yaml and
tcg,tpm-tis-i2c.yaml schemas:  The validator would select both of them
and complain about SPI properties when the chip is an I²C peripheral.

So document the chip in a schema of its own which includes both, SPI and
I²C properties by reference.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/52635205818ab201cacb0c0f37c7fa48149c7f8e.1702806810.git.lukas@wunner.de
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/security/tpm/google,cr50.txt [deleted file]
Documentation/devicetree/bindings/tpm/google,cr50.yaml [new file with mode: 0644]