diff options
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/devicetree/bindings/interrupt-controller/cdns,xtensa-mx.txt | 18 | ||||
| -rw-r--r-- | Documentation/devicetree/bindings/interrupt-controller/cdns,xtensa-pic.txt | 25 |
2 files changed, 43 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/interrupt-controller/cdns,xtensa-mx.txt b/Documentation/devicetree/bindings/interrupt-controller/cdns,xtensa-mx.txt new file mode 100644 index 000000000000..d4de980e55fa --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/cdns,xtensa-mx.txt | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | * Xtensa Interrupt Distributor and Programmable Interrupt Controller (MX) | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible: Should be "cdns,xtensa-mx". | ||
| 5 | |||
| 6 | Remaining properties have exact same meaning as in Xtensa PIC | ||
| 7 | (see cdns,xtensa-pic.txt). | ||
| 8 | |||
| 9 | Examples: | ||
| 10 | pic: pic { | ||
| 11 | compatible = "cdns,xtensa-mx"; | ||
| 12 | /* one cell: internal irq number, | ||
| 13 | * two cells: second cell == 0: internal irq number | ||
| 14 | * second cell == 1: external irq number | ||
| 15 | */ | ||
| 16 | #interrupt-cells = <2>; | ||
| 17 | interrupt-controller; | ||
| 18 | }; | ||
diff --git a/Documentation/devicetree/bindings/interrupt-controller/cdns,xtensa-pic.txt b/Documentation/devicetree/bindings/interrupt-controller/cdns,xtensa-pic.txt new file mode 100644 index 000000000000..026ef4cfc1d5 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/cdns,xtensa-pic.txt | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | * Xtensa built-in Programmable Interrupt Controller (PIC) | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible: Should be "cdns,xtensa-pic". | ||
| 5 | - interrupt-controller: Identifies the node as an interrupt controller. | ||
| 6 | - #interrupt-cells: The number of cells to define the interrupts. | ||
| 7 | It may be either 1 or 2. | ||
| 8 | When it's 1, the first cell is the internal IRQ number. | ||
| 9 | When it's 2, the first cell is the IRQ number, and the second cell | ||
| 10 | specifies whether it's internal (0) or external (1). | ||
| 11 | Periferals are usually connected to a fixed external IRQ, but for different | ||
| 12 | core variants it may be mapped to different internal IRQ. | ||
| 13 | IRQ sensitivity and priority are fixed for each core variant and may not be | ||
| 14 | changed at runtime. | ||
| 15 | |||
| 16 | Examples: | ||
| 17 | pic: pic { | ||
| 18 | compatible = "cdns,xtensa-pic"; | ||
| 19 | /* one cell: internal irq number, | ||
| 20 | * two cells: second cell == 0: internal irq number | ||
| 21 | * second cell == 1: external irq number | ||
| 22 | */ | ||
| 23 | #interrupt-cells = <2>; | ||
| 24 | interrupt-controller; | ||
| 25 | }; | ||
