Skip to content

Commit 2372fe1

Browse files
Akhila-YSmiquelraynal
authored andcommitted
dt-bindings: mtd: microchip,mchp23k256: convert to DT schema
Convert Microchip 23K256 SPI SRAM MTD binding to YAML format. Changes during conversion: - Remove "address-cells" and "size-cells" from properties and required sections as there is no child node for sram. Signed-off-by: Akhila YS <akhilayalmati@gmail.com> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent 9986a70 commit 2372fe1

2 files changed

Lines changed: 49 additions & 18 deletions

File tree

Documentation/devicetree/bindings/mtd/microchip,mchp23k256.txt

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/mtd/microchip,mchp23k256.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Microchip 23K256 SPI SRAM
8+
9+
maintainers:
10+
- Richard Weinberger <richard@nod.at>
11+
12+
description:
13+
The Microchip 23K256 is a 256 Kbit (32 Kbyte) serial SRAM with an
14+
SPI interface,supporting clock frequencies up to 20 MHz. It features
15+
a 32-byte page size for writes and supports byte, page, and
16+
sequential access modes.
17+
18+
allOf:
19+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
20+
21+
properties:
22+
compatible:
23+
enum:
24+
- microchip,mchp23k256
25+
- microchip,mchp23lcv1024
26+
27+
reg:
28+
maxItems: 1
29+
30+
required:
31+
- reg
32+
- compatible
33+
- spi-max-frequency
34+
35+
unevaluatedProperties: false
36+
37+
examples:
38+
- |
39+
spi {
40+
#address-cells = <1>;
41+
#size-cells = <0>;
42+
43+
sram@0 {
44+
compatible = "microchip,mchp23k256";
45+
reg = <0>;
46+
spi-max-frequency = <20000000>;
47+
};
48+
};
49+
...

0 commit comments

Comments
 (0)