SPI-NAND flash controller for Airoha ARM SoCs

Schema identifier ($id): "http://devicetree.org/schemas/spi/airoha,en7581-snand.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Lorenzo Bianconi <lorenzo@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): spi-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "airoha,en7581-snand"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "airoha,en7523-snand"

Item 2

Exact value (const): "airoha,en7581-snand"

reg — required here #

Array item rules (items) #

Item 1

spi base address

Item 2

nfi2spi base address

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "spi"

Required in this object (required): "compatible", "reg", "clocks", "clock-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (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>;
    };
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page