[PATCH v6 7/9] riscv: dts: thead: lichee-pi-4a: enable HDMI

Icenowy Zheng posted 9 patches 2 weeks, 3 days ago
There is a newer version of this series
[PATCH v6 7/9] riscv: dts: thead: lichee-pi-4a: enable HDMI
Posted by Icenowy Zheng 2 weeks, 3 days ago
Lichee Pi 4A board features a HDMI Type-A connector connected to the
HDMI TX controller of TH1520 SoC.

Add a device tree node describing the connector, connect it to the HDMI
controller, and enable everything on this display pipeline.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Tested-by: Han Gao <gaohan@iscas.ac.cn>
Tested-by: Michal Wilczynski <m.wilczynski@samsung.com>
---
No changes in v5.

Changes in v4:
- Rebased on top of v6.19-rc1.

No changes in v2, v3.

 .../boot/dts/thead/th1520-lichee-pi-4a.dts    | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts b/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts
index c58c2085ca92a..7cb7d28683bce 100644
--- a/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts
+++ b/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts
@@ -29,6 +29,17 @@ chosen {
 		stdout-path = "serial0:115200n8";
 	};
 
+	hdmi-connector {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_con_in: endpoint {
+				remote-endpoint = <&hdmi_out_con>;
+			};
+		};
+	};
+
 	thermal-zones {
 		cpu-thermal {
 			polling-delay = <1000>;
@@ -121,6 +132,20 @@ rx-pins {
 	};
 };
 
+&dpu {
+	status = "okay";
+};
+
+&hdmi {
+	status = "okay";
+};
+
+&hdmi_out_port {
+	hdmi_out_con: endpoint {
+		remote-endpoint = <&hdmi_con_in>;
+	};
+};
+
 &uart0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart0_pins>;
-- 
2.52.0
Re: [PATCH v6 7/9] riscv: dts: thead: lichee-pi-4a: enable HDMI
Posted by Drew Fustini 1 week, 5 days ago
On Fri, Jan 23, 2026 at 05:28:28PM +0800, Icenowy Zheng wrote:
> Lichee Pi 4A board features a HDMI Type-A connector connected to the
> HDMI TX controller of TH1520 SoC.
> 
> Add a device tree node describing the connector, connect it to the HDMI
> controller, and enable everything on this display pipeline.
> 
> Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
> Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
> Tested-by: Han Gao <gaohan@iscas.ac.cn>
> Tested-by: Michal Wilczynski <m.wilczynski@samsung.com>
> ---
> No changes in v5.
> 
> Changes in v4:
> - Rebased on top of v6.19-rc1.
> 
> No changes in v2, v3.
> 
>  .../boot/dts/thead/th1520-lichee-pi-4a.dts    | 25 +++++++++++++++++++
>  1 file changed, 25 insertions(+)

Reviewed-by: Drew Fustini <fustini@kernel.org>
Re: [PATCH v6 7/9] riscv: dts: thead: lichee-pi-4a: enable HDMI
Posted by Drew Fustini 1 week, 5 days ago
On Wed, Jan 28, 2026 at 10:52:54AM -0800, Drew Fustini wrote:
> On Fri, Jan 23, 2026 at 05:28:28PM +0800, Icenowy Zheng wrote:
> > Lichee Pi 4A board features a HDMI Type-A connector connected to the
> > HDMI TX controller of TH1520 SoC.
> > 
> > Add a device tree node describing the connector, connect it to the HDMI
> > controller, and enable everything on this display pipeline.
> > 
> > Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
> > Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
> > Tested-by: Han Gao <gaohan@iscas.ac.cn>
> > Tested-by: Michal Wilczynski <m.wilczynski@samsung.com>
> > ---
> > No changes in v5.
> > 
> > Changes in v4:
> > - Rebased on top of v6.19-rc1.
> > 
> > No changes in v2, v3.
> > 
> >  .../boot/dts/thead/th1520-lichee-pi-4a.dts    | 25 +++++++++++++++++++
> >  1 file changed, 25 insertions(+)
> 
> Reviewed-by: Drew Fustini <fustini@kernel.org>

I've applied this to tenstorrent-dt-for-next

https://git.kernel.org/pub/scm/linux/kernel/git/fustini/linux.git/commit/?h=tenstorrent-dt-for-next&id=0075f4c3aade0d436925026eaefb14be1ec52a69

Hopefully we can get some testing done with a next release once the driver patches hit next.

Thanks,
Drew
Re: [PATCH v6 7/9] riscv: dts: thead: lichee-pi-4a: enable HDMI
Posted by Drew Fustini 1 week, 5 days ago
On Wed, Jan 28, 2026 at 11:45:16AM -0800, Drew Fustini wrote:
> On Wed, Jan 28, 2026 at 10:52:54AM -0800, Drew Fustini wrote:
> > On Fri, Jan 23, 2026 at 05:28:28PM +0800, Icenowy Zheng wrote:
> > > Lichee Pi 4A board features a HDMI Type-A connector connected to the
> > > HDMI TX controller of TH1520 SoC.
> > > 
> > > Add a device tree node describing the connector, connect it to the HDMI
> > > controller, and enable everything on this display pipeline.
> > > 
> > > Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
> > > Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
> > > Tested-by: Han Gao <gaohan@iscas.ac.cn>
> > > Tested-by: Michal Wilczynski <m.wilczynski@samsung.com>
> > > ---
> > > No changes in v5.
> > > 
> > > Changes in v4:
> > > - Rebased on top of v6.19-rc1.
> > > 
> > > No changes in v2, v3.
> > > 
> > >  .../boot/dts/thead/th1520-lichee-pi-4a.dts    | 25 +++++++++++++++++++
> > >  1 file changed, 25 insertions(+)
> > 
> > Reviewed-by: Drew Fustini <fustini@kernel.org>
> 
> I've applied this to tenstorrent-dt-for-next
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/fustini/linux.git/commit/?h=tenstorrent-dt-for-next&id=0075f4c3aade0d436925026eaefb14be1ec52a69
> 
> Hopefully we can get some testing done with a next release once the driver patches hit next.

Sorry about my typo mistake. The correct branch is thead-dt-for-next

https://git.kernel.org/pub/scm/linux/kernel/git/fustini/linux.git/log/?h=thead-dt-for-next

Thanks,
Drew