From a4db825b4daf66f94c5f9f8450b7f27c42308735 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 18 Aug 2021 03:20:25 +0200 Subject: refactor dts --- .../linux/rvphone/cl-imx8/dts/cl-imx8-lvds.dtsi | 87 ++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 recipes-kernel/linux/rvphone/cl-imx8/dts/cl-imx8-lvds.dtsi (limited to 'recipes-kernel/linux/rvphone/cl-imx8/dts/cl-imx8-lvds.dtsi') diff --git a/recipes-kernel/linux/rvphone/cl-imx8/dts/cl-imx8-lvds.dtsi b/recipes-kernel/linux/rvphone/cl-imx8/dts/cl-imx8-lvds.dtsi new file mode 100644 index 0000000..457b0cb --- /dev/null +++ b/recipes-kernel/linux/rvphone/cl-imx8/dts/cl-imx8-lvds.dtsi @@ -0,0 +1,87 @@ +&iomuxc { + rvphone-cl-imx8-lvds { + pinctrl_dsi_lvds: dsilvdsgrp { + fsl,pins = < + MX8MQ_IOMUXC_GPIO1_IO06_GPIO1_IO6 0x16 + >; + }; + }; +}; + +&i2c2 { + ti_bridge: sn65dsi83@2c { + compatible = "ti,sn65dsi83"; + reg = <0x2c>; + ti,dsi-lanes = <1>; + ti,lvds-format = <1>; + ti,lvds-bpp = <24>; + ti,width-mm = <149>; + ti,height-mm = <93>; + enable-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_dsi_lvds>; + status = "okay"; + + display-timings { + lvds { + clock-frequency = <30000000>; + hactive = <800>; + vactive = <480>; + hback-porch = <46>; + hfront-porch = <210>; + vback-porch = <23>; + vfront-porch = <22>; + hsync-len = <20>; + vsync-len = <10>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <0>; + pixelclk-active = <0>; + }; + }; + + port { + sn65dsi83_in: endpoint { + remote-endpoint = <&mipi_dsi_bridge_out>; + }; + }; + }; +}; + +&mipi_dsi_bridge { + status = "okay"; + + port@1 { + mipi_dsi_bridge_out: endpoint { + remote-endpoint = <&sn65dsi83_in>; + }; + }; +}; + +&lcdif { + status = "okay"; + max-res = <1920>, <1200>; + + port@0 { + lcdif_mipi_dsi: mipi-dsi-endpoint { + remote-endpoint = <&mipi_dsi_in>; + }; + }; +}; + +&mipi_dsi_phy { + status = "okay"; +}; + +&mipi_dsi { + status = "okay"; + as_bridge; + sync-pol = <1>; + pwr-delay = <10>; + + port@1 { + mipi_dsi_in: endpoint { + remote-endpoint = <&lcdif_mipi_dsi>; + }; + }; +}; -- cgit v1.2.3