Skip to content

Commit bcf8e20

Browse files
Akhila-YSmiquelraynal
authored andcommitted
dt-bindings: mtd: mxic,multi-itfc-v009-nand-controller: convert to DT schema
Convert Macronix Raw NAND Controller Device Tree binding to DT Schema. Signed-off-by: Akhila YS <akhilayalmati@gmail.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent 7cce81d commit bcf8e20

2 files changed

Lines changed: 78 additions & 36 deletions

File tree

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
3+
%YAML 1.2
4+
---
5+
$id: http://devicetree.org/schemas/mtd/mxic,multi-itfc-v009-nand-controller.yaml#
6+
$schema: http://devicetree.org/meta-schemas/core.yaml#
7+
8+
title: Macronix Raw NAND Controller
9+
10+
maintainers:
11+
- Mason Yang <masonccyang@mxic.com.tw>
12+
13+
description:
14+
The Macronix Multi-Interface Raw NAND Controller is a versatile flash
15+
memory controller for embedding in SoCs, capable of interfacing with
16+
various NAND devices. It requires dedicated clock inputs for core, data
17+
transmit, and delayed transmit paths along with register space and an
18+
interrupt line for operation.
19+
20+
allOf:
21+
- $ref: nand-controller.yaml#
22+
23+
properties:
24+
compatible:
25+
const: mxic,multi-itfc-v009-nand-controller
26+
27+
reg:
28+
maxItems: 1
29+
30+
interrupts:
31+
maxItems: 1
32+
33+
"#address-cells":
34+
const: 1
35+
36+
"#size-cells":
37+
const: 0
38+
39+
clocks:
40+
minItems: 3
41+
maxItems: 3
42+
43+
clock-names:
44+
items:
45+
- const: ps
46+
- const: send
47+
- const: send_dly
48+
49+
required:
50+
- compatible
51+
- reg
52+
- interrupts
53+
- "#address-cells"
54+
- "#size-cells"
55+
- clocks
56+
- clock-names
57+
58+
unevaluatedProperties: false
59+
60+
examples:
61+
- |
62+
#include <dt-bindings/interrupt-controller/arm-gic.h>
63+
nand-controller@43c30000 {
64+
compatible = "mxic,multi-itfc-v009-nand-controller";
65+
reg = <0x43c30000 0x10000>;
66+
#address-cells = <1>;
67+
#size-cells = <0>;
68+
interrupts = <GIC_SPI 0x1d IRQ_TYPE_EDGE_RISING>;
69+
clocks = <&clkwizard 0>, <&clkwizard 1>, <&clkc 15>;
70+
clock-names = "ps", "send", "send_dly";
71+
72+
nand@0 {
73+
reg = <0>;
74+
nand-ecc-mode = "soft";
75+
nand-ecc-algo = "bch";
76+
};
77+
};
78+
...

Documentation/devicetree/bindings/mtd/mxic-nand.txt

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

0 commit comments

Comments
 (0)