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