xref: /freebsd-src/sys/contrib/device-tree/Bindings/interrupt-controller/brcm,bcm7038-l1-intc.yaml (revision e67e85659c0de33e617e5fbf1028c6e8b49eee53)
1*e67e8565SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*e67e8565SEmmanuel Vadot%YAML 1.2
3*e67e8565SEmmanuel Vadot---
4*e67e8565SEmmanuel Vadot$id: http://devicetree.org/schemas/interrupt-controller/brcm,bcm7038-l1-intc.yaml#
5*e67e8565SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*e67e8565SEmmanuel Vadot
7*e67e8565SEmmanuel Vadottitle: Broadcom BCM7038-style Level 1 interrupt controller
8*e67e8565SEmmanuel Vadot
9*e67e8565SEmmanuel Vadotdescription: >
10*e67e8565SEmmanuel Vadot  This block is a first level interrupt controller that is typically connected
11*e67e8565SEmmanuel Vadot  directly to one of the HW INT lines on each CPU.  Every BCM7xxx set-top chip
12*e67e8565SEmmanuel Vadot  since BCM7038 has contained this hardware.
13*e67e8565SEmmanuel Vadot
14*e67e8565SEmmanuel Vadot  Key elements of the hardware design include:
15*e67e8565SEmmanuel Vadot
16*e67e8565SEmmanuel Vadot   - 64, 96, 128, or 160 incoming level IRQ lines
17*e67e8565SEmmanuel Vadot
18*e67e8565SEmmanuel Vadot   - Most onchip peripherals are wired directly to an L1 input
19*e67e8565SEmmanuel Vadot
20*e67e8565SEmmanuel Vadot   - A separate instance of the register set for each CPU, allowing individual
21*e67e8565SEmmanuel Vadot     peripheral IRQs to be routed to any CPU
22*e67e8565SEmmanuel Vadot
23*e67e8565SEmmanuel Vadot   - Atomic mask/unmask operations
24*e67e8565SEmmanuel Vadot
25*e67e8565SEmmanuel Vadot   - No polarity/level/edge settings
26*e67e8565SEmmanuel Vadot
27*e67e8565SEmmanuel Vadot   - No FIFO or priority encoder logic; software is expected to read all
28*e67e8565SEmmanuel Vadot     2-5 status words to determine which IRQs are pending
29*e67e8565SEmmanuel Vadot
30*e67e8565SEmmanuel Vadot   If multiple reg ranges and interrupt-parent entries are present on an SMP
31*e67e8565SEmmanuel Vadot   system, the driver will allow IRQ SMP affinity to be set up through the
32*e67e8565SEmmanuel Vadot   /proc/irq/ interface.  In the simplest possible configuration, only one
33*e67e8565SEmmanuel Vadot   reg range and one interrupt-parent is needed.
34*e67e8565SEmmanuel Vadot
35*e67e8565SEmmanuel Vadotmaintainers:
36*e67e8565SEmmanuel Vadot  - Florian Fainelli <f.fainelli@gmail.com>
37*e67e8565SEmmanuel Vadot
38*e67e8565SEmmanuel VadotallOf:
39*e67e8565SEmmanuel Vadot  - $ref: /schemas/interrupt-controller.yaml#
40*e67e8565SEmmanuel Vadot
41*e67e8565SEmmanuel Vadotproperties:
42*e67e8565SEmmanuel Vadot  compatible:
43*e67e8565SEmmanuel Vadot    const: brcm,bcm7038-l1-intc
44*e67e8565SEmmanuel Vadot
45*e67e8565SEmmanuel Vadot  reg:
46*e67e8565SEmmanuel Vadot    description: >
47*e67e8565SEmmanuel Vadot      Specifies the base physical address and size of the registers
48*e67e8565SEmmanuel Vadot      the number of supported IRQs is inferred from the size argument
49*e67e8565SEmmanuel Vadot
50*e67e8565SEmmanuel Vadot  interrupt-controller: true
51*e67e8565SEmmanuel Vadot
52*e67e8565SEmmanuel Vadot  "#interrupt-cells":
53*e67e8565SEmmanuel Vadot    const: 1
54*e67e8565SEmmanuel Vadot
55*e67e8565SEmmanuel Vadot  interrupts:
56*e67e8565SEmmanuel Vadot    description: >
57*e67e8565SEmmanuel Vadot     Specifies the interrupt line(s) in the interrupt-parent controller node;
58*e67e8565SEmmanuel Vadot     valid values depend on the type of parent interrupt controller
59*e67e8565SEmmanuel Vadot
60*e67e8565SEmmanuel Vadot  brcm,irq-can-wake:
61*e67e8565SEmmanuel Vadot    type: boolean
62*e67e8565SEmmanuel Vadot    description: >
63*e67e8565SEmmanuel Vadot      If present, this means the L1 controller can be used as a
64*e67e8565SEmmanuel Vadot      wakeup source for system suspend/resume.
65*e67e8565SEmmanuel Vadot
66*e67e8565SEmmanuel Vadot  brcm,int-fwd-mask:
67*e67e8565SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32-array
68*e67e8565SEmmanuel Vadot    description:
69*e67e8565SEmmanuel Vadot      If present, a bit mask to indicate which interrupts have already been
70*e67e8565SEmmanuel Vadot      configured by the firmware and should be left unmanaged. This should
71*e67e8565SEmmanuel Vadot      have one 32-bit word per status/set/clear/mask group.
72*e67e8565SEmmanuel Vadot
73*e67e8565SEmmanuel Vadotrequired:
74*e67e8565SEmmanuel Vadot  - compatible
75*e67e8565SEmmanuel Vadot  - reg
76*e67e8565SEmmanuel Vadot  - interrupt-controller
77*e67e8565SEmmanuel Vadot  - "#interrupt-cells"
78*e67e8565SEmmanuel Vadot  - interrupts
79*e67e8565SEmmanuel Vadot
80*e67e8565SEmmanuel VadotadditionalProperties: false
81*e67e8565SEmmanuel Vadot
82*e67e8565SEmmanuel Vadotexamples:
83*e67e8565SEmmanuel Vadot  - |
84*e67e8565SEmmanuel Vadot    periph_intc: interrupt-controller@1041a400 {
85*e67e8565SEmmanuel Vadot      compatible = "brcm,bcm7038-l1-intc";
86*e67e8565SEmmanuel Vadot      reg = <0x1041a400 0x30>, <0x1041a600 0x30>;
87*e67e8565SEmmanuel Vadot      interrupt-controller;
88*e67e8565SEmmanuel Vadot      #interrupt-cells = <1>;
89*e67e8565SEmmanuel Vadot      interrupt-parent = <&cpu_intc>;
90*e67e8565SEmmanuel Vadot      interrupts = <2>, <3>;
91*e67e8565SEmmanuel Vadot    };
92