[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240111121940.15628-1-zajec5@gmail.com>
Date: Thu, 11 Jan 2024 13:19:40 +0100
From: Rafał Miłecki <zajec5@...il.com>
To: Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>
Cc: Ansuel Smith <ansuelsmth@...il.com>,
linux-mtd@...ts.infradead.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
Rafał Miłecki <rafal@...ecki.pl>
Subject: [PATCH] dt-bindings: mtd: partitions: make partition an NVMEM provider
From: Rafał Miłecki <rafal@...ecki.pl>
MTD partition provides flash device data and can be used as NVMEM
device.
Signed-off-by: Rafał Miłecki <rafal@...ecki.pl>
---
.../bindings/mtd/partitions/partition.yaml | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/Documentation/devicetree/bindings/mtd/partitions/partition.yaml b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml
index 1ebe9e2347ea..7b1d84ce5ef5 100644
--- a/Documentation/devicetree/bindings/mtd/partitions/partition.yaml
+++ b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml
@@ -57,13 +57,15 @@ properties:
user space from
type: boolean
-if:
- not:
- required: [ reg ]
-then:
- properties:
- $nodename:
- pattern: '^partition-.*$'
+allOf:
+ - $ref: /schemas/nvmem/nvmem.yaml
+ - if:
+ not:
+ required: [ reg ]
+ then:
+ properties:
+ $nodename:
+ pattern: '^partition-.*$'
# This is a generic file other binding inherit from and extend
additionalProperties: true
--
2.35.3
Powered by blists - more mailing lists