xref: /linux/Documentation/devicetree/bindings/mtd/nand-controller-legacy.yaml (revision 8541d8f725c673db3bd741947f27974358b2e163)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mtd/nand-controller-legacy.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: NAND Controller Common Properties
8
9maintainers:
10  - Miquel Raynal <miquel.raynal@bootlin.com>
11  - Richard Weinberger <richard@nod.at>
12
13description: >
14  The NAND controller should be represented with its own DT node, and
15  all NAND chips attached to this controller should be defined as
16  children nodes of the NAND controller. This representation should be
17  enforced even for simple controllers supporting only one chip.
18
19  This is only for legacy nand controller, new controller should use
20  nand-controller.yaml
21
22properties:
23
24  "#address-cells":
25    const: 1
26
27  "#size-cells":
28    enum: [0, 1]
29
30  ranges: true
31
32  cs-gpios:
33    description:
34      Array of chip-select available to the controller. The first
35      entries are a 1:1 mapping of the available chip-select on the
36      NAND controller (even if they are not used). As many additional
37      chip-select as needed may follow and should be phandles of GPIO
38      lines. 'reg' entries of the NAND chip subnodes become indexes of
39      this array when this property is present.
40    minItems: 1
41    maxItems: 8
42
43  partitions:
44    type: object
45
46    required:
47      - compatible
48
49patternProperties:
50  "^nand@[a-f0-9]$":
51    type: object
52    $ref: raw-nand-chip.yaml#
53
54  "^partition@[0-9a-f]+$":
55    type: object
56    $ref: /schemas/mtd/partitions/partition.yaml#/$defs/partition-node
57    deprecated: true
58
59allOf:
60  - $ref: raw-nand-property.yaml#
61  - $ref: nand-property.yaml#
62
63# This is a generic file other binding inherit from and extend
64additionalProperties: true
65
66