Commit 7d194a5a authored by David Heidelberg's avatar David Heidelberg Committed by Rob Herring
Browse files

dt-bindings: arm: firmware: tlm,trusted-foundations: Convert txt bindings to yaml



Convert Trusted Foundation binding to the YAML syntax.

Signed-off-by: default avatarDavid Heidelberg <david@ixit.cz>
Link: https://lore.kernel.org/r/20211022232100.137067-1-david@ixit.cz


Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent e2266d37
Loading
Loading
Loading
Loading
+0 −20
Original line number Diff line number Diff line
Trusted Foundations
-------------------

Boards that use the Trusted Foundations secure monitor can signal its
presence by declaring a node compatible with "tlm,trusted-foundations"
under the /firmware/ node

Required properties:
- compatible: "tlm,trusted-foundations"
- tlm,version-major: major version number of Trusted Foundations firmware
- tlm,version-minor: minor version number of Trusted Foundations firmware

Example:
	firmware {
		trusted-foundations {
			compatible = "tlm,trusted-foundations";
			tlm,version-major = <2>;
			tlm,version-minor = <8>;
		};
	};
+46 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: "http://devicetree.org/schemas/arm/firmware/tlm,trusted-foundations.yaml#"
$schema: "http://devicetree.org/meta-schemas/core.yaml#"

title: Trusted Foundations

description: |
  Boards that use the Trusted Foundations secure monitor can signal its
  presence by declaring a node compatible under the /firmware/ node

maintainers:
  - Stephen Warren <swarren@nvidia.com>

properties:
  $nodename:
    const: trusted-foundations

  compatible:
    const: tlm,trusted-foundations

  tlm,version-major:
    $ref: /schemas/types.yaml#/definitions/uint32
    description: major version number of Trusted Foundations firmware

  tlm,version-minor:
    $ref: /schemas/types.yaml#/definitions/uint32
    description: minor version number of Trusted Foundations firmware

required:
  - compatible
  - tlm,version-major
  - tlm,version-minor

additionalProperties: false

examples:
  - |
    firmware {
      trusted-foundations {
        compatible = "tlm,trusted-foundations";
        tlm,version-major = <2>;
        tlm,version-minor = <8>;
      };
    };