| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/display/rockchip/rockchip,rk3588-dw-hdmi-qp.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Rockchip DW HDMI QP TX Encoder |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Cristian Ciocaltea <[email protected]> |
| 11 |
|
| 12 |
description: | |
| 13 |
Rockchip RK3588 SoC integrates the Synopsys DesignWare HDMI QP TX controller |
| 14 |
IP and a HDMI/eDP TX Combo PHY based on a Samsung IP block, providing the |
| 15 |
following features, among others: |
| 16 |
|
| 17 |
* Fixed Rate Link (FRL) |
| 18 |
* Display Stream Compression (DSC) |
| 19 |
* 4K@120Hz and 8K@60Hz video modes |
| 20 |
* Variable Refresh Rate (VRR) including Quick Media Switching (QMS) |
| 21 |
* Fast Vactive (FVA) |
| 22 |
* SCDC I2C DDC access |
| 23 |
* Multi-stream audio |
| 24 |
* Enhanced Audio Return Channel (EARC) |
| 25 |
|
| 26 |
allOf: |
| 27 |
- $ref: /schemas/sound/dai-common.yaml# |
| 28 |
|
| 29 |
properties: |
| 30 |
compatible: |
| 31 |
enum: |
| 32 |
- rockchip,rk3576-dw-hdmi-qp |
| 33 |
- rockchip,rk3588-dw-hdmi-qp |
| 34 |
|
| 35 |
reg: |
| 36 |
maxItems: 1 |
| 37 |
|
| 38 |
clocks: |
| 39 |
items: |
| 40 |
- description: Peripheral/APB bus clock |
| 41 |
- description: EARC RX biphase clock |
| 42 |
- description: Reference clock |
| 43 |
- description: Audio interface clock |
| 44 |
- description: TMDS/FRL link clock |
| 45 |
- description: Video datapath clock |
| 46 |
|
| 47 |
clock-names: |
| 48 |
items: |
| 49 |
- const: pclk |
| 50 |
- const: earc |
| 51 |
- const: ref |
| 52 |
- const: aud |
| 53 |
- const: hdp |
| 54 |
- const: hclk_vo1 |
| 55 |
|
| 56 |
interrupts: |
| 57 |
items: |
| 58 |
- description: AVP Unit interrupt |
| 59 |
- description: CEC interrupt |
| 60 |
- description: eARC RX interrupt |
| 61 |
- description: Main Unit interrupt |
| 62 |
- description: HPD interrupt |
| 63 |
|
| 64 |
interrupt-names: |
| 65 |
items: |
| 66 |
- const: avp |
| 67 |
- const: cec |
| 68 |
- const: earc |
| 69 |
- const: main |
| 70 |
- const: hpd |
| 71 |
|
| 72 |
no-hpd: |
| 73 |
type: boolean |
| 74 |
description: |
| 75 |
The HPD pin is not present or used for another purpose, and the EDID |
| 76 |
must be polled instead to determine if a device is attached. |
| 77 |
|
| 78 |
phys: |
| 79 |
maxItems: 1 |
| 80 |
description: The HDMI/eDP PHY |
| 81 |
|
| 82 |
ports: |
| 83 |
$ref: /schemas/graph.yaml#/properties/ports |
| 84 |
|
| 85 |
properties: |
| 86 |
port@0: |
| 87 |
$ref: /schemas/graph.yaml#/properties/port |
| 88 |
description: Video port for RGB/YUV input. |
| 89 |
|
| 90 |
port@1: |
| 91 |
$ref: /schemas/graph.yaml#/properties/port |
| 92 |
description: Video port for HDMI/eDP output. |
| 93 |
|
| 94 |
required: |
| 95 |
- port@0 |
| 96 |
- port@1 |
| 97 |
|
| 98 |
power-domains: |
| 99 |
maxItems: 1 |
| 100 |
|
| 101 |
resets: |
| 102 |
maxItems: 2 |
| 103 |
|
| 104 |
reset-names: |
| 105 |
items: |
| 106 |
- const: ref |
| 107 |
- const: hdp |
| 108 |
|
| 109 |
"#sound-dai-cells": |
| 110 |
const: 0 |
| 111 |
|
| 112 |
rockchip,grf: |
| 113 |
$ref: /schemas/types.yaml#/definitions/phandle |
| 114 |
description: |
| 115 |
Some HDMI QP related data is accessed through SYS GRF regs. |
| 116 |
|
| 117 |
rockchip,vo-grf: |
| 118 |
$ref: /schemas/types.yaml#/definitions/phandle |
| 119 |
description: |
| 120 |
Additional HDMI QP related data is accessed through VO GRF regs. |
| 121 |
|
| 122 |
frl-enable-gpios: |
| 123 |
description: |
| 124 |
Optional GPIO line to be asserted when operating in HDMI 2.1 FRL mode and |
| 125 |
deasserted for HDMI 1.4/2.0 TMDS. It can be used to control external |
| 126 |
voltage bias for HDMI data lines. When not present the HDMI encoder will |
| 127 |
operate in TMDS mode only. |
| 128 |
maxItems: 1 |
| 129 |
|
| 130 |
required: |
| 131 |
- compatible |
| 132 |
- reg |
| 133 |
- clocks |
| 134 |
- clock-names |
| 135 |
- interrupts |
| 136 |
- interrupt-names |
| 137 |
- phys |
| 138 |
- ports |
| 139 |
- resets |
| 140 |
- reset-names |
| 141 |
- rockchip,grf |
| 142 |
- rockchip,vo-grf |
| 143 |
|
| 144 |
unevaluatedProperties: false |
| 145 |
|
| 146 |
examples: |
| 147 |
- | |
| 148 |
#include <dt-bindings/clock/rockchip,rk3588-cru.h> |
| 149 |
#include <dt-bindings/gpio/gpio.h> |
| 150 |
#include <dt-bindings/interrupt-controller/arm-gic.h> |
| 151 |
#include <dt-bindings/interrupt-controller/irq.h> |
| 152 |
#include <dt-bindings/pinctrl/rockchip.h> |
| 153 |
#include <dt-bindings/power/rk3588-power.h> |
| 154 |
#include <dt-bindings/reset/rockchip,rk3588-cru.h> |
| 155 |
|
| 156 |
soc { |
| 157 |
#address-cells = <2>; |
| 158 |
#size-cells = <2>; |
| 159 |
|
| 160 |
hdmi@fde80000 { |
| 161 |
compatible = "rockchip,rk3588-dw-hdmi-qp"; |
| 162 |
reg = <0x0 0xfde80000 0x0 0x20000>; |
| 163 |
clocks = <&cru PCLK_HDMITX0>, |
| 164 |
<&cru CLK_HDMITX0_EARC>, |
| 165 |
<&cru CLK_HDMITX0_REF>, |
| 166 |
<&cru MCLK_I2S5_8CH_TX>, |
| 167 |
<&cru CLK_HDMIHDP0>, |
| 168 |
<&cru HCLK_VO1>; |
| 169 |
clock-names = "pclk", "earc", "ref", "aud", "hdp", "hclk_vo1"; |
| 170 |
interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH 0>, |
| 171 |
<GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH 0>, |
| 172 |
<GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH 0>, |
| 173 |
<GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH 0>, |
| 174 |
<GIC_SPI 360 IRQ_TYPE_LEVEL_HIGH 0>; |
| 175 |
interrupt-names = "avp", "cec", "earc", "main", "hpd"; |
| 176 |
phys = <&hdptxphy0>; |
| 177 |
power-domains = <&power RK3588_PD_VO1>; |
| 178 |
resets = <&cru SRST_HDMITX0_REF>, <&cru SRST_HDMIHDP0>; |
| 179 |
reset-names = "ref", "hdp"; |
| 180 |
rockchip,grf = <&sys_grf>; |
| 181 |
rockchip,vo-grf = <&vo1_grf>; |
| 182 |
#sound-dai-cells = <0>; |
| 183 |
frl-enable-gpios = <&gpio4 RK_PB1 GPIO_ACTIVE_LOW>; |
| 184 |
|
| 185 |
ports { |
| 186 |
#address-cells = <1>; |
| 187 |
#size-cells = <0>; |
| 188 |
|
| 189 |
port@0 { |
| 190 |
reg = <0>; |
| 191 |
|
| 192 |
hdmi0_in_vp0: endpoint { |
| 193 |
remote-endpoint = <&vp0_out_hdmi0>; |
| 194 |
}; |
| 195 |
}; |
| 196 |
|
| 197 |
port@1 { |
| 198 |
reg = <1>; |
| 199 |
|
| 200 |
hdmi0_out_con0: endpoint { |
| 201 |
remote-endpoint = <&hdmi_con0_in>; |
| 202 |
}; |
| 203 |
}; |
| 204 |
}; |
| 205 |
}; |
| 206 |
}; |