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