From 7b62b9e258f0c162ecf1aa9ea8ec8d675767602b Mon Sep 17 00:00:00 2001 From: Oleksandr Suvorov Date: Mon, 3 Aug 2020 11:28:25 +0300 Subject: apalis-imx8x: convert lt161010 to syntactic sugar Convert an overlay file for LT161010 7" display for Apalis 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 --- overlays/apalis-imx8x_display-lt161010_overlay.dts | 62 ++++++++++------------ 1 file changed, 29 insertions(+), 33 deletions(-) diff --git a/overlays/apalis-imx8x_display-lt161010_overlay.dts b/overlays/apalis-imx8x_display-lt161010_overlay.dts index 2e94aa7..10ea4a9 100644 --- a/overlays/apalis-imx8x_display-lt161010_overlay.dts +++ b/overlays/apalis-imx8x_display-lt161010_overlay.dts @@ -4,39 +4,35 @@ /plugin/; / { compatible = "toradex,apalis-imx8qxp"; - fragment@0 { - target-path = "/lcdif@5a180000"; - __overlay__ { - status = "okay"; - }; - }; +}; + +&{/lcdif@5a180000} { + status = "okay"; +}; + +&{/panel-1} { + compatible = "panel-dpi"; - fragment@1 { - target-path = "/panel-1"; - __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