2024-06-14 16:35:10 +00:00
|
|
|
From 3245921a87154bdfbe7a55d743ea62dd559a8fb0 Mon Sep 17 00:00:00 2001
|
2024-01-03 11:57:28 +00:00
|
|
|
From: Daniel Golle <daniel@makrotopia.org>
|
2024-06-14 16:35:10 +00:00
|
|
|
Date: Thu, 30 May 2024 03:13:09 +0100
|
|
|
|
Subject: [PATCH 1/9] dt-bindings: block: add basic bindings for block devices
|
2024-01-03 11:57:28 +00:00
|
|
|
|
|
|
|
Add bindings for block devices which are used to allow referencing
|
|
|
|
nvmem bits on them.
|
|
|
|
|
|
|
|
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
|
|
|
---
|
|
|
|
.../bindings/block/block-device.yaml | 22 ++++++++
|
2024-06-14 16:35:10 +00:00
|
|
|
.../devicetree/bindings/block/partition.yaml | 51 +++++++++++++++++++
|
2024-01-03 11:57:28 +00:00
|
|
|
.../devicetree/bindings/block/partitions.yaml | 20 ++++++++
|
2024-06-14 16:35:10 +00:00
|
|
|
3 files changed, 93 insertions(+)
|
2024-01-03 11:57:28 +00:00
|
|
|
create mode 100644 Documentation/devicetree/bindings/block/block-device.yaml
|
|
|
|
create mode 100644 Documentation/devicetree/bindings/block/partition.yaml
|
|
|
|
create mode 100644 Documentation/devicetree/bindings/block/partitions.yaml
|
|
|
|
|
|
|
|
--- /dev/null
|
|
|
|
+++ b/Documentation/devicetree/bindings/block/block-device.yaml
|
|
|
|
@@ -0,0 +1,22 @@
|
|
|
|
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
|
|
|
+%YAML 1.2
|
|
|
|
+---
|
|
|
|
+$id: http://devicetree.org/schemas/block/block-device.yaml#
|
|
|
|
+$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
+
|
|
|
|
+title: block storage device
|
|
|
|
+
|
|
|
|
+description: |
|
|
|
|
+ This binding is generic and describes a block-oriented storage device.
|
|
|
|
+
|
|
|
|
+maintainers:
|
|
|
|
+ - Daniel Golle <daniel@makrotopia.org>
|
|
|
|
+
|
|
|
|
+properties:
|
|
|
|
+ partitions:
|
|
|
|
+ $ref: /schemas/block/partitions.yaml
|
|
|
|
+
|
|
|
|
+ nvmem-layout:
|
|
|
|
+ $ref: /schemas/nvmem/layouts/nvmem-layout.yaml#
|
|
|
|
+
|
|
|
|
+unevaluatedProperties: false
|
|
|
|
--- /dev/null
|
|
|
|
+++ b/Documentation/devicetree/bindings/block/partition.yaml
|
2024-06-14 16:35:10 +00:00
|
|
|
@@ -0,0 +1,51 @@
|
2024-01-03 11:57:28 +00:00
|
|
|
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
|
|
|
+%YAML 1.2
|
|
|
|
+---
|
|
|
|
+$id: http://devicetree.org/schemas/block/partition.yaml#
|
|
|
|
+$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
+
|
|
|
|
+title: Partition on a block device
|
|
|
|
+
|
|
|
|
+description: |
|
|
|
|
+ This binding describes a partition on a block device.
|
|
|
|
+ Partitions may be matched by a combination of partition number, name,
|
|
|
|
+ and UUID.
|
|
|
|
+
|
|
|
|
+maintainers:
|
|
|
|
+ - Daniel Golle <daniel@makrotopia.org>
|
|
|
|
+
|
|
|
|
+properties:
|
|
|
|
+ $nodename:
|
|
|
|
+ pattern: '^block-partition-.+$'
|
|
|
|
+
|
|
|
|
+ partnum:
|
2024-06-14 16:35:10 +00:00
|
|
|
+ $ref: /schemas/types.yaml#/definitions/uint32
|
2024-01-03 11:57:28 +00:00
|
|
|
+ description:
|
|
|
|
+ Matches partition by number if present.
|
|
|
|
+
|
|
|
|
+ partname:
|
2024-06-14 16:35:10 +00:00
|
|
|
+ $ref: /schemas/types.yaml#/definitions/string
|
2024-01-03 11:57:28 +00:00
|
|
|
+ description:
|
|
|
|
+ Matches partition by PARTNAME if present.
|
|
|
|
+
|
2024-06-14 16:35:10 +00:00
|
|
|
+ partuuid:
|
|
|
|
+ $ref: /schemas/types.yaml#/definitions/string
|
2024-01-03 11:57:28 +00:00
|
|
|
+ description:
|
|
|
|
+ Matches partition by PARTUUID if present.
|
|
|
|
+
|
|
|
|
+ nvmem-layout:
|
|
|
|
+ $ref: /schemas/nvmem/layouts/nvmem-layout.yaml#
|
|
|
|
+ description:
|
|
|
|
+ This container may reference an NVMEM layout parser.
|
|
|
|
+
|
|
|
|
+anyOf:
|
|
|
|
+ - required:
|
2024-06-14 16:35:10 +00:00
|
|
|
+ - partnum
|
2024-01-03 11:57:28 +00:00
|
|
|
+
|
|
|
|
+ - required:
|
2024-06-14 16:35:10 +00:00
|
|
|
+ - partname
|
2024-01-03 11:57:28 +00:00
|
|
|
+
|
|
|
|
+ - required:
|
2024-06-14 16:35:10 +00:00
|
|
|
+ - partuuid
|
2024-01-03 11:57:28 +00:00
|
|
|
+
|
|
|
|
+unevaluatedProperties: false
|
|
|
|
--- /dev/null
|
|
|
|
+++ b/Documentation/devicetree/bindings/block/partitions.yaml
|
|
|
|
@@ -0,0 +1,20 @@
|
|
|
|
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
|
|
|
+%YAML 1.2
|
|
|
|
+---
|
|
|
|
+$id: http://devicetree.org/schemas/block/partitions.yaml#
|
|
|
|
+$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
+
|
|
|
|
+title: Partitions on block devices
|
|
|
|
+
|
|
|
|
+description: |
|
|
|
|
+ This binding is generic and describes the content of the partitions container
|
|
|
|
+ node.
|
|
|
|
+
|
|
|
|
+maintainers:
|
|
|
|
+ - Daniel Golle <daniel@makrotopia.org>
|
|
|
|
+
|
|
|
|
+patternProperties:
|
|
|
|
+ "^block-partition-.+$":
|
|
|
|
+ $ref: partition.yaml
|
|
|
|
+
|
|
|
|
+unevaluatedProperties: false
|