xref: /linux/Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.yaml (revision 4569820881c6eb0e273d7f584ee511b825b98601)
18616f7eeSMaxime Ripard# SPDX-License-Identifier: GPL-2.0
28616f7eeSMaxime Ripard%YAML 1.2
38616f7eeSMaxime Ripard---
4*45698208SRob Herring$id: http://devicetree.org/schemas/gpio/x-powers,axp209-gpio.yaml#
5*45698208SRob Herring$schema: http://devicetree.org/meta-schemas/core.yaml#
68616f7eeSMaxime Ripard
7dd3cb467SAndrew Lunntitle: X-Powers AXP209 GPIO
88616f7eeSMaxime Ripard
98616f7eeSMaxime Ripardmaintainers:
108616f7eeSMaxime Ripard  - Chen-Yu Tsai <wens@csie.org>
118616f7eeSMaxime Ripard
128616f7eeSMaxime Ripardproperties:
138616f7eeSMaxime Ripard  "#gpio-cells":
148616f7eeSMaxime Ripard    const: 2
158616f7eeSMaxime Ripard    description: >
168616f7eeSMaxime Ripard      The first cell is the pin number and the second is the GPIO flags.
178616f7eeSMaxime Ripard
188616f7eeSMaxime Ripard  compatible:
198616f7eeSMaxime Ripard    oneOf:
208616f7eeSMaxime Ripard      - enum:
218616f7eeSMaxime Ripard          - x-powers,axp209-gpio
22f9f991e1SSamuel Holland          - x-powers,axp221-gpio
238616f7eeSMaxime Ripard          - x-powers,axp813-gpio
248616f7eeSMaxime Ripard      - items:
25f9f991e1SSamuel Holland          - enum:
26f9f991e1SSamuel Holland              - x-powers,axp223-gpio
27f9f991e1SSamuel Holland              - x-powers,axp809-gpio
28f9f991e1SSamuel Holland          - const: x-powers,axp221-gpio
29f9f991e1SSamuel Holland      - items:
308616f7eeSMaxime Ripard          - const: x-powers,axp803-gpio
318616f7eeSMaxime Ripard          - const: x-powers,axp813-gpio
328616f7eeSMaxime Ripard
338616f7eeSMaxime Ripard  gpio-controller: true
348616f7eeSMaxime Ripard
358616f7eeSMaxime RipardpatternProperties:
368616f7eeSMaxime Ripard  "^.*-pins?$":
378616f7eeSMaxime Ripard    $ref: /schemas/pinctrl/pinmux-node.yaml#
38e62fc182SRob Herring    additionalProperties: false
398616f7eeSMaxime Ripard
408616f7eeSMaxime Ripard    properties:
418616f7eeSMaxime Ripard      pins:
428616f7eeSMaxime Ripard        items:
438616f7eeSMaxime Ripard          enum:
448616f7eeSMaxime Ripard            - GPIO0
458616f7eeSMaxime Ripard            - GPIO1
468616f7eeSMaxime Ripard            - GPIO2
476516c3d5SJonathan McDowell            - GPIO3
488616f7eeSMaxime Ripard
498616f7eeSMaxime Ripard      function:
508616f7eeSMaxime Ripard        enum:
518616f7eeSMaxime Ripard          - adc
528616f7eeSMaxime Ripard          - ldo
538616f7eeSMaxime Ripard          - gpio_in
548616f7eeSMaxime Ripard          - gpio_out
558616f7eeSMaxime Ripard
568616f7eeSMaxime Ripardrequired:
578616f7eeSMaxime Ripard  - compatible
588616f7eeSMaxime Ripard  - "#gpio-cells"
598616f7eeSMaxime Ripard  - gpio-controller
608616f7eeSMaxime Ripard
618616f7eeSMaxime RipardadditionalProperties: false
628616f7eeSMaxime Ripard
638616f7eeSMaxime Ripard...
64