Marvell PXA GPIO controller

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

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

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>", "Bartosz Golaszewski <bgolaszewski@baylibre.com>", "Rob Herring <robh@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "intel,pxa25x-gpio", "intel,pxa26x-gpio", "intel,pxa27x-gpio", "intel,pxa3xx-gpio"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

interrupt-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "gpio0"

Item 2

Exact value (const): "gpio1"

Item 3

Exact value (const): "gpio_mux"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "marvell,mmp-gpio", "marvell,mmp2-gpio"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 1

interrupt-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "gpio_mux"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^gpio@[0-9a-f]+$"

compatible — required here #

Allowed values (enum): "intel,pxa25x-gpio", "intel,pxa26x-gpio", "intel,pxa27x-gpio", "intel,pxa3xx-gpio", "marvell,mmp-gpio", "marvell,mmp2-gpio", "marvell,pxa93x-gpio"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

ranges — not listed as required here #

true — No constraints added by this property rule.

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

gpio-ranges — not listed as required here #

true — No constraints added by this property rule.

interrupts — required here #

true — No constraints added by this property rule.

interrupt-names — required here #

true — No constraints added by this property rule.

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

Properties matching a name pattern (patternProperties) #

^gpio@[0-9a-f]*$ — name matches this regular expression #

Value type (type): "object"

Properties and child nodes (properties) #

reg — required here

Maximum number of items (maxItems): 1

Required in this object (required): "reg"

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

false

Not allowed by this rule.

Required in this object (required): "compatible", "#address-cells", "#size-cells", "reg", "gpio-controller", "#gpio-cells", "interrupts", "interrupt-names", "interrupt-controller", "#interrupt-cells"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/pxa-clock.h>
gpio@40e00000 {
    compatible = "intel,pxa3xx-gpio";
    #address-cells = <1>;
    #size-cells = <1>;
    reg = <0x40e00000 0x10000>;
    gpio-controller;
    #gpio-cells = <2>;
    interrupts = <8>, <9>, <10>;
    interrupt-names = "gpio0", "gpio1", "gpio_mux";
    clocks = <&clks CLK_GPIO>;
    interrupt-controller;
    #interrupt-cells = <2>;
};
#include <dt-bindings/clock/marvell,pxa910.h>
gpio@d4019000 {
    compatible = "marvell,mmp-gpio";
    #address-cells = <1>;
    #size-cells = <1>;
    reg = <0xd4019000 0x1000>;
    gpio-controller;
    #gpio-cells = <2>;
    interrupts = <49>;
    interrupt-names = "gpio_mux";
    clocks = <&soc_clocks PXA910_CLK_GPIO>;
    resets = <&soc_clocks PXA910_CLK_GPIO>;
    interrupt-controller;
    #interrupt-cells = <2>;
    ranges;

    gpio@d4019000 {
        reg = <0xd4019000 0x4>;
    };

    gpio@d4019004 {
        reg = <0xd4019004 0x4>;
    };

    gpio@d4019008 {
        reg = <0xd4019008 0x4>;
    };

    gpio@d4019100 {
        reg = <0xd4019100 0x4>;
    };
 };

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only

Edit this page