xref: /linux/Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.yaml (revision 8616f7ee2cf6021361814a5842eb1ac9845bea21)
1*8616f7eeSMaxime Ripard# SPDX-License-Identifier: GPL-2.0
2*8616f7eeSMaxime Ripard%YAML 1.2
3*8616f7eeSMaxime Ripard---
4*8616f7eeSMaxime Ripard$id: "http://devicetree.org/schemas/gpio/x-powers,axp209-gpio.yaml#"
5*8616f7eeSMaxime Ripard$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6*8616f7eeSMaxime Ripard
7*8616f7eeSMaxime Ripardtitle: X-Powers AXP209 GPIO Device Tree Bindings
8*8616f7eeSMaxime Ripard
9*8616f7eeSMaxime Ripardmaintainers:
10*8616f7eeSMaxime Ripard  - Chen-Yu Tsai <wens@csie.org>
11*8616f7eeSMaxime Ripard
12*8616f7eeSMaxime Ripardproperties:
13*8616f7eeSMaxime Ripard  "#gpio-cells":
14*8616f7eeSMaxime Ripard    const: 2
15*8616f7eeSMaxime Ripard    description: >
16*8616f7eeSMaxime Ripard      The first cell is the pin number and the second is the GPIO flags.
17*8616f7eeSMaxime Ripard
18*8616f7eeSMaxime Ripard  compatible:
19*8616f7eeSMaxime Ripard    oneOf:
20*8616f7eeSMaxime Ripard      - enum:
21*8616f7eeSMaxime Ripard          - x-powers,axp209-gpio
22*8616f7eeSMaxime Ripard          - x-powers,axp813-gpio
23*8616f7eeSMaxime Ripard      - items:
24*8616f7eeSMaxime Ripard          - const: x-powers,axp803-gpio
25*8616f7eeSMaxime Ripard          - const: x-powers,axp813-gpio
26*8616f7eeSMaxime Ripard
27*8616f7eeSMaxime Ripard  gpio-controller: true
28*8616f7eeSMaxime Ripard
29*8616f7eeSMaxime RipardpatternProperties:
30*8616f7eeSMaxime Ripard  "^.*-pins?$":
31*8616f7eeSMaxime Ripard    $ref: /schemas/pinctrl/pinmux-node.yaml#
32*8616f7eeSMaxime Ripard
33*8616f7eeSMaxime Ripard    properties:
34*8616f7eeSMaxime Ripard      pins:
35*8616f7eeSMaxime Ripard        items:
36*8616f7eeSMaxime Ripard          enum:
37*8616f7eeSMaxime Ripard            - GPIO0
38*8616f7eeSMaxime Ripard            - GPIO1
39*8616f7eeSMaxime Ripard            - GPIO2
40*8616f7eeSMaxime Ripard
41*8616f7eeSMaxime Ripard      function:
42*8616f7eeSMaxime Ripard        enum:
43*8616f7eeSMaxime Ripard          - adc
44*8616f7eeSMaxime Ripard          - ldo
45*8616f7eeSMaxime Ripard          - gpio_in
46*8616f7eeSMaxime Ripard          - gpio_out
47*8616f7eeSMaxime Ripard
48*8616f7eeSMaxime Ripardrequired:
49*8616f7eeSMaxime Ripard  - compatible
50*8616f7eeSMaxime Ripard  - "#gpio-cells"
51*8616f7eeSMaxime Ripard  - gpio-controller
52*8616f7eeSMaxime Ripard
53*8616f7eeSMaxime RipardadditionalProperties: false
54*8616f7eeSMaxime Ripard
55*8616f7eeSMaxime Ripard...
56