* [PATCH v2] dt-bindings: interrupt-controller: add Ralink SoCs interrupt controller @ 2023-06-22 11:04 Sergio Paracuellos 2023-06-22 19:14 ` Conor Dooley 0 siblings, 1 reply; 3+ messages in thread From: Sergio Paracuellos @ 2023-06-22 11:04 UTC (permalink / raw) To: devicetree Cc: tglx, maz, robh+dt, krzysztof.kozlowski+dt, conor+dt, linux-kernel Add YAML doc for the interrupt controller which is present on Ralink SoCs. Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> --- 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 diff --git a/Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml new file mode 100644 index 000000000000..533d6d03aa75 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml @@ -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 <sergio.paracuellos@gmail.com> + +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>; + }; +... -- 2.25.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] dt-bindings: interrupt-controller: add Ralink SoCs interrupt controller 2023-06-22 11:04 [PATCH v2] dt-bindings: interrupt-controller: add Ralink SoCs interrupt controller Sergio Paracuellos @ 2023-06-22 19:14 ` Conor Dooley 2023-06-23 3:54 ` Sergio Paracuellos 0 siblings, 1 reply; 3+ messages in thread From: Conor Dooley @ 2023-06-22 19:14 UTC (permalink / raw) To: Sergio Paracuellos Cc: devicetree, tglx, maz, robh+dt, krzysztof.kozlowski+dt, conor+dt, linux-kernel [-- Attachment #1: Type: text/plain, Size: 2586 bytes --] On Thu, Jun 22, 2023 at 01:04:51PM +0200, Sergio Paracuellos wrote: > Add YAML doc for the interrupt controller which is present on Ralink SoCs. > > Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> > --- > 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 > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml > new file mode 100644 > index 000000000000..533d6d03aa75 > --- /dev/null > +++ b/Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml > @@ -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 <sergio.paracuellos@gmail.com> > + > +allOf: > + - $ref: /schemas/interrupt-controller.yaml# > + > +description: | FWIW, you don't need a | unless you have some formatting to preserve. > + 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 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 Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Cheers, Conor. > + > +examples: > + - | > + interrupt-controller@200 { > + compatible = "ralink,rt2880-intc"; > + reg = <0x200 0x100>; > + interrupt-controller; > + #interrupt-cells = <1>; > + > + interrupt-parent = <&cpuintc>; > + interrupts = <2>; > + }; > +... > -- > 2.25.1 > [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] dt-bindings: interrupt-controller: add Ralink SoCs interrupt controller 2023-06-22 19:14 ` Conor Dooley @ 2023-06-23 3:54 ` Sergio Paracuellos 0 siblings, 0 replies; 3+ messages in thread From: Sergio Paracuellos @ 2023-06-23 3:54 UTC (permalink / raw) To: Conor Dooley Cc: devicetree, tglx, maz, robh+dt, krzysztof.kozlowski+dt, conor+dt, linux-kernel Hi Conor, On Thu, Jun 22, 2023 at 9:14 PM Conor Dooley <conor@kernel.org> wrote: > > On Thu, Jun 22, 2023 at 01:04:51PM +0200, Sergio Paracuellos wrote: > > Add YAML doc for the interrupt controller which is present on Ralink SoCs. > > > > Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> > > --- > > 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 > > > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml > > new file mode 100644 > > index 000000000000..533d6d03aa75 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/interrupt-controller/ralink,rt2880-intc.yaml > > @@ -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 <sergio.paracuellos@gmail.com> > > + > > +allOf: > > + - $ref: /schemas/interrupt-controller.yaml# > > + > > +description: | > > FWIW, you don't need a | unless you have some formatting to preserve. True. Will drop, then. > > > + 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 > > 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. > > If your intention was only to allow interrupt-controller, with > s/unevaluated/additional/ you can add > Reviewed-by: Conor Dooley <conor.dooley@microchip.com> I will fix these two minor things and send v3 with your Reviewed-by added, thanks. Best regards, Sergio Paracuellos > > Cheers, > Conor. > > > + > > +examples: > > + - | > > + interrupt-controller@200 { > > + compatible = "ralink,rt2880-intc"; > > + reg = <0x200 0x100>; > > + interrupt-controller; > > + #interrupt-cells = <1>; > > + > > + interrupt-parent = <&cpuintc>; > > + interrupts = <2>; > > + }; > > +... > > -- > > 2.25.1 > > ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-06-23 3:54 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-06-22 11:04 [PATCH v2] dt-bindings: interrupt-controller: add Ralink SoCs interrupt controller Sergio Paracuellos 2023-06-22 19:14 ` Conor Dooley 2023-06-23 3:54 ` Sergio Paracuellos
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox