From ee6091f54eae01f2c6c98e898e49603e5336ea8b Mon Sep 17 00:00:00 2001 From: Oleksandr Suvorov Date: Mon, 3 Aug 2020 11:31:00 +0300 Subject: apalis-imx8x: convert lt170410 to syntactic sugar Convert an overlay file for LT170410 10" LVDS display on 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-lt170410_overlay.dts | 60 +++++++++++----------- 1 file changed, 29 insertions(+), 31 deletions(-) diff --git a/overlays/apalis-imx8x_display-lt170410_overlay.dts b/overlays/apalis-imx8x_display-lt170410_overlay.dts index 57a2a88..464a6e2 100644 --- a/overlays/apalis-imx8x_display-lt170410_overlay.dts +++ b/overlays/apalis-imx8x_display-lt170410_overlay.dts @@ -4,37 +4,35 @@ /plugin/; / { compatible = "toradex,apalis-imx8qxp"; - fragment@0 { - target = <&ldb1>; - __overlay__ { - status = "okay"; - }; - }; +}; + +&ldb1 { + status = "okay"; +}; + +&panel_2 { + status = "okay"; + compatible = "panel-lvds"; - fragment@1 { - target = <&panel_2>; - __overlay__ { - status = "okay"; - compatible = "panel-lvds"; - - data-mapping = "vesa-24"; - width-mm = <1280>; - height-mm = <800>; - - 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>; - }; - }; + width-mm = <1280>; + height-mm = <800>; + + data-mapping = "vesa-24"; + + 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