Documentation / devicetree / bindings / spi / airoha,en7581-snand.yaml


Based on kernel version 6.10. Page generated on 2024-07-16 09:00 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/spi/airoha,en7581-snand.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: SPI-NAND flash controller for Airoha ARM SoCs

maintainers:
  - Lorenzo Bianconi <lorenzo@kernel.org>

allOf:
  - $ref: spi-controller.yaml#

properties:
  compatible:
    const: airoha,en7581-snand

  reg:
    items:
      - description: spi base address
      - description: nfi2spi base address

  clocks:
    maxItems: 1

  clock-names:
    items:
      - const: spi

required:
  - compatible
  - reg
  - clocks
  - clock-names

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/clock/en7523-clk.h>
 
    soc {
      #address-cells = <2>;
      #size-cells = <2>;
 
      spi@1fa10000 {
        compatible = "airoha,en7581-snand";
        reg = <0x0 0x1fa10000 0x0 0x140>,
              <0x0 0x1fa11000 0x0 0x160>;
 
        clocks = <&scuclk EN7523_CLK_SPI>;
        clock-names = "spi";
 
        #address-cells = <1>;
        #size-cells = <0>;
 
        flash@0 {
          compatible = "spi-nand";
          reg = <0>;
          spi-tx-bus-width = <1>;
          spi-rx-bus-width = <2>;
        };
      };
    };