Merge tag 'pci-v5.18-changes-2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / spi / mxicy,mx25f0a-spi.yaml
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/spi/mxicy,mx25f0a-spi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Macronix SPI controller device tree bindings
8
9 maintainers:
10   - Miquel Raynal <miquel.raynal@bootlin.com>
11
12 allOf:
13   - $ref: "spi-controller.yaml#"
14
15 properties:
16   compatible:
17     const: mxicy,mx25f0a-spi
18
19   reg:
20     minItems: 2
21     maxItems: 2
22
23   reg-names:
24     items:
25       - const: regs
26       - const: dirmap
27
28   interrupts:
29     maxItems: 1
30
31   clocks:
32     minItems: 3
33     maxItems: 3
34
35   clock-names:
36     items:
37       - const: send_clk
38       - const: send_dly_clk
39       - const: ps_clk
40
41   nand-ecc-engine:
42     description: NAND ECC engine used by the SPI controller in order to perform
43       on-the-fly correction when using a SPI-NAND memory.
44     $ref: /schemas/types.yaml#/definitions/phandle
45
46 required:
47   - compatible
48   - reg
49   - reg-names
50   - clocks
51   - clock-names
52
53 unevaluatedProperties: false
54
55 examples:
56   - |
57     spi@43c30000 {
58       compatible = "mxicy,mx25f0a-spi";
59       reg = <0x43c30000 0x10000>, <0xa0000000 0x20000000>;
60       reg-names = "regs", "dirmap";
61       clocks = <&clkwizard 0>, <&clkwizard 1>, <&clkc 18>;
62       clock-names = "send_clk", "send_dly_clk", "ps_clk";
63       #address-cells = <1>;
64       #size-cells = <0>;
65     };