Skip to content

Commit 842dcff

Browse files
robherringBartosz Golaszewski
authored andcommitted
dt-bindings: gpio: Convert ti,twl4030-gpio to DT schema
Convert the TI TWL4030 PMIC GPIO binding to DT schema format. The number of #interrupt-cells was wrong compared to what is in use. Correct it to be 1. Reviewed-by: Andreas Kemnade <andreas@kemnade.info> Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250714202829.3011298-1-robh@kernel.org Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent 71b6600 commit 842dcff

2 files changed

Lines changed: 61 additions & 29 deletions

File tree

Documentation/devicetree/bindings/gpio/gpio-twl4030.txt

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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+
7+
title: TI TWL4030 GPIO controller
8+
9+
maintainers:
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+
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+
};

0 commit comments

Comments
 (0)