xref: /linux/Documentation/devicetree/bindings/gpio/ti,twl4030-gpio.yaml (revision fcb117e0758d1462128a50c5788555e03b48833b)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/ti,twl4030-gpio.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: TI TWL4030 GPIO controller
8
9maintainers:
10  - Aaro Koskinen <aaro.koskinen@iki.fi>
11  - Andreas Kemnade <andreas@kemnade.info>
12  - Kevin Hilman <khilman@baylibre.com>
13  - Roger Quadros <rogerq@kernel.org>
14  - Tony Lindgren <tony@atomide.com>
15
16properties:
17  compatible:
18    const: ti,twl4030-gpio
19
20  '#gpio-cells':
21    const: 2
22
23  gpio-controller: true
24
25  '#interrupt-cells':
26    const: 1
27
28  interrupt-controller: true
29
30  ti,debounce:
31    description: Debounce control bits. Each bit corresponds to a GPIO pin.
32    $ref: /schemas/types.yaml#/definitions/uint32
33
34  ti,mmc-cd:
35    description: MMC card detect control bits. Each bit corresponds to a GPIO pin for VMMC(n+1).
36    $ref: /schemas/types.yaml#/definitions/uint32
37
38  ti,pullups:
39    description: Pull-up control bits. Each bit corresponds to a GPIO pin.
40    $ref: /schemas/types.yaml#/definitions/uint32
41
42  ti,pulldowns:
43    description: Pull-down control bits. Each bit corresponds to a GPIO pin.
44    $ref: /schemas/types.yaml#/definitions/uint32
45
46  ti,use-leds:
47    type: boolean
48    description: Enables LEDA and LEDB outputs if set
49
50additionalProperties: false
51
52examples:
53  - |
54    gpio {
55        compatible = "ti,twl4030-gpio";
56        #gpio-cells = <2>;
57        gpio-controller;
58        #interrupt-cells = <1>;
59        interrupt-controller;
60        ti,use-leds;
61    };
62