2021-02-24 08:26:01

by Álvaro Fernández Rojas

[permalink] [raw]
Subject: [PATCH v2 1/2] dt-bindings: interrupt-controller: document BCM6345 external interrupt controller

Document the binding for the BCM6345 external interrupt controller.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
Signed-off-by: Jonas Gorski <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
---
v3: pass dt_binding_check.
v2: fix title typo.

.../brcm,bcm6345-ext-intc.yaml | 78 +++++++++++++++++++
1 file changed, 78 insertions(+)
create mode 100644 Documentation/devicetree/bindings/interrupt-controller/brcm,bcm6345-ext-intc.yaml

diff --git a/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm6345-ext-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm6345-ext-intc.yaml
new file mode 100644
index 000000000000..a691510e78b7
--- /dev/null
+++ b/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm6345-ext-intc.yaml
@@ -0,0 +1,78 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/brcm,bcm6345-ext-intc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Broadcom BCM6345 external interrupt controller
+
+maintainers:
+ - Álvaro Fernández Rojas <[email protected]>
+ - Jonas Gorski <[email protected]>
+
+properties:
+ compatible:
+ enum:
+ - brcm,bcm6318-ext-intc
+ - brcm,bcm6345-ext-intc
+
+ "#interrupt-cells":
+ const: 2
+
+ reg:
+ maxItems: 1
+
+ "#address-cells":
+ const: 0
+
+ interrupt-controller: true
+
+ interrupts:
+ description: Specifies the interrupt line(s) in the interrupt-parent
+ controller node. Valid values depend on the type of parent interrupt
+ controller.
+ maxItems: 4
+
+ brcm,field-width:
+ description: Interrupt controller field width (the default is 4).
+ maxItems: 1
+ $ref: /schemas/types.yaml#/definitions/uint32
+
+required:
+ - "#address-cells"
+ - compatible
+ - reg
+ - "#interrupt-cells"
+ - interrupt-controller
+ - interrupts
+
+additionalProperties: false
+
+examples:
+ - |
+ interrupt-controller@10000018 {
+ #address-cells = <0>;
+ compatible = "brcm,bcm6345-ext-intc";
+ reg = <0x10000018 0x4>;
+
+ interrupt-parent = <&periph_intc>;
+ #interrupt-cells = <2>;
+
+ interrupt-controller;
+ interrupts = <24>, <25>, <26>, <27>;
+ };
+
+ - |
+ interrupt-controller@fffe0014 {
+ #address-cells = <0>;
+ compatible = "brcm,bcm6345-ext-intc";
+ reg = <0xfffe0014 0x4>;
+
+ interrupt-controller;
+ #interrupt-cells = <2>;
+
+ interrupt-parent = <&cpu_intc>;
+ interrupts = <3>, <4>, <5>, <6>;
+
+ brcm,field-width = <5>;
+ };
--
2.20.1


2021-03-06 20:15:58

by Rob Herring

[permalink] [raw]
Subject: Re: [PATCH v2 1/2] dt-bindings: interrupt-controller: document BCM6345 external interrupt controller

On Wed, Feb 24, 2021 at 08:56:39AM +0100, ?lvaro Fern?ndez Rojas wrote:
> Document the binding for the BCM6345 external interrupt controller.
>
> Signed-off-by: ?lvaro Fern?ndez Rojas <[email protected]>
> Signed-off-by: Jonas Gorski <[email protected]>
> Reviewed-by: Florian Fainelli <[email protected]>
> ---
> v3: pass dt_binding_check.
> v2: fix title typo.
>
> .../brcm,bcm6345-ext-intc.yaml | 78 +++++++++++++++++++
> 1 file changed, 78 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/interrupt-controller/brcm,bcm6345-ext-intc.yaml
>
> diff --git a/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm6345-ext-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm6345-ext-intc.yaml
> new file mode 100644
> index 000000000000..a691510e78b7
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm6345-ext-intc.yaml
> @@ -0,0 +1,78 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/interrupt-controller/brcm,bcm6345-ext-intc.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Broadcom BCM6345 external interrupt controller
> +
> +maintainers:
> + - ?lvaro Fern?ndez Rojas <[email protected]>
> + - Jonas Gorski <[email protected]>
> +
> +properties:
> + compatible:
> + enum:
> + - brcm,bcm6318-ext-intc
> + - brcm,bcm6345-ext-intc
> +
> + "#interrupt-cells":
> + const: 2
> +
> + reg:
> + maxItems: 1
> +
> + "#address-cells":
> + const: 0
> +
> + interrupt-controller: true
> +
> + interrupts:
> + description: Specifies the interrupt line(s) in the interrupt-parent
> + controller node. Valid values depend on the type of parent interrupt
> + controller.
> + maxItems: 4
> +
> + brcm,field-width:
> + description: Interrupt controller field width (the default is 4).

default: 4

> + maxItems: 1

All uint32's are 1 item.

What's the set or range of values?

> + $ref: /schemas/types.yaml#/definitions/uint32
> +
> +required:
> + - "#address-cells"
> + - compatible
> + - reg
> + - "#interrupt-cells"
> + - interrupt-controller
> + - interrupts
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + interrupt-controller@10000018 {
> + #address-cells = <0>;
> + compatible = "brcm,bcm6345-ext-intc";
> + reg = <0x10000018 0x4>;
> +
> + interrupt-parent = <&periph_intc>;
> + #interrupt-cells = <2>;
> +
> + interrupt-controller;
> + interrupts = <24>, <25>, <26>, <27>;
> + };
> +
> + - |
> + interrupt-controller@fffe0014 {
> + #address-cells = <0>;
> + compatible = "brcm,bcm6345-ext-intc";
> + reg = <0xfffe0014 0x4>;
> +
> + interrupt-controller;
> + #interrupt-cells = <2>;
> +
> + interrupt-parent = <&cpu_intc>;
> + interrupts = <3>, <4>, <5>, <6>;
> +
> + brcm,field-width = <5>;
> + };
> --
> 2.20.1
>

2021-03-07 10:27:59

by Álvaro Fernández Rojas

[permalink] [raw]
Subject: Re: [PATCH v2 1/2] dt-bindings: interrupt-controller: document BCM6345 external interrupt controller

Hi Rob,

El 06/03/2021 a las 21:14, Rob Herring escribió:
> On Wed, Feb 24, 2021 at 08:56:39AM +0100, Álvaro Fernández Rojas wrote:
>> Document the binding for the BCM6345 external interrupt controller.
>>
>> Signed-off-by: Álvaro Fernández Rojas <[email protected]>
>> Signed-off-by: Jonas Gorski <[email protected]>
>> Reviewed-by: Florian Fainelli <[email protected]>
>> ---
>> v3: pass dt_binding_check.
>> v2: fix title typo.
>>
>> .../brcm,bcm6345-ext-intc.yaml | 78 +++++++++++++++++++
>> 1 file changed, 78 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/interrupt-controller/brcm,bcm6345-ext-intc.yaml
>>
>> diff --git a/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm6345-ext-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm6345-ext-intc.yaml
>> new file mode 100644
>> index 000000000000..a691510e78b7
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm6345-ext-intc.yaml
>> @@ -0,0 +1,78 @@
>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/interrupt-controller/brcm,bcm6345-ext-intc.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: Broadcom BCM6345 external interrupt controller
>> +
>> +maintainers:
>> + - Álvaro Fernández Rojas <[email protected]>
>> + - Jonas Gorski <[email protected]>
>> +
>> +properties:
>> + compatible:
>> + enum:
>> + - brcm,bcm6318-ext-intc
>> + - brcm,bcm6345-ext-intc
>> +
>> + "#interrupt-cells":
>> + const: 2
>> +
>> + reg:
>> + maxItems: 1
>> +
>> + "#address-cells":
>> + const: 0
>> +
>> + interrupt-controller: true
>> +
>> + interrupts:
>> + description: Specifies the interrupt line(s) in the interrupt-parent
>> + controller node. Valid values depend on the type of parent interrupt
>> + controller.
>> + maxItems: 4
>> +
>> + brcm,field-width:
>> + description: Interrupt controller field width (the default is 4).
>
> default: 4
>
>> + maxItems: 1
>
> All uint32's are 1 item.

Ok, so I should remove this :)

>
> What's the set or range of values?

Only BCM6348 needs to set this value to 5, other BCM63xx use the default
value of 4 (BCM3368, BCM6318, BCM6328, BCM6338, BCM6345, BCM6358,
BCM6362, BCM6368, BCM63268).

>
>> + $ref: /schemas/types.yaml#/definitions/uint32
>> +
>> +required:
>> + - "#address-cells"
>> + - compatible
>> + - reg
>> + - "#interrupt-cells"
>> + - interrupt-controller
>> + - interrupts
>> +
>> +additionalProperties: false
>> +
>> +examples:
>> + - |
>> + interrupt-controller@10000018 {
>> + #address-cells = <0>;
>> + compatible = "brcm,bcm6345-ext-intc";
>> + reg = <0x10000018 0x4>;
>> +
>> + interrupt-parent = <&periph_intc>;
>> + #interrupt-cells = <2>;
>> +
>> + interrupt-controller;
>> + interrupts = <24>, <25>, <26>, <27>;
>> + };
>> +
>> + - |
>> + interrupt-controller@fffe0014 {
>> + #address-cells = <0>;
>> + compatible = "brcm,bcm6345-ext-intc";
>> + reg = <0xfffe0014 0x4>;
>> +
>> + interrupt-controller;
>> + #interrupt-cells = <2>;
>> +
>> + interrupt-parent = <&cpu_intc>;
>> + interrupts = <3>, <4>, <5>, <6>;
>> +
>> + brcm,field-width = <5>;
>> + };
>> --
>> 2.20.1
>>

Best regards,
Álvaro.

2021-03-10 17:26:00

by Rob Herring

[permalink] [raw]
Subject: Re: [PATCH v2 1/2] dt-bindings: interrupt-controller: document BCM6345 external interrupt controller

On Sun, Mar 7, 2021 at 3:12 AM Álvaro Fernández Rojas <[email protected]> wrote:
>
> Hi Rob,
>
> El 06/03/2021 a las 21:14, Rob Herring escribió:
> > On Wed, Feb 24, 2021 at 08:56:39AM +0100, Álvaro Fernández Rojas wrote:
> >> Document the binding for the BCM6345 external interrupt controller.
> >>
> >> Signed-off-by: Álvaro Fernández Rojas <[email protected]>
> >> Signed-off-by: Jonas Gorski <[email protected]>
> >> Reviewed-by: Florian Fainelli <[email protected]>
> >> ---
> >> v3: pass dt_binding_check.
> >> v2: fix title typo.
> >>
> >> .../brcm,bcm6345-ext-intc.yaml | 78 +++++++++++++++++++
> >> 1 file changed, 78 insertions(+)
> >> create mode 100644 Documentation/devicetree/bindings/interrupt-controller/brcm,bcm6345-ext-intc.yaml
> >>
> >> diff --git a/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm6345-ext-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm6345-ext-intc.yaml
> >> new file mode 100644
> >> index 000000000000..a691510e78b7
> >> --- /dev/null
> >> +++ b/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm6345-ext-intc.yaml
> >> @@ -0,0 +1,78 @@
> >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> >> +%YAML 1.2
> >> +---
> >> +$id: http://devicetree.org/schemas/interrupt-controller/brcm,bcm6345-ext-intc.yaml#
> >> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> >> +
> >> +title: Broadcom BCM6345 external interrupt controller
> >> +
> >> +maintainers:
> >> + - Álvaro Fernández Rojas <[email protected]>
> >> + - Jonas Gorski <[email protected]>
> >> +
> >> +properties:
> >> + compatible:
> >> + enum:
> >> + - brcm,bcm6318-ext-intc
> >> + - brcm,bcm6345-ext-intc
> >> +
> >> + "#interrupt-cells":
> >> + const: 2
> >> +
> >> + reg:
> >> + maxItems: 1
> >> +
> >> + "#address-cells":
> >> + const: 0
> >> +
> >> + interrupt-controller: true
> >> +
> >> + interrupts:
> >> + description: Specifies the interrupt line(s) in the interrupt-parent
> >> + controller node. Valid values depend on the type of parent interrupt
> >> + controller.
> >> + maxItems: 4
> >> +
> >> + brcm,field-width:
> >> + description: Interrupt controller field width (the default is 4).
> >
> > default: 4
> >
> >> + maxItems: 1
> >
> > All uint32's are 1 item.
>
> Ok, so I should remove this :)
>
> >
> > What's the set or range of values?
>
> Only BCM6348 needs to set this value to 5, other BCM63xx use the default
> value of 4 (BCM3368, BCM6318, BCM6328, BCM6338, BCM6345, BCM6358,
> BCM6362, BCM6368, BCM63268).

So:

enum: [ 4, 5 ]