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