xref: /freebsd/sys/contrib/device-tree/Bindings/mtd/renesas-nandc.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
1e67e8565SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2e67e8565SEmmanuel Vadot%YAML 1.2
3e67e8565SEmmanuel Vadot---
4e67e8565SEmmanuel Vadot$id: http://devicetree.org/schemas/mtd/renesas-nandc.yaml#
5e67e8565SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6e67e8565SEmmanuel Vadot
77ef62cebSEmmanuel Vadottitle: Renesas R-Car Gen3 & RZ/N1x NAND flash controller
8e67e8565SEmmanuel Vadot
9e67e8565SEmmanuel Vadotmaintainers:
10e67e8565SEmmanuel Vadot  - Miquel Raynal <miquel.raynal@bootlin.com>
11e67e8565SEmmanuel Vadot
12e67e8565SEmmanuel VadotallOf:
13*fac71e4eSEmmanuel Vadot  - $ref: nand-controller.yaml
14e67e8565SEmmanuel Vadot
15e67e8565SEmmanuel Vadotproperties:
16e67e8565SEmmanuel Vadot  compatible:
17e67e8565SEmmanuel Vadot    oneOf:
18e67e8565SEmmanuel Vadot      - items:
19e67e8565SEmmanuel Vadot          - enum:
20e67e8565SEmmanuel Vadot              - renesas,r9a06g032-nandc
21e67e8565SEmmanuel Vadot          - const: renesas,rzn1-nandc
22e67e8565SEmmanuel Vadot
23e67e8565SEmmanuel Vadot  reg:
24e67e8565SEmmanuel Vadot    maxItems: 1
25e67e8565SEmmanuel Vadot
26e67e8565SEmmanuel Vadot  interrupts:
27e67e8565SEmmanuel Vadot    maxItems: 1
28e67e8565SEmmanuel Vadot
29e67e8565SEmmanuel Vadot  clocks:
30e67e8565SEmmanuel Vadot    items:
31e67e8565SEmmanuel Vadot      - description: APB host controller clock
32e67e8565SEmmanuel Vadot      - description: External NAND bus clock
33e67e8565SEmmanuel Vadot
34e67e8565SEmmanuel Vadot  clock-names:
35e67e8565SEmmanuel Vadot    items:
36e67e8565SEmmanuel Vadot      - const: hclk
37e67e8565SEmmanuel Vadot      - const: eclk
38e67e8565SEmmanuel Vadot
39d5b0e70fSEmmanuel Vadot  power-domains:
40d5b0e70fSEmmanuel Vadot    maxItems: 1
41d5b0e70fSEmmanuel Vadot
42e67e8565SEmmanuel Vadotrequired:
43e67e8565SEmmanuel Vadot  - compatible
44e67e8565SEmmanuel Vadot  - reg
45e67e8565SEmmanuel Vadot  - clocks
46e67e8565SEmmanuel Vadot  - clock-names
47d5b0e70fSEmmanuel Vadot  - power-domains
48e67e8565SEmmanuel Vadot  - interrupts
49e67e8565SEmmanuel Vadot
50e67e8565SEmmanuel VadotunevaluatedProperties: false
51e67e8565SEmmanuel Vadot
52e67e8565SEmmanuel Vadotexamples:
53e67e8565SEmmanuel Vadot  - |
54e67e8565SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
55e67e8565SEmmanuel Vadot    #include <dt-bindings/clock/r9a06g032-sysctrl.h>
56e67e8565SEmmanuel Vadot
57e67e8565SEmmanuel Vadot    nand-controller@40102000 {
58e67e8565SEmmanuel Vadot        compatible = "renesas,r9a06g032-nandc", "renesas,rzn1-nandc";
59e67e8565SEmmanuel Vadot        reg = <0x40102000 0x2000>;
60e67e8565SEmmanuel Vadot        interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
61e67e8565SEmmanuel Vadot        clocks = <&sysctrl R9A06G032_HCLK_NAND>, <&sysctrl R9A06G032_CLK_NAND>;
62e67e8565SEmmanuel Vadot        clock-names = "hclk", "eclk";
63d5b0e70fSEmmanuel Vadot        power-domains = <&sysctrl>;
64e67e8565SEmmanuel Vadot        #address-cells = <1>;
65e67e8565SEmmanuel Vadot        #size-cells = <0>;
66e67e8565SEmmanuel Vadot    };
67