xref: /freebsd-src/sys/contrib/device-tree/Bindings/gpio/x-powers,axp209-gpio.yaml (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
28cc087a1SEmmanuel Vadot%YAML 1.2
38cc087a1SEmmanuel Vadot---
4*aa1a8ff2SEmmanuel Vadot$id: http://devicetree.org/schemas/gpio/x-powers,axp209-gpio.yaml#
5*aa1a8ff2SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68cc087a1SEmmanuel Vadot
77ef62cebSEmmanuel Vadottitle: X-Powers AXP209 GPIO
88cc087a1SEmmanuel Vadot
98cc087a1SEmmanuel Vadotmaintainers:
108cc087a1SEmmanuel Vadot  - Chen-Yu Tsai <wens@csie.org>
118cc087a1SEmmanuel Vadot
128cc087a1SEmmanuel Vadotproperties:
138cc087a1SEmmanuel Vadot  "#gpio-cells":
148cc087a1SEmmanuel Vadot    const: 2
158cc087a1SEmmanuel Vadot    description: >
168cc087a1SEmmanuel Vadot      The first cell is the pin number and the second is the GPIO flags.
178cc087a1SEmmanuel Vadot
188cc087a1SEmmanuel Vadot  compatible:
198cc087a1SEmmanuel Vadot    oneOf:
208cc087a1SEmmanuel Vadot      - enum:
218cc087a1SEmmanuel Vadot          - x-powers,axp209-gpio
22b97ee269SEmmanuel Vadot          - x-powers,axp221-gpio
238cc087a1SEmmanuel Vadot          - x-powers,axp813-gpio
248cc087a1SEmmanuel Vadot      - items:
25b97ee269SEmmanuel Vadot          - enum:
26b97ee269SEmmanuel Vadot              - x-powers,axp223-gpio
27b97ee269SEmmanuel Vadot              - x-powers,axp809-gpio
28b97ee269SEmmanuel Vadot          - const: x-powers,axp221-gpio
29b97ee269SEmmanuel Vadot      - items:
308cc087a1SEmmanuel Vadot          - const: x-powers,axp803-gpio
318cc087a1SEmmanuel Vadot          - const: x-powers,axp813-gpio
328cc087a1SEmmanuel Vadot
338cc087a1SEmmanuel Vadot  gpio-controller: true
348cc087a1SEmmanuel Vadot
358cc087a1SEmmanuel VadotpatternProperties:
368cc087a1SEmmanuel Vadot  "^.*-pins?$":
378cc087a1SEmmanuel Vadot    $ref: /schemas/pinctrl/pinmux-node.yaml#
38fac71e4eSEmmanuel Vadot    additionalProperties: false
398cc087a1SEmmanuel Vadot
408cc087a1SEmmanuel Vadot    properties:
418cc087a1SEmmanuel Vadot      pins:
428cc087a1SEmmanuel Vadot        items:
438cc087a1SEmmanuel Vadot          enum:
448cc087a1SEmmanuel Vadot            - GPIO0
458cc087a1SEmmanuel Vadot            - GPIO1
468cc087a1SEmmanuel Vadot            - GPIO2
47f126890aSEmmanuel Vadot            - GPIO3
488cc087a1SEmmanuel Vadot
498cc087a1SEmmanuel Vadot      function:
508cc087a1SEmmanuel Vadot        enum:
518cc087a1SEmmanuel Vadot          - adc
528cc087a1SEmmanuel Vadot          - ldo
538cc087a1SEmmanuel Vadot          - gpio_in
548cc087a1SEmmanuel Vadot          - gpio_out
558cc087a1SEmmanuel Vadot
568cc087a1SEmmanuel Vadotrequired:
578cc087a1SEmmanuel Vadot  - compatible
588cc087a1SEmmanuel Vadot  - "#gpio-cells"
598cc087a1SEmmanuel Vadot  - gpio-controller
608cc087a1SEmmanuel Vadot
618cc087a1SEmmanuel VadotadditionalProperties: false
628cc087a1SEmmanuel Vadot
638cc087a1SEmmanuel Vadot...
64