Skip to contentSkip to conversation

dt-bindings: altera-fpga2sdram-bridge: Convert to dtschema

PATCH In review Animesh Agarwal 4 participants 4 messages Mar 1, 2024 – Mar 6, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: altera-fpga2sdram-bridge: Convert to dtschema

Convert the altera-fpga2sdram-bridge bindings to DT schema.

---
 .../fpga/altera-fpga2sdram-bridge.txt         | 13 -----------
 .../fpga/altera-fpga2sdram-bridge.yaml        | 23 +++++++++++++++++++
 2 files changed, 23 insertions(+), 13 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.txt
 create mode 100644 Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml
Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.txt deleted +0 -13
deleted file mode 100644
index 5dd0ff0f7b4e..000000000000
@@ -1,13 +0,0 @@
-Altera FPGA To SDRAM Bridge Driver
-
-Required properties:
-- compatible		: Should contain "altr,socfpga-fpga2sdram-bridge"
-
-See Documentation/devicetree/bindings/fpga/fpga-bridge.txt for generic bindings.
-
-Example:
-	fpga_bridge3: fpga-bridge@ffc25080 {
-		compatible = "altr,socfpga-fpga2sdram-bridge";
-		reg = <0xffc25080 0x4>;
-		bridge-enable = <0>;
-	};
Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml new file +23 -0
new file mode 100644
index 000000000000..88bf9e3151b6
@@ -0,0 +1,23 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/fpga/altr-fpga2sdram-bridge.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Altera FPGA To SDRAM Bridge Driver
+
+properties:
+  compatible:
+    enum:
+      - altr,socfpga-fpga2sdram-bridge
+
+required:
+  - compatible
+
+examples:
+  - |
+    fpga_bridge3: fpga-bridge@ffc25080 {
+        compatible = "altr,socfpga-fpga2sdram-bridge";
+        reg = <0xffc25080 0x4>;
+        bridge-enable = <0>;
+    };
Signature · 1 line
2.44.0
#1 lore raw

Hey,

Quoted 35 lines · Animesh Agarwal

Convert the altera-fpga2sdram-bridge bindings to DT schema.

---
 .../fpga/altera-fpga2sdram-bridge.txt         | 13 -----------
 .../fpga/altera-fpga2sdram-bridge.yaml        | 23 +++++++++++++++++++
 2 files changed, 23 insertions(+), 13 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.txt
 create mode 100644 Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml
Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.txt deleted +0 -13
deleted file mode 100644
index 5dd0ff0f7b4e..000000000000
@@ -1,13 +0,0 @@
-Altera FPGA To SDRAM Bridge Driver
-
-Required properties:
-- compatible		: Should contain "altr,socfpga-fpga2sdram-bridge"
-
-See Documentation/devicetree/bindings/fpga/fpga-bridge.txt for generic bindings.
-
-Example:
-	fpga_bridge3: fpga-bridge@ffc25080 {
-		compatible = "altr,socfpga-fpga2sdram-bridge";
-		reg = <0xffc25080 0x4>;
-		bridge-enable = <0>;
-	};
Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml new file +0 -0
new file mode 100644
index 000000000000..88bf9e3151b6

Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml line 8

Quoted 8 lines
Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml new file +8 -0
@@ -0,0 +1,23 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/fpga/altr-fpga2sdram-bridge.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Altera FPGA To SDRAM Bridge Driver
+

You're missing maintainers: (shouldn't dt_binding_check complain?)

Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml line 16

Quoted 8 lines
Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml new file +8 -0
+properties:
+  compatible:
+    enum:
+      - altr,socfpga-fpga2sdram-bridge
+
+required:
+  - compatible
+

Missing "unevaluatedProperties: false".

Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml line 22

Quoted 6 lines
Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml new file +6 -0
+examples:
+  - |
+    fpga_bridge3: fpga-bridge@ffc25080 {
+        compatible = "altr,socfpga-fpga2sdram-bridge";
+        reg = <0xffc25080 0x4>;
+        bridge-enable = <0>;

This has not been documented in your binding. You need a ref to fpga-bridge.yaml. Did you test this patch?

Cheers,
Conor.

Quoted 4 lines
Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml new file +1 -0
+    };
Signature · 1 line
2.44.0
maintainer
#2 lore raw
Quoted 37 lines · Conor Dooley

Hey,

Quoted 34 lines · Animesh Agarwal

Convert the altera-fpga2sdram-bridge bindings to DT schema.

---
 .../fpga/altera-fpga2sdram-bridge.txt         | 13 -----------
 .../fpga/altera-fpga2sdram-bridge.yaml        | 23 +++++++++++++++++++
 2 files changed, 23 insertions(+), 13 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.txt
 create mode 100644 Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml
Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.txt deleted +0 -13
deleted file mode 100644
index 5dd0ff0f7b4e..000000000000
@@ -1,13 +0,0 @@
-Altera FPGA To SDRAM Bridge Driver
-
-Required properties:
-- compatible		: Should contain "altr,socfpga-fpga2sdram-bridge"
-
-See Documentation/devicetree/bindings/fpga/fpga-bridge.txt for generic bindings.
-
-Example:
-	fpga_bridge3: fpga-bridge@ffc25080 {
-		compatible = "altr,socfpga-fpga2sdram-bridge";
-		reg = <0xffc25080 0x4>;
-		bridge-enable = <0>;
-	};
Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml new file +0 -0
new file mode 100644
index 000000000000..88bf9e3151b6
Quoted 8 lines

Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml line 7

Quoted 8 lines
Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml new file +7 -0
@@ -0,0 +1,23 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/fpga/altr-fpga2sdram-bridge.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Altera FPGA To SDRAM Bridge Driver

Bindings are for h/w blocks, not Drivers.

Quoted 3 lines

Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml line 8

Quoted 1 line
Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml new file +1 -0
+

You're missing maintainers: (shouldn't dt_binding_check complain?)

Yes. Patchwork says this failed to apply which is odd because it is doubtful that altera-fpga2sdram-bridge.txt has been modified.

Rob

#3 lore raw
Quoted 16 lines · Rob Herring
Quoted 5 lines
Quoted 5 lines
Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml new file +0 -0
new file mode 100644
index 000000000000..88bf9e3151b6
Quoted 8 lines

Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml line 7

Quoted 8 lines
Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml new file +7 -0
@@ -0,0 +1,23 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/fpga/altr-fpga2sdram-bridge.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Altera FPGA To SDRAM Bridge Driver

Bindings are for h/w blocks, not Drivers.

Quoted 6 lines
Quoted 3 lines

Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml line 8

Quoted 1 line
Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml new file +1 -0
+

You're missing maintainers: (shouldn't dt_binding_check complain?)

Yes. Patchwork says this failed to apply which is odd because it is doubtful that altera-fpga2sdram-bridge.txt has been modified.

The file was already converted by Michal, two months ago!

Animesh,
Please (almost) always work on current next. Also, before doing conversion check if there is such work on the lists ("dfn:" on lore.kernel.org).

It's waste of your and ours (three maintainers...) time, since this was already done two months ago.

Best regards,
Krzysztof