1 From 9ffc1d7d73609a89eb264d6066340f8b7b3b0ebe Mon Sep 17 00:00:00 2001
2 From: Daniel Golle <daniel@makrotopia.org>
3 Date: Mon, 7 Aug 2023 21:19:45 +0100
4 Subject: [PATCH 08/15] dt-bindings: block: add basic bindings for block
7 Add bindings for block devices which are used to allow referencing
10 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
12 .../bindings/block/block-device.yaml | 22 ++++++++
13 .../devicetree/bindings/block/partition.yaml | 50 +++++++++++++++++++
14 .../devicetree/bindings/block/partitions.yaml | 20 ++++++++
15 3 files changed, 92 insertions(+)
16 create mode 100644 Documentation/devicetree/bindings/block/block-device.yaml
17 create mode 100644 Documentation/devicetree/bindings/block/partition.yaml
18 create mode 100644 Documentation/devicetree/bindings/block/partitions.yaml
21 +++ b/Documentation/devicetree/bindings/block/block-device.yaml
23 +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
26 +$id: http://devicetree.org/schemas/block/block-device.yaml#
27 +$schema: http://devicetree.org/meta-schemas/core.yaml#
29 +title: block storage device
32 + This binding is generic and describes a block-oriented storage device.
35 + - Daniel Golle <daniel@makrotopia.org>
39 + $ref: /schemas/block/partitions.yaml
42 + $ref: /schemas/nvmem/layouts/nvmem-layout.yaml#
44 +unevaluatedProperties: false
46 +++ b/Documentation/devicetree/bindings/block/partition.yaml
48 +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
51 +$id: http://devicetree.org/schemas/block/partition.yaml#
52 +$schema: http://devicetree.org/meta-schemas/core.yaml#
54 +title: Partition on a block device
57 + This binding describes a partition on a block device.
58 + Partitions may be matched by a combination of partition number, name,
62 + - Daniel Golle <daniel@makrotopia.org>
66 + pattern: '^block-partition-.+$'
70 + Matches partition by number if present.
73 + "$ref": "/schemas/types.yaml#/definitions/string"
75 + Matches partition by PARTNAME if present.
78 + "$ref": "/schemas/types.yaml#/definitions/string"
80 + Matches partition by PARTUUID if present.
83 + $ref: /schemas/nvmem/layouts/nvmem-layout.yaml#
85 + This container may reference an NVMEM layout parser.
97 +unevaluatedProperties: false
99 +++ b/Documentation/devicetree/bindings/block/partitions.yaml
101 +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
104 +$id: http://devicetree.org/schemas/block/partitions.yaml#
105 +$schema: http://devicetree.org/meta-schemas/core.yaml#
107 +title: Partitions on block devices
110 + This binding is generic and describes the content of the partitions container
114 + - Daniel Golle <daniel@makrotopia.org>
117 + "^block-partition-.+$":
118 + $ref: partition.yaml
120 +unevaluatedProperties: false