Skip to content

Commit 19a385b

Browse files
author
AngeloGioacchino Del Regno
committed
arm64: dts: mediatek: mt8395-radxa-nio-12l: 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 0ad0f93 commit 19a385b

1 file changed

Lines changed: 142 additions & 0 deletions

File tree

arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,20 @@
3737
stdout-path = "serial0:921600n8";
3838
};
3939

40+
connector {
41+
compatible = "hdmi-connector";
42+
label = "hdmi";
43+
type = "a";
44+
ddc-i2c-bus = <&hdmitx_ddc>;
45+
hdmi-pwr-supply = <&hdmi_phy>;
46+
47+
port {
48+
hdmi_connector_in: endpoint {
49+
remote-endpoint = <&hdmi0_out>;
50+
};
51+
};
52+
};
53+
4054
firmware {
4155
optee {
4256
compatible = "linaro,optee-tz";
@@ -245,6 +259,18 @@
245259
};
246260
};
247261

262+
&dpi1 {
263+
status = "okay";
264+
};
265+
266+
&dpi1_in {
267+
remote-endpoint = <&merge5_out>;
268+
};
269+
270+
&dpi1_out {
271+
remote-endpoint = <&hdmi0_in>;
272+
};
273+
248274
&eth {
249275
phy-mode = "rgmii-rxid";
250276
phy-handle = <&rgmii_phy>;
@@ -265,11 +291,61 @@
265291
};
266292
};
267293

294+
&ethdr0 {
295+
ports {
296+
#address-cells = <1>;
297+
#size-cells = <0>;
298+
299+
port@0 {
300+
#address-cells = <1>;
301+
#size-cells = <0>;
302+
reg = <0>;
303+
304+
ethdr0_in: endpoint@1 {
305+
reg = <1>;
306+
remote-endpoint = <&vdosys1_ep_ext>;
307+
};
308+
};
309+
310+
port@1 {
311+
#address-cells = <1>;
312+
#size-cells = <0>;
313+
reg = <1>;
314+
315+
ethdr0_out: endpoint@1 {
316+
reg = <1>;
317+
remote-endpoint = <&merge5_in>;
318+
};
319+
};
320+
};
321+
};
322+
268323
&gpu {
269324
mali-supply = <&mt6315_7_vbuck1>;
270325
status = "okay";
271326
};
272327

328+
&hdmi {
329+
pinctrl-names = "default";
330+
pinctrl-0 = <&hdmi_pins>;
331+
status = "okay";
332+
};
333+
334+
&hdmi0_in {
335+
remote-endpoint = <&dpi1_out>;
336+
};
337+
338+
&hdmi0_out {
339+
remote-endpoint = <&hdmi_connector_in>;
340+
};
341+
342+
&hdmi_phy {
343+
pinctrl-names = "default";
344+
pinctrl-0 = <&hdmi_vreg_pins>;
345+
346+
status = "okay";
347+
};
348+
273349
&i2c2 {
274350
clock-frequency = <400000>;
275351
pinctrl-0 = <&i2c2_pins>;
@@ -448,6 +524,35 @@
448524
};
449525
};
450526

527+
&merge5 {
528+
ports {
529+
#address-cells = <1>;
530+
#size-cells = <0>;
531+
532+
port@0 {
533+
#address-cells = <1>;
534+
#size-cells = <0>;
535+
reg = <0>;
536+
537+
merge5_in: endpoint@1 {
538+
reg = <1>;
539+
remote-endpoint = <&ethdr0_out>;
540+
};
541+
};
542+
543+
port@1 {
544+
#address-cells = <1>;
545+
#size-cells = <0>;
546+
reg = <1>;
547+
548+
merge5_out: endpoint@1 {
549+
reg = <1>;
550+
remote-endpoint = <&dpi1_in>;
551+
};
552+
};
553+
};
554+
};
555+
451556
&mfg0 {
452557
domain-supply = <&mt6315_7_vbuck1>;
453558
};
@@ -647,6 +752,31 @@
647752
};
648753
};
649754

755+
hdmi_vreg_pins: hdmi-vreg-pins {
756+
pins-pwr {
757+
pinmux = <PINMUX_GPIO31__FUNC_HDMITX20_PWR5V>;
758+
bias-disable;
759+
};
760+
};
761+
762+
hdmi_pins: hdmi-pins {
763+
pins-hotplug {
764+
pinmux = <PINMUX_GPIO32__FUNC_HDMITX20_HTPLG>;
765+
bias-pull-down;
766+
};
767+
768+
pins-ddc {
769+
pinmux = <PINMUX_GPIO34__FUNC_HDMITX20_SCL>,
770+
<PINMUX_GPIO35__FUNC_HDMITX20_SDA>;
771+
drive-strength = <10>;
772+
};
773+
774+
pins-cec {
775+
pinmux = <PINMUX_GPIO33__FUNC_HDMITX20_CEC>;
776+
bias-disable;
777+
};
778+
};
779+
650780
i2c2_pins: i2c2-pins {
651781
pins-bus {
652782
pinmux = <PINMUX_GPIO12__FUNC_SDA2>,
@@ -1058,6 +1188,18 @@
10581188
status = "okay";
10591189
};
10601190

1191+
&vdosys1 {
1192+
port {
1193+
#address-cells = <1>;
1194+
#size-cells = <0>;
1195+
1196+
vdosys1_ep_ext: endpoint@1 {
1197+
reg = <1>;
1198+
remote-endpoint = <&ethdr0_in>;
1199+
};
1200+
};
1201+
};
1202+
10611203
&xhci0 {
10621204
vbus-supply = <&otg_vbus_regulator>;
10631205
status = "okay";

0 commit comments

Comments
 (0)