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/fixed-partitions.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Fixed partitions 7 title: Fixed partitions 8 8 9 description: | 9 description: | 10 This binding can be used on platforms which 10 This binding can be used on platforms which have strong conventions about 11 which portions of a flash are used for what 11 which portions of a flash are used for what purposes, but which don't use an 12 on-flash partition table such as RedBoot. 12 on-flash partition table such as RedBoot. 13 13 14 The partition table should be a node named " 14 The partition table should be a node named "partitions". Partitions are then 15 defined as subnodes. 15 defined as subnodes. 16 16 17 maintainers: 17 maintainers: 18 - Rafał Miłecki <rafal@milecki.pl> 18 - Rafał Miłecki <rafal@milecki.pl> 19 19 20 properties: 20 properties: 21 compatible: 21 compatible: 22 oneOf: 22 oneOf: 23 - const: fixed-partitions 23 - const: fixed-partitions 24 - items: 24 - items: 25 - const: sercomm,sc-partitions 25 - const: sercomm,sc-partitions 26 - const: fixed-partitions 26 - const: fixed-partitions 27 27 28 "#address-cells": true 28 "#address-cells": true 29 29 30 "#size-cells": true 30 "#size-cells": true 31 31 32 compression: << 33 $ref: /schemas/types.yaml#/definitions/str << 34 description: | << 35 Compression algorithm used to store the << 36 from a list of well-known algorithms. << 37 << 38 The contents are compressed using this a << 39 << 40 enum: << 41 - none << 42 - bzip2 << 43 - gzip << 44 - lzop << 45 - lz4 << 46 - lzma << 47 - xz << 48 - zstd << 49 << 50 patternProperties: 32 patternProperties: 51 "@[0-9a-f]+$": 33 "@[0-9a-f]+$": 52 $ref: partition.yaml# !! 34 allOf: 53 !! 35 - $ref: "partition.yaml#" 54 properties: !! 36 - if: 55 sercomm,scpart-id: !! 37 properties: 56 description: Partition id in Sercomm p !! 38 compatible: 57 uses this id to find a record in the !! 39 contains: 58 offset and size of the current parti !! 40 const: sercomm,sc-partitions 59 partition map overrides partition of !! 41 then: 60 reg property of the dts. Frequently !! 42 properties: 61 but may differ if device has bad era !! 43 sercomm,scpart-id: 62 $ref: /schemas/types.yaml#/definitions !! 44 description: Partition id in Sercomm partition map. Mtd >> 45 parser uses this id to find a record in the partition map >> 46 containing offset and size of the current partition. The >> 47 values from partition map overrides partition offset and >> 48 size defined in reg property of the dts. Frequently these >> 49 values are the same, but may differ if device has bad >> 50 eraseblocks on a flash. >> 51 $ref: /schemas/types.yaml#/definitions/uint32 63 52 64 required: 53 required: 65 - "#address-cells" 54 - "#address-cells" 66 - "#size-cells" 55 - "#size-cells" 67 56 68 additionalProperties: true 57 additionalProperties: true 69 58 70 examples: 59 examples: 71 - | 60 - | 72 partitions { 61 partitions { 73 compatible = "fixed-partitions"; 62 compatible = "fixed-partitions"; 74 #address-cells = <1>; 63 #address-cells = <1>; 75 #size-cells = <1>; 64 #size-cells = <1>; 76 65 77 partition@0 { 66 partition@0 { 78 label = "u-boot"; 67 label = "u-boot"; 79 reg = <0x0000000 0x100000>; 68 reg = <0x0000000 0x100000>; 80 read-only; 69 read-only; 81 }; 70 }; 82 71 83 uimage@100000 { 72 uimage@100000 { 84 reg = <0x0100000 0x200000>; 73 reg = <0x0100000 0x200000>; 85 compress = "lzma"; << 86 }; 74 }; 87 }; 75 }; 88 76 89 - | 77 - | 90 partitions { 78 partitions { 91 compatible = "fixed-partitions"; 79 compatible = "fixed-partitions"; 92 #address-cells = <1>; 80 #address-cells = <1>; 93 #size-cells = <2>; 81 #size-cells = <2>; 94 82 95 /* a 4 GiB partition */ 83 /* a 4 GiB partition */ 96 partition@0 { 84 partition@0 { 97 label = "filesystem"; 85 label = "filesystem"; 98 reg = <0x00000000 0x1 0x00000000>; 86 reg = <0x00000000 0x1 0x00000000>; 99 linux,rootfs; << 100 }; 87 }; 101 }; 88 }; 102 89 103 - | 90 - | 104 partitions { 91 partitions { 105 compatible = "fixed-partitions"; 92 compatible = "fixed-partitions"; 106 #address-cells = <2>; 93 #address-cells = <2>; 107 #size-cells = <2>; 94 #size-cells = <2>; 108 95 109 /* an 8 GiB partition */ 96 /* an 8 GiB partition */ 110 partition@0 { 97 partition@0 { 111 label = "filesystem #1"; 98 label = "filesystem #1"; 112 reg = <0x0 0x00000000 0x2 0x000000 99 reg = <0x0 0x00000000 0x2 0x00000000>; 113 }; 100 }; 114 101 115 /* a 4 GiB partition */ 102 /* a 4 GiB partition */ 116 partition@200000000 { 103 partition@200000000 { 117 label = "filesystem #2"; 104 label = "filesystem #2"; 118 reg = <0x2 0x00000000 0x1 0x000000 105 reg = <0x2 0x00000000 0x1 0x00000000>; 119 }; 106 }; 120 }; 107 }; 121 108 122 - | 109 - | 123 partitions { 110 partitions { 124 compatible = "fixed-partitions"; 111 compatible = "fixed-partitions"; 125 #address-cells = <1>; 112 #address-cells = <1>; 126 #size-cells = <1>; 113 #size-cells = <1>; 127 114 128 partition@0 { 115 partition@0 { 129 label = "bootloader"; 116 label = "bootloader"; 130 reg = <0x000000 0x100000>; 117 reg = <0x000000 0x100000>; 131 read-only; 118 read-only; 132 }; 119 }; 133 120 134 firmware@100000 { 121 firmware@100000 { 135 compatible = "brcm,trx"; 122 compatible = "brcm,trx"; 136 label = "firmware"; 123 label = "firmware"; 137 reg = <0x100000 0xe00000>; 124 reg = <0x100000 0xe00000>; 138 }; 125 }; 139 126 140 calibration@f00000 { 127 calibration@f00000 { 141 compatible = "fixed-partitions"; 128 compatible = "fixed-partitions"; 142 label = "calibration"; 129 label = "calibration"; 143 reg = <0xf00000 0x100000>; 130 reg = <0xf00000 0x100000>; 144 ranges = <0 0xf00000 0x100000>; 131 ranges = <0 0xf00000 0x100000>; 145 #address-cells = <1>; 132 #address-cells = <1>; 146 #size-cells = <1>; 133 #size-cells = <1>; 147 134 148 partition@0 { 135 partition@0 { 149 label = "wifi0"; 136 label = "wifi0"; 150 reg = <0x000000 0x080000>; 137 reg = <0x000000 0x080000>; 151 }; 138 }; 152 139 153 partition@80000 { 140 partition@80000 { 154 label = "wifi1"; 141 label = "wifi1"; 155 reg = <0x080000 0x080000>; 142 reg = <0x080000 0x080000>; 156 }; 143 }; 157 }; 144 }; 158 }; 145 }; 159 146 160 - | 147 - | 161 partitions { 148 partitions { 162 compatible = "sercomm,sc-partitions", 149 compatible = "sercomm,sc-partitions", "fixed-partitions"; 163 #address-cells = <1>; 150 #address-cells = <1>; 164 #size-cells = <1>; 151 #size-cells = <1>; 165 152 166 partition@0 { 153 partition@0 { 167 label = "u-boot"; 154 label = "u-boot"; 168 reg = <0x0 0x100000>; 155 reg = <0x0 0x100000>; 169 sercomm,scpart-id = <0>; 156 sercomm,scpart-id = <0>; 170 read-only; 157 read-only; 171 }; 158 }; 172 159 173 partition@100000 { 160 partition@100000 { 174 label = "dynamic partition map"; 161 label = "dynamic partition map"; 175 reg = <0x100000 0x100000>; 162 reg = <0x100000 0x100000>; 176 sercomm,scpart-id = <1>; 163 sercomm,scpart-id = <1>; 177 }; 164 }; 178 165 179 partition@200000 { 166 partition@200000 { 180 label = "Factory"; 167 label = "Factory"; 181 reg = <0x200000 0x100000>; 168 reg = <0x200000 0x100000>; 182 sercomm,scpart-id = <2>; 169 sercomm,scpart-id = <2>; 183 read-only; 170 read-only; 184 }; 171 }; 185 }; 172 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.