Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: "http://devicetree.org/schemas/gpio/x-powers,axp209-gpio.yaml#"
0005 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0006 
0007 title: X-Powers AXP209 GPIO Device Tree Bindings
0008 
0009 maintainers:
0010   - Chen-Yu Tsai <wens@csie.org>
0011 
0012 properties:
0013   "#gpio-cells":
0014     const: 2
0015     description: >
0016       The first cell is the pin number and the second is the GPIO flags.
0017 
0018   compatible:
0019     oneOf:
0020       - enum:
0021           - x-powers,axp209-gpio
0022           - x-powers,axp221-gpio
0023           - x-powers,axp813-gpio
0024       - items:
0025           - enum:
0026               - x-powers,axp223-gpio
0027               - x-powers,axp809-gpio
0028           - const: x-powers,axp221-gpio
0029       - items:
0030           - const: x-powers,axp803-gpio
0031           - const: x-powers,axp813-gpio
0032 
0033   gpio-controller: true
0034 
0035 patternProperties:
0036   "^.*-pins?$":
0037     $ref: /schemas/pinctrl/pinmux-node.yaml#
0038 
0039     properties:
0040       pins:
0041         items:
0042           enum:
0043             - GPIO0
0044             - GPIO1
0045             - GPIO2
0046 
0047       function:
0048         enum:
0049           - adc
0050           - ldo
0051           - gpio_in
0052           - gpio_out
0053 
0054 required:
0055   - compatible
0056   - "#gpio-cells"
0057   - gpio-controller
0058 
0059 additionalProperties: false
0060 
0061 ...