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