Skip to content

Commit 48a2972

Browse files
ItsNayabSDmiquelraynal
authored andcommitted
dt-bindings: mtd: atmel,dataflash: convert txt to yaml
Convert atmel-dataflash.txt into atmel,dataflash.yaml Signed-off-by: Nayab Sayed <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
1 parent 3081f26 commit 48a2972

File tree

2 files changed

+55
-17
lines changed

2 files changed

+55
-17
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/mtd/atmel,dataflash.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Atmel DataFlash
8+
9+
maintainers:
10+
- Nayab Sayed <[email protected]>
11+
12+
description:
13+
The Atmel DataFlash is a low pin-count serial interface sequential access
14+
Flash memory, compatible with SPI standard. The device tree may optionally
15+
contain sub-nodes describing partitions of the address space.
16+
17+
properties:
18+
compatible:
19+
oneOf:
20+
- items:
21+
- enum:
22+
- atmel,at45db321d
23+
- atmel,at45db041e
24+
- atmel,at45db642d
25+
- atmel,at45db021d
26+
- const: atmel,at45
27+
- const: atmel,dataflash
28+
- items:
29+
- const: atmel,at45
30+
- const: atmel,dataflash
31+
32+
reg:
33+
maxItems: 1
34+
35+
required:
36+
- compatible
37+
- reg
38+
39+
allOf:
40+
- $ref: mtd.yaml#
41+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
42+
43+
unevaluatedProperties: false
44+
45+
examples:
46+
- |
47+
spi {
48+
#address-cells = <1>;
49+
#size-cells = <0>;
50+
51+
flash@1 {
52+
compatible = "atmel,at45db321d", "atmel,at45", "atmel,dataflash";
53+
reg = <1>;
54+
};
55+
};

Documentation/devicetree/bindings/mtd/atmel-dataflash.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)