diff mbox series

[v5,01/23] dt/bindings: Add bindings for FWU Metadata storage device

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

Commit Message

Sughosh Ganu June 9, 2022, 12:29 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>
---
 .../firmware/fwu-mdata.txt                     | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 doc/device-tree-bindings/firmware/fwu-mdata.txt

Comments

Michal Simek June 16, 2022, 1:34 p.m. UTC | #1
čt 9. 6. 2022 v 14:30 odesílatel Sughosh Ganu <sughosh.ganu@linaro.org> napsal:
>
> 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>
> ---
>  .../firmware/fwu-mdata.txt                     | 18 ++++++++++++++++++

Why is this in txt file when mtd one is in yaml.
doc/device-tree-bindings/firmware/uboot,fwu-mdata-mtd.yaml

Thanks,
Michal
Sughosh Ganu June 17, 2022, 6:21 a.m. UTC | #2
On Thu, 16 Jun 2022 at 19:04, Michal Simek <monstr@monstr.eu> wrote:
>
> čt 9. 6. 2022 v 14:30 odesílatel Sughosh Ganu <sughosh.ganu@linaro.org> napsal:
> >
> > 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>
> > ---
> >  .../firmware/fwu-mdata.txt                     | 18 ++++++++++++++++++
>
> Why is this in txt file when mtd one is in yaml.
> doc/device-tree-bindings/firmware/uboot,fwu-mdata-mtd.yaml

The above binding was written by me in txt, while the mtd one is
authored by Masami Hiramatsu. I will change this to yaml in the next
version.

-sughosh

>
> Thanks,
> Michal
>
> --
> Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
> w: www.monstr.eu p: +42-0-721842854
> Maintainer of Linux kernel - Xilinx Microblaze
> Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
> U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs
diff mbox series

Patch

diff --git a/doc/device-tree-bindings/firmware/fwu-mdata.txt b/doc/device-tree-bindings/firmware/fwu-mdata.txt
new file mode 100644
index 0000000000..2d8ed056a5
--- /dev/null
+++ b/doc/device-tree-bindings/firmware/fwu-mdata.txt
@@ -0,0 +1,18 @@ 
+FWU Metadata Access Devicetree Binding
+
+The FWU Multi Bank Update feature uses a metadata structure, stored on
+a separate partition for keeping information on the set of updatable
+images. The device tree node provides information on the storage
+device that contains the FWU metadata.
+
+Required properties :
+
+- compatible : "u-boot,fwu-mdata-gpt";
+- fwu-mdata-store : should point to the storage device which contains
+		    the FWU metadata partition.
+
+Example :
+	fwu-mdata {
+		compatible = "u-boot,fwu-mdata-gpt";
+		fwu-mdata-store = <&sdmmc1>;
+	};