Microchip MPFS GPIO Controller

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

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

Maintainers (maintainers): "Conor Dooley <conor.dooley@microchip.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "microchip,pic64gx-gpio"

Item 2

Exact value (const): "microchip,mpfs-gpio"

Rule 2

Allowed values (enum): "microchip,mpfs-gpio", "microchip,coregpio-rtl-v3"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Interrupt mapping, one per GPIO. Maximum 32 GPIOs.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

clocks — required here #

Maximum number of items (maxItems): 1

#gpio-cells — required here #

Exact value (const): 2

#interrupt-cells — not listed as required here #

Exact value (const): 2

ngpios — not listed as required here #

The number of GPIOs available.

Minimum value (minimum): 1

Maximum value (maximum): 32

Default value (default): 32

gpio-controller — required here #

true — No constraints added by this property rule.

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

true — No constraints added by this property rule.

Properties matching a name pattern (patternProperties) #

^.+-hog(-[0-9]+)?$ — name matches this regular expression #

Value type (type): "object"

Required in this object (required): "gpio-hog"

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)

Exact value (const): "microchip,mpfs-gpio"

When the condition matches (then) #

Required in this object (required): "interrupts", "#interrupt-cells", "interrupt-controller"

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

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

false

Not allowed by this rule.

Examples (examples) #

gpio@20122000 {
    compatible = "microchip,mpfs-gpio";
    reg = <0x20122000 0x1000>;
    clocks = <&clkcfg 25>;
    interrupt-parent = <&plic>;
    gpio-controller;
    #gpio-cells = <2>;
    interrupt-controller;
    #interrupt-cells = <2>;
    interrupts = <53>, <53>, <53>, <53>,
                 <53>, <53>, <53>, <53>,
                 <53>, <53>, <53>, <53>,
                 <53>, <53>, <53>, <53>,
                 <53>, <53>, <53>, <53>,
                 <53>, <53>, <53>, <53>,
                 <53>, <53>, <53>, <53>,
                 <53>, <53>, <53>, <53>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page