Skip to content

Commit 71b6600

Browse files
robherringBartosz Golaszewski
authored andcommitted
dt-bindings: gpio: Convert lantiq,gpio-mm-lantiq to DT schema
Convert the Lantiq SoC External Bus memory mapped GPIO binding to DT schema format. It's a straight forward conversion. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250714202837.3011521-1-robh@kernel.org Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent aff0a17 commit 71b6600

2 files changed

Lines changed: 54 additions & 38 deletions

File tree

Documentation/devicetree/bindings/gpio/gpio-mm-lantiq.txt

Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/lantiq,gpio-mm-lantiq.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Lantiq SoC External Bus memory mapped GPIO controller
8+
9+
maintainers:
10+
- John Crispin <john@phrozen.org>
11+
12+
description: |
13+
By attaching hardware latches to the EBU it is possible to create output
14+
only gpios. This driver configures a special memory address, which when
15+
written to outputs 16 bit to the latches.
16+
17+
The node describing the memory mapped GPIOs needs to be a child of the node
18+
describing the "lantiq,localbus".
19+
20+
properties:
21+
compatible:
22+
enum:
23+
- lantiq,gpio-mm-lantiq
24+
- lantiq,gpio-mm
25+
26+
reg:
27+
maxItems: 1
28+
29+
'#gpio-cells':
30+
const: 2
31+
32+
gpio-controller: true
33+
34+
lantiq,shadow:
35+
description: The default value that we shall assume as already set on the shift register cascade.
36+
$ref: /schemas/types.yaml#/definitions/uint32
37+
38+
required:
39+
- compatible
40+
- reg
41+
- '#gpio-cells'
42+
- gpio-controller
43+
44+
additionalProperties: false
45+
46+
examples:
47+
- |
48+
gpio@4000000 {
49+
compatible = "lantiq,gpio-mm-lantiq";
50+
reg = <0x4000000 0x10>;
51+
gpio-controller;
52+
#gpio-cells = <2>;
53+
lantiq,shadow = <0x77f>;
54+
};

0 commit comments

Comments
 (0)