| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/gpio/abilis,tb10x-gpio.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Abilis TB10x GPIO controller |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Christian Ruppert <[email protected]> |
| 11 |
|
| 12 |
properties: |
| 13 |
compatible: |
| 14 |
const: abilis,tb10x-gpio |
| 15 |
|
| 16 |
reg: |
| 17 |
maxItems: 1 |
| 18 |
|
| 19 |
gpio-controller: true |
| 20 |
|
| 21 |
'#gpio-cells': |
| 22 |
const: 2 |
| 23 |
|
| 24 |
gpio-ranges: true |
| 25 |
|
| 26 |
gpio-ranges-group-names: true |
| 27 |
|
| 28 |
interrupt-controller: true |
| 29 |
|
| 30 |
'#interrupt-cells': |
| 31 |
const: 1 |
| 32 |
description: Interrupts are triggered on both edges |
| 33 |
|
| 34 |
interrupts: |
| 35 |
maxItems: 1 |
| 36 |
|
| 37 |
abilis,ngpio: |
| 38 |
description: Number of GPIO pins this driver controls |
| 39 |
$ref: /schemas/types.yaml#/definitions/uint32 |
| 40 |
|
| 41 |
required: |
| 42 |
- compatible |
| 43 |
- reg |
| 44 |
- gpio-controller |
| 45 |
- '#gpio-cells' |
| 46 |
- abilis,ngpio |
| 47 |
|
| 48 |
additionalProperties: false |
| 49 |
|
| 50 |
examples: |
| 51 |
- | |
| 52 |
gpio@ff140000 { |
| 53 |
compatible = "abilis,tb10x-gpio"; |
| 54 |
interrupt-controller; |
| 55 |
#interrupt-cells = <1>; |
| 56 |
interrupts = <27 2>; |
| 57 |
reg = <0xff140000 0x1000>; |
| 58 |
gpio-controller; |
| 59 |
#gpio-cells = <2>; |
| 60 |
abilis,ngpio = <3>; |
| 61 |
gpio-ranges = <&iomux 0 0 0>; |
| 62 |
gpio-ranges-group-names = "gpioa_pins"; |
| 63 |
}; |