mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 06:14:39 +01:00
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 <[email protected]> Signed-off-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
This commit is contained in:
1 parent
71b660010b
commit
842dcff8e2
2 files changed
+61
-29
No files matched your search
@@ -1,29 +0,0 @@
|
||||
twl4030 GPIO controller bindings
|
||||
|
||||
Required properties:
|
||||
- compatible:
|
||||
- "ti,twl4030-gpio" for twl4030 GPIO controller
|
||||
- #gpio-cells : Should be two.
|
||||
- first cell is the pin number
|
||||
- second cell is used to specify optional parameters (unused)
|
||||
- gpio-controller : Marks the device node as a GPIO controller.
|
||||
- #interrupt-cells : Should be 2.
|
||||
- interrupt-controller: Mark the device node as an interrupt controller
|
||||
The first cell is the GPIO number.
|
||||
The second cell is not used.
|
||||
- ti,use-leds : Enables LEDA and LEDB outputs if set
|
||||
- ti,debounce : if n-th bit is set, debounces GPIO-n
|
||||
- ti,mmc-cd : if n-th bit is set, GPIO-n controls VMMC(n+1)
|
||||
- ti,pullups : if n-th bit is set, set a pullup on GPIO-n
|
||||
- ti,pulldowns : if n-th bit is set, set a pulldown on GPIO-n
|
||||
|
||||
Example:
|
||||
|
||||
twl_gpio: gpio {
|
||||
compatible = "ti,twl4030-gpio";
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
#interrupt-cells = <2>;
|
||||
interrupt-controller;
|
||||
ti,use-leds;
|
||||
};
|
||||
@@ -0,0 +1,61 @@
|
||||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/ti,twl4030-gpio.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: TI TWL4030 GPIO controller
|
||||
|
||||
maintainers:
|
||||
- Aaro Koskinen <[email protected]>
|
||||
- Andreas Kemnade <[email protected]>
|
||||
- Kevin Hilman <[email protected]>
|
||||
- Roger Quadros <[email protected]>
|
||||
- Tony Lindgren <[email protected]>
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
const: ti,twl4030-gpio
|
||||
|
||||
'#gpio-cells':
|
||||
const: 2
|
||||
|
||||
gpio-controller: true
|
||||
|
||||
'#interrupt-cells':
|
||||
const: 1
|
||||
|
||||
interrupt-controller: true
|
||||
|
||||
ti,debounce:
|
||||
description: Debounce control bits. Each bit corresponds to a GPIO pin.
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
|
||||
ti,mmc-cd:
|
||||
description: MMC card detect control bits. Each bit corresponds to a GPIO pin for VMMC(n+1).
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
|
||||
ti,pullups:
|
||||
description: Pull-up control bits. Each bit corresponds to a GPIO pin.
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
|
||||
ti,pulldowns:
|
||||
description: Pull-down control bits. Each bit corresponds to a GPIO pin.
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
|
||||
ti,use-leds:
|
||||
type: boolean
|
||||
description: Enables LEDA and LEDB outputs if set
|
||||
|
||||
additionalProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
gpio {
|
||||
compatible = "ti,twl4030-gpio";
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
#interrupt-cells = <1>;
|
||||
interrupt-controller;
|
||||
ti,use-leds;
|
||||
};
|
||||
Reference in new issue
Block a user