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: partitions: Drop partitions.yaml

The partitions.yaml schema is an unusual structure in that it includes
all possible partition types, and it disables the normal matching by
compatible strings. As partitions.yaml has nothing to match on, it is
only applied when explicitly referenced. The use of "oneOf" also results
in misleading warnings which are difficult to understand. Drop
partitions.yaml and rely on the standard compatible matching instead.

The "mmc-card" case previously allowed any partition type, but now only
allows "fixed-partitions". There aren't any users and the original
intent appeared to be only for "fixed-partitions".

Acked-by: Ulf Hansson <ulf.hansson@linaro.org> # For MMC
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>

authored by

Rob Herring (Arm) and committed by
Miquel Raynal
95af1e64 002d2fe7

+10 -60
+6 -14
Documentation/devicetree/bindings/mmc/mmc-card.yaml
··· 32 32 33 33 patternProperties: 34 34 "^partitions(-boot[12]|-gp[14])?$": 35 - $ref: /schemas/mtd/partitions/partitions.yaml 35 + type: object 36 + additionalProperties: true 36 37 37 - patternProperties: 38 - "^partition@[0-9a-f]+$": 39 - $ref: /schemas/mtd/partitions/partition.yaml 40 - 41 - properties: 42 - reg: 43 - description: Must be multiple of 512 as it's converted 44 - internally from bytes to SECTOR_SIZE (512 bytes) 45 - 46 - required: 47 - - reg 48 - 49 - unevaluatedProperties: false 38 + properties: 39 + compatible: 40 + contains: 41 + const: fixed-partitions 50 42 51 43 required: 52 44 - compatible
+1 -1
Documentation/devicetree/bindings/mtd/mtd.yaml
··· 30 30 deprecated: true 31 31 32 32 partitions: 33 - $ref: /schemas/mtd/partitions/partitions.yaml 33 + type: object 34 34 35 35 required: 36 36 - compatible
-2
Documentation/devicetree/bindings/mtd/partitions/arm,arm-firmware-suite.yaml
··· 9 9 maintainers: 10 10 - Linus Walleij <linus.walleij@linaro.org> 11 11 12 - select: false 13 - 14 12 description: | 15 13 The ARM Firmware Suite is a flash partitioning system found on the 16 14 ARM reference designs: Integrator AP, Integrator CP, Versatile AB,
-2
Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partitions.yaml
··· 17 17 maintainers: 18 18 - Rafał Miłecki <rafal@milecki.pl> 19 19 20 - select: false 21 - 22 20 properties: 23 21 compatible: 24 22 const: brcm,bcm4908-partitions
-2
Documentation/devicetree/bindings/mtd/partitions/brcm,bcm947xx-cfe-partitions.yaml
··· 35 35 maintainers: 36 36 - Rafał Miłecki <rafal@milecki.pl> 37 37 38 - select: false 39 - 40 38 properties: 41 39 compatible: 42 40 const: brcm,bcm947xx-cfe-partitions
-2
Documentation/devicetree/bindings/mtd/partitions/linksys,ns-partitions.yaml
··· 18 18 maintainers: 19 19 - Rafał Miłecki <rafal@milecki.pl> 20 20 21 - select: false 22 - 23 21 properties: 24 22 compatible: 25 23 const: linksys,ns-partitions
-36
Documentation/devicetree/bindings/mtd/partitions/partitions.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/partitions.yaml# 5 - $schema: http://devicetree.org/meta-schemas/core.yaml# 6 - 7 - title: Partitions 8 - 9 - description: | 10 - This binding is generic and describes the content of the partitions container 11 - node. All partition parsers must be referenced here. 12 - 13 - maintainers: 14 - - Miquel Raynal <miquel.raynal@bootlin.com> 15 - 16 - oneOf: 17 - - $ref: arm,arm-firmware-suite.yaml 18 - - $ref: brcm,bcm4908-partitions.yaml 19 - - $ref: brcm,bcm947xx-cfe-partitions.yaml 20 - - $ref: fixed-partitions.yaml 21 - - $ref: linksys,ns-partitions.yaml 22 - - $ref: qcom,smem-part.yaml 23 - - $ref: redboot-fis.yaml 24 - - $ref: tplink,safeloader-partitions.yaml 25 - 26 - properties: 27 - compatible: true 28 - 29 - patternProperties: 30 - "^partition(-.+|@[0-9a-f]+)$": 31 - $ref: partition.yaml 32 - 33 - required: 34 - - compatible 35 - 36 - unevaluatedProperties: false
+3 -1
Documentation/devicetree/bindings/mtd/ti,davinci-nand.yaml
··· 24 24 - description: AEMIF control registers. 25 25 26 26 partitions: 27 - $ref: /schemas/mtd/partitions/partitions.yaml 27 + type: object 28 + required: 29 + - compatible 28 30 29 31 ti,davinci-chipselect: 30 32 description: