Skip to content

Commit f69f15a

Browse files
Anson-Huangrobherring
authored andcommitted
dt-bindings: mtd: Convert imx nand to json-schema
Convert the i.MX nand controller binding to DT schema format using json-schema. Signed-off-by: Anson Huang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
1 parent 493d37c commit f69f15a

File tree

2 files changed

+42
-19
lines changed

2 files changed

+42
-19
lines changed

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

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/mtd/mxc-nand.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Freescale's mxc_nand binding
8+
9+
maintainers:
10+
- Uwe Kleine-König <[email protected]>
11+
12+
allOf:
13+
- $ref: "nand-controller.yaml"
14+
15+
properties:
16+
compatible:
17+
const: fsl,imx27-nand
18+
19+
reg:
20+
maxItems: 1
21+
22+
interrupts:
23+
maxItems: 1
24+
25+
required:
26+
- compatible
27+
- reg
28+
- interrupts
29+
30+
unevaluatedProperties: false
31+
32+
examples:
33+
- |
34+
nand-controller@d8000000 {
35+
#address-cells = <1>;
36+
#size-cells = <0>;
37+
compatible = "fsl,imx27-nand";
38+
reg = <0xd8000000 0x1000>;
39+
interrupts = <29>;
40+
nand-bus-width = <8>;
41+
nand-ecc-mode = "hw";
42+
};

0 commit comments

Comments
 (0)