Skip to contentSkip to conversation

dt-bindings: interrupt-controller: add Ralink SoCs interrupt controller

PATCH Superseded Sergio Paracuellos 2 participants 3 messages Jun 22, 2023 – Jun 23, 2023

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dt-bindings: interrupt-controller: add Ralink SoCs interrupt controller

Add YAML doc for the interrupt controller which is present on Ralink SoCs.

---
Changes in v2:
- Drop label from the example.

 .../ralink,rt2880-intc.yaml                   | 54 +++++++++++++++++++
 1 file changed, 54 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml
Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml new file +54 -0
new file mode 100644
index 000000000000..533d6d03aa75
@@ -0,0 +1,54 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/ralink,rt2880-intc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Ralink SoCs Interrupt Controller
+
+maintainers:
+  - Sergio Paracuellos <[email protected]>
+
+allOf:
+  - $ref: /schemas/interrupt-controller.yaml#
+
+description: |
+  This interrupt controller support a central point for interrupt aggregation
+  for platform related blocks.
+
+properties:
+  compatible:
+    const: ralink,rt2880-intc
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  interrupt-controller: true
+
+  '#interrupt-cells':
+    const: 1
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - interrupt-controller
+  - '#interrupt-cells'
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    interrupt-controller@200 {
+      compatible = "ralink,rt2880-intc";
+      reg = <0x200 0x100>;
+      interrupt-controller;
+      #interrupt-cells = <1>;
+
+      interrupt-parent = <&cpuintc>;
+      interrupts = <2>;
+    };
+...
Signature · 1 line
2.25.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 22 lines · Sergio Paracuellos

Add YAML doc for the interrupt controller which is present on Ralink SoCs.

---
Changes in v2:
- Drop label from the example.

 .../ralink,rt2880-intc.yaml                   | 54 +++++++++++++++++++
 1 file changed, 54 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml
Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml new file +5 -0
new file mode 100644
index 000000000000..533d6d03aa75
@@ -0,0 +1,54 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/ralink,rt2880-intc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#

Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml line 15

Quoted 10 lines
Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml new file +10 -0
+
+title: Ralink SoCs Interrupt Controller
+
+maintainers:
+  - Sergio Paracuellos <[email protected]>
+
+allOf:
+  - $ref: /schemas/interrupt-controller.yaml#
+
+description: |

FWIW, you don't need a | unless you have some formatting to preserve.

Quoted 16 lines
Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml new file +16 -0
+  This interrupt controller support a central point for interrupt aggregation
+  for platform related blocks.
+
+properties:
+  compatible:
+    const: ralink,rt2880-intc
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  interrupt-controller: true
+
+  '#interrupt-cells':

Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml line 41

Quoted 10 lines
Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml new file +10 -0
+    const: 1
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - interrupt-controller
+  - '#interrupt-cells'
+
+unevaluatedProperties: false

You explicitly allow two properties from interrupt-controller.yaml, so it seems like this should actually be additionalProperties: false to block things like interrupt-map etc?

If your intention was only to allow interrupt-controller, with s/unevaluated/additional/ you can add

Cheers,
Conor.

Quoted 16 lines
Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml new file +13 -0
+
+examples:
+  - |
+    interrupt-controller@200 {
+      compatible = "ralink,rt2880-intc";
+      reg = <0x200 0x100>;
+      interrupt-controller;
+      #interrupt-cells = <1>;
+
+      interrupt-parent = <&cpuintc>;
+      interrupts = <2>;
+    };
+...
Signature · 1 line
2.25.1
#2 lore raw

Hi Conor,

Quoted 28 lines · Conor Dooley
Quoted 26 lines · Sergio Paracuellos

Add YAML doc for the interrupt controller which is present on Ralink SoCs.

---
Changes in v2:
- Drop label from the example.

 .../ralink,rt2880-intc.yaml                   | 54 +++++++++++++++++++
 1 file changed, 54 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml
Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml new file +9 -0
new file mode 100644
index 000000000000..533d6d03aa75
@@ -0,0 +1,54 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/ralink,rt2880-intc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Ralink SoCs Interrupt Controller
+
+maintainers:
Quoted 8 lines

Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml line 15

Quoted 6 lines
Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml new file +6 -0
+  - Sergio Paracuellos <[email protected]>
+
+allOf:
+  - $ref: /schemas/interrupt-controller.yaml#
+
+description: |

FWIW, you don't need a | unless you have some formatting to preserve.

True. Will drop, then.

Quoted 23 lines
Quoted 23 lines
Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml new file +22 -0
+  This interrupt controller support a central point for interrupt aggregation
+  for platform related blocks.
+
+properties:
+  compatible:
+    const: ralink,rt2880-intc
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  interrupt-controller: true
+
+  '#interrupt-cells':
+    const: 1
+
+required:
+  - compatible
+  - reg
+  - interrupts
Quoted 8 lines

Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml line 41

Quoted 4 lines
Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml new file +4 -0
+  - interrupt-controller
+  - '#interrupt-cells'
+
+unevaluatedProperties: false

You explicitly allow two properties from interrupt-controller.yaml, so it seems like this should actually be additionalProperties: false to block things like interrupt-map etc?

Yes, this should be additionalProperties.

Quoted 4 lines

If your intention was only to allow interrupt-controller, with s/unevaluated/additional/ you can add

I will fix these two minor things and send v3 with your Reviewed-by added, thanks.

Best regards,
Sergio Paracuellos

Quoted 20 lines

Cheers,
Conor.

Quoted 16 lines
Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml new file +13 -1
+
+examples:
+  - |
+    interrupt-controller@200 {
+      compatible = "ralink,rt2880-intc";
+      reg = <0x200 0x100>;
+      interrupt-controller;
+      #interrupt-cells = <1>;
+
+      interrupt-parent = <&cpuintc>;
+      interrupts = <2>;
+    };
+...
--

2.25.1