summaryrefslogtreecommitdiff
path: root/recipes-kernel/linux/rvphone/cl-imx8/dts/cl-imx8-lvds.dtsi
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2021-08-18 03:20:25 +0200
committerUros Majstorovic <majstor@majstor.org>2021-08-18 03:20:25 +0200
commita4db825b4daf66f94c5f9f8450b7f27c42308735 (patch)
tree512ad02256c837559d118dbf07fb7d34cffd4abc /recipes-kernel/linux/rvphone/cl-imx8/dts/cl-imx8-lvds.dtsi
parentdaaa3cc09775176ccf818f24a77f173bf42d3541 (diff)
refactor dts
Diffstat (limited to 'recipes-kernel/linux/rvphone/cl-imx8/dts/cl-imx8-lvds.dtsi')
-rw-r--r--recipes-kernel/linux/rvphone/cl-imx8/dts/cl-imx8-lvds.dtsi87
1 files changed, 87 insertions, 0 deletions
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>;
+ };
+ };
+};