From fa03817115eac5804a7dfca49d5c1f3e7ada004b Mon Sep 17 00:00:00 2001 From: Josep Orga Date: Thu, 2 Nov 2023 17:17:31 +0100 Subject: [PATCH] arm64: dts: imx8mp-somdevices.dtsi: Add LVDS panel suppport. Signed-off-by: Josep Orga --- .../boot/dts/freescale/imx8mp-somdevices.dtsi | 51 ++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-somdevices.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-somdevices.dtsi index 635117a839be..18516035fc84 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-somdevices.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-somdevices.dtsi @@ -129,6 +129,38 @@ default-brightness-level = <80>; }; + lvds0_panel { + compatible = "panel-lvds"; + backlight = <&lvds_backlight>; + width-mm = <154>; + height-mm = <87>; + data-mapping = "vesa-24"; + status = "okay"; + + panel-timing { + clock-frequency = <51200000>; + hactive = <1024>; + vactive = <600>; + hfront-porch = <120>; + hsync-len = <20>; + hback-porch = <140>; + vfront-porch = <12>; + vsync-len = <3>; + vback-porch = <20>; + + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <0>; + }; + + port { + panel_in: endpoint { + remote-endpoint = <&lvds_out>; + }; + }; + }; + usdhc1_pwrseq: usdhc1_pwrseq { compatible = "mmc-pwrseq-simple"; pinctrl-names = "default"; @@ -404,14 +436,17 @@ status = "okay"; }; +/* MIPI-DSI */ &lcdif1 { - status = "okay"; + status = "disabled"; }; +/* LVDS */ &lcdif2 { status = "okay"; }; +/* HDMI */ &lcdif3 { status = "okay"; @@ -421,6 +456,20 @@ &ldb { status = "okay"; + + lvds-channel@0 { + fsl,data-mapping = "spwg"; + fsl,data-width = <24>; + status = "okay"; + + port@1 { + reg = <1>; + + lvds_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; + }; }; &ldb_phy { -- 2.17.1