Freescale Layerscape External Interrupt Controller
Schema identifier ($id): "http://devicetree.org/schemas/interrupt-controller/fsl,ls-extirq.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>"
Some Layerscape SOCs (LS1021A, LS1043A, LS1046A LS1088A, LS208xA, LX216xA) support inverting the polarity of certain external interrupt lines.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"fsl,ls1021a-extirq","fsl,ls1043a-extirq","fsl,ls1088a-extirq"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,ls1043a-extirq"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,ls2080a-extirq","fsl,lx2160a-extirq"Item 2
Exact value (
const):"fsl,ls1088a-extirq"
#interrupt-cells — required here #
Exact value (const): 2
#address-cells — required here #
Exact value (const): 0
interrupt-controller — required here #
true — No constraints added by this property rule.
reg — required here #
Maximum number of items (maxItems): 1
Specifies the Interrupt Polarity Control Register (INTPCR) in the SCFG or the External Interrupt Control Register (IRQCR) in the ISC.
interrupt-map — required here #
Specifies the mapping from external interrupts to GIC interrupts.
interrupt-map-mask — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "#interrupt-cells", "#address-cells", "interrupt-controller", "reg", "interrupt-map", "interrupt-map-mask"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
interrupt-map— not listed as required hereMinimum number of items (
minItems):6Maximum number of items (
maxItems):6
interrupt-map-mask— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):7Item 2
Exact value (
const):0
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"fsl,ls1043a-extirq","fsl,ls1046a-extirq"When the condition matches (
then) #Properties and child nodes (
properties)
interrupt-map— not listed as required hereMinimum number of items (
minItems):12Maximum number of items (
maxItems):12
interrupt-map-mask— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):15Item 2
Exact value (
const):0
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"fsl,ls1088a-extirq","fsl,ls2080a-extirq","fsl,lx2160a-extirq"When the condition matches (
then) #Properties and child nodes (
properties)
interrupt-map-mask— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):15Item 2
Exact value (
const):0
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
interrupt-controller@1ac {
compatible = "fsl,ls1021a-extirq";
#interrupt-cells = <2>;
#address-cells = <0>;
interrupt-controller;
reg = <0x1ac 4>;
interrupt-map =
<0 0 &gic GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
<1 0 &gic GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>,
<2 0 &gic GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>,
<3 0 &gic GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>,
<4 0 &gic GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>,
<5 0 &gic GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>;
interrupt-map-mask = <0x7 0x0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 103: The driver(drivers/irqchip/irq-ls-extirq.c) have not use standard DT
Line 104: function to parser interrupt-map. So it doesn't consider '#address-size'
Line 105: in parent interrupt controller, such as GIC.
Line 106:
Line 107: When dt-binding verify interrupt-map, item data matrix is spitted at
Line 108: incorrect position. Remove interrupt-map restriction because it always
Line 109: wrong.