Skip to content

Commit e148045

Browse files
laeyraudAngeloGioacchino Del Regno
authored andcommitted
arm64: dts: mediatek: mt8395-genio-common: Enable HDMI output
Add a definition for the on-board HDMI connector, enable and add the relevant configuration for the HDMI PHY and controller, and define the pins used by those. Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
1 parent 0ddfd2f commit e148045

1 file changed

Lines changed: 142 additions & 0 deletions

File tree

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

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,20 @@
2626
stdout-path = "serial0:921600n8";
2727
};
2828

29+
connector {
30+
compatible = "hdmi-connector";
31+
label = "hdmi";
32+
type = "a";
33+
ddc-i2c-bus = <&hdmitx_ddc>;
34+
hdmi-pwr-supply = <&hdmi_phy>;
35+
36+
port {
37+
hdmi_connector_in: endpoint {
38+
remote-endpoint = <&hdmi0_out>;
39+
};
40+
};
41+
};
42+
2943
firmware {
3044
optee {
3145
compatible = "linaro,optee-tz";
@@ -247,6 +261,18 @@
247261
wakeup-delay-ms = <200>;
248262
};
249263

264+
&dpi1 {
265+
status = "okay";
266+
};
267+
268+
&dpi1_in {
269+
remote-endpoint = <&merge5_out>;
270+
};
271+
272+
&dpi1_out {
273+
remote-endpoint = <&hdmi0_in>;
274+
};
275+
250276
&dsi0 {
251277
#address-cells = <1>;
252278
#size-cells = <0>;
@@ -313,6 +339,35 @@
313339
};
314340
};
315341

342+
&ethdr0 {
343+
ports {
344+
#address-cells = <1>;
345+
#size-cells = <0>;
346+
347+
port@0 {
348+
#address-cells = <1>;
349+
#size-cells = <0>;
350+
reg = <0>;
351+
352+
ethdr0_in: endpoint@1 {
353+
reg = <1>;
354+
remote-endpoint = <&vdosys1_ep_ext>;
355+
};
356+
};
357+
358+
port@1 {
359+
#address-cells = <1>;
360+
#size-cells = <0>;
361+
reg = <1>;
362+
363+
ethdr0_out: endpoint@1 {
364+
reg = <1>;
365+
remote-endpoint = <&merge5_in>;
366+
};
367+
};
368+
};
369+
};
370+
316371
&gamma0_out {
317372
remote-endpoint = <&dither0_in>;
318373
};
@@ -329,6 +384,27 @@
329384
status = "okay";
330385
};
331386

387+
&hdmi {
388+
pinctrl-names = "default";
389+
pinctrl-0 = <&hdmi_pins>;
390+
status = "okay";
391+
};
392+
393+
&hdmi0_in {
394+
remote-endpoint = <&dpi1_out>;
395+
};
396+
397+
&hdmi0_out {
398+
remote-endpoint = <&hdmi_connector_in>;
399+
};
400+
401+
&hdmi_phy {
402+
pinctrl-names = "default";
403+
pinctrl-0 = <&hdmi_vreg_pins>;
404+
405+
status = "okay";
406+
};
407+
332408
&i2c1 {
333409
clock-frequency = <400000>;
334410
pinctrl-0 = <&i2c1_pins>;
@@ -533,6 +609,35 @@
533609
};
534610
};
535611

612+
&merge5 {
613+
ports {
614+
#address-cells = <1>;
615+
#size-cells = <0>;
616+
617+
port@0 {
618+
#address-cells = <1>;
619+
#size-cells = <0>;
620+
reg = <0>;
621+
622+
merge5_in: endpoint@1 {
623+
reg = <1>;
624+
remote-endpoint = <&ethdr0_out>;
625+
};
626+
};
627+
628+
port@1 {
629+
#address-cells = <1>;
630+
#size-cells = <0>;
631+
reg = <1>;
632+
633+
merge5_out: endpoint@1 {
634+
reg = <1>;
635+
remote-endpoint = <&dpi1_in>;
636+
};
637+
};
638+
};
639+
};
640+
536641
&mfg0 {
537642
domain-supply = <&mt6315_7_vbuck1>;
538643
};
@@ -762,6 +867,31 @@
762867
};
763868
};
764869

870+
hdmi_vreg_pins: hdmi-vreg-pins {
871+
pins-pwr {
872+
pinmux = <PINMUX_GPIO31__FUNC_HDMITX20_PWR5V>;
873+
bias-disable;
874+
};
875+
};
876+
877+
hdmi_pins: hdmi-pins {
878+
pins-hotplug {
879+
pinmux = <PINMUX_GPIO32__FUNC_HDMITX20_HTPLG>;
880+
bias-pull-down;
881+
};
882+
883+
pins-ddc {
884+
pinmux = <PINMUX_GPIO34__FUNC_HDMITX20_SCL>,
885+
<PINMUX_GPIO35__FUNC_HDMITX20_SDA>;
886+
drive-strength = <10>;
887+
};
888+
889+
pins-cec {
890+
pinmux = <PINMUX_GPIO33__FUNC_HDMITX20_CEC>;
891+
bias-disable;
892+
};
893+
};
894+
765895
i2c0_pins: i2c0-pins {
766896
pins {
767897
pinmux = <PINMUX_GPIO8__FUNC_SDA0>,
@@ -1212,6 +1342,18 @@
12121342
};
12131343
};
12141344

1345+
&vdosys1 {
1346+
port {
1347+
#address-cells = <1>;
1348+
#size-cells = <0>;
1349+
1350+
vdosys1_ep_ext: endpoint@1 {
1351+
reg = <1>;
1352+
remote-endpoint = <&ethdr0_in>;
1353+
};
1354+
};
1355+
};
1356+
12151357
&xhci0 {
12161358
status = "okay";
12171359
};

0 commit comments

Comments
 (0)