From: Josep Orga Date: Thu, 2 Nov 2023 16:17:31 +0000 (+0100) Subject: arm64: dts: imx8mp-somdevices.dtsi: Add LVDS panel suppport. X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.3~3 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=fa03817115eac5804a7dfca49d5c1f3e7ada004b;p=linux.git arm64: dts: imx8mp-somdevices.dtsi: Add LVDS panel suppport. Signed-off-by: Josep Orga --- 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 {