Microchip PIC32 GPIO controller

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

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

Maintainers (maintainers): "Joshua Henderson <joshua.henderson@microchip.com>", "Purna Chandra Mandal <purna.mandal@microchip.com>"

Properties and child nodes (properties) #

compatible — required here #

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

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-ranges — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

interrupts — required here #

Maximum number of items (maxItems): 1

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

clocks — required here #

Maximum number of items (maxItems): 1

microchip,gpio-bank — required here #

Bank index owned by the controller

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

Required in this object (required): "compatible", "reg", "gpio-controller", "gpio-ranges", "#gpio-cells", "interrupts", "interrupt-controller", "#interrupt-cells", "clocks", "microchip,gpio-bank"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

gpio@1f860000 {
    compatible = "microchip,pic32mzda-gpio";
    reg = <0x1f860000 0x100>;
    interrupts = <118 IRQ_TYPE_LEVEL_HIGH>;
    #gpio-cells = <2>;
    gpio-controller;
    interrupt-controller;
    #interrupt-cells = <2>;
    clocks = <&rootclk 11>;
    microchip,gpio-bank = <0>;
    gpio-ranges = <&pic32_pinctrl 0 0 16>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page