Skip to contentSkip to conversation

dt-bindings: mtd: convert nxp-spifi.txt to yaml format

PATCH Applied Frank Li 3 participants 3 messages Jun 2, 2025 – Jun 18, 2025

Subsystems (3)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH 1/1 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.

---
 .../bindings/mtd/nxp,lpc1773-spifi.yaml       | 74 +++++++++++++++++++
 .../devicetree/bindings/mtd/nxp-spifi.txt     | 58 ---------------
 2 files changed, 74 insertions(+), 58 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/mtd/nxp,lpc1773-spifi.yaml
 delete mode 100644 Documentation/devicetree/bindings/mtd/nxp-spifi.txt
Documentation/devicetree/bindings/mtd/nxp,lpc1773-spifi.yaml new file +74 -0
new file mode 100644
index 0000000000000..d6efb9417b7a9
@@ -0,0 +1,74 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mtd/nxp,lpc1773-spifi.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP SPI Flash Interface (SPIFI)
+
+description:
+  NXP SPIFI is a specialized SPI interface for serial Flash devices.
+  It supports one Flash device with 1-, 2- and 4-bits width in SPI
+  mode 0 or 3. The controller operates in either command or memory
+  mode. In memory mode the Flash is accessible from the CPU as
+  normal memory.
+
+maintainers:
+  - Frank Li <[email protected]>
+
+properties:
+  compatible:
+    const: nxp,lpc1773-spifi
+
+  reg:
+    maxItems: 2
+
+  reg-names:
+    items:
+      - const: spifi
+      - const: flash
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    maxItems: 2
+
+  clock-names:
+    items:
+      - const: spifi
+      - const: reg
+
+  resets:
+    maxItems: 1
+
+  spi-cpol:
+    enum: [0, 3]
+
+required:
+  - compatible
+  - reg
+  - reg-names
+  - interrupts
+  - clocks
+  - clock-names
+
+allOf:
+  - $ref: /schemas/spi/spi-controller.yaml#
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/clock/lpc18xx-ccu.h>
+
+    spi@40003000 {
+        compatible = "nxp,lpc1773-spifi";
+        reg = <0x40003000 0x1000>, <0x14000000 0x4000000>;
+        reg-names = "spifi", "flash";
+        interrupts = <30>;
+        clocks = <&ccu1 CLK_SPIFI>, <&ccu1 CLK_CPU_SPIFI>;
+        clock-names = "spifi", "reg";
+        resets = <&rgu 53>;
+    };
+
Documentation/devicetree/bindings/mtd/nxp-spifi.txt deleted +0 -58

58 lines not on this page · raw message

Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Frank Li

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.

Quoted 8 lines
---
 .../bindings/mtd/nxp,lpc1773-spifi.yaml       | 74 +++++++++++++++++++
 .../devicetree/bindings/mtd/nxp-spifi.txt     | 58 ---------------
 2 files changed, 74 insertions(+), 58 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/mtd/nxp,lpc1773-spifi.yaml
 delete mode 100644 Documentation/devicetree/bindings/mtd/nxp-spifi.txt
maintainer Applied
#2 lore raw
In reply to Frank Li
Quoted 9 lines · Frank Li

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.

[...]

Applied to mtd/next, thanks!

[1/1] dt-bindings: mtd: convert nxp-spifi.txt to yaml format

      commit: 27b045eb3e30ce9a436b8ee5bcb4869f7e3522a6

Patche(s) should be available on mtd/linux.git and will be part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl