Allwinner A83t DWC HDMI TX Encoder

Schema identifier ($id): "http://devicetree.org/schemas/display/allwinner,sun8i-a83t-dw-hdmi.yaml#"

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

The HDMI transmitter is a Synopsys DesignWare HDMI 1.4 TX controller IP with Allwinner\'s own PHY IP. It supports audio and video outputs and CEC.

These DT bindings follow the Synopsys DWC HDMI TX bindings defined in bridge/synopsys,dw-hdmi.yaml with the following device-specific properties.

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

Properties and child nodes (properties) #

#phy-cells — not listed as required here #

Exact value (const): 0

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "allwinner,sun8i-a83t-dw-hdmi"

Rule 2

Exact value (const): "allwinner,sun50i-h6-dw-hdmi"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "allwinner,sun8i-h3-dw-hdmi", "allwinner,sun8i-r40-dw-hdmi", "allwinner,sun50i-a64-dw-hdmi"

Item 2

Exact value (const): "allwinner,sun8i-a83t-dw-hdmi"

reg — required here #

Maximum number of items (maxItems): 1

reg-io-width — required here #

Exact value (const): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 3

Array item rules (items) #

Item 1

Bus Clock

Item 2

Register Clock

Item 3

TMDS Clock

Item 4

HDMI CEC Clock

Item 5

HDCP Clock

Item 6

HDCP Bus Clock

clock-names — required here #

Minimum number of items (minItems): 3

Array item rules (items) #

Item 1

Exact value (const): "iahb"

Item 2

Exact value (const): "isfr"

Item 3

Exact value (const): "tmds"

Item 4

Exact value (const): "cec"

Item 5

Exact value (const): "hdcp"

Item 6

Exact value (const): "hdcp-bus"

resets — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

HDMI Controller Reset

Item 2

HDCP Reset

reset-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "ctrl"

Item 2

Exact value (const): "hdcp"

phys — required here #

Maximum number of items (maxItems): 1

Phandle to the DWC HDMI PHY.

phy-names — required here #

Exact value (const): "phy"

hvcc-supply — not listed as required here #

The VCC power supply of the controller

ports — required here #

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

Properties and child nodes (properties) #

port@0 — required here

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

Input endpoints of the controller. Usually the associated TCON.

port@1 — required here

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

Output endpoints of the controller. Usually an HDMI connector.

Required in this object (required): "port@0", "port@1"

Required in this object (required): "compatible", "reg", "reg-io-width", "interrupts", "clocks", "clock-names", "resets", "reset-names", "phys", "phy-names", "ports"

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Allowed values (enum): "allwinner,sun50i-h6-dw-hdmi"

When the condition matches (then) #

Properties and child nodes (properties) #

clocks — not listed as required here #

Minimum number of items (minItems): 6

clock-names — not listed as required here #

Minimum number of items (minItems): 6

resets — not listed as required here #

Minimum number of items (minItems): 2

reset-names — not listed as required here #

Minimum number of items (minItems): 2

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

/*
 * This comes from the clock/sun8i-a83t-ccu.h and
 * reset/sun8i-a83t-ccu.h headers, but we can't include them since
 * it would trigger a bunch of warnings for redefinitions of
 * symbols with the other example.
 */
#define CLK_BUS_HDMI	39
#define CLK_HDMI		93
#define CLK_HDMI_SLOW	94
#define RST_BUS_HDMI1	26

hdmi@1ee0000 {
    compatible = "allwinner,sun8i-a83t-dw-hdmi";
    reg = <0x01ee0000 0x10000>;
    reg-io-width = <1>;
    interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_SLOW>,
             <&ccu CLK_HDMI>;
    clock-names = "iahb", "isfr", "tmds";
    resets = <&ccu RST_BUS_HDMI1>;
    reset-names = "ctrl";
    phys = <&hdmi_phy>;
    phy-names = "phy";
    pinctrl-names = "default";
    pinctrl-0 = <&hdmi_pins>;

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

        port@0 {
            reg = <0>;

            endpoint {
                remote-endpoint = <&tcon1_out_hdmi>;
            };
        };

        port@1 {
            reg = <1>;
        };
    };
};

/* Cleanup after ourselves */
#undef CLK_BUS_HDMI
#undef CLK_HDMI
#undef CLK_HDMI_SLOW
#include <dt-bindings/interrupt-controller/arm-gic.h>

/*
 * This comes from the clock/sun50i-h6-ccu.h and
 * reset/sun50i-h6-ccu.h headers, but we can't include them since
 * it would trigger a bunch of warnings for redefinitions of
 * symbols with the other example.
 */
#define CLK_BUS_HDMI	126
#define CLK_BUS_HDCP	137
#define CLK_HDMI		123
#define CLK_HDMI_SLOW	124
#define CLK_HDMI_CEC	125
#define CLK_HDCP		136
#define RST_BUS_HDMI_SUB	57
#define RST_BUS_HDCP	62

hdmi@6000000 {
    compatible = "allwinner,sun50i-h6-dw-hdmi";
    reg = <0x06000000 0x10000>;
    reg-io-width = <1>;
    interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_SLOW>,
             <&ccu CLK_HDMI>, <&ccu CLK_HDMI_CEC>,
             <&ccu CLK_HDCP>, <&ccu CLK_BUS_HDCP>;
    clock-names = "iahb", "isfr", "tmds", "cec", "hdcp",
                  "hdcp-bus";
    resets = <&ccu RST_BUS_HDMI_SUB>, <&ccu RST_BUS_HDCP>;
    reset-names = "ctrl", "hdcp";
    phys = <&hdmi_phy>;
    phy-names = "phy";
    pinctrl-names = "default";
    pinctrl-0 = <&hdmi_pins>;

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

        port@0 {
            reg = <0>;

            endpoint {
                remote-endpoint = <&tcon_top_hdmi_out_hdmi>;
            };
        };

        port@1 {
            reg = <1>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page