| 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 |
|
| 7 |
title: SPI-NAND flash controller for Airoha ARM SoCs |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Lorenzo Bianconi <[email protected]> |
| 11 |
|
| 12 |
allOf: |
| 13 |
- $ref: spi-controller.yaml# |
| 14 |
|
| 15 |
properties: |
| 16 |
compatible: |
| 17 |
oneOf: |
| 18 |
- const: airoha,en7581-snand |
| 19 |
- items: |
| 20 |
- enum: |
| 21 |
- airoha,en7523-snand |
| 22 |
- const: airoha,en7581-snand |
| 23 |
|
| 24 |
reg: |
| 25 |
items: |
| 26 |
- description: spi base address |
| 27 |
- description: nfi2spi base address |
| 28 |
|
| 29 |
clocks: |
| 30 |
maxItems: 1 |
| 31 |
|
| 32 |
clock-names: |
| 33 |
items: |
| 34 |
- const: spi |
| 35 |
|
| 36 |
required: |
| 37 |
- compatible |
| 38 |
- reg |
| 39 |
- clocks |
| 40 |
- clock-names |
| 41 |
|
| 42 |
unevaluatedProperties: false |
| 43 |
|
| 44 |
examples: |
| 45 |
- | |
| 46 |
#include <dt-bindings/clock/en7523-clk.h> |
| 47 |
|
| 48 |
soc { |
| 49 |
#address-cells = <2>; |
| 50 |
#size-cells = <2>; |
| 51 |
|
| 52 |
spi@1fa10000 { |
| 53 |
compatible = "airoha,en7581-snand"; |
| 54 |
reg = <0x0 0x1fa10000 0x0 0x140>, |
| 55 |
<0x0 0x1fa11000 0x0 0x160>; |
| 56 |
|
| 57 |
clocks = <&scuclk EN7523_CLK_SPI>; |
| 58 |
clock-names = "spi"; |
| 59 |
|
| 60 |
#address-cells = <1>; |
| 61 |
#size-cells = <0>; |
| 62 |
|
| 63 |
flash@0 { |
| 64 |
compatible = "spi-nand"; |
| 65 |
reg = <0>; |
| 66 |
spi-tx-bus-width = <1>; |
| 67 |
spi-rx-bus-width = <2>; |
| 68 |
}; |
| 69 |
}; |
| 70 |
}; |