HDMI CEC GPIO

Schema identifier ($id): "http://devicetree.org/schemas/media/cec/cec-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Hans Verkuil <hverkuil@kernel.org>"

The HDMI CEC GPIO module supports CEC implementations where the CEC line is hooked up to a pull-up GPIO line and - optionally - the HPD line is hooked up to another GPIO line.

Please note:: the maximum voltage for the CEC line is 3.63V, for the HPD and 5V lines it is 5.3V. So you may need some sort of level conversion circuitry when connecting them to a GPIO line.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "cec-gpio"

cec-gpios — required here #

Maximum number of items (maxItems): 1

GPIO that the CEC line is connected to. The line should be tagged as open drain.

hpd-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO that the HPD line is connected to. Used for debugging HPD changes when the CEC line is not associated with an HDMI receiver/transmitter.

v5-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO that the 5V line is connected to. Used for debugging changes on the 5V line.

Required in this object (required): "compatible", "cec-gpios"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): cec-common.yaml#

Rule 2 #

Condition (if) #

Required in this object (required): "hdmi-phandle"

When the condition matches (then) #

Properties and child nodes (properties)

hpd-gpios — not listed as required here

false — Not permitted by this property rule.

Rule 3 #

Condition (if) #

Required in this object (required): "hpd-gpios"

When the condition matches (then) #

Properties and child nodes (properties)

hdmi-phandle — not listed as required here

false — Not permitted by this property rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

cec {
    compatible = "cec-gpio";
    cec-gpios = <&gpio 7 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
    hpd-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
    v5-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page