Skip to contentSkip to conversation

dt-bindings: arm: firmware: Convert linaro,optee-tz to json schema

PATCH Applied Nishanth Menon 2 participants 2 messages Apr 26, 2021 – May 3, 2021 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dt-bindings: arm: firmware: Convert linaro,optee-tz to json schema

Convert linaro,optee-tz to json schema format for better documentation and error checks.

NOTE: This change does introduce a stricter naming convention for optee nodes.

---

Changes since v1:
* Dropped un-necessary quotes around compatible
* Converted the method to enum, updated description as well
* Updated commit message to drop the 'checkpatch warning'

V1: https://lore.kernel.org/linux-arm-kernel/[email protected]/

 .../bindings/arm/firmware/linaro,optee-tz.txt | 31 ----------
 .../arm/firmware/linaro,optee-tz.yaml         | 58 +++++++++++++++++++
 2 files changed, 58 insertions(+), 31 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.txt
 create mode 100644 Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.yaml
Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.txt deleted +0 -31
deleted file mode 100644
index d38834c67dff..000000000000
@@ -1,31 +0,0 @@
-OP-TEE Device Tree Bindings
-
-OP-TEE is a piece of software using hardware features to provide a Trusted
-Execution Environment. The security can be provided with ARM TrustZone, but
-also by virtualization or a separate chip.
-
-We're using "linaro" as the first part of the compatible property for
-the reference implementation maintained by Linaro.
-
-* OP-TEE based on ARM TrustZone required properties:
-
-- compatible     : should contain "linaro,optee-tz"
-
-- method         : The method of calling the OP-TEE Trusted OS. Permitted
-                   values are:
-
-                   "smc" : SMC #0, with the register assignments specified
-		           in drivers/tee/optee/optee_smc.h
-
-                   "hvc" : HVC #0, with the register assignments specified
-		           in drivers/tee/optee/optee_smc.h
-
-
-
-Example:
-	firmware {
-		optee {
-			compatible = "linaro,optee-tz";
-			method = "smc";
-		};
-	};
Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.yaml new file +58 -0

58 lines not on this page · raw message

Signature · 1 line
2.31.0
maintainer Applied
#1 lore raw

Re: [PATCH V2] dt-bindings: arm: firmware: Convert linaro, optee-tz to json schema

Quoted 14 lines · Nishanth Menon

Convert linaro,optee-tz to json schema format for better documentation and error checks.

NOTE: This change does introduce a stricter naming convention for optee nodes.

---

Changes since v1:
* Dropped un-necessary quotes around compatible
* Converted the method to enum, updated description as well
* Updated commit message to drop the 'checkpatch warning'

Quoted 8 lines

V1: https://lore.kernel.org/linux-arm-kernel/[email protected]/

 .../bindings/arm/firmware/linaro,optee-tz.txt | 31 ----------
 .../arm/firmware/linaro,optee-tz.yaml         | 58 +++++++++++++++++++
 2 files changed, 58 insertions(+), 31 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.txt
 create mode 100644 Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.yaml

Applied, thanks!