Skip to content

Commit 5875428

Browse files
author
AngeloGioacchino Del Regno
committed
arm64: dts: mediatek: mt8188: Add DPI1, HDMI, HDMI PHY/DDC nodes
Add all of the nodes that are required to enable HDMI output, including ones describing the HDMI PHY, Controller and DDC, and the Digital Parallel Interface instance that is internally connected to the HDMI Controller. All of the added nodes are disabled by default as usage is board dependent. Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
1 parent 6c90d33 commit 5875428

1 file changed

Lines changed: 82 additions & 0 deletions

File tree

arch/arm64/boot/dts/mediatek/mt8188.dtsi

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
aliases {
2727
dp-intf0 = &dp_intf0;
2828
dp-intf1 = &dp_intf1;
29+
dpi1 = &dpi1;
2930
dsc0 = &dsc0;
3031
ethdr0 = &ethdr0;
3132
gce0 = &gce0;
@@ -2038,6 +2039,19 @@
20382039
};
20392040
};
20402041

2042+
hdmi_phy: hdmi-phy@11d5f000 {
2043+
compatible = "mediatek,mt8188-hdmi-phy", "mediatek,mt8195-hdmi-phy";
2044+
reg = <0 0x11d5f000 0 0x100>;
2045+
clocks = <&infracfg_ao CLK_INFRA_AO_HDMI_26M>;
2046+
clock-names = "pll_ref";
2047+
clock-output-names = "hdmi_txpll";
2048+
#clock-cells = <0>;
2049+
#phy-cells = <0>;
2050+
mediatek,ibias = <0xa>;
2051+
mediatek,ibias_up = <0x1c>;
2052+
status = "disabled";
2053+
};
2054+
20412055
mipi_tx_config0: dsi-phy@11c80000 {
20422056
compatible = "mediatek,mt8188-mipi-tx", "mediatek,mt8183-mipi-tx";
20432057
reg = <0 0x11c80000 0 0x1000>;
@@ -3406,6 +3420,34 @@
34063420
mediatek,merge-fifo-en;
34073421
};
34083422

3423+
dpi1: dpi@1c112000 {
3424+
compatible = "mediatek,mt8188-dpi", "mediatek,mt8195-dpi";
3425+
reg = <0 0x1c112000 0 0x1000>;
3426+
clocks = <&vdosys1 CLK_VDO1_DPI1>,
3427+
<&vdosys1 CLK_VDO1_DPI1_MM>,
3428+
<&vdosys1 CLK_VDO1_DPI1_HDMI>;
3429+
clock-names = "pixel", "engine", "pll";
3430+
interrupts = <GIC_SPI 524 IRQ_TYPE_LEVEL_HIGH 0>;
3431+
power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>;
3432+
resets = <&vdosys1 MT8188_VDO1_RST_DPI1_MM_CK>;
3433+
status = "disabled";
3434+
3435+
ports {
3436+
#address-cells = <1>;
3437+
#size-cells = <0>;
3438+
3439+
port@0 {
3440+
reg = <0>;
3441+
dpi1_in: endpoint { };
3442+
};
3443+
3444+
port@1 {
3445+
reg = <1>;
3446+
dpi1_out: endpoint { };
3447+
};
3448+
};
3449+
};
3450+
34093451
dp_intf1: dp-intf@1c113000 {
34103452
compatible = "mediatek,mt8188-dp-intf";
34113453
reg = <0 0x1c113000 0 0x1000>;
@@ -3530,6 +3572,46 @@
35303572
mediatek,gce-client-reg = <&gce0 SUBSYS_1c12XXXX 0x4000 0x1000>;
35313573
};
35323574

3575+
hdmi: hdmi@1c300000 {
3576+
compatible = "mediatek,mt8188-hdmi-tx";
3577+
#sound-dai-cells = <1>;
3578+
reg = <0 0x1c300000 0 0x1000>;
3579+
clocks = <&topckgen CLK_TOP_HDMI_APB>,
3580+
<&topckgen CLK_TOP_HDCP>,
3581+
<&topckgen CLK_TOP_HDCP_24M>,
3582+
<&vppsys1 CLK_VPP1_VPP_SPLIT_HDMI>;
3583+
clock-names = "bus", "hdcp", "hdcp24m", "hdmi-split";
3584+
assigned-clocks = <&topckgen CLK_TOP_HDCP>;
3585+
assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL_D4_D8>;
3586+
interrupts = <GIC_SPI 686 IRQ_TYPE_LEVEL_HIGH 0>;
3587+
power-domains = <&spm MT8188_POWER_DOMAIN_HDMI_TX>;
3588+
phys = <&hdmi_phy>;
3589+
phy-names = "hdmi";
3590+
status = "disabled";
3591+
3592+
hdmi_ddc: i2c {
3593+
compatible = "mediatek,mt8188-hdmi-ddc",
3594+
"mediatek,mt8195-hdmi-ddc";
3595+
clocks = <&clk26m>;
3596+
};
3597+
3598+
ports {
3599+
#address-cells = <1>;
3600+
#size-cells = <0>;
3601+
3602+
port@0 {
3603+
reg = <0>;
3604+
hdmi0_in: endpoint { };
3605+
};
3606+
3607+
port@1 {
3608+
reg = <1>;
3609+
hdmi0_out: endpoint { };
3610+
};
3611+
};
3612+
};
3613+
3614+
35333615
edp_tx: edp-tx@1c500000 {
35343616
compatible = "mediatek,mt8188-edp-tx";
35353617
reg = <0 0x1c500000 0 0x8000>;

0 commit comments

Comments
 (0)