From 6b94070f65401be76b1726c2db1c48d5774de40f Mon Sep 17 00:00:00 2001 From: Oleksandr Suvorov Date: Mon, 3 Aug 2020 11:05:29 +0300 Subject: apalis-imx8qm: convert lt170410 to syntactic sugar Convert an overlay file for LT170410 10" LVDS display on Apalis-iMX8QM 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 --- .../apalis-imx8qm_display-lt170410_overlay.dts | 68 ++++++++++------------ 1 file changed, 31 insertions(+), 37 deletions(-) diff --git a/overlays/apalis-imx8qm_display-lt170410_overlay.dts b/overlays/apalis-imx8qm_display-lt170410_overlay.dts index 88a6a1d..5f65f05 100644 --- a/overlays/apalis-imx8qm_display-lt170410_overlay.dts +++ b/overlays/apalis-imx8qm_display-lt170410_overlay.dts @@ -4,44 +4,38 @@ /plugin/; / { compatible = "toradex,apalis-imx8qm"; - fragment@0 { - target = <&ldb2>; - __overlay__ { - status = "okay"; - }; - }; +}; - fragment@1 { - target = <&ldb2_phy>; - __overlay__ { - status = "okay"; - }; - }; +&ldb2 { + status = "okay"; +}; + +&ldb2_phy { + status = "okay"; +}; + +&{/lvds1_panel} { + status = "okay"; + compatible = "panel-lvds"; + + data-mapping = "vesa-24"; + width-mm = <1280>; + height-mm = <800>; - fragment@2 { - target-path = "/lvds1_panel"; - __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>; - }; - }; + 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