* [PATCH v2] dt_bindings: mtd: partitions: redboot: convert to YAML
@ 2021-06-28 19:14 ` Corentin Labbe
0 siblings, 0 replies; 8+ messages in thread
From: Corentin Labbe @ 2021-06-28 19:14 UTC (permalink / raw)
To: miquel.raynal, richard, robh+dt, vigneshr, linus.walleij
Cc: devicetree, linux-kernel, linux-mtd, Corentin Labbe
Converts mtd/partitions/redboot-fis.txt to YAML.
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
Changes since v1:
- fixed yamllint errors
- removed @0 from flash
.../bindings/mtd/partitions/redboot-fis.txt | 27 ------------
.../bindings/mtd/partitions/redboot-fis.yaml | 42 +++++++++++++++++++
2 files changed, 42 insertions(+), 27 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/mtd/partitions/redboot-fis.txt
create mode 100644 Documentation/devicetree/bindings/mtd/partitions/redboot-fis.yaml
diff --git a/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.txt b/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.txt
deleted file mode 100644
index fd0ebe4e3415..000000000000
--- a/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-RedBoot FLASH Image System (FIS) Partitions
-===========================================
-
-The FLASH Image System (FIS) directory is a flash description
-format closely associated with the RedBoot boot loader.
-
-It uses one single flash eraseblock in the flash to store an index of
-all images in the flash.
-
-This block size will vary depending on flash but is typically
-32 KB in size.
-
-Required properties:
-- compatible : (required) must be "redboot-fis"
-- fis-index-block : (required) a index to the eraseblock containing
- the FIS directory on this device. On a flash memory with 32KB
- eraseblocks, 0 means the first eraseblock at 0x00000000, 1 means the
- second eraseblock at 0x00008000 and so on.
-
-Example:
-
-flash@0 {
- partitions {
- compatible = "redboot-fis";
- fis-index-block = <0>;
- };
-};
diff --git a/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.yaml b/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.yaml
new file mode 100644
index 000000000000..fee8d81b5276
--- /dev/null
+++ b/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.yaml
@@ -0,0 +1,42 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mtd/partitions/redboot-fis.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: RedBoot FLASH Image System (FIS) Partitions
+
+description: The FLASH Image System (FIS) directory is a flash description
+ format closely associated with the RedBoot boot loader.
+ It uses one single flash eraseblock in the flash to store an index of
+ all images in the flash.
+ This block size will vary depending on flash but is typically
+ 32 KB in size.
+
+maintainers:
+ - Linus Walleij <linus.walleij@linaro.org>
+
+properties:
+ compatible:
+ const: redboot-fis
+
+ fis-index-block:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: a index to the eraseblock containing the FIS directory on this
+ device. On a flash memory with 32KB eraseblocks, 0 means the first
+ eraseblock at 0x00000000, 1 means the second eraseblock at 0x00008000 and so on.
+
+required:
+ - compatible
+ - fis-index-block
+
+additionalProperties: false
+
+examples:
+ - |
+ flash {
+ partitions {
+ compatible = "redboot-fis";
+ fis-index-block = <0>;
+ };
+ };
--
2.31.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v2] dt_bindings: mtd: partitions: redboot: convert to YAML
@ 2021-06-28 19:14 ` Corentin Labbe
0 siblings, 0 replies; 8+ messages in thread
From: Corentin Labbe @ 2021-06-28 19:14 UTC (permalink / raw)
To: miquel.raynal, richard, robh+dt, vigneshr, linus.walleij
Cc: devicetree, linux-kernel, linux-mtd, Corentin Labbe
Converts mtd/partitions/redboot-fis.txt to YAML.
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
Changes since v1:
- fixed yamllint errors
- removed @0 from flash
.../bindings/mtd/partitions/redboot-fis.txt | 27 ------------
.../bindings/mtd/partitions/redboot-fis.yaml | 42 +++++++++++++++++++
2 files changed, 42 insertions(+), 27 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/mtd/partitions/redboot-fis.txt
create mode 100644 Documentation/devicetree/bindings/mtd/partitions/redboot-fis.yaml
diff --git a/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.txt b/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.txt
deleted file mode 100644
index fd0ebe4e3415..000000000000
--- a/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-RedBoot FLASH Image System (FIS) Partitions
-===========================================
-
-The FLASH Image System (FIS) directory is a flash description
-format closely associated with the RedBoot boot loader.
-
-It uses one single flash eraseblock in the flash to store an index of
-all images in the flash.
-
-This block size will vary depending on flash but is typically
-32 KB in size.
-
-Required properties:
-- compatible : (required) must be "redboot-fis"
-- fis-index-block : (required) a index to the eraseblock containing
- the FIS directory on this device. On a flash memory with 32KB
- eraseblocks, 0 means the first eraseblock at 0x00000000, 1 means the
- second eraseblock at 0x00008000 and so on.
-
-Example:
-
-flash@0 {
- partitions {
- compatible = "redboot-fis";
- fis-index-block = <0>;
- };
-};
diff --git a/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.yaml b/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.yaml
new file mode 100644
index 000000000000..fee8d81b5276
--- /dev/null
+++ b/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.yaml
@@ -0,0 +1,42 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mtd/partitions/redboot-fis.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: RedBoot FLASH Image System (FIS) Partitions
+
+description: The FLASH Image System (FIS) directory is a flash description
+ format closely associated with the RedBoot boot loader.
+ It uses one single flash eraseblock in the flash to store an index of
+ all images in the flash.
+ This block size will vary depending on flash but is typically
+ 32 KB in size.
+
+maintainers:
+ - Linus Walleij <linus.walleij@linaro.org>
+
+properties:
+ compatible:
+ const: redboot-fis
+
+ fis-index-block:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: a index to the eraseblock containing the FIS directory on this
+ device. On a flash memory with 32KB eraseblocks, 0 means the first
+ eraseblock at 0x00000000, 1 means the second eraseblock at 0x00008000 and so on.
+
+required:
+ - compatible
+ - fis-index-block
+
+additionalProperties: false
+
+examples:
+ - |
+ flash {
+ partitions {
+ compatible = "redboot-fis";
+ fis-index-block = <0>;
+ };
+ };
--
2.31.1
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v2] dt_bindings: mtd: partitions: redboot: convert to YAML
2021-06-28 19:14 ` Corentin Labbe
@ 2021-07-04 23:32 ` Linus Walleij
-1 siblings, 0 replies; 8+ messages in thread
From: Linus Walleij @ 2021-07-04 23:32 UTC (permalink / raw)
To: Corentin Labbe
Cc: Miquèl Raynal, Richard Weinberger, Rob Herring, Vignesh R,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
linux-kernel, linux-mtd
On Mon, Jun 28, 2021 at 9:14 PM Corentin Labbe <clabbe@baylibre.com> wrote:
> Converts mtd/partitions/redboot-fis.txt to YAML.
>
> Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Looks good to me! Thanks for doing this.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2] dt_bindings: mtd: partitions: redboot: convert to YAML
@ 2021-07-04 23:32 ` Linus Walleij
0 siblings, 0 replies; 8+ messages in thread
From: Linus Walleij @ 2021-07-04 23:32 UTC (permalink / raw)
To: Corentin Labbe
Cc: Miquèl Raynal, Richard Weinberger, Rob Herring, Vignesh R,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
linux-kernel, linux-mtd
On Mon, Jun 28, 2021 at 9:14 PM Corentin Labbe <clabbe@baylibre.com> wrote:
> Converts mtd/partitions/redboot-fis.txt to YAML.
>
> Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Looks good to me! Thanks for doing this.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2] dt_bindings: mtd: partitions: redboot: convert to YAML
2021-06-28 19:14 ` Corentin Labbe
@ 2021-07-14 20:53 ` Rob Herring
-1 siblings, 0 replies; 8+ messages in thread
From: Rob Herring @ 2021-07-14 20:53 UTC (permalink / raw)
To: Corentin Labbe
Cc: linus.walleij, linux-kernel, robh+dt, richard, miquel.raynal,
vigneshr, devicetree, linux-mtd
On Mon, 28 Jun 2021 19:14:40 +0000, Corentin Labbe wrote:
> Converts mtd/partitions/redboot-fis.txt to YAML.
>
> Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
> ---
> Changes since v1:
> - fixed yamllint errors
> - removed @0 from flash
>
> .../bindings/mtd/partitions/redboot-fis.txt | 27 ------------
> .../bindings/mtd/partitions/redboot-fis.yaml | 42 +++++++++++++++++++
> 2 files changed, 42 insertions(+), 27 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/mtd/partitions/redboot-fis.txt
> create mode 100644 Documentation/devicetree/bindings/mtd/partitions/redboot-fis.yaml
>
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2] dt_bindings: mtd: partitions: redboot: convert to YAML
@ 2021-07-14 20:53 ` Rob Herring
0 siblings, 0 replies; 8+ messages in thread
From: Rob Herring @ 2021-07-14 20:53 UTC (permalink / raw)
To: Corentin Labbe
Cc: linus.walleij, linux-kernel, robh+dt, richard, miquel.raynal,
vigneshr, devicetree, linux-mtd
On Mon, 28 Jun 2021 19:14:40 +0000, Corentin Labbe wrote:
> Converts mtd/partitions/redboot-fis.txt to YAML.
>
> Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
> ---
> Changes since v1:
> - fixed yamllint errors
> - removed @0 from flash
>
> .../bindings/mtd/partitions/redboot-fis.txt | 27 ------------
> .../bindings/mtd/partitions/redboot-fis.yaml | 42 +++++++++++++++++++
> 2 files changed, 42 insertions(+), 27 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/mtd/partitions/redboot-fis.txt
> create mode 100644 Documentation/devicetree/bindings/mtd/partitions/redboot-fis.yaml
>
Reviewed-by: Rob Herring <robh@kernel.org>
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2] dt_bindings: mtd: partitions: redboot: convert to YAML
2021-06-28 19:14 ` Corentin Labbe
@ 2021-07-15 23:03 ` Miquel Raynal
-1 siblings, 0 replies; 8+ messages in thread
From: Miquel Raynal @ 2021-07-15 23:03 UTC (permalink / raw)
To: Corentin Labbe, miquel.raynal, richard, robh+dt, vigneshr, linus.walleij
Cc: devicetree, linux-kernel, linux-mtd
On Mon, 2021-06-28 at 19:14:40 UTC, Corentin Labbe wrote:
> Converts mtd/partitions/redboot-fis.txt to YAML.
>
> Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
> Reviewed-by: Rob Herring <robh@kernel.org>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.
Miquel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2] dt_bindings: mtd: partitions: redboot: convert to YAML
@ 2021-07-15 23:03 ` Miquel Raynal
0 siblings, 0 replies; 8+ messages in thread
From: Miquel Raynal @ 2021-07-15 23:03 UTC (permalink / raw)
To: Corentin Labbe, miquel.raynal, richard, robh+dt, vigneshr, linus.walleij
Cc: devicetree, linux-kernel, linux-mtd
On Mon, 2021-06-28 at 19:14:40 UTC, Corentin Labbe wrote:
> Converts mtd/partitions/redboot-fis.txt to YAML.
>
> Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
> Reviewed-by: Rob Herring <robh@kernel.org>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.
Miquel
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-07-15 23:04 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28 19:14 [PATCH v2] dt_bindings: mtd: partitions: redboot: convert to YAML Corentin Labbe
2021-06-28 19:14 ` Corentin Labbe
2021-07-04 23:32 ` Linus Walleij
2021-07-04 23:32 ` Linus Walleij
2021-07-14 20:53 ` Rob Herring
2021-07-14 20:53 ` Rob Herring
2021-07-15 23:03 ` Miquel Raynal
2021-07-15 23:03 ` Miquel Raynal
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.