Skip to contentSkip to conversation

dt-bindings: interrupt-controller: convert loongson,ls1x-intc.txt to json-schema

PATCH Superseded Keguang Zhang 2 participants 7 messages Feb 18, 2023 – Feb 20, 2023

Subsystems (4)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Keguang Zhang

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: interrupt-controller: convert loongson,ls1x-intc.txt to json-schema

Convert the Loongson1 interrupt controller dt-bindings to json-schema.

---
 .../loongson,ls1x-intc.txt                    | 24 ---------
 .../loongson,ls1x-intc.yaml                   | 51 +++++++++++++++++++
 2 files changed, 51 insertions(+), 24 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.txt
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.txt deleted +0 -24
deleted file mode 100644
index a63ed9fcb535..000000000000
@@ -1,24 +0,0 @@
-Loongson ls1x Interrupt Controller
-
-Required properties:
-
-- compatible : should be "loongson,ls1x-intc". Valid strings are:
-
-- reg : Specifies base physical address and size of the registers.
-- interrupt-controller : Identifies the node as an interrupt controller
-- #interrupt-cells : Specifies the number of cells needed to encode an
-  interrupt source. The value shall be 2.
-- interrupts : Specifies the CPU interrupt the controller is connected to.
-
-Example:
-
-intc: interrupt-controller@1fd01040 {
-	compatible = "loongson,ls1x-intc";
-	reg = <0x1fd01040 0x18>;
-
-	interrupt-controller;
-	#interrupt-cells = <2>;
-
-	interrupt-parent = <&cpu_intc>;
-	interrupts = <2>;
-};
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml new file +51 -0

51 lines not on this page · raw message

base-commit: 25eba1598c8e1e804c02e3a0da50782c50c11c41

Signature · 1 line
2.34.1
#1 lore raw
Quoted 46 lines · Keguang Zhang

Convert the Loongson1 interrupt controller dt-bindings to json-schema.

---
 .../loongson,ls1x-intc.txt                    | 24 ---------
 .../loongson,ls1x-intc.yaml                   | 51 +++++++++++++++++++
 2 files changed, 51 insertions(+), 24 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.txt
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.txt deleted +0 -24
deleted file mode 100644
index a63ed9fcb535..000000000000
@@ -1,24 +0,0 @@
-Loongson ls1x Interrupt Controller
-
-Required properties:
-
-- compatible : should be "loongson,ls1x-intc". Valid strings are:
-
-- reg : Specifies base physical address and size of the registers.
-- interrupt-controller : Identifies the node as an interrupt controller
-- #interrupt-cells : Specifies the number of cells needed to encode an
-  interrupt source. The value shall be 2.
-- interrupts : Specifies the CPU interrupt the controller is connected to.
-
-Example:
-
-intc: interrupt-controller@1fd01040 {
-	compatible = "loongson,ls1x-intc";
-	reg = <0x1fd01040 0x18>;
-
-	interrupt-controller;
-	#interrupt-cells = <2>;
-
-	interrupt-parent = <&cpu_intc>;
-	interrupts = <2>;
-};
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml new file +0 -0
new file mode 100644
index 000000000000..4cea3ee9fbb1

Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml line 7

Quoted 7 lines
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml new file +7 -0
@@ -0,0 +1,51 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/loongson,ls1x-intc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Loongson-1 Interrupt Controller

You changed the title, so this binding now will cover all Loonson-1 interrupt controllers?

Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml line 12

Quoted 5 lines
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml new file +5 -0
+
+maintainers:
+  - Keguang Zhang <[email protected]>
+
+description: |

Drop |

Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml line 15

Quoted 3 lines
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml new file +3 -0
+  Loongson-1 interrupt controller is connected to the MIPS core interrupt
+  controller, which controls several groups of interrupts.
+

Best regards,
Krzysztof

author maintainer
#2 lore raw
Quoted 50 lines · Krzysztof Kozlowski
Quoted 48 lines · Keguang Zhang

Convert the Loongson1 interrupt controller dt-bindings to json-schema.

---
 .../loongson,ls1x-intc.txt                    | 24 ---------
 .../loongson,ls1x-intc.yaml                   | 51 +++++++++++++++++++
 2 files changed, 51 insertions(+), 24 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.txt
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.txt deleted +0 -24
deleted file mode 100644
index a63ed9fcb535..000000000000
@@ -1,24 +0,0 @@
-Loongson ls1x Interrupt Controller
-
-Required properties:
-
-- compatible : should be "loongson,ls1x-intc". Valid strings are:
-
-- reg : Specifies base physical address and size of the registers.
-- interrupt-controller : Identifies the node as an interrupt controller
-- #interrupt-cells : Specifies the number of cells needed to encode an
-  interrupt source. The value shall be 2.
-- interrupts : Specifies the CPU interrupt the controller is connected to.
-
-Example:
-
-intc: interrupt-controller@1fd01040 {
-     compatible = "loongson,ls1x-intc";
-     reg = <0x1fd01040 0x18>;
-
-     interrupt-controller;
-     #interrupt-cells = <2>;
-
-     interrupt-parent = <&cpu_intc>;
-     interrupts = <2>;
-};
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml new file +2 -0
new file mode 100644
index 000000000000..4cea3ee9fbb1
@@ -0,0 +1,51 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
Quoted 9 lines

Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml line 7

Quoted 5 lines
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml new file +5 -0
+---
+$id: http://devicetree.org/schemas/interrupt-controller/loongson,ls1x-intc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Loongson-1 Interrupt Controller

You changed the title, so this binding now will cover all Loonson-1 interrupt controllers?

Yes.

Quoted 8 lines

Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml line 12

Quoted 5 lines
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml new file +5 -0
+
+maintainers:
+  - Keguang Zhang <[email protected]>
+
+description: |

Drop |

Will do.

Quoted 8 lines

Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml line 15

Quoted 3 lines
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml new file +3 -0
+  Loongson-1 interrupt controller is connected to the MIPS core interrupt
+  controller, which controls several groups of interrupts.
+

Best regards,
Krzysztof

--
Best regards,

Kelvin Cheung

#3 lore raw
Quoted 61 lines · Kelvin Cheung
Quoted 50 lines · Krzysztof Kozlowski
Quoted 48 lines · Keguang Zhang

Convert the Loongson1 interrupt controller dt-bindings to json-schema.

---
 .../loongson,ls1x-intc.txt                    | 24 ---------
 .../loongson,ls1x-intc.yaml                   | 51 +++++++++++++++++++
 2 files changed, 51 insertions(+), 24 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.txt
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.txt deleted +0 -24
deleted file mode 100644
index a63ed9fcb535..000000000000
@@ -1,24 +0,0 @@
-Loongson ls1x Interrupt Controller
-
-Required properties:
-
-- compatible : should be "loongson,ls1x-intc". Valid strings are:
-
-- reg : Specifies base physical address and size of the registers.
-- interrupt-controller : Identifies the node as an interrupt controller
-- #interrupt-cells : Specifies the number of cells needed to encode an
-  interrupt source. The value shall be 2.
-- interrupts : Specifies the CPU interrupt the controller is connected to.
-
-Example:
-
-intc: interrupt-controller@1fd01040 {
-     compatible = "loongson,ls1x-intc";
-     reg = <0x1fd01040 0x18>;
-
-     interrupt-controller;
-     #interrupt-cells = <2>;
-
-     interrupt-parent = <&cpu_intc>;
-     interrupts = <2>;
-};
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml new file +2 -0
new file mode 100644
index 000000000000..4cea3ee9fbb1
@@ -0,0 +1,51 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
Quoted 9 lines

Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml line 7

Quoted 5 lines
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml new file +5 -0
+---
+$id: http://devicetree.org/schemas/interrupt-controller/loongson,ls1x-intc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Loongson-1 Interrupt Controller

You changed the title, so this binding now will cover all Loonson-1 interrupt controllers?

Quoted 1 line

Yes.

OK, then with the dropped |

Best regards,
Krzysztof

author maintainer
#4 lore raw
Quoted 63 lines · Krzysztof Kozlowski
Quoted 61 lines · Kelvin Cheung
Quoted 59 lines · Krzysztof Kozlowski
Quoted 46 lines · Keguang Zhang

Convert the Loongson1 interrupt controller dt-bindings to json-schema.

---
 .../loongson,ls1x-intc.txt                    | 24 ---------
 .../loongson,ls1x-intc.yaml                   | 51 +++++++++++++++++++
 2 files changed, 51 insertions(+), 24 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.txt
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.txt deleted +0 -24
deleted file mode 100644
index a63ed9fcb535..000000000000
@@ -1,24 +0,0 @@
-Loongson ls1x Interrupt Controller
-
-Required properties:
-
-- compatible : should be "loongson,ls1x-intc". Valid strings are:
-
-- reg : Specifies base physical address and size of the registers.
-- interrupt-controller : Identifies the node as an interrupt controller
-- #interrupt-cells : Specifies the number of cells needed to encode an
-  interrupt source. The value shall be 2.
-- interrupts : Specifies the CPU interrupt the controller is connected to.
-
-Example:
-
-intc: interrupt-controller@1fd01040 {
-     compatible = "loongson,ls1x-intc";
-     reg = <0x1fd01040 0x18>;
-
-     interrupt-controller;
-     #interrupt-cells = <2>;
-
-     interrupt-parent = <&cpu_intc>;
-     interrupts = <2>;
-};
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml new file +0 -0
new file mode 100644
index 000000000000..4cea3ee9fbb1

Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml line 7

Quoted 7 lines
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml new file +7 -0
@@ -0,0 +1,51 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/loongson,ls1x-intc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Loongson-1 Interrupt Controller

You changed the title, so this binding now will cover all Loonson-1 interrupt controllers?

Quoted 4 lines
Quoted 1 line

Yes.

OK, then with the dropped |

Sorry.
Should I send the patch V2 to drop the description part?

Quoted 8 lines

Best regards,
Krzysztof

Signature · 3 lines
Best regards,

Kelvin Cheung
#5 lore raw
Quoted 65 lines · Kelvin Cheung
Quoted 63 lines · Krzysztof Kozlowski
Quoted 61 lines · Kelvin Cheung
Quoted 59 lines · Krzysztof Kozlowski
Quoted 46 lines · Keguang Zhang

Convert the Loongson1 interrupt controller dt-bindings to json-schema.

---
 .../loongson,ls1x-intc.txt                    | 24 ---------
 .../loongson,ls1x-intc.yaml                   | 51 +++++++++++++++++++
 2 files changed, 51 insertions(+), 24 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.txt
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.txt deleted +0 -24
deleted file mode 100644
index a63ed9fcb535..000000000000
@@ -1,24 +0,0 @@
-Loongson ls1x Interrupt Controller
-
-Required properties:
-
-- compatible : should be "loongson,ls1x-intc". Valid strings are:
-
-- reg : Specifies base physical address and size of the registers.
-- interrupt-controller : Identifies the node as an interrupt controller
-- #interrupt-cells : Specifies the number of cells needed to encode an
-  interrupt source. The value shall be 2.
-- interrupts : Specifies the CPU interrupt the controller is connected to.
-
-Example:
-
-intc: interrupt-controller@1fd01040 {
-     compatible = "loongson,ls1x-intc";
-     reg = <0x1fd01040 0x18>;
-
-     interrupt-controller;
-     #interrupt-cells = <2>;
-
-     interrupt-parent = <&cpu_intc>;
-     interrupts = <2>;
-};
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml new file +0 -0
new file mode 100644
index 000000000000..4cea3ee9fbb1

Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml line 7

Quoted 7 lines
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml new file +7 -0
@@ -0,0 +1,51 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/loongson,ls1x-intc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Loongson-1 Interrupt Controller

You changed the title, so this binding now will cover all Loonson-1 interrupt controllers?

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Yes.

OK, then with the dropped |

Sorry.
Should I send the patch V2 to drop the description part?

Yes, please, with my tag.

https://elixir.bootlin.com/linux/v5.17/source/Documentation/process/submitting-patches.rst#L540

Best regards,
Krzysztof

author maintainer
#6 lore raw
Quoted 67 lines · Krzysztof Kozlowski
Quoted 65 lines · Kelvin Cheung
Quoted 63 lines · Krzysztof Kozlowski
Quoted 61 lines · Kelvin Cheung
Quoted 59 lines · Krzysztof Kozlowski
Quoted 46 lines · Keguang Zhang

Convert the Loongson1 interrupt controller dt-bindings to json-schema.

---
 .../loongson,ls1x-intc.txt                    | 24 ---------
 .../loongson,ls1x-intc.yaml                   | 51 +++++++++++++++++++
 2 files changed, 51 insertions(+), 24 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.txt
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.txt deleted +0 -24
deleted file mode 100644
index a63ed9fcb535..000000000000
@@ -1,24 +0,0 @@
-Loongson ls1x Interrupt Controller
-
-Required properties:
-
-- compatible : should be "loongson,ls1x-intc". Valid strings are:
-
-- reg : Specifies base physical address and size of the registers.
-- interrupt-controller : Identifies the node as an interrupt controller
-- #interrupt-cells : Specifies the number of cells needed to encode an
-  interrupt source. The value shall be 2.
-- interrupts : Specifies the CPU interrupt the controller is connected to.
-
-Example:
-
-intc: interrupt-controller@1fd01040 {
-     compatible = "loongson,ls1x-intc";
-     reg = <0x1fd01040 0x18>;
-
-     interrupt-controller;
-     #interrupt-cells = <2>;
-
-     interrupt-parent = <&cpu_intc>;
-     interrupts = <2>;
-};
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml new file +0 -0
new file mode 100644
index 000000000000..4cea3ee9fbb1

Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml line 7

Quoted 7 lines
Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.yaml new file +7 -0
@@ -0,0 +1,51 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/loongson,ls1x-intc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Loongson-1 Interrupt Controller

You changed the title, so this binding now will cover all Loonson-1 interrupt controllers?

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Yes.

OK, then with the dropped |

Sorry.
Should I send the patch V2 to drop the description part?

Yes, please, with my tag.

Thanks for your time.

Quoted 7 lines

https://elixir.bootlin.com/linux/v5.17/source/Documentation/process/submitting-patches.rst#L540

Best regards,
Krzysztof

Signature · 3 lines
Best regards,

Kelvin Cheung