1c9ccf3a3SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c9ccf3a3SEmmanuel Vadot%YAML 1.2
3c9ccf3a3SEmmanuel Vadot---
4c9ccf3a3SEmmanuel Vadot$id: http://devicetree.org/schemas/spi/mxicy,mx25f0a-spi.yaml#
5c9ccf3a3SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c9ccf3a3SEmmanuel Vadot
77ef62cebSEmmanuel Vadottitle: Macronix SPI controller
8c9ccf3a3SEmmanuel Vadot
9c9ccf3a3SEmmanuel Vadotmaintainers:
10c9ccf3a3SEmmanuel Vadot  - Miquel Raynal <miquel.raynal@bootlin.com>
11c9ccf3a3SEmmanuel Vadot
12c9ccf3a3SEmmanuel VadotallOf:
13*cb7aa33aSEmmanuel Vadot  - $ref: spi-controller.yaml#
14c9ccf3a3SEmmanuel Vadot
15c9ccf3a3SEmmanuel Vadotproperties:
16c9ccf3a3SEmmanuel Vadot  compatible:
17c9ccf3a3SEmmanuel Vadot    const: mxicy,mx25f0a-spi
18c9ccf3a3SEmmanuel Vadot
19c9ccf3a3SEmmanuel Vadot  reg:
20c9ccf3a3SEmmanuel Vadot    minItems: 2
21c9ccf3a3SEmmanuel Vadot    maxItems: 2
22c9ccf3a3SEmmanuel Vadot
23c9ccf3a3SEmmanuel Vadot  reg-names:
24c9ccf3a3SEmmanuel Vadot    items:
25c9ccf3a3SEmmanuel Vadot      - const: regs
26c9ccf3a3SEmmanuel Vadot      - const: dirmap
27c9ccf3a3SEmmanuel Vadot
28c9ccf3a3SEmmanuel Vadot  interrupts:
29c9ccf3a3SEmmanuel Vadot    maxItems: 1
30c9ccf3a3SEmmanuel Vadot
31c9ccf3a3SEmmanuel Vadot  clocks:
32c9ccf3a3SEmmanuel Vadot    minItems: 3
33c9ccf3a3SEmmanuel Vadot    maxItems: 3
34c9ccf3a3SEmmanuel Vadot
35c9ccf3a3SEmmanuel Vadot  clock-names:
36c9ccf3a3SEmmanuel Vadot    items:
37c9ccf3a3SEmmanuel Vadot      - const: send_clk
38c9ccf3a3SEmmanuel Vadot      - const: send_dly_clk
39c9ccf3a3SEmmanuel Vadot      - const: ps_clk
40c9ccf3a3SEmmanuel Vadot
41c9ccf3a3SEmmanuel Vadot  nand-ecc-engine:
42c9ccf3a3SEmmanuel Vadot    description: NAND ECC engine used by the SPI controller in order to perform
43c9ccf3a3SEmmanuel Vadot      on-the-fly correction when using a SPI-NAND memory.
44c9ccf3a3SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
45c9ccf3a3SEmmanuel Vadot
46c9ccf3a3SEmmanuel Vadotrequired:
47c9ccf3a3SEmmanuel Vadot  - compatible
48c9ccf3a3SEmmanuel Vadot  - reg
49c9ccf3a3SEmmanuel Vadot  - reg-names
50c9ccf3a3SEmmanuel Vadot  - clocks
51c9ccf3a3SEmmanuel Vadot  - clock-names
52c9ccf3a3SEmmanuel Vadot
53c9ccf3a3SEmmanuel VadotunevaluatedProperties: false
54c9ccf3a3SEmmanuel Vadot
55c9ccf3a3SEmmanuel Vadotexamples:
56c9ccf3a3SEmmanuel Vadot  - |
57c9ccf3a3SEmmanuel Vadot    spi@43c30000 {
58c9ccf3a3SEmmanuel Vadot      compatible = "mxicy,mx25f0a-spi";
59c9ccf3a3SEmmanuel Vadot      reg = <0x43c30000 0x10000>, <0xa0000000 0x20000000>;
60c9ccf3a3SEmmanuel Vadot      reg-names = "regs", "dirmap";
61c9ccf3a3SEmmanuel Vadot      clocks = <&clkwizard 0>, <&clkwizard 1>, <&clkc 18>;
62c9ccf3a3SEmmanuel Vadot      clock-names = "send_clk", "send_dly_clk", "ps_clk";
63c9ccf3a3SEmmanuel Vadot      #address-cells = <1>;
64c9ccf3a3SEmmanuel Vadot      #size-cells = <0>;
65c9ccf3a3SEmmanuel Vadot    };
66