-
Notifications
You must be signed in to change notification settings - Fork 103
/
digi,mca-gpio.txt
79 lines (64 loc) · 2.11 KB
/
digi,mca-gpio.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
* Digi GPIO controller for MCA of ConnectCore device tree bindings
Required properties:
- compatible : must be one of
- "digi,mca-gpio"
- "digi,mca-ioexp-gpio"
- #gpio-cells : Should be two.
- first cell is the pin number
- second cell is used to specify flags. Flags are currently unused.
- gpio-controller : Marks the device node as a GPIO controller.
- interrupt-parent: Phandle for the interrupt controller that
services interrupts for this device.
- interrupt-controller: Empty boolean property which marks the GPIO
module as an IRQ controller.
- #interrupt-cells: Should be <2>. The first cell is the GPIO number,
the second should specify the flags.
Optional properties:
- pwroff-wakeup-capable-ios : List of MCA IOs that can wakeup the device from
power off state. Note that only those IOs that
are IRQ capable can wake up the system from low
power modes.
If the property is not provided, all MCA IOs are
configured to wake up the system from power off,
if the irq is enabled by the kernel.
Examples:
mca_cc6ul: mca@7e {
mca_gpio: gpio {
compatible = "digi,mca-gpio";
gpio-controller;
#gpio-cells = <2>;
interrupt-parent = <&mca_cc6ul>;
interrupt-controller;
#interrupt-cells = <2>;
};
};
mca_cc8x: mca@63 {
mca_gpio: gpio {
compatible = "digi,mca-gpio";
gpio-controller;
#gpio-cells = <2>;
interrupt-parent = <&mca_cc8x>;
interrupt-controller;
#interrupt-cells = <2>;
};
};
mca_cc8m: mca@63 {
mca_gpio: gpio {
compatible = "digi,mca-gpio";
gpio-controller;
#gpio-cells = <2>;
interrupt-parent = <&mca_cc8m>;
interrupt-controller;
#interrupt-cells = <2>;
};
};
mca_ioexp: mca_io@6e {
mca_ioexp_gpio: gpio {
compatible = "digi,mca-ioexp-gpio";
gpio-controller;
#gpio-cells = <2>;
interrupt-parent = <&mca_ioexp>;
interrupt-controller;
#interrupt-cells = <2>;
};
};