Skip to contentSkip to conversation

dt-bindings: spi: Convert NXP flexspi to json schema

PATCH RESEND Superseded Kuldeep Singh 2 participants 3 messages Apr 28, 2021 – Jun 24, 2021

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 dt-bindings: spi: Convert NXP flexspi to json schema

Convert the NXP FlexSPI binding to DT schema format using json-schema.

---
 .../bindings/spi/nxp,spi-nxp-fspi.yaml        | 86 +++++++++++++++++++
 .../devicetree/bindings/spi/spi-nxp-fspi.txt  | 44 ----------
 MAINTAINERS                                   |  2 +-
 3 files changed, 87 insertions(+), 45 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/spi/nxp,spi-nxp-fspi.yaml
 delete mode 100644 Documentation/devicetree/bindings/spi/spi-nxp-fspi.txt
Documentation/devicetree/bindings/spi/nxp,spi-nxp-fspi.yaml new file +86 -0
new file mode 100644
index 000000000000..b1d2e399a437
@@ -0,0 +1,86 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/spi/nxp,spi-nxp-fspi.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP Flex Serial Peripheral Interface (FSPI)
+
+maintainers:
+  - Ashish Kumar <[email protected]>
+
+allOf:
+  - $ref: "spi-controller.yaml#"
+
+properties:
+  compatible:
+    enum:
+      - nxp,imx8dxl-fspi
+      - nxp,imx8mm-fspi
+      - nxp,imx8mp-fspi
+      - nxp,imx8qxp-fspi
+      - nxp,lx2160a-fspi
+
+  reg:
+    items:
+      - description: registers
+      - description: memory mapping
+
+  reg-names:
+    items:
+      - const: fspi_base
+      - const: fspi_mmap
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    items:
+      - description: SoC SPI fspi_en clock
+      - description: SoC SPI fspi clock
+
+  clock-names:
+    items:
+      - const: fspi_en
+      - const: fspi
+
+required:
+  - compatible
+  - reg
+  - reg-names
+  - interrupts
+  - clocks
+  - clock-names
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/clock/fsl,qoriq-clockgen.h>
+
+    soc {
+        #address-cells = <2>;
+        #size-cells = <2>;
+
+        spi@20c0000 {
+            compatible = "nxp,lx2160a-fspi";
+            reg = <0x0 0x20c0000 0x0 0x100000>,
+                  <0x0 0x20000000 0x0 0x10000000>;
+            reg-names = "fspi_base", "fspi_mmap";
+            interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
+            clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL QORIQ_CLK_PLL_DIV(4)>,
+                     <&clockgen QORIQ_CLK_PLATFORM_PLL QORIQ_CLK_PLL_DIV(4)>;
+            clock-names = "fspi_en", "fspi";
+            #address-cells = <1>;
+            #size-cells = <0>;
+
+            flash@0 {
+                compatible = "jedec,spi-nor";
+                spi-max-frequency = <50000000>;
+                reg = <0>;
+                spi-rx-bus-width = <8>;
+                spi-tx-bus-width = <8>;
+            };
+        };
+    };
Documentation/devicetree/bindings/spi/spi-nxp-fspi.txt deleted +0 -44

44 lines not on this page · raw message

MAINTAINERS +1 -1
index 299a9f458e3a..4b2736df358a 100644
@@ -12847,7 +12847,7 @@ M:	Ashish Kumar <[email protected]>
 R:	Yogesh Gaur <[email protected]>
 L:	[email protected]
 S:	Maintained
-F:	Documentation/devicetree/bindings/spi/spi-nxp-fspi.txt
+F:	Documentation/devicetree/bindings/spi/nxp,spi-nxp-fspi.yaml
 F:	drivers/spi/spi-nxp-fspi.c
 
 NXP FXAS21002C DRIVER
Signature · 1 line
2.25.1
#1 lore raw

Hi Mark,

Quoted 9 lines

-----Original Message-----
From: Kuldeep Singh <[email protected]>
Sent: Wednesday, April 28, 2021 3:54 PM
To: Mark Brown <[email protected]>; Rob Herring <[email protected]>; [email protected]; [email protected]; linux- [email protected]
Cc: Kuldeep Singh <[email protected]>; Rob Herring <[email protected]>
Subject: [RESEND] dt-bindings: spi: Convert NXP flexspi to json schema

Quoted 4 lines

Convert the NXP FlexSPI binding to DT schema format using json-schema.

This patch has been in queue for a long time. Could you please help in picking this up. Please note, this is a resend version and previous version[1] was already reviewed by Rob.

Regards
Kuldeep
[1] https://patchwork.kernel.org/project/spi-devel-general/patch/[email protected]/

maintainer
#2 lore raw
Quoted 2 lines · Kuldeep Singh

This patch has been in queue for a long time. Could you please help in picking this up. Please note, this is a resend version and previous version[1] was already reviewed by Rob.

Please don't send content free pings and please allow a reasonable time for review. People get busy, go on holiday, attend conferences and so on so unless there is some reason for urgency (like critical bug fixes) please allow at least a couple of weeks for review. If there have been review comments then people may be waiting for those to be addressed.

Sending content free pings adds to the mail volume (if they are seen at all) which is often the problem and since they can't be reviewed directly if something has gone wrong you'll have to resend the patches anyway, so sending again is generally a better approach though there are some other maintainers who like them - if in doubt look at how patches for the subsystem are normally handled.

Please fix your mail client to word wrap within paragraphs at something substantially less than 80 columns. Doing this makes your messages much easier to read and reply to.