diff mbox series

[v7,01/13] dt/bindings: Add bindings for FWU Metadata storage device

Message ID 20220714183913.118505-2-sughosh.ganu@linaro.org
State Superseded
Headers show
Series FWU: Add FWU Multi Bank Update feature support | expand

Commit Message

Sughosh Ganu July 14, 2022, 6:39 p.m. UTC
Add bindings needed for accessing the FWU metadata partitions. These
include the compatible string which point to the access method and the
actual device which stores the FWU metadata.

The current patch adds basic bindings needed for accessing the
metadata structure on GPT partitioned block devices.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
---
Changes since V6: None

 .../firmware/fwu-mdata.yaml                   | 32 +++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 doc/device-tree-bindings/firmware/fwu-mdata.yaml

Comments

Heinrich Schuchardt July 15, 2022, 6:05 a.m. UTC | #1
On 7/14/22 20:39, Sughosh Ganu wrote:
> Add bindings needed for accessing the FWU metadata partitions. These
> include the compatible string which point to the access method and the
> actual device which stores the FWU metadata.
>
> The current patch adds basic bindings needed for accessing the
> metadata structure on GPT partitioned block devices.
>
> Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
> ---
> Changes since V6: None

Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Jassi Brar July 16, 2022, 9:13 p.m. UTC | #2
On Thu, 14 Jul 2022 at 13:39, Sughosh Ganu <sughosh.ganu@linaro.org> wrote:
>
> Add bindings needed for accessing the FWU metadata partitions. These
> include the compatible string which point to the access method and the
> actual device which stores the FWU metadata.
>
> The current patch adds basic bindings needed for accessing the
> metadata structure on GPT partitioned block devices.
>
> Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
> ---
> Changes since V6: None
>
>  .../firmware/fwu-mdata.yaml                   | 32 +++++++++++++++++++
>  1 file changed, 32 insertions(+)
>  create mode 100644 doc/device-tree-bindings/firmware/fwu-mdata.yaml
>
> diff --git a/doc/device-tree-bindings/firmware/fwu-mdata.yaml b/doc/device-tree-bindings/firmware/fwu-mdata.yaml
> new file mode 100644
> index 0000000000..97d30bd1c1
> --- /dev/null
> +++ b/doc/device-tree-bindings/firmware/fwu-mdata.yaml
>
I think we want to call it fwu-mdata-gpt.yaml ?

thanks.
Sughosh Ganu July 18, 2022, 5:32 a.m. UTC | #3
On Sun, 17 Jul 2022 at 02:43, Jassi Brar <jaswinder.singh@linaro.org> wrote:
>
> On Thu, 14 Jul 2022 at 13:39, Sughosh Ganu <sughosh.ganu@linaro.org> wrote:
> >
> > Add bindings needed for accessing the FWU metadata partitions. These
> > include the compatible string which point to the access method and the
> > actual device which stores the FWU metadata.
> >
> > The current patch adds basic bindings needed for accessing the
> > metadata structure on GPT partitioned block devices.
> >
> > Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
> > ---
> > Changes since V6: None
> >
> >  .../firmware/fwu-mdata.yaml                   | 32 +++++++++++++++++++
> >  1 file changed, 32 insertions(+)
> >  create mode 100644 doc/device-tree-bindings/firmware/fwu-mdata.yaml
> >
> > diff --git a/doc/device-tree-bindings/firmware/fwu-mdata.yaml b/doc/device-tree-bindings/firmware/fwu-mdata.yaml
> > new file mode 100644
> > index 0000000000..97d30bd1c1
> > --- /dev/null
> > +++ b/doc/device-tree-bindings/firmware/fwu-mdata.yaml
> >
> I think we want to call it fwu-mdata-gpt.yaml ?

Yes, makes sense. Will rename it. Thanks.

-sughosh
diff mbox series

Patch

diff --git a/doc/device-tree-bindings/firmware/fwu-mdata.yaml b/doc/device-tree-bindings/firmware/fwu-mdata.yaml
new file mode 100644
index 0000000000..97d30bd1c1
--- /dev/null
+++ b/doc/device-tree-bindings/firmware/fwu-mdata.yaml
@@ -0,0 +1,32 @@ 
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/firmware/fwu-mdata.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: FWU metadata on device with GPT partitioned layout
+
+maintainers:
+ - Sughosh Ganu <sughosh.ganu@linaro.org>
+
+properties:
+  compatible:
+    items:
+      - const: u-boot,fwu-mdata-gpt
+
+  fwu-mdata-store:
+    maxItems: 1
+    description: Phandle of the device which contains the FWU medatata partition.
+
+required:
+  - compatible
+  - fwu-mdata-store
+
+additionalProperties: false
+
+examples:
+  - |
+    fwu-mdata {
+        compatible = "u-boot,fwu-mdata-gpt";
+        fwu-mdata-store = <&sdmmc1>;
+    };