* [PATCH] WIP: dt-bindings: arm: firmware: tlm,trusted-foundations: Convert txt bindings to yaml
@ 2021-10-09 10:45 David Heidelberg
2021-10-19 21:38 ` Rob Herring
0 siblings, 1 reply; 5+ messages in thread
From: David Heidelberg @ 2021-10-09 10:45 UTC (permalink / raw)
To: Stephen Warren, Rob Herring
Cc: devicetree, linux-kernel, ~okias/devicetree, David Heidelberg
Convert Trusted Foundation binding to the YAML syntax.
Signed-off-by: David Heidelberg <david@ixit.cz>
---
.../arm/firmware/tlm,trusted-foundations.txt | 20 --------
.../arm/firmware/tlm,trusted-foundations.yaml | 46 +++++++++++++++++++
2 files changed, 46 insertions(+), 20 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.txt
create mode 100644 Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.yaml
diff --git a/Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.txt b/Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.txt
deleted file mode 100644
index 780d0392a66b..000000000000
--- a/Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-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>;
- };
- };
diff --git a/Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.yaml b/Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.yaml
new file mode 100644
index 000000000000..9d1857c0aa07
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.yaml
@@ -0,0 +1,46 @@
+# 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>;
+ };
+ };
--
2.33.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] WIP: dt-bindings: arm: firmware: tlm,trusted-foundations: Convert txt bindings to yaml
2021-10-09 10:45 [PATCH] WIP: dt-bindings: arm: firmware: tlm,trusted-foundations: Convert txt bindings to yaml David Heidelberg
@ 2021-10-19 21:38 ` Rob Herring
2021-10-19 22:24 ` David Heidelberg
0 siblings, 1 reply; 5+ messages in thread
From: Rob Herring @ 2021-10-19 21:38 UTC (permalink / raw)
To: David Heidelberg
Cc: Stephen Warren, devicetree, linux-kernel, ~okias/devicetree
On Sat, Oct 09, 2021 at 12:45:18PM +0200, David Heidelberg wrote:
> Convert Trusted Foundation binding to the YAML syntax.
Looks fine. Why WIP?
If version number ranges are known, you could add constraints on those.
>
> Signed-off-by: David Heidelberg <david@ixit.cz>
> ---
> .../arm/firmware/tlm,trusted-foundations.txt | 20 --------
> .../arm/firmware/tlm,trusted-foundations.yaml | 46 +++++++++++++++++++
> 2 files changed, 46 insertions(+), 20 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.txt
> create mode 100644 Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.yaml
>
> diff --git a/Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.txt b/Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.txt
> deleted file mode 100644
> index 780d0392a66b..000000000000
> --- a/Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.txt
> +++ /dev/null
> @@ -1,20 +0,0 @@
> -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>;
> - };
> - };
> diff --git a/Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.yaml b/Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.yaml
> new file mode 100644
> index 000000000000..9d1857c0aa07
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.yaml
> @@ -0,0 +1,46 @@
> +# 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>;
> + };
> + };
> --
> 2.33.0
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] WIP: dt-bindings: arm: firmware: tlm,trusted-foundations: Convert txt bindings to yaml
2021-10-19 21:38 ` Rob Herring
@ 2021-10-19 22:24 ` David Heidelberg
2021-10-22 14:16 ` Rob Herring
0 siblings, 1 reply; 5+ messages in thread
From: David Heidelberg @ 2021-10-19 22:24 UTC (permalink / raw)
To: Rob Herring; +Cc: Stephen Warren, devicetree, linux-kernel, ~okias/devicetree
On Tue, Oct 19 2021 at 16:38:18 -0500, Rob Herring <robh@kernel.org>
wrote:
> On Sat, Oct 09, 2021 at 12:45:18PM +0200, David Heidelberg wrote:
>> Convert Trusted Foundation binding to the YAML syntax.
>
> Looks fine. Why WIP?
>
Can you drop the WIP prefix I forgot or should I resend?
> If version number ranges are known, you could add constraints on
> those.
from driver:
* we are not using version information for now since currently
* supported SMCs are compatible with all TF releases
so I guess at least driver currently doesn't care and know any enums.
David
>
>>
>> Signed-off-by: David Heidelberg <david@ixit.cz>
>> ---
>> .../arm/firmware/tlm,trusted-foundations.txt | 20 --------
>> .../arm/firmware/tlm,trusted-foundations.yaml | 46
>> +++++++++++++++++++
>> 2 files changed, 46 insertions(+), 20 deletions(-)
>> delete mode 100644
>> Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.txt
>> create mode 100644
>> Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.yaml
>>
>> diff --git
>> a/Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.txt
>> b/Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.txt
>> deleted file mode 100644
>> index 780d0392a66b..000000000000
>> ---
>> a/Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.txt
>> +++ /dev/null
>> @@ -1,20 +0,0 @@
>> -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>;
>> - };
>> - };
>> diff --git
>> a/Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.yaml
>> b/Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.yaml
>> new file mode 100644
>> index 000000000000..9d1857c0aa07
>> --- /dev/null
>> +++
>> b/Documentation/devicetree/bindings/arm/firmware/tlm,trusted-foundations.yaml
>> @@ -0,0 +1,46 @@
>> +# 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>;
>> + };
>> + };
>> --
>> 2.33.0
>>
>>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] WIP: dt-bindings: arm: firmware: tlm,trusted-foundations: Convert txt bindings to yaml
2021-10-19 22:24 ` David Heidelberg
@ 2021-10-22 14:16 ` Rob Herring
2021-10-22 23:21 ` David Heidelberg
0 siblings, 1 reply; 5+ messages in thread
From: Rob Herring @ 2021-10-22 14:16 UTC (permalink / raw)
To: David Heidelberg
Cc: Stephen Warren, devicetree, linux-kernel, ~okias/devicetree
On Tue, Oct 19, 2021 at 5:26 PM David Heidelberg <david@ixit.cz> wrote:
>
>
>
>
> On Tue, Oct 19 2021 at 16:38:18 -0500, Rob Herring <robh@kernel.org>
> wrote:
> > On Sat, Oct 09, 2021 at 12:45:18PM +0200, David Heidelberg wrote:
> >> Convert Trusted Foundation binding to the YAML syntax.
> >
> > Looks fine. Why WIP?
> >
>
> Can you drop the WIP prefix I forgot or should I resend?
Please resend.
Rob
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] WIP: dt-bindings: arm: firmware: tlm,trusted-foundations: Convert txt bindings to yaml
2021-10-22 14:16 ` Rob Herring
@ 2021-10-22 23:21 ` David Heidelberg
0 siblings, 0 replies; 5+ messages in thread
From: David Heidelberg @ 2021-10-22 23:21 UTC (permalink / raw)
To: Rob Herring; +Cc: Stephen Warren, devicetree, linux-kernel, ~okias/devicetree
done, resent.
David
On Fri, Oct 22 2021 at 09:16:26 -0500, Rob Herring <robh@kernel.org>
wrote:
> On Tue, Oct 19, 2021 at 5:26 PM David Heidelberg <david@ixit.cz>
> wrote:
>>
>>
>>
>>
>> On Tue, Oct 19 2021 at 16:38:18 -0500, Rob Herring <robh@kernel.org>
>> wrote:
>> > On Sat, Oct 09, 2021 at 12:45:18PM +0200, David Heidelberg wrote:
>> >> Convert Trusted Foundation binding to the YAML syntax.
>> >
>> > Looks fine. Why WIP?
>> >
>>
>> Can you drop the WIP prefix I forgot or should I resend?
>
> Please resend.
>
> Rob
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-10-22 23:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-09 10:45 [PATCH] WIP: dt-bindings: arm: firmware: tlm,trusted-foundations: Convert txt bindings to yaml David Heidelberg
2021-10-19 21:38 ` Rob Herring
2021-10-19 22:24 ` David Heidelberg
2021-10-22 14:16 ` Rob Herring
2021-10-22 23:21 ` David Heidelberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).