Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/sys/contrib/device-tree/Bindings/gpio/gpio-clps711x.txt
48375 views
1
Cirrus Logic CLPS711X GPIO controller
2
3
Required properties:
4
- compatible: Should be "cirrus,ep7209-gpio"
5
- reg: Physical base GPIO controller registers location and length.
6
There should be two registers, first is DATA register, the second
7
is DIRECTION.
8
- gpio-controller: Marks the device node as a gpio controller.
9
- #gpio-cells: Should be two. The first cell is the pin number and
10
the second cell is used to specify the gpio polarity:
11
0 = active high
12
1 = active low
13
14
Note: Each GPIO port should have an alias correctly numbered in "aliases"
15
node.
16
17
Example:
18
19
aliases {
20
gpio0 = &porta;
21
};
22
23
porta: gpio@80000000 {
24
compatible = "cirrus,ep7312-gpio","cirrus,ep7209-gpio";
25
reg = <0x80000000 0x1>, <0x80000040 0x1>;
26
gpio-controller;
27
#gpio-cells = <2>;
28
};
29
30