Commit 9a8e2ae7 authored by Lokesh Vutla's avatar Lokesh Vutla Committed by Marc Zyngier

dt-bindings: irqchip: ti, sci-intr: Update bindings to drop the usage of gic as parent

Drop the firmware related dt-bindings and use the hardware specified
interrupt numbers within Interrupt Router. This ensures interrupt router
DT node need not assume any interrupt parent type.
Signed-off-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20200806074826.24607-5-lokeshvutla@ti.com
parent 53bf2b0e
...@@ -44,15 +44,17 @@ Required Properties: ...@@ -44,15 +44,17 @@ Required Properties:
4: If intr supports level triggered interrupts. 4: If intr supports level triggered interrupts.
- interrupt-controller: Identifies the node as an interrupt controller - interrupt-controller: Identifies the node as an interrupt controller
- #interrupt-cells: Specifies the number of cells needed to encode an - #interrupt-cells: Specifies the number of cells needed to encode an
interrupt source. The value should be 2. interrupt source. The value should be 1.
First cell should contain the TISCI device ID of source First cell should contain interrupt router input number
Second cell should contain the interrupt source offset as specified by hardware.
within the device.
- ti,sci: Phandle to TI-SCI compatible System controller node. - ti,sci: Phandle to TI-SCI compatible System controller node.
- ti,sci-dst-id: TISCI device ID of the destination IRQ controller. - ti,sci-dev-id: TISCI device id of interrupt controller.
- ti,sci-rm-range-girq: Array of TISCI subtype ids representing the host irqs - ti,interrupt-ranges: Set of triplets containing ranges that convert
assigned to this interrupt router. Each subtype id the INTR output interrupt numbers to parent's
corresponds to a range of host irqs. interrupt number. Each triplet has following entries:
- First entry specifies the base for intr output irq
- Second entry specifies the base for parent irqs
- Third entry specifies the limit
For more details on TISCI IRQ resource management refer: For more details on TISCI IRQ resource management refer:
https://downloads.ti.com/tisci/esd/latest/2_tisci_msgs/rm/rm_irq.html https://downloads.ti.com/tisci/esd/latest/2_tisci_msgs/rm/rm_irq.html
...@@ -62,21 +64,20 @@ Example: ...@@ -62,21 +64,20 @@ Example:
The following example demonstrates both interrupt router node and the consumer The following example demonstrates both interrupt router node and the consumer
node(main gpio) on the AM654 SoC: node(main gpio) on the AM654 SoC:
main_intr: interrupt-controller0 { main_gpio_intr: interrupt-controller0 {
compatible = "ti,sci-intr"; compatible = "ti,sci-intr";
ti,intr-trigger-type = <1>; ti,intr-trigger-type = <1>;
interrupt-controller; interrupt-controller;
interrupt-parent = <&gic500>; interrupt-parent = <&gic500>;
#interrupt-cells = <2>; #interrupt-cells = <1>;
ti,sci = <&dmsc>; ti,sci = <&dmsc>;
ti,sci-dst-id = <56>; ti,sci-dev-id = <131>;
ti,sci-rm-range-girq = <0x1>; ti,interrupt-ranges = <0 360 32>;
}; };
main_gpio0: gpio@600000 { main_gpio0: gpio@600000 {
... ...
interrupt-parent = <&main_intr>; interrupt-parent = <&main_gpio_intr>;
interrupts = <57 256>, <57 257>, <57 258>, interrupts = <192>, <193>, <194>, <195>, <196>, <197>;
<57 259>, <57 260>, <57 261>;
... ...
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment