xref: /linux/Documentation/devicetree/bindings/gpio/atmel,at91rm9200-gpio.yaml (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1*33704989SManikandan Muralidharan# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*33704989SManikandan Muralidharan%YAML 1.2
3*33704989SManikandan Muralidharan---
4*33704989SManikandan Muralidharan$id: http://devicetree.org/schemas/gpio/atmel,at91rm9200-gpio.yaml#
5*33704989SManikandan Muralidharan$schema: http://devicetree.org/meta-schemas/core.yaml#
6*33704989SManikandan Muralidharan
7*33704989SManikandan Muralidharantitle: Microchip GPIO controller (PIO)
8*33704989SManikandan Muralidharan
9*33704989SManikandan Muralidharanmaintainers:
10*33704989SManikandan Muralidharan  - Manikandan Muralidharan <manikandan.m@microchip.com>
11*33704989SManikandan Muralidharan
12*33704989SManikandan Muralidharanproperties:
13*33704989SManikandan Muralidharan  compatible:
14*33704989SManikandan Muralidharan    oneOf:
15*33704989SManikandan Muralidharan      - items:
16*33704989SManikandan Muralidharan          - enum:
17*33704989SManikandan Muralidharan              - atmel,at91sam9x5-gpio
18*33704989SManikandan Muralidharan              - microchip,sam9x60-gpio
19*33704989SManikandan Muralidharan          - const: atmel,at91rm9200-gpio
20*33704989SManikandan Muralidharan      - items:
21*33704989SManikandan Muralidharan          - enum:
22*33704989SManikandan Muralidharan              - microchip,sam9x7-gpio
23*33704989SManikandan Muralidharan          - const: microchip,sam9x60-gpio
24*33704989SManikandan Muralidharan          - const: atmel,at91rm9200-gpio
25*33704989SManikandan Muralidharan      - items:
26*33704989SManikandan Muralidharan          - const: atmel,at91rm9200-gpio
27*33704989SManikandan Muralidharan
28*33704989SManikandan Muralidharan  reg:
29*33704989SManikandan Muralidharan    maxItems: 1
30*33704989SManikandan Muralidharan
31*33704989SManikandan Muralidharan  interrupts:
32*33704989SManikandan Muralidharan    maxItems: 1
33*33704989SManikandan Muralidharan
34*33704989SManikandan Muralidharan  interrupt-controller: true
35*33704989SManikandan Muralidharan
36*33704989SManikandan Muralidharan  "#interrupt-cells":
37*33704989SManikandan Muralidharan    const: 2
38*33704989SManikandan Muralidharan
39*33704989SManikandan Muralidharan  gpio-controller: true
40*33704989SManikandan Muralidharan  gpio-line-names: true
41*33704989SManikandan Muralidharan
42*33704989SManikandan Muralidharan  "#gpio-cells":
43*33704989SManikandan Muralidharan    const: 2
44*33704989SManikandan Muralidharan
45*33704989SManikandan Muralidharan  clocks:
46*33704989SManikandan Muralidharan    maxItems: 1
47*33704989SManikandan Muralidharan
48*33704989SManikandan Muralidharan  "#gpio-lines":
49*33704989SManikandan Muralidharan    description:
50*33704989SManikandan Muralidharan      Number of gpio, 32 by default if absent
51*33704989SManikandan Muralidharan    maxItems: 1
52*33704989SManikandan Muralidharan    default: 32
53*33704989SManikandan Muralidharan
54*33704989SManikandan Muralidharanrequired:
55*33704989SManikandan Muralidharan  - compatible
56*33704989SManikandan Muralidharan  - reg
57*33704989SManikandan Muralidharan  - interrupts
58*33704989SManikandan Muralidharan  - interrupt-controller
59*33704989SManikandan Muralidharan  - "#interrupt-cells"
60*33704989SManikandan Muralidharan  - gpio-controller
61*33704989SManikandan Muralidharan  - "#gpio-cells"
62*33704989SManikandan Muralidharan  - clocks
63*33704989SManikandan Muralidharan
64*33704989SManikandan MuralidharanadditionalProperties: false
65*33704989SManikandan Muralidharan
66*33704989SManikandan Muralidharanexamples:
67*33704989SManikandan Muralidharan  - |
68*33704989SManikandan Muralidharan    #include <dt-bindings/clock/at91.h>
69*33704989SManikandan Muralidharan    #include <dt-bindings/interrupt-controller/irq.h>
70*33704989SManikandan Muralidharan
71*33704989SManikandan Muralidharan    gpio@fffff400 {
72*33704989SManikandan Muralidharan            compatible = "atmel,at91rm9200-gpio";
73*33704989SManikandan Muralidharan            reg = <0xfffff400 0x200>;
74*33704989SManikandan Muralidharan            interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>;
75*33704989SManikandan Muralidharan            #gpio-cells = <2>;
76*33704989SManikandan Muralidharan            gpio-controller;
77*33704989SManikandan Muralidharan            interrupt-controller;
78*33704989SManikandan Muralidharan            #interrupt-cells = <2>;
79*33704989SManikandan Muralidharan            clocks = <&pmc PMC_TYPE_PERIPHERAL 2>;
80*33704989SManikandan Muralidharan    };
81*33704989SManikandan Muralidharan...
82