| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/mtd/nxp,lpc1773-spifi.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: NXP SPI Flash Interface (SPIFI) |
| 8 |
|
| 9 |
description: |
| 10 |
NXP SPIFI is a specialized SPI interface for serial Flash devices. |
| 11 |
It supports one Flash device with 1-, 2- and 4-bits width in SPI |
| 12 |
mode 0 or 3. The controller operates in either command or memory |
| 13 |
mode. In memory mode the Flash is accessible from the CPU as |
| 14 |
normal memory. |
| 15 |
|
| 16 |
maintainers: |
| 17 |
- Frank Li <[email protected]> |
| 18 |
|
| 19 |
properties: |
| 20 |
compatible: |
| 21 |
const: nxp,lpc1773-spifi |
| 22 |
|
| 23 |
reg: |
| 24 |
maxItems: 2 |
| 25 |
|
| 26 |
reg-names: |
| 27 |
items: |
| 28 |
- const: spifi |
| 29 |
- const: flash |
| 30 |
|
| 31 |
interrupts: |
| 32 |
maxItems: 1 |
| 33 |
|
| 34 |
clocks: |
| 35 |
maxItems: 2 |
| 36 |
|
| 37 |
clock-names: |
| 38 |
items: |
| 39 |
- const: spifi |
| 40 |
- const: reg |
| 41 |
|
| 42 |
resets: |
| 43 |
maxItems: 1 |
| 44 |
|
| 45 |
spi-cpol: |
| 46 |
enum: [0, 3] |
| 47 |
|
| 48 |
required: |
| 49 |
- compatible |
| 50 |
- reg |
| 51 |
- reg-names |
| 52 |
- interrupts |
| 53 |
- clocks |
| 54 |
- clock-names |
| 55 |
|
| 56 |
allOf: |
| 57 |
- $ref: /schemas/spi/spi-controller.yaml# |
| 58 |
|
| 59 |
unevaluatedProperties: false |
| 60 |
|
| 61 |
examples: |
| 62 |
- | |
| 63 |
#include <dt-bindings/clock/lpc18xx-ccu.h> |
| 64 |
|
| 65 |
spi@40003000 { |
| 66 |
compatible = "nxp,lpc1773-spifi"; |
| 67 |
reg = <0x40003000 0x1000>, <0x14000000 0x4000000>; |
| 68 |
reg-names = "spifi", "flash"; |
| 69 |
interrupts = <30>; |
| 70 |
clocks = <&ccu1 CLK_SPIFI>, <&ccu1 CLK_CPU_SPIFI>; |
| 71 |
clock-names = "spifi", "reg"; |
| 72 |
resets = <&rgu 53>; |
| 73 |
}; |
| 74 |
|