1 # SPDX-License-Identifier: GPL-2.0-only OR BSD 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/mtd/partiti 4 $id: http://devicetree.org/schemas/mtd/partitions/linux,ubi.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Unsorted Block Images 7 title: Unsorted Block Images 8 8 9 description: | 9 description: | 10 UBI ("Unsorted Block Images") is a volume ma 10 UBI ("Unsorted Block Images") is a volume management system for raw 11 flash devices which manages multiple logical 11 flash devices which manages multiple logical volumes on a single 12 physical flash device and spreads the I/O lo 12 physical flash device and spreads the I/O load (i.e wear-leveling) 13 across the whole flash chip. 13 across the whole flash chip. 14 14 15 maintainers: 15 maintainers: 16 - Daniel Golle <daniel@makrotopia.org> 16 - Daniel Golle <daniel@makrotopia.org> 17 17 18 allOf: 18 allOf: 19 - $ref: partition.yaml# 19 - $ref: partition.yaml# 20 20 21 properties: 21 properties: 22 compatible: 22 compatible: 23 const: linux,ubi 23 const: linux,ubi 24 24 25 volumes: 25 volumes: 26 type: object 26 type: object 27 description: UBI Volumes 27 description: UBI Volumes 28 28 29 patternProperties: 29 patternProperties: 30 "^ubi-volume-.*$": 30 "^ubi-volume-.*$": 31 $ref: /schemas/mtd/partitions/ubi-volu 31 $ref: /schemas/mtd/partitions/ubi-volume.yaml# 32 32 33 unevaluatedProperties: false 33 unevaluatedProperties: false 34 34 35 required: 35 required: 36 - compatible 36 - compatible 37 37 38 unevaluatedProperties: false 38 unevaluatedProperties: false 39 39 40 examples: 40 examples: 41 - | 41 - | 42 partitions { 42 partitions { 43 compatible = "fixed-partitions"; 43 compatible = "fixed-partitions"; 44 #address-cells = <1>; 44 #address-cells = <1>; 45 #size-cells = <1>; 45 #size-cells = <1>; 46 46 47 partition@0 { 47 partition@0 { 48 reg = <0x0 0x100000>; 48 reg = <0x0 0x100000>; 49 label = "bootloader"; 49 label = "bootloader"; 50 read-only; 50 read-only; 51 }; 51 }; 52 52 53 partition@100000 { 53 partition@100000 { 54 reg = <0x100000 0x1ff00000>; 54 reg = <0x100000 0x1ff00000>; 55 label = "ubi"; 55 label = "ubi"; 56 compatible = "linux,ubi"; 56 compatible = "linux,ubi"; 57 57 58 volumes { 58 volumes { 59 ubi-volume-caldata { 59 ubi-volume-caldata { 60 volid = <2>; 60 volid = <2>; 61 volname = "rf"; 61 volname = "rf"; 62 62 63 nvmem-layout { 63 nvmem-layout { 64 compatible = "fixed-la 64 compatible = "fixed-layout"; 65 #address-cells = <1>; 65 #address-cells = <1>; 66 #size-cells = <1>; 66 #size-cells = <1>; 67 67 68 eeprom@0 { 68 eeprom@0 { 69 reg = <0x0 0x1000> 69 reg = <0x0 0x1000>; 70 }; 70 }; 71 }; 71 }; 72 }; 72 }; 73 }; 73 }; 74 }; 74 }; 75 }; 75 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.