xref: /linux/Documentation/devicetree/bindings/mtd/intel,lgm-ebunand.yaml (revision ae22a94997b8a03dcb3c922857c203246711f9d4)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mtd/intel,lgm-ebunand.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Intel LGM SoC NAND Controller
8
9allOf:
10  - $ref: nand-controller.yaml
11
12maintainers:
13  - Ramuthevar Vadivel Murugan <vadivel.muruganx.ramuthevar@linux.intel.com>
14
15properties:
16  compatible:
17    const: intel,lgm-ebunand
18
19  reg:
20    maxItems: 6
21
22  reg-names:
23    items:
24      - const: ebunand
25      - const: hsnand
26      - const: nand_cs0
27      - const: nand_cs1
28      - const: addr_sel0
29      - const: addr_sel1
30
31  clocks:
32    maxItems: 1
33
34  dmas:
35    maxItems: 2
36
37  dma-names:
38    items:
39      - const: tx
40      - const: rx
41
42patternProperties:
43  "^nand@[a-f0-9]$":
44    type: object
45    $ref: raw-nand-chip.yaml
46    properties:
47      reg:
48        minimum: 0
49        maximum: 1
50
51      nand-ecc-algo:
52        const: hw
53
54    unevaluatedProperties: false
55
56required:
57  - compatible
58  - reg
59  - reg-names
60  - clocks
61  - dmas
62  - dma-names
63
64unevaluatedProperties: false
65
66examples:
67  - |
68    nand-controller@e0f00000 {
69        compatible = "intel,lgm-ebunand";
70        reg = <0xe0f00000 0x100>,
71              <0xe1000000 0x300>,
72              <0xe1400000 0x8000>,
73              <0xe1c00000 0x1000>,
74              <0x17400000 0x4>,
75              <0x17c00000 0x4>;
76        reg-names = "ebunand", "hsnand", "nand_cs0", "nand_cs1",
77                    "addr_sel0", "addr_sel1";
78        clocks = <&cgu0 125>;
79        dmas = <&dma0 8>, <&dma0 9>;
80        dma-names = "tx", "rx";
81        #address-cells = <1>;
82        #size-cells = <0>;
83
84        nand@0 {
85            reg = <0>;
86            nand-ecc-mode = "hw";
87        };
88    };
89
90...
91