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