1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mtd/allwinner,sun4i-a10-nand.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Allwinner A10 NAND Controller Device Tree Bindings
8
9allOf:
10  - $ref: "nand-controller.yaml"
11
12maintainers:
13  - Chen-Yu Tsai <wens@csie.org>
14  - Maxime Ripard <maxime.ripard@bootlin.com>
15
16properties:
17  "#address-cells": true
18  "#size-cells": true
19
20  compatible:
21    const: allwinner,sun4i-a10-nand
22
23  reg:
24    maxItems: 1
25
26  interrupts:
27    maxItems: 1
28
29  clocks:
30    items:
31      - description: Bus Clock
32      - description: Module Clock
33
34  clock-names:
35    items:
36      - const: ahb
37      - const: mod
38
39  resets:
40    maxItems: 1
41
42  reset-names:
43    const: ahb
44
45  dmas:
46    maxItems: 1
47
48  dma-names:
49    const: rxtx
50
51  pinctrl-names: true
52
53patternProperties:
54  "^pinctrl-[0-9]+$": true
55
56  "^nand@[a-f0-9]+$":
57    properties:
58      reg:
59        maxItems: 1
60        minimum: 0
61        maximum: 7
62
63      nand-ecc-mode: true
64
65      nand-ecc-algo:
66        const: bch
67
68      nand-ecc-step-size:
69        enum: [ 512, 1024 ]
70
71      nand-ecc-strength:
72        maximum: 80
73
74      allwinner,rb:
75        description:
76          Contains the native Ready/Busy IDs.
77        allOf:
78          - $ref: /schemas/types.yaml#/definitions/uint32-array
79          - minItems: 1
80            maxItems: 2
81            items:
82              minimum: 0
83              maximum: 1
84
85    additionalProperties: false
86
87required:
88  - compatible
89  - reg
90  - interrupts
91  - clocks
92  - clock-names
93
94additionalProperties: false
95
96...
97