Skip to content

Commit ae9198b

Browse files
author
AngeloGioacchino Del Regno
committed
arm64: dts: mediatek: mt8390-genio-common: Enable HDMI output
Add a node for the HDMI-A connector found on this board, then configure the display pipeline and enable the required DPI1 interface, HDMI controller, its integrated DDC and the HDMI PHY to enable support for the HDMI output provided by these EVKs. Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
1 parent 5875428 commit ae9198b

1 file changed

Lines changed: 141 additions & 0 deletions

File tree

arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,20 @@
5555
wakeup-delay-ms = <30>;
5656
};
5757

58+
connector {
59+
compatible = "hdmi-connector";
60+
label = "hdmi";
61+
type = "a";
62+
ddc-i2c-bus = <&hdmi_ddc>;
63+
hdmi-pwr-supply = <&hdmi_phy>;
64+
65+
port {
66+
hdmi_connector_in: endpoint {
67+
remote-endpoint = <&hdmi0_out>;
68+
};
69+
};
70+
};
71+
5872
firmware {
5973
optee {
6074
compatible = "linaro,optee-tz";
@@ -328,6 +342,18 @@
328342
remote-endpoint = <&dsi0_in>;
329343
};
330344

345+
&dpi1 {
346+
status = "okay";
347+
};
348+
349+
&dpi1_in {
350+
remote-endpoint = <&merge5_out>;
351+
};
352+
353+
&dpi1_out {
354+
remote-endpoint = <&hdmi0_in>;
355+
};
356+
331357
&gamma0_out {
332358
remote-endpoint = <&postmask0_in>;
333359
};
@@ -337,6 +363,55 @@
337363
status = "okay";
338364
};
339365

366+
&ethdr0 {
367+
ports {
368+
#address-cells = <1>;
369+
#size-cells = <0>;
370+
371+
port@0 {
372+
#address-cells = <1>;
373+
#size-cells = <0>;
374+
reg = <0>;
375+
376+
ethdr0_in: endpoint@1 {
377+
reg = <1>;
378+
remote-endpoint = <&vdosys1_ep_ext>;
379+
};
380+
};
381+
382+
port@1 {
383+
#address-cells = <1>;
384+
#size-cells = <0>;
385+
reg = <1>;
386+
387+
ethdr0_out: endpoint@1 {
388+
reg = <1>;
389+
remote-endpoint = <&merge5_in>;
390+
};
391+
};
392+
};
393+
};
394+
395+
&hdmi {
396+
pinctrl-names = "default";
397+
pinctrl-0 = <&hdmi_pins>;
398+
status = "okay";
399+
};
400+
401+
&hdmi0_in {
402+
remote-endpoint = <&dpi1_out>;
403+
};
404+
405+
&hdmi0_out {
406+
remote-endpoint = <&hdmi_connector_in>;
407+
};
408+
409+
&hdmi_phy {
410+
pinctrl-names = "default";
411+
pinctrl-0 = <&hdmi_vreg_pins>;
412+
status = "okay";
413+
};
414+
340415
&i2c0 {
341416
pinctrl-names = "default";
342417
pinctrl-0 = <&i2c0_pins>;
@@ -475,6 +550,35 @@
475550
status = "okay";
476551
};
477552

553+
&merge5 {
554+
ports {
555+
#address-cells = <1>;
556+
#size-cells = <0>;
557+
558+
port@0 {
559+
#address-cells = <1>;
560+
#size-cells = <0>;
561+
reg = <0>;
562+
563+
merge5_in: endpoint@1 {
564+
reg = <1>;
565+
remote-endpoint = <&ethdr0_out>;
566+
};
567+
};
568+
569+
port@1 {
570+
#address-cells = <1>;
571+
#size-cells = <0>;
572+
reg = <1>;
573+
574+
merge5_out: endpoint@1 {
575+
reg = <1>;
576+
remote-endpoint = <&dpi1_in>;
577+
};
578+
};
579+
};
580+
};
581+
478582
&mfg0 {
479583
domain-supply = <&mt6359_vproc2_buck_reg>;
480584
};
@@ -727,6 +831,31 @@
727831
};
728832
};
729833

834+
hdmi_vreg_pins: hdmi-vreg-pins {
835+
pins-pwr {
836+
pinmux = <PINMUX_GPIO50__FUNC_O_HDMITX20_PWR5V>;
837+
bias-disable;
838+
};
839+
};
840+
841+
hdmi_pins: hdmi-pins {
842+
pins-hotplug {
843+
pinmux = <PINMUX_GPIO51__FUNC_I0_HDMITX20_HTPLG>;
844+
bias-pull-down;
845+
};
846+
847+
pins-cec {
848+
pinmux = <PINMUX_GPIO52__FUNC_B1_HDMITX20_CEC>;
849+
bias-disable;
850+
};
851+
852+
pins-ddc {
853+
pinmux = <PINMUX_GPIO53__FUNC_B1_HDMITX20_SCL>,
854+
<PINMUX_GPIO54__FUNC_B1_HDMITX20_SDA>;
855+
drive-strength = <10>;
856+
};
857+
};
858+
730859
i2c0_pins: i2c0-pins {
731860
pins {
732861
pinmux = <PINMUX_GPIO56__FUNC_B1_SDA0>,
@@ -1286,6 +1415,18 @@
12861415
};
12871416
};
12881417

1418+
&vdosys1 {
1419+
port {
1420+
#address-cells = <1>;
1421+
#size-cells = <0>;
1422+
1423+
vdosys1_ep_ext: endpoint@1 {
1424+
reg = <1>;
1425+
remote-endpoint = <&ethdr0_in>;
1426+
};
1427+
};
1428+
};
1429+
12891430
&xhci0 {
12901431
status = "okay";
12911432
};

0 commit comments

Comments
 (0)