| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/gpio/ti,twl4030-gpio.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: TI TWL4030 GPIO controller |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Aaro Koskinen <[email protected]> |
| 11 |
- Andreas Kemnade <[email protected]> |
| 12 |
- Kevin Hilman <[email protected]> |
| 13 |
- Roger Quadros <[email protected]> |
| 14 |
- Tony Lindgren <[email protected]> |
| 15 |
|
| 16 |
properties: |
| 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 |
|
| 50 |
additionalProperties: false |
| 51 |
|
| 52 |
examples: |
| 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 |
}; |