Rockchip DW HDMI QP TX Encoder

Schema identifier ($id): "http://devicetree.org/schemas/display/rockchip/rockchip,rk3588-dw-hdmi-qp.yaml#"

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

Maintainers (maintainers): "Cristian Ciocaltea <cristian.ciocaltea@collabora.com>"

Rockchip RK3588 SoC integrates the Synopsys DesignWare HDMI QP TX controller IP and a HDMI/eDP TX Combo PHY based on a Samsung IP block, providing the following features, among others:

* Fixed Rate Link (FRL) * Display Stream Compression (DSC) * 4K@120Hz and 8K@60Hz video modes * Variable Refresh Rate (VRR) including Quick Media Switching (QMS) * Fast Vactive (FVA) * SCDC I2C DDC access * Multi-stream audio * Enhanced Audio Return Channel (EARC)

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "rockchip,rk3576-dw-hdmi-qp", "rockchip,rk3588-dw-hdmi-qp"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Peripheral/APB bus clock

Item 2

EARC RX biphase clock

Item 3

Reference clock

Item 4

Audio interface clock

Item 5

TMDS/FRL link clock

Item 6

Video datapath clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "earc"

Item 3

Exact value (const): "ref"

Item 4

Exact value (const): "aud"

Item 5

Exact value (const): "hdp"

Item 6

Exact value (const): "hclk_vo1"

interrupts — required here #

Array item rules (items) #

Item 1

AVP Unit interrupt

Item 2

CEC interrupt

Item 3

eARC RX interrupt

Item 4

Main Unit interrupt

Item 5

HPD interrupt

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "avp"

Item 2

Exact value (const): "cec"

Item 3

Exact value (const): "earc"

Item 4

Exact value (const): "main"

Item 5

Exact value (const): "hpd"

no-hpd — not listed as required here #

Value type (type): "boolean"

The HPD pin is not present or used for another purpose, and the EDID must be polled instead to determine if a device is attached.

phys — required here #

Maximum number of items (maxItems): 1

The HDMI/eDP PHY

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

Video port for RGB/YUV input.

port@1 — required here

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

Video port for HDMI/eDP output.

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

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 2

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ref"

Item 2

Exact value (const): "hdp"

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

Exact value (const): 0

rockchip,grf — required here #

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

Some HDMI QP related data is accessed through SYS GRF regs.

rockchip,vo-grf — required here #

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

Additional HDMI QP related data is accessed through VO GRF regs.

frl-enable-gpios — not listed as required here #

Optional GPIO line to be asserted when operating in HDMI 2.1 FRL mode and deasserted for HDMI 1.4/2.0 TMDS. It can be used to control external voltage bias for HDMI data lines. When not present the HDMI encoder will operate in TMDS mode only.

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "interrupt-names", "phys", "ports", "resets", "reset-names", "rockchip,grf", "rockchip,vo-grf"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rockchip,rk3588-cru.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/power/rk3588-power.h>
#include <dt-bindings/reset/rockchip,rk3588-cru.h>

soc {
  #address-cells = <2>;
  #size-cells = <2>;

  hdmi@fde80000 {
    compatible = "rockchip,rk3588-dw-hdmi-qp";
    reg = <0x0 0xfde80000 0x0 0x20000>;
    clocks = <&cru PCLK_HDMITX0>,
             <&cru CLK_HDMITX0_EARC>,
             <&cru CLK_HDMITX0_REF>,
             <&cru MCLK_I2S5_8CH_TX>,
             <&cru CLK_HDMIHDP0>,
             <&cru HCLK_VO1>;
    clock-names = "pclk", "earc", "ref", "aud", "hdp", "hclk_vo1";
    interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH 0>,
                 <GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH 0>,
                 <GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH 0>,
                 <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH 0>,
                 <GIC_SPI 360 IRQ_TYPE_LEVEL_HIGH 0>;
    interrupt-names = "avp", "cec", "earc", "main", "hpd";
    phys = <&hdptxphy0>;
    power-domains = <&power RK3588_PD_VO1>;
    resets = <&cru SRST_HDMITX0_REF>, <&cru SRST_HDMIHDP0>;
    reset-names = "ref", "hdp";
    rockchip,grf = <&sys_grf>;
    rockchip,vo-grf = <&vo1_grf>;
    #sound-dai-cells = <0>;
    frl-enable-gpios = <&gpio4 RK_PB1 GPIO_ACTIVE_LOW>;

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

      port@0 {
        reg = <0>;

        hdmi0_in_vp0: endpoint {
          remote-endpoint = <&vp0_out_hdmi0>;
        };
      };

      port@1 {
        reg = <1>;

        hdmi0_out_con0: endpoint {
          remote-endpoint = <&hdmi_con0_in>;
        };
      };
    };
  };
};

Source notes #

Annotations retained from the schema source

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

Edit this page