Microchip GPIO controller (PIO)
Schema identifier ($id): "http://devicetree.org/schemas/gpio/atmel,at91rm9200-gpio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Manikandan Muralidharan <manikandan.m@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
Allowed values (
enum):"atmel,at91sam9x5-gpio","microchip,sam9x60-gpio"Item 2
Exact value (
const):"atmel,at91rm9200-gpio"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"microchip,sam9x60-gpio"Item 3
Exact value (
const):"atmel,at91rm9200-gpio"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"atmel,at91rm9200-gpio"
reg — required here #
Maximum number of items (maxItems): 1
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
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.
#gpio-cells — required here #
Exact value (const): 2
clocks — required here #
Maximum number of items (maxItems): 1
#gpio-lines — not listed as required here #
Number of gpio, 32 by default if absent
Maximum number of items (maxItems): 1
Default value (default): 32
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-controller", "#interrupt-cells", "gpio-controller", "#gpio-cells", "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/at91.h>
#include <dt-bindings/interrupt-controller/irq.h>
gpio@fffff400 {
compatible = "atmel,at91rm9200-gpio";
reg = <0xfffff400 0x200>;
interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>;
#gpio-cells = <2>;
gpio-controller;
interrupt-controller;
#interrupt-cells = <2>;
clocks = <&pmc PMC_TYPE_PERIPHERAL 2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)