From 35160f0cf8d8d6f18b7fd35a161a48d74eef9c05 Mon Sep 17 00:00:00 2001 From: Oleksandr Suvorov Date: Sat, 1 Aug 2020 20:05:55 +0300 Subject: colibri-imx8x: convert lt170410 to syntactic sugar Convert an overlay file for LT170410 10" LVDS display on Colibri-iMX8QXP module into the Syntactic Sugar format. This format is strongly recommended in Embedded Linux Wiki [1]. [1] https://elinux.org/Device_Tree_Reference#Overlay_Source_Format Related-to: ELB-2834 Signed-off-by: Oleksandr Suvorov --- .../colibri-imx8x_display-lt170410_overlay.dts | 62 ++++++++++------------ 1 file changed, 29 insertions(+), 33 deletions(-) (limited to 'overlays') diff --git a/overlays/colibri-imx8x_display-lt170410_overlay.dts b/overlays/colibri-imx8x_display-lt170410_overlay.dts index df315d7..3224361 100644 --- a/overlays/colibri-imx8x_display-lt170410_overlay.dts +++ b/overlays/colibri-imx8x_display-lt170410_overlay.dts @@ -4,39 +4,35 @@ /plugin/; / { compatible = "toradex,colibri-imx8qxp"; - fragment@0 { - target = <&adma_lcdif>; - __overlay__ { - status = "okay"; - }; - }; +}; + +&adma_lcdif { + status = "okay"; +}; + +&{/panel} { + compatible = "panel-dpi"; - fragment@1 { - target-path = "/panel"; - __overlay__ { - compatible = "panel-dpi"; - - width-mm = <217>; - height-mm = <136>; - - data-mapping = "bgr666"; - - panel-timing { - clock-frequency = <33260000>; - hactive = <800>; - vactive = <480>; - hback-porch = <88>; - hfront-porch = <40>; - vback-porch = <32>; - vfront-porch = <13>; - hsync-len = <48>; - vsync-len = <3>; - - de-active = <1>; - hsync-active = <0>; - vsync-active = <0>; - pixelclk-active = <1>; - }; - }; + width-mm = <217>; + height-mm = <136>; + + data-mapping = "bgr666"; + + panel-timing { + clock-frequency = <33260000>; + hactive = <800>; + vactive = <480>; + hback-porch = <88>; + hfront-porch = <40>; + vback-porch = <32>; + vfront-porch = <13>; + hsync-len = <48>; + vsync-len = <3>; + + de-active = <1>; + hsync-active = <0>; + vsync-active = <0>; + pixelclk-active = <1>; }; }; + -- cgit v1.2.3