dt-bindings: mtd: atmel,dataflash: convert txt to yaml

Convert atmel-dataflash.txt into atmel,dataflash.yaml

Signed-off-by: Nayab Sayed <nayabbasha.sayed@microchip.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
Nayab Sayed
2025-03-17 19:01:08 +05:30
committed by Miquel Raynal
parent 3081f26059
commit 48a29721c9
2 changed files with 55 additions and 17 deletions

View File

@@ -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 <nayabbasha.sayed@microchip.com>
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>;
};
};