Skip to content

Commit 72f3e3d

Browse files
FaboAngeloGioacchino Del Regno
authored andcommitted
arm64: dts: mediatek: mt8183-pumpkin: add HDMI support
The MT8183 Pumpkin board has a micro-HDMI connector. HDMI support is provided by an IT66121 DPI <-> HDMI bridge. Enable the DPI and add the node for the IT66121 bridge. Signed-off-by: Fabien Parent <fparent@baylibre.com> Co-developed-by: Pin-yen Lin <treapking@chromium.org> Signed-off-by: Pin-yen Lin <treapking@chromium.org> Reviewed-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Link: https://lore.kernel.org/r/20240919094212.1902073-1-treapking@chromium.org Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
1 parent 377548f commit 72f3e3d

File tree

1 file changed

+123
-0
lines changed

1 file changed

+123
-0
lines changed

arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,18 @@
6363
pulldown-ohm = <0>;
6464
io-channels = <&auxadc 0>;
6565
};
66+
67+
connector {
68+
compatible = "hdmi-connector";
69+
label = "hdmi";
70+
type = "d";
71+
72+
port {
73+
hdmi_connector_in: endpoint {
74+
remote-endpoint = <&hdmi_connector_out>;
75+
};
76+
};
77+
};
6678
};
6779

6880
&auxadc {
@@ -120,6 +132,43 @@
120132
pinctrl-0 = <&i2c6_pins>;
121133
status = "okay";
122134
clock-frequency = <100000>;
135+
#address-cells = <1>;
136+
#size-cells = <0>;
137+
138+
it66121hdmitx: hdmitx@4c {
139+
compatible = "ite,it66121";
140+
reg = <0x4c>;
141+
pinctrl-names = "default";
142+
pinctrl-0 = <&ite_pins>;
143+
reset-gpios = <&pio 160 GPIO_ACTIVE_LOW>;
144+
interrupt-parent = <&pio>;
145+
interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
146+
vcn33-supply = <&mt6358_vcn33_reg>;
147+
vcn18-supply = <&mt6358_vcn18_reg>;
148+
vrf12-supply = <&mt6358_vrf12_reg>;
149+
150+
ports {
151+
#address-cells = <1>;
152+
#size-cells = <0>;
153+
154+
port@0 {
155+
reg = <0>;
156+
157+
it66121_in: endpoint {
158+
bus-width = <12>;
159+
remote-endpoint = <&dpi_out>;
160+
};
161+
};
162+
163+
port@1 {
164+
reg = <1>;
165+
166+
hdmi_connector_out: endpoint {
167+
remote-endpoint = <&hdmi_connector_in>;
168+
};
169+
};
170+
};
171+
};
123172
};
124173

125174
&keyboard {
@@ -362,6 +411,67 @@
362411
input-enable;
363412
};
364413
};
414+
415+
ite_pins: ite-pins {
416+
pins-irq {
417+
pinmux = <PINMUX_GPIO4__FUNC_GPIO4>;
418+
input-enable;
419+
bias-pull-up;
420+
};
421+
422+
pins-rst {
423+
pinmux = <PINMUX_GPIO160__FUNC_GPIO160>;
424+
output-high;
425+
};
426+
};
427+
428+
dpi_func_pins: dpi-func-pins {
429+
pins-dpi {
430+
pinmux = <PINMUX_GPIO12__FUNC_I2S5_BCK>,
431+
<PINMUX_GPIO46__FUNC_I2S5_LRCK>,
432+
<PINMUX_GPIO47__FUNC_I2S5_DO>,
433+
<PINMUX_GPIO13__FUNC_DBPI_D0>,
434+
<PINMUX_GPIO14__FUNC_DBPI_D1>,
435+
<PINMUX_GPIO15__FUNC_DBPI_D2>,
436+
<PINMUX_GPIO16__FUNC_DBPI_D3>,
437+
<PINMUX_GPIO17__FUNC_DBPI_D4>,
438+
<PINMUX_GPIO18__FUNC_DBPI_D5>,
439+
<PINMUX_GPIO19__FUNC_DBPI_D6>,
440+
<PINMUX_GPIO20__FUNC_DBPI_D7>,
441+
<PINMUX_GPIO21__FUNC_DBPI_D8>,
442+
<PINMUX_GPIO22__FUNC_DBPI_D9>,
443+
<PINMUX_GPIO23__FUNC_DBPI_D10>,
444+
<PINMUX_GPIO24__FUNC_DBPI_D11>,
445+
<PINMUX_GPIO25__FUNC_DBPI_HSYNC>,
446+
<PINMUX_GPIO26__FUNC_DBPI_VSYNC>,
447+
<PINMUX_GPIO27__FUNC_DBPI_DE>,
448+
<PINMUX_GPIO28__FUNC_DBPI_CK>;
449+
};
450+
};
451+
452+
dpi_idle_pins: dpi-idle-pins {
453+
pins-idle {
454+
pinmux = <PINMUX_GPIO12__FUNC_GPIO12>,
455+
<PINMUX_GPIO46__FUNC_GPIO46>,
456+
<PINMUX_GPIO47__FUNC_GPIO47>,
457+
<PINMUX_GPIO13__FUNC_GPIO13>,
458+
<PINMUX_GPIO14__FUNC_GPIO14>,
459+
<PINMUX_GPIO15__FUNC_GPIO15>,
460+
<PINMUX_GPIO16__FUNC_GPIO16>,
461+
<PINMUX_GPIO17__FUNC_GPIO17>,
462+
<PINMUX_GPIO18__FUNC_GPIO18>,
463+
<PINMUX_GPIO19__FUNC_GPIO19>,
464+
<PINMUX_GPIO20__FUNC_GPIO20>,
465+
<PINMUX_GPIO21__FUNC_GPIO21>,
466+
<PINMUX_GPIO22__FUNC_GPIO22>,
467+
<PINMUX_GPIO23__FUNC_GPIO23>,
468+
<PINMUX_GPIO24__FUNC_GPIO24>,
469+
<PINMUX_GPIO25__FUNC_GPIO25>,
470+
<PINMUX_GPIO26__FUNC_GPIO26>,
471+
<PINMUX_GPIO27__FUNC_GPIO27>,
472+
<PINMUX_GPIO28__FUNC_GPIO28>;
473+
};
474+
};
365475
};
366476

367477
&pmic {
@@ -415,3 +525,16 @@
415525
&dsi0 {
416526
status = "disabled";
417527
};
528+
529+
&dpi0 {
530+
pinctrl-names = "default", "sleep";
531+
pinctrl-0 = <&dpi_func_pins>;
532+
pinctrl-1 = <&dpi_idle_pins>;
533+
status = "okay";
534+
535+
port {
536+
dpi_out: endpoint {
537+
remote-endpoint = <&it66121_in>;
538+
};
539+
};
540+
};

0 commit comments

Comments
 (0)