diff mbox series

[RFC,v2,4/8] dt/bindings: firmware: Add FWU metadata on SPI flash binding

Message ID 164511071693.43219.16012389966028151931.stgit@localhost
State New
Headers show
Series FWU: Add FWU Multi Bank Update for DeveloerBox | expand

Commit Message

Masami Hiramatsu Feb. 17, 2022, 3:11 p.m. UTC
Add a devicetree-binding YAML file for the FWU metadata on SPI
Flash without GPT.

Signed-off-by: Masami Hiramatsu <masami.hiramatsu@linaro.org>
---
 .../firmware/fwu-mdata-sf.yaml                     |   38 ++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 doc/device-tree-bindings/firmware/fwu-mdata-sf.yaml
diff mbox series

Patch

diff --git a/doc/device-tree-bindings/firmware/fwu-mdata-sf.yaml b/doc/device-tree-bindings/firmware/fwu-mdata-sf.yaml
new file mode 100644
index 0000000000..3d8726231f
--- /dev/null
+++ b/doc/device-tree-bindings/firmware/fwu-mdata-sf.yaml
@@ -0,0 +1,38 @@ 
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/firmware/u-boot,fwu-mdata-sf.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: FWU metadata on SPI Flash without GPT
+
+maintainers:
+ - Masami Hiramatsu <masami.hiramatsu@linaro.org>
+
+properties:
+  compatible:
+    items:
+      - const: u-boot,fwu-mdata-sf
+
+  fwu-mdata-store:
+    maxItems: 1
+    description: Phandle of the SPI NOR flash device which contains the FWU medatata.
+
+  mdata-offsets:
+    minItems: 2
+    description: Offsets of the primary and secondary FWU metadata in the NOR flash.
+
+required:
+  - compatible
+  - fwu-mdata-store
+  - mdata-offsets
+
+additionalProperties: false
+
+examples:
+  - |
+    fwu-mdata {
+        compatible = "u-boot,fwu-mdata-sf";
+        fwu-mdata-store = <&spi-flash>;
+        mdata-offsets = <0x500000 0x530000>;
+    };