xref: /freebsd/sys/contrib/device-tree/Bindings/mtd/intel,lgm-ebunand.yaml (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
17ef62cebSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
27ef62cebSEmmanuel Vadot%YAML 1.2
37ef62cebSEmmanuel Vadot---
47ef62cebSEmmanuel Vadot$id: http://devicetree.org/schemas/mtd/intel,lgm-ebunand.yaml#
57ef62cebSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
67ef62cebSEmmanuel Vadot
77ef62cebSEmmanuel Vadottitle: Intel LGM SoC NAND Controller
87ef62cebSEmmanuel Vadot
97ef62cebSEmmanuel VadotallOf:
10fac71e4eSEmmanuel Vadot  - $ref: nand-controller.yaml
117ef62cebSEmmanuel Vadot
127ef62cebSEmmanuel Vadotmaintainers:
137ef62cebSEmmanuel Vadot  - Ramuthevar Vadivel Murugan <vadivel.muruganx.ramuthevar@linux.intel.com>
147ef62cebSEmmanuel Vadot
157ef62cebSEmmanuel Vadotproperties:
167ef62cebSEmmanuel Vadot  compatible:
177ef62cebSEmmanuel Vadot    const: intel,lgm-ebunand
187ef62cebSEmmanuel Vadot
197ef62cebSEmmanuel Vadot  reg:
207ef62cebSEmmanuel Vadot    maxItems: 6
217ef62cebSEmmanuel Vadot
227ef62cebSEmmanuel Vadot  reg-names:
237ef62cebSEmmanuel Vadot    items:
247ef62cebSEmmanuel Vadot      - const: ebunand
257ef62cebSEmmanuel Vadot      - const: hsnand
267ef62cebSEmmanuel Vadot      - const: nand_cs0
277ef62cebSEmmanuel Vadot      - const: nand_cs1
287ef62cebSEmmanuel Vadot      - const: addr_sel0
297ef62cebSEmmanuel Vadot      - const: addr_sel1
307ef62cebSEmmanuel Vadot
317ef62cebSEmmanuel Vadot  clocks:
327ef62cebSEmmanuel Vadot    maxItems: 1
337ef62cebSEmmanuel Vadot
347ef62cebSEmmanuel Vadot  dmas:
357ef62cebSEmmanuel Vadot    maxItems: 2
367ef62cebSEmmanuel Vadot
377ef62cebSEmmanuel Vadot  dma-names:
387ef62cebSEmmanuel Vadot    items:
397ef62cebSEmmanuel Vadot      - const: tx
407ef62cebSEmmanuel Vadot      - const: rx
417ef62cebSEmmanuel Vadot
427ef62cebSEmmanuel VadotpatternProperties:
438bab661aSEmmanuel Vadot  "^nand@[a-f0-9]$":
447ef62cebSEmmanuel Vadot    type: object
45*f126890aSEmmanuel Vadot    $ref: raw-nand-chip.yaml
467ef62cebSEmmanuel Vadot    properties:
477ef62cebSEmmanuel Vadot      reg:
487ef62cebSEmmanuel Vadot        minimum: 0
497ef62cebSEmmanuel Vadot        maximum: 1
507ef62cebSEmmanuel Vadot
517ef62cebSEmmanuel Vadot      nand-ecc-algo:
527ef62cebSEmmanuel Vadot        const: hw
537ef62cebSEmmanuel Vadot
54*f126890aSEmmanuel Vadot    unevaluatedProperties: false
557ef62cebSEmmanuel Vadot
567ef62cebSEmmanuel Vadotrequired:
577ef62cebSEmmanuel Vadot  - compatible
587ef62cebSEmmanuel Vadot  - reg
597ef62cebSEmmanuel Vadot  - reg-names
607ef62cebSEmmanuel Vadot  - clocks
617ef62cebSEmmanuel Vadot  - dmas
627ef62cebSEmmanuel Vadot  - dma-names
637ef62cebSEmmanuel Vadot
648bab661aSEmmanuel VadotunevaluatedProperties: false
657ef62cebSEmmanuel Vadot
667ef62cebSEmmanuel Vadotexamples:
677ef62cebSEmmanuel Vadot  - |
687ef62cebSEmmanuel Vadot    nand-controller@e0f00000 {
697ef62cebSEmmanuel Vadot        compatible = "intel,lgm-ebunand";
707ef62cebSEmmanuel Vadot        reg = <0xe0f00000 0x100>,
717ef62cebSEmmanuel Vadot              <0xe1000000 0x300>,
727ef62cebSEmmanuel Vadot              <0xe1400000 0x8000>,
737ef62cebSEmmanuel Vadot              <0xe1c00000 0x1000>,
747ef62cebSEmmanuel Vadot              <0x17400000 0x4>,
757ef62cebSEmmanuel Vadot              <0x17c00000 0x4>;
767ef62cebSEmmanuel Vadot        reg-names = "ebunand", "hsnand", "nand_cs0", "nand_cs1",
777ef62cebSEmmanuel Vadot                    "addr_sel0", "addr_sel1";
787ef62cebSEmmanuel Vadot        clocks = <&cgu0 125>;
797ef62cebSEmmanuel Vadot        dmas = <&dma0 8>, <&dma0 9>;
807ef62cebSEmmanuel Vadot        dma-names = "tx", "rx";
817ef62cebSEmmanuel Vadot        #address-cells = <1>;
827ef62cebSEmmanuel Vadot        #size-cells = <0>;
837ef62cebSEmmanuel Vadot
847ef62cebSEmmanuel Vadot        nand@0 {
857ef62cebSEmmanuel Vadot            reg = <0>;
867ef62cebSEmmanuel Vadot            nand-ecc-mode = "hw";
877ef62cebSEmmanuel Vadot        };
887ef62cebSEmmanuel Vadot    };
897ef62cebSEmmanuel Vadot
907ef62cebSEmmanuel Vadot...
91