blob: 46a0bac8b3b95cf001dd7e4f2a59675c4cd4e747 [file] [log] [blame]
Hans Verkuil67f2a062017-08-02 03:22:33 -04001* HDMI CEC GPIO driver
2
3The HDMI CEC GPIO module supports CEC implementations where the CEC line
4is hooked up to a pull-up GPIO line and - optionally - the HPD line is
5hooked up to another GPIO line.
6
7Required 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
12If the CEC line is associated with an HDMI receiver/transmitter, then the
13following property is also required:
14
15 - hdmi-phandle - phandle to the HDMI controller, see also cec.txt.
16
17If the CEC line is not associated with an HDMI receiver/transmitter, then
18the following property is optional:
19
20 - hpd-gpios: gpio that the HPD line is connected to.
21
22Example for the Raspberry Pi 3 where the CEC line is connected to
23pin 26 aka BCM7 aka CE1 on the GPIO pin header and the HPD line is
24connected to pin 11 aka BCM17:
25
26#include <dt-bindings/gpio/gpio.h>
27
28cec-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};