NXP TDA998x HDMI transmitter

Schema identifier ($id): "http://devicetree.org/schemas/display/bridge/nxp,tda998x.yaml#"

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

Maintainers (maintainers): "Russell King <linux@armlinux.org.uk>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nxp,tda998x"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

video-ports — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 2294085

Maximum value (maximum): 16777215

24 bits value which defines how the video controller output is wired to the TDA998x input.

audio-ports — not listed as required here #

Array of 2 values per DAI (Documentation/sound/soc/dai.rst). The implementation allows one or two DAIs. If two DAIs are defined, they must be of different type.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Array item rules (items) #

Array item rules (items)

Item 1

The first value defines the DAI type: TDA998x_SPDIF or TDA998x_I2S (see include/dt-bindings/display/tda998x.h).

Allowed values (enum): 1, 2

Item 2

The second value defines the tda998x AP_ENA reg content when the DAI in question is used.

Maximum value (maximum): 255

#sound-dai-cells — not listed as required here #

Allowed values (enum): 0, 1

nxp,calib-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Calibration GPIO, which must correspond with the gpio used for the TDA998x interrupt pin.

port — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/port

Parallel input port

ports — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Properties and child nodes (properties) #

port@0 — not listed as required here

Value type (type): "object"

Parallel input port

port@1 — not listed as required here

Value type (type): "object"

HDMI output port

Required in this object (required): "compatible", "reg"

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "port"

Rule 2 #

Required in this object (required): "ports"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/sound/dai-common.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/display/tda998x.h>
#include <dt-bindings/interrupt-controller/irq.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    tda998x: hdmi-encoder@70 {
        compatible = "nxp,tda998x";
        reg = <0x70>;
        interrupt-parent = <&gpio0>;
        interrupts = <27 IRQ_TYPE_EDGE_FALLING>;
        video-ports = <0x230145>;

        #sound-dai-cells = <1>;
                     /* DAI-format / AP_ENA reg value */
        audio-ports = <TDA998x_SPDIF 0x04>,
                      <TDA998x_I2S 0x03>;

        port {
            tda998x_in: endpoint {
                remote-endpoint = <&lcdc_0>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page