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