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