1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/spi/airoha,en7581-snand.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: SPI-NAND flash controller for Airoha ARM SoCs
8
9maintainers:
10  - Lorenzo Bianconi <lorenzo@kernel.org>
11
12allOf:
13  - $ref: spi-controller.yaml#
14
15properties:
16  compatible:
17    const: airoha,en7581-snand
18
19  reg:
20    items:
21      - description: spi base address
22      - description: nfi2spi base address
23
24  clocks:
25    maxItems: 1
26
27  clock-names:
28    items:
29      - const: spi
30
31required:
32  - compatible
33  - reg
34  - clocks
35  - clock-names
36
37unevaluatedProperties: false
38
39examples:
40  - |
41    #include <dt-bindings/clock/en7523-clk.h>
42
43    soc {
44      #address-cells = <2>;
45      #size-cells = <2>;
46
47      spi@1fa10000 {
48        compatible = "airoha,en7581-snand";
49        reg = <0x0 0x1fa10000 0x0 0x140>,
50              <0x0 0x1fa11000 0x0 0x160>;
51
52        clocks = <&scuclk EN7523_CLK_SPI>;
53        clock-names = "spi";
54
55        #address-cells = <1>;
56        #size-cells = <0>;
57
58        flash@0 {
59          compatible = "spi-nand";
60          reg = <0>;
61          spi-tx-bus-width = <1>;
62          spi-rx-bus-width = <2>;
63        };
64      };
65    };
66