Skip to content

Commit 27b045e

Browse files
nxpfranklimiquelraynal
authored andcommitted
dt-bindings: mtd: convert nxp-spifi.txt to yaml format
Convert nxp-spifi.txt to yaml format. Additional changes: - ref /schemas/spi/spi-controller.yaml. - remove label in example. - change node name to spi in example. - remove child node in example. Signed-off-by: Frank Li <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
1 parent 19272b3 commit 27b045e

File tree

2 files changed

+74
-58
lines changed

2 files changed

+74
-58
lines changed
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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+

Documentation/devicetree/bindings/mtd/nxp-spifi.txt

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)