Skip to content

Commit dec09a4

Browse files
montjoiebrgl
authored andcommitted
dt-bindings: gpio: convert faraday,ftgpio01 to yaml
Converts gpio/faraday,ftgpio010.txt to yaml. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
1 parent 4f351ed commit dec09a4

2 files changed

Lines changed: 65 additions & 27 deletions

File tree

Documentation/devicetree/bindings/gpio/faraday,ftgpio010.txt

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/gpio/faraday,ftgpio010.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Faraday Technology FTGPIO010 GPIO Controller
8+
9+
maintainers:
10+
- Linus Walleij <linus.walleij@linaro.org>
11+
12+
properties:
13+
compatible:
14+
oneOf:
15+
- items:
16+
- const: cortina,gemini-gpio
17+
- const: faraday,ftgpio010
18+
- items:
19+
- const: moxa,moxart-gpio
20+
- const: faraday,ftgpio010
21+
- const: faraday,ftgpio010
22+
23+
reg:
24+
maxItems: 1
25+
26+
resets:
27+
maxItems: 1
28+
29+
clocks:
30+
maxItems: 1
31+
32+
interrupts:
33+
maxItems: 1
34+
description: Should contain the interrupt line for the GPIO block
35+
36+
gpio-controller: true
37+
"#gpio-cells":
38+
const: 2
39+
40+
interrupt-controller: true
41+
"#interrupt-cells":
42+
const: 2
43+
44+
required:
45+
- compatible
46+
- reg
47+
- interrupts
48+
- "#gpio-cells"
49+
- interrupt-controller
50+
- "#interrupt-cells"
51+
52+
additionalProperties: false
53+
54+
examples:
55+
- |
56+
#include <dt-bindings/interrupt-controller/irq.h>
57+
gpio@4d000000 {
58+
compatible = "cortina,gemini-gpio", "faraday,ftgpio010";
59+
reg = <0x4d000000 0x100>;
60+
interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
61+
gpio-controller;
62+
#gpio-cells = <2>;
63+
interrupt-controller;
64+
#interrupt-cells = <2>;
65+
};

0 commit comments

Comments
 (0)