Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: mtd: add basic bindings for UBI

Add basic bindings for UBI devices and volumes.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Richard Weinberger <richard@nod.at>

authored by

Daniel Golle and committed by
Richard Weinberger
e17f38b7 556c19f5

+100
+65
Documentation/devicetree/bindings/mtd/partitions/linux,ubi.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/mtd/partitions/linux,ubi.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Unsorted Block Images 8 + 9 + description: | 10 + UBI ("Unsorted Block Images") is a volume management system for raw 11 + flash devices which manages multiple logical volumes on a single 12 + physical flash device and spreads the I/O load (i.e wear-leveling) 13 + across the whole flash chip. 14 + 15 + maintainers: 16 + - Daniel Golle <daniel@makrotopia.org> 17 + 18 + allOf: 19 + - $ref: partition.yaml# 20 + 21 + properties: 22 + compatible: 23 + const: linux,ubi 24 + 25 + volumes: 26 + type: object 27 + description: UBI Volumes 28 + 29 + patternProperties: 30 + "^ubi-volume-.*$": 31 + $ref: /schemas/mtd/partitions/ubi-volume.yaml# 32 + 33 + unevaluatedProperties: false 34 + 35 + required: 36 + - compatible 37 + 38 + unevaluatedProperties: false 39 + 40 + examples: 41 + - | 42 + partitions { 43 + compatible = "fixed-partitions"; 44 + #address-cells = <1>; 45 + #size-cells = <1>; 46 + 47 + partition@0 { 48 + reg = <0x0 0x100000>; 49 + label = "bootloader"; 50 + read-only; 51 + }; 52 + 53 + partition@100000 { 54 + reg = <0x100000 0x1ff00000>; 55 + label = "ubi"; 56 + compatible = "linux,ubi"; 57 + 58 + volumes { 59 + ubi-volume-caldata { 60 + volid = <2>; 61 + volname = "rf"; 62 + }; 63 + }; 64 + }; 65 + };
+35
Documentation/devicetree/bindings/mtd/partitions/ubi-volume.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/mtd/partitions/ubi-volume.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: UBI volume 8 + 9 + description: | 10 + This binding describes a single UBI volume. Volumes can be matches either 11 + by their ID or their name, or both. 12 + 13 + maintainers: 14 + - Daniel Golle <daniel@makrotopia.org> 15 + 16 + properties: 17 + volid: 18 + $ref: /schemas/types.yaml#/definitions/uint32 19 + description: 20 + Match UBI volume ID 21 + 22 + volname: 23 + $ref: /schemas/types.yaml#/definitions/string 24 + description: 25 + Match UBI volume ID 26 + 27 + anyOf: 28 + - required: 29 + - volid 30 + 31 + - required: 32 + - volname 33 + 34 + # This is a generic file other binding inherit from and extend 35 + additionalProperties: true