From 6e8f6f00a8723c1262b918d662d79882e416db5e Mon Sep 17 00:00:00 2001 From: Oleksandr Suvorov Date: Wed, 29 Jul 2020 16:06:33 +0300 Subject: display: convert lt170410 to syntactic sugar Convert an overlay file for LT170410 10" LVDS display 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/display-lt170410_overlay.dts | 42 +++++++++++++++++------------------ 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/overlays/display-lt170410_overlay.dts b/overlays/display-lt170410_overlay.dts index 5c9fc34..b4159b2 100644 --- a/overlays/display-lt170410_overlay.dts +++ b/overlays/display-lt170410_overlay.dts @@ -5,30 +5,28 @@ / { compatible = "toradex,apalis_imx6q"; +}; - fragment@0 { - target-path="/panel-lvds"; - __overlay__ { - status = "okay"; +&{/panel-lvds} { + status = "okay"; - data-mapping = "vesa-24"; - width-mm = <217>; - height-mm = <136>; + data-mapping = "vesa-24"; + width-mm = <217>; + height-mm = <136>; - panel-timing { - clock-frequency = <68930000>; - hactive = <1280>; - vactive = <800>; - hback-porch = <64>; - hfront-porch = <64>; - vback-porch = <5>; - vfront-porch = <5>; - hsync-len = <40>; - vsync-len = <6>; - hsync-active = <0>; - vsync-active = <0>; - pixelclk-active = <0>; - }; - }; + panel-timing { + clock-frequency = <68930000>; + hactive = <1280>; + vactive = <800>; + hback-porch = <64>; + hfront-porch = <64>; + vback-porch = <5>; + vfront-porch = <5>; + hsync-len = <40>; + vsync-len = <6>; + hsync-active = <0>; + vsync-active = <0>; + pixelclk-active = <0>; }; }; + -- cgit v1.2.3