Merge tag 'locks-v4.15-1' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / media / cec-gpio.txt
1 * HDMI CEC GPIO driver
2
3 The HDMI CEC GPIO module supports CEC implementations where the CEC line
4 is hooked up to a pull-up GPIO line and - optionally - the HPD line is
5 hooked up to another GPIO line.
6
7 Required properties:
8   - compatible: value must be "cec-gpio".
9   - cec-gpios: gpio that the CEC line is connected to. The line should be
10     tagged as open drain.
11
12 If the CEC line is associated with an HDMI receiver/transmitter, then the
13 following property is also required:
14
15   - hdmi-phandle - phandle to the HDMI controller, see also cec.txt.
16
17 If the CEC line is not associated with an HDMI receiver/transmitter, then
18 the following property is optional:
19
20   - hpd-gpios: gpio that the HPD line is connected to.
21
22 Example for the Raspberry Pi 3 where the CEC line is connected to
23 pin 26 aka BCM7 aka CE1 on the GPIO pin header and the HPD line is
24 connected to pin 11 aka BCM17:
25
26 #include <dt-bindings/gpio/gpio.h>
27
28 cec-gpio {
29        compatible = "cec-gpio";
30        cec-gpios = <&gpio 7 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
31        hpd-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
32 };