Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: interrupt-controller: Convert Broadcom STB L2 to YAML

Convert the Broadcom STB L2 generic Level 2 interrupt controller Device
Tree binding to YAML to help with validation.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20211208003727.3596577-10-f.fainelli@gmail.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Florian Fainelli and committed by
Rob Herring
539d25b2 4102cf16

+72 -31
-31
Documentation/devicetree/bindings/interrupt-controller/brcm,l2-intc.txt
··· 1 - Broadcom Generic Level 2 Interrupt Controller 2 - 3 - Required properties: 4 - 5 - - compatible: should be one of: 6 - "brcm,hif-spi-l2-intc" or 7 - "brcm,upg-aux-aon-l2-intc" or 8 - "brcm,l2-intc" for latched interrupt controllers 9 - should be "brcm,bcm7271-l2-intc" for level interrupt controllers 10 - - reg: specifies the base physical address and size of the registers 11 - - interrupt-controller: identifies the node as an interrupt controller 12 - - #interrupt-cells: specifies the number of cells needed to encode an 13 - interrupt source. Should be 1. 14 - - interrupts: specifies the interrupt line in the interrupt-parent irq space 15 - to be used for cascading 16 - 17 - Optional properties: 18 - 19 - - brcm,irq-can-wake: If present, this means the L2 controller can be used as a 20 - wakeup source for system suspend/resume. 21 - 22 - Example: 23 - 24 - hif_intr2_intc: interrupt-controller@f0441000 { 25 - compatible = "brcm,l2-intc"; 26 - reg = <0xf0441000 0x30>; 27 - interrupt-controller; 28 - #interrupt-cells = <1>; 29 - interrupt-parent = <&intc>; 30 - interrupts = <0x0 0x20 0x0>; 31 - };
+72
Documentation/devicetree/bindings/interrupt-controller/brcm,l2-intc.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/interrupt-controller/brcm,l2-intc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Broadcom Generic Level 2 Interrupt Controller 8 + 9 + maintainers: 10 + - Florian Fainelli <f.fainelli@gmail.com> 11 + 12 + allOf: 13 + - $ref: /schemas/interrupt-controller.yaml# 14 + 15 + properties: 16 + compatible: 17 + oneOf: 18 + - items: 19 + - enum: 20 + - brcm,hif-spi-l2-intc 21 + - brcm,upg-aux-aon-l2-intc 22 + - const: brcm,l2-intc 23 + - items: 24 + - enum: 25 + - brcm,bcm2711-l2-intc 26 + - const: brcm,l2-intc 27 + - items: 28 + - const: brcm,bcm7271-l2-intc 29 + - items: 30 + - const: brcm,l2-intc 31 + 32 + reg: 33 + maxItems: 1 34 + description: > 35 + Specifies the base physical address and size of the registers 36 + 37 + interrupt-controller: true 38 + 39 + "#interrupt-cells": 40 + const: 1 41 + 42 + interrupts: 43 + maxItems: 1 44 + 45 + interrupt-names: 46 + maxItems: 1 47 + 48 + brcm,irq-can-wake: 49 + type: boolean 50 + description: > 51 + If present, this means the L2 controller can be used as a wakeup source 52 + for system suspend/resume. 53 + 54 + additionalProperties: false 55 + 56 + required: 57 + - compatible 58 + - reg 59 + - interrupt-controller 60 + - "#interrupt-cells" 61 + - interrupts 62 + 63 + examples: 64 + - | 65 + hif_intr2_intc: interrupt-controller@f0441000 { 66 + compatible = "brcm,l2-intc"; 67 + reg = <0xf0441000 0x30>; 68 + interrupt-controller; 69 + #interrupt-cells = <1>; 70 + interrupt-parent = <&intc>; 71 + interrupts = <0x0 0x20 0x0>; 72 + };