Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/Documentation/devicetree/bindings/gpio/lantiq,gpio-mm-lantiq.yaml
26308 views
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
};
55
56