The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/media/cec-gpio.txt

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    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 Please note: the maximum voltage for the CEC line is 3.63V, for the HPD and
    8 5V lines it is 5.3V. So you may need some sort of level conversion circuitry
    9 when connecting them to a GPIO line.
   10 
   11 Required properties:
   12   - compatible: value must be "cec-gpio".
   13   - cec-gpios: gpio that the CEC line is connected to. The line should be
   14     tagged as open drain.
   15 
   16 If the CEC line is associated with an HDMI receiver/transmitter, then the
   17 following property is also required:
   18 
   19   - hdmi-phandle - phandle to the HDMI controller, see also cec.txt.
   20 
   21 If the CEC line is not associated with an HDMI receiver/transmitter, then
   22 the following property is optional and can be used for debugging HPD changes:
   23 
   24   - hpd-gpios: gpio that the HPD line is connected to.
   25 
   26 This property is optional and can be used for debugging changes on the 5V line:
   27 
   28   - v5-gpios: gpio that the 5V line is connected to.
   29 
   30 Example for the Raspberry Pi 3 where the CEC line is connected to
   31 pin 26 aka BCM7 aka CE1 on the GPIO pin header, the HPD line is
   32 connected to pin 11 aka BCM17 and the 5V line is connected to pin
   33 15 aka BCM22 (some level shifter is needed for the HPD and 5V lines!):
   34 
   35 #include <dt-bindings/gpio/gpio.h>
   36 
   37 cec-gpio {
   38         compatible = "cec-gpio";
   39         cec-gpios = <&gpio 7 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
   40         hpd-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
   41         v5-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
   42 };

Cache object: 6a20b05604a8c05e0a379eb401f6c554


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.