Freescale MPC512x/MPC8xxx/QorIQ/Layerscape GPIO controller

Schema identifier ($id): "http://devicetree.org/schemas/gpio/fsl,qoriq-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "fsl,mpc5121-gpio", "fsl,mpc5125-gpio", "fsl,mpc8314-gpio", "fsl,mpc8349-gpio", "fsl,mpc8572-gpio", "fsl,mpc8610-gpio", "fsl,pq3-gpio"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,ls1021a-gpio", "fsl,ls1028a-gpio", "fsl,ls1043a-gpio", "fsl,ls1046a-gpio", "fsl,ls1088a-gpio", "fsl,ls2080a-gpio"

Item 2

Exact value (const): "fsl,qoriq-gpio"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "fsl,mpc8308-gpio", "fsl,mpc8377-gpio", "fsl,mpc8378-gpio", "fsl,mpc8379-gpio"

Item 2

Exact value (const): "fsl,mpc8349-gpio"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

#gpio-cells — required here #

Exact value (const): 2

gpio-controller — not listed as required here #

true — No constraints added by this property rule.

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

gpio-line-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

little-endian — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

GPIO registers are used as little endian. If not present registers are used as big endian by default.

Required in this object (required): "compatible", "reg", "interrupts", "#gpio-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

gpio@1100 {
    compatible = "fsl,mpc5125-gpio";
    reg = <0x1100 0x080>;
    interrupts = <78 0x8>;
    gpio-controller;
    #gpio-cells = <2>;
};
#include <dt-bindings/interrupt-controller/arm-gic.h>
gpio@2300000 {
    compatible = "fsl,ls2080a-gpio", "fsl,qoriq-gpio";
    reg = <0x2300000 0x10000>;
    interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
    little-endian;
    gpio-controller;
    #gpio-cells = <2>;
    interrupt-controller;
    #interrupt-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page