Rockchip RK3399 specific extensions to the CDN Display Port
Schema identifier ($id): "http://devicetree.org/schemas/display/rockchip/rockchip,rk3399-cdn-dp.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andy Yan <andy.yan@rock-chip.com>", "Heiko Stuebner <heiko@sntech.de>", "Sandy Huang <hjc@rock-chips.com>"
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 #
Array item rules (items) #
Item 1
Exact value (
const):"rockchip,rk3399-cdn-dp"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
DP core work clock
Item 2
APB clock
Item 3
SPDIF interface clock
Item 4
GRF clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"core-clk"
Item 2
Exact value (
const):"pclk"
Item 3
Exact value (
const):"spdif"
Item 4
Exact value (
const):"grf"
extcon — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Extcon device providing the cable state for DP PHY device 0
Item 2
Extcon device providing the cable state for DP PHY device 1
List of phandle to the extcon device providing the cable state for the DP PHY.
interrupts — required here #
Maximum number of items (maxItems): 1
phys — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
DP output to the DP PHY device 0
Item 2
DP output to the DP PHY device 1
RK3399 have two DP-USB PHY, specifying one PHY which want to use, or specify two PHYs here to let the driver determine which PHY to use.
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 of the CDN DP
Properties and child nodes (properties)
endpoint@0 — not listed as required here
Connection to the VOPB
endpoint@1 — not listed as required here
Connection to the VOPL
port@1 — required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Output of the CDN DP
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): 4
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"spdif"
Item 2
Exact value (
const):"dptx"
Item 3
Exact value (
const):"apb"
Item 4
Exact value (
const):"core"
rockchip,grf — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to GRF register to control HPD.
#sound-dai-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "phys", "ports", "resets", "reset-names", "rockchip,grf", "#sound-dai-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/rk3399-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/rk3399-power.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
dp@fec00000 {
compatible = "rockchip,rk3399-cdn-dp";
reg = <0x0 0xfec00000 0x0 0x100000>;
assigned-clocks = <&cru SCLK_DP_CORE>;
assigned-clock-rates = <100000000>;
interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru SCLK_DP_CORE>, <&cru PCLK_DP_CTRL>, <&cru SCLK_SPDIF_REC_DPTX>,
<&cru PCLK_VIO_GRF>;
clock-names = "core-clk", "pclk", "spdif", "grf";
power-domains = <&power RK3399_PD_HDCP>;
phys = <&tcphy0_dp>, <&tcphy1_dp>;
resets = <&cru SRST_DPTX_SPDIF_REC>, <&cru SRST_P_UPHY0_DPTX>,
<&cru SRST_P_UPHY0_APB>, <&cru SRST_DP_CORE>;
reset-names = "spdif", "dptx", "apb", "core";
rockchip,grf = <&grf>;
#sound-dai-cells = <1>;
ports {
#address-cells = <1>;
#size-cells = <0>;
dp_in: port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
dp_in_vopb: endpoint@0 {
reg = <0>;
remote-endpoint = <&vopb_out_dp>;
};
dp_in_vopl: endpoint@1 {
reg = <1>;
remote-endpoint = <&vopl_out_dp>;
};
};
dp_out: port@1 {
reg = <1>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause