All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lukas Wunner <lukas@wunner.de>
To: Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Jarkko Sakkinen <jarkko@kernel.org>,
	Peter Huewe <peterhuewe@gmx.de>, Jason Gunthorpe <jgg@ziepe.ca>
Cc: devicetree@vger.kernel.org, linux-integrity@vger.kernel.org,
	Lino Sanfilippo <LinoSanfilippo@gmx.de>,
	Nayna Jain <nayna@linux.ibm.com>,
	Thirupathaiah Annapureddy <thiruan@microsoft.com>,
	Sasha Levin <sashal@kernel.org>,
	Andrey Pronin <apronin@chromium.org>,
	Alexander Steffen <Alexander.Steffen@infineon.com>,
	Johannes Holland <Johannes.Holland@infineon.com>,
	Amir Mizinski <amirmizi6@gmail.com>,
	Benoit HOUYERE <benoit.houyere@st.com>,
	Peter Delevoryas <peter@pjd.dev>,
	Ninad Palsule <ninad@linux.ibm.com>,
	Guenter Roeck <linux@roeck-us.net>,
	Francesco Dolcini <francesco@dolcini.it>,
	Nishanth Menon <nm@ti.com>
Subject: [PATCH v3 0/4] dt-bindings: tpm: Clean all the things
Date: Sun, 17 Dec 2023 11:13:30 +0100	[thread overview]
Message-ID: <cover.1702806810.git.lukas@wunner.de> (raw)

TPM dt-bindings cleanup, take three.

The existing devicetrees in arch/arm and arch/arm64 contain a few
violations of the schemas contained herein.  E.g. the nodename is
not "tpm@..." but "tpmdev@..." in some cases.  I've got patches
lined up to fix these issues and will submit them separately.

Changes v2 -> v3:
* [PATCH 1/4]:
  * Drop clock-frequency property from tcg,tpm-tis-i2c.yaml.
    It doesn't exist at the peripheral level, only at the
    controller level.  Document maximum clock frequency for
    infineon,slb9635tt and infineon,slb9645tt in textual form
    (as was previously done in trivial-devices.yaml).
  * Document reset-gpios property as used by:
    arch/arm64/boot/dts/freescale/imx8mp-beacon-kit.dts

* [PATCH 2/4]:
  * Introduce new schema specifically for google,cr50 (Rob).
    Note that I can't use "oneOf" for SPI and I²C properties
    because a node with only a "reg" property is a valid SPI
    and I²C node and would match both subschemas.
    So "anyOf" it is.

* [PATCH 4/4]:
  * Use "const" instead of "enum" for singleton compatible string.

Link to v2:
https://lore.kernel.org/linux-devicetree/cover.1701093036.git.lukas@wunner.de/


Lukas Wunner (4):
  dt-bindings: tpm: Consolidate TCG TIS bindings
  dt-bindings: tpm: Convert Google Cr50 bindings to DT schema
  dt-bindings: tpm: Convert IBM vTPM bindings to DT schema
  dt-bindings: tpm: Document Microsoft fTPM bindings

 .../bindings/security/tpm/google,cr50.txt     |  19 ----
 .../bindings/security/tpm/ibmvtpm.txt         |  41 -------
 .../bindings/security/tpm/st33zp24-i2c.txt    |  34 ------
 .../bindings/security/tpm/st33zp24-spi.txt    |  32 ------
 .../bindings/security/tpm/tpm-i2c.txt         |  26 -----
 .../bindings/security/tpm/tpm_tis_mmio.txt    |  25 -----
 .../bindings/security/tpm/tpm_tis_spi.txt     |  23 ----
 .../devicetree/bindings/tpm/google,cr50.yaml  |  65 +++++++++++
 .../devicetree/bindings/tpm/ibm,vtpm.yaml     | 104 ++++++++++++++++++
 .../bindings/tpm/microsoft,ftpm.yaml          |  47 ++++++++
 .../bindings/tpm/tcg,tpm-tis-i2c.yaml         |  90 +++++++++++++++
 .../bindings/tpm/tcg,tpm-tis-mmio.yaml        |  49 +++++++++
 .../bindings/tpm/tcg,tpm_tis-spi.yaml         |  75 +++++++++++++
 .../devicetree/bindings/tpm/tpm-common.yaml   |  87 +++++++++++++++
 .../devicetree/bindings/trivial-devices.yaml  |  16 ---
 15 files changed, 517 insertions(+), 216 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/security/tpm/google,cr50.txt
 delete mode 100644 Documentation/devicetree/bindings/security/tpm/ibmvtpm.txt
 delete mode 100644 Documentation/devicetree/bindings/security/tpm/st33zp24-i2c.txt
 delete mode 100644 Documentation/devicetree/bindings/security/tpm/st33zp24-spi.txt
 delete mode 100644 Documentation/devicetree/bindings/security/tpm/tpm-i2c.txt
 delete mode 100644 Documentation/devicetree/bindings/security/tpm/tpm_tis_mmio.txt
 delete mode 100644 Documentation/devicetree/bindings/security/tpm/tpm_tis_spi.txt
 create mode 100644 Documentation/devicetree/bindings/tpm/google,cr50.yaml
 create mode 100644 Documentation/devicetree/bindings/tpm/ibm,vtpm.yaml
 create mode 100644 Documentation/devicetree/bindings/tpm/microsoft,ftpm.yaml
 create mode 100644 Documentation/devicetree/bindings/tpm/tcg,tpm-tis-i2c.yaml
 create mode 100644 Documentation/devicetree/bindings/tpm/tcg,tpm-tis-mmio.yaml
 create mode 100644 Documentation/devicetree/bindings/tpm/tcg,tpm_tis-spi.yaml
 create mode 100644 Documentation/devicetree/bindings/tpm/tpm-common.yaml

-- 
2.40.1


             reply	other threads:[~2023-12-17 10:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-17 10:13 Lukas Wunner [this message]
2023-12-17 10:13 ` [PATCH v3 1/4] dt-bindings: tpm: Consolidate TCG TIS bindings Lukas Wunner
2024-01-08 19:06   ` Ninad Palsule
2023-12-17 10:13 ` [PATCH v3 2/4] dt-bindings: tpm: Convert Google Cr50 bindings to DT schema Lukas Wunner
2023-12-17 10:13 ` [PATCH v3 3/4] dt-bindings: tpm: Convert IBM vTPM " Lukas Wunner
2023-12-17 10:13 ` [PATCH v3 4/4] dt-bindings: tpm: Document Microsoft fTPM bindings Lukas Wunner
2023-12-20 16:04 ` [PATCH v3 0/4] dt-bindings: tpm: Clean all the things Rob Herring
2024-01-03 20:31 ` Rob Herring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1702806810.git.lukas@wunner.de \
    --to=lukas@wunner.de \
    --cc=Alexander.Steffen@infineon.com \
    --cc=Johannes.Holland@infineon.com \
    --cc=LinoSanfilippo@gmx.de \
    --cc=amirmizi6@gmail.com \
    --cc=apronin@chromium.org \
    --cc=benoit.houyere@st.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=francesco@dolcini.it \
    --cc=jarkko@kernel.org \
    --cc=jgg@ziepe.ca \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-integrity@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=nayna@linux.ibm.com \
    --cc=ninad@linux.ibm.com \
    --cc=nm@ti.com \
    --cc=peter@pjd.dev \
    --cc=peterhuewe@gmx.de \
    --cc=robh+dt@kernel.org \
    --cc=sashal@kernel.org \
    --cc=thiruan@microsoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.