dt-bindings: mtd: atmel,dataflash: convert txt to yaml
PATCH 1/1 dt-bindings: mtd: atmel,dataflash: convert txt to yaml
Convert atmel-dataflash.txt into atmel,dataflash.yaml
--- .../devicetree/bindings/mtd/atmel,dataflash.yaml | 55 ++++++++++++++++++++++ .../devicetree/bindings/mtd/atmel-dataflash.txt | 17 ------- 2 files changed, 55 insertions(+), 17 deletions(-)
Documentation/devicetree/bindings/mtd/atmel,dataflash.yaml new file +55 -0
@@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/atmel,dataflash.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Atmel DataFlash + +maintainers: + - Nayab Sayed <[email protected]> + +description: + The Atmel DataFlash is a low pin-count serial interface sequential access + Flash memory, compatible with SPI standard. The device tree may optionally + contain sub-nodes describing partitions of the address space. + +properties: + compatible: + oneOf: + - items: + - enum: + - atmel,at45db321d + - atmel,at45db041e + - atmel,at45db642d + - atmel,at45db021d + - const: atmel,at45 + - const: atmel,dataflash + - items: + - const: atmel,at45 + - const: atmel,dataflash + + reg: + maxItems: 1 + +required: + - compatible + - reg + +allOf: + - $ref: mtd.yaml# + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + flash@1 { + compatible = "atmel,at45db321d", "atmel,at45", "atmel,dataflash"; + reg = <1>; + }; + };
Documentation/devicetree/bindings/mtd/atmel-dataflash.txt deleted +0 -17
@@ -1,17 +0,0 @@ -* Atmel Data Flash - -Required properties: -- compatible : "atmel,<model>", "atmel,<series>", "atmel,dataflash". - -The device tree may optionally contain sub-nodes describing partitions of the -address space. See partition.txt for more detail. - -Example: - -flash@1 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "atmel,at45db321d", "atmel,at45", "atmel,dataflash"; - spi-max-frequency = <25000000>; - reg = <1>; -};
---
base-commit: 4701f33a10702d5fc577c32434eb62adde0a1ae1
change-id: 20250317-atmel-dataflash-405e94ed8f6f
Best regards,
Signature · 1 line
Nayab Sayed <[email protected]>
Quoted 7 lines · On 17/03/2025 11:14, Nayab Sayed via B4 Relay wrote:
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
From: Nayab Sayed <[email protected]>
Convert atmel-dataflash.txt into atmel,dataflash.yaml
Signed-off-by Nayab Sayed <[email protected]>
Please CC the dt list on binding paches.
Cheers,
Conor.
Quoted 99 lines
--- .../devicetree/bindings/mtd/atmel,dataflash.yaml | 55 ++++++++++++++++++++++ .../devicetree/bindings/mtd/atmel-dataflash.txt | 17 ------- 2 files changed, 55 insertions(+), 17 deletions(-)Documentation/devicetree/bindings/mtd/atmel,dataflash.yaml new file +55
-0@@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/atmel,dataflash.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Atmel DataFlash + +maintainers: + - Nayab Sayed <[email protected]> + +description: + The Atmel DataFlash is a low pin-count serial interface sequential access + Flash memory, compatible with SPI standard. The device tree may optionally + contain sub-nodes describing partitions of the address space. + +properties: + compatible: + oneOf: + - items: + - enum: + - atmel,at45db321d + - atmel,at45db041e + - atmel,at45db642d + - atmel,at45db021d + - const: atmel,at45 + - const: atmel,dataflash + - items: + - const: atmel,at45 + - const: atmel,dataflash + + reg: + maxItems: 1 + +required: + - compatible + - reg + +allOf: + - $ref: mtd.yaml# + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + flash@1 { + compatible = "atmel,at45db321d", "atmel,at45", "atmel,dataflash"; + reg = <1>; + }; + };Documentation/devicetree/bindings/mtd/atmel-dataflash.txt deleted +0
-18@@ -1,17 +0,0 @@ -* Atmel Data Flash - -Required properties: -- compatible : "atmel,<model>", "atmel,<series>", "atmel,dataflash". - -The device tree may optionally contain sub-nodes describing partitions of the -address space. See partition.txt for more detail. - -Example: - -flash@1 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "atmel,at45db321d", "atmel,at45", "atmel,dataflash"; - spi-max-frequency = <25000000>; - reg = <1>; -}; ---base-commit:
4701f33a10702d5fc577c32434eb62adde0a1ae1
change-id: 20250317-atmel-dataflash-405e94ed8f6fBest regards,
--
Nayab Sayed <[email protected]>
Adding dt mailing list in Cc.
Thanks,
Nayab
Quoted 111 lines · On 17/03/25 16:53, Conor Dooley - M52691 wrote:
Quoted 7 lines · On 17/03/2025 11:14, Nayab Sayed via B4 Relay wrote:
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
From: Nayab Sayed <[email protected]>
Convert atmel-dataflash.txt into atmel,dataflash.yaml
Signed-off-by Nayab Sayed <[email protected]>Please CC the dt list on binding paches.
Cheers,
Conor.Quoted 99 lines
--- .../devicetree/bindings/mtd/atmel,dataflash.yaml | 55 ++++++++++++++++++++++ .../devicetree/bindings/mtd/atmel-dataflash.txt | 17 ------- 2 files changed, 55 insertions(+), 17 deletions(-)Documentation/devicetree/bindings/mtd/atmel,dataflash.yaml new file +55
-0@@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/atmel,dataflash.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Atmel DataFlash + +maintainers: + - Nayab Sayed <[email protected]> + +description: + The Atmel DataFlash is a low pin-count serial interface sequential access + Flash memory, compatible with SPI standard. The device tree may optionally + contain sub-nodes describing partitions of the address space. + +properties: + compatible: + oneOf: + - items: + - enum: + - atmel,at45db321d + - atmel,at45db041e + - atmel,at45db642d + - atmel,at45db021d + - const: atmel,at45 + - const: atmel,dataflash + - items: + - const: atmel,at45 + - const: atmel,dataflash + + reg: + maxItems: 1 + +required: + - compatible + - reg + +allOf: + - $ref: mtd.yaml# + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + flash@1 { + compatible = "atmel,at45db321d", "atmel,at45", "atmel,dataflash"; + reg = <1>; + }; + };Documentation/devicetree/bindings/mtd/atmel-dataflash.txt deleted +0
-18@@ -1,17 +0,0 @@ -* Atmel Data Flash - -Required properties: -- compatible : "atmel,<model>", "atmel,<series>", "atmel,dataflash". - -The device tree may optionally contain sub-nodes describing partitions of the -address space. See partition.txt for more detail. - -Example: - -flash@1 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "atmel,at45db321d", "atmel,at45", "atmel,dataflash"; - spi-max-frequency = <25000000>; - reg = <1>; -}; ---base-commit:
4701f33a10702d5fc577c32434eb62adde0a1ae1
change-id: 20250317-atmel-dataflash-405e94ed8f6fBest regards,
--
Nayab Sayed <[email protected]>
Rob Herring
maintainerQuoted 2 lines · On Mon, Mar 17, 2025 at 7:46 AM <[email protected]> wrote:
Adding dt mailing list in Cc.
You have to resend the patch to the list. Otherwise it will not be in Patchwork nor will any tests run. Use get_maintainers.pl.
Rob