Skip to content

Commit 6c90d33

Browse files
author
AngeloGioacchino Del Regno
committed
arm64: dts: mediatek: mt8195: 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 6fd69ff commit 6c90d33

1 file changed

Lines changed: 85 additions & 0 deletions

File tree

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

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@
2626
aliases {
2727
dp-intf0 = &dp_intf0;
2828
dp-intf1 = &dp_intf1;
29+
dpi1 = &dpi1;
2930
gce0 = &gce0;
3031
gce1 = &gce1;
32+
hdmi0 = &hdmi;
3133
ethdr0 = &ethdr0;
3234
mutex0 = &mutex;
3335
mutex1 = &mutex1;
@@ -1857,6 +1859,23 @@
18571859
#clock-cells = <1>;
18581860
};
18591861

1862+
hdmi_phy: hdmi-phy@11d5f000 {
1863+
compatible = "mediatek,mt8195-hdmi-phy";
1864+
reg = <0 0x11d5f000 0 0x100>;
1865+
clocks = <&topckgen CLK_TOP_HDMI_XTAL>,
1866+
<&infracfg_ao CLK_INFRA_AO_HDMI_26M>,
1867+
<&apmixedsys CLK_APMIXED_HDMIPLL1>,
1868+
<&apmixedsys CLK_APMIXED_HDMIPLL2>;
1869+
clock-names = "pll_ref", "26m", "pll1", "pll2";
1870+
clock-output-names = "hdmi_txpll";
1871+
1872+
#clock-cells = <0>;
1873+
#phy-cells = <0>;
1874+
mediatek,ibias = <0xa>;
1875+
mediatek,ibias_up = <0x1c>;
1876+
status = "disabled";
1877+
};
1878+
18601879
i2c0: i2c@11e00000 {
18611880
compatible = "mediatek,mt8195-i2c",
18621881
"mediatek,mt8192-i2c";
@@ -3670,6 +3689,34 @@
36703689
resets = <&vdosys1 MT8195_VDOSYS1_SW0_RST_B_MERGE4_DL_ASYNC>;
36713690
};
36723691

3692+
dpi1: dpi@1c112000 {
3693+
compatible = "mediatek,mt8195-dpi";
3694+
reg = <0 0x1c112000 0 0x1000>;
3695+
clocks = <&vdosys1 CLK_VDO1_DPI1>,
3696+
<&vdosys1 CLK_VDO1_DPI1_MM>,
3697+
<&vdosys1 CLK_VDO1_DPI1_HDMI>;
3698+
clock-names = "pixel", "engine", "pll";
3699+
interrupts = <GIC_SPI 512 IRQ_TYPE_LEVEL_HIGH 0>;
3700+
power-domains = <&spm MT8195_POWER_DOMAIN_VDOSYS1>;
3701+
resets = <&vdosys1 MT8195_VDOSYS1_SW0_RST_B_DPI1>;
3702+
status = "disabled";
3703+
3704+
ports {
3705+
#address-cells = <1>;
3706+
#size-cells = <0>;
3707+
3708+
port@0 {
3709+
reg = <0>;
3710+
dpi1_in: endpoint { };
3711+
};
3712+
3713+
port@1 {
3714+
reg = <1>;
3715+
dpi1_out: endpoint { };
3716+
};
3717+
};
3718+
};
3719+
36733720
dp_intf1: dp-intf@1c113000 {
36743721
compatible = "mediatek,mt8195-dp-intf";
36753722
reg = <0 0x1c113000 0 0x1000>;
@@ -3730,6 +3777,44 @@
37303777
"gfx_fe1_async", "vdo_be_async";
37313778
};
37323779

3780+
hdmi: hdmi-tx@1c300000 {
3781+
compatible = "mediatek,mt8195-hdmi-tx";
3782+
#sound-dai-cells = <1>;
3783+
reg = <0 0x1c300000 0 0x1000>;
3784+
clocks = <&topckgen CLK_TOP_HDMI_APB>,
3785+
<&topckgen CLK_TOP_HDCP>,
3786+
<&topckgen CLK_TOP_HDCP_24M>,
3787+
<&vppsys1 CLK_VPP1_VPP_SPLIT_HDMI>;
3788+
clock-names = "bus", "hdcp", "hdcp24m", "hdmi-split";
3789+
assigned-clocks = <&topckgen CLK_TOP_HDCP>;
3790+
assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL_D4_D8>;
3791+
interrupts = <GIC_SPI 677 IRQ_TYPE_LEVEL_HIGH 0>;
3792+
power-domains = <&spm MT8195_POWER_DOMAIN_HDMI_TX>;
3793+
phys = <&hdmi_phy>;
3794+
phy-names = "hdmi";
3795+
status = "disabled";
3796+
3797+
hdmitx_ddc: i2c {
3798+
compatible = "mediatek,mt8195-hdmi-ddc";
3799+
clocks = <&clk26m>;
3800+
};
3801+
3802+
ports {
3803+
#address-cells = <1>;
3804+
#size-cells = <0>;
3805+
3806+
port@0 {
3807+
reg = <0>;
3808+
hdmi0_in: endpoint { };
3809+
};
3810+
3811+
port@1 {
3812+
reg = <1>;
3813+
hdmi0_out: endpoint { };
3814+
};
3815+
};
3816+
};
3817+
37333818
edp_tx: edp-tx@1c500000 {
37343819
compatible = "mediatek,mt8195-edp-tx";
37353820
reg = <0 0x1c500000 0 0x8000>;

0 commit comments

Comments
 (0)