ARM: dts: imx6sx-sdb: enable ldb and lcdif2
authorRobby Cai <robby.cai@nxp.com>
Wed, 9 Oct 2019 10:25:52 +0000 (18:25 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:20:12 +0000 (11:20 +0800)
enable ldb and lcdif2

Signed-off-by: Robby Cai <robby.cai@nxp.com>
(cherry picked from commit 130202618e293f273419dd4c377fc936c66bd313)

arch/arm/boot/dts/imx6sx-sdb.dtsi

index 4d0abc1..8b5ebf1 100644 (file)
        };
 };
 
+&lcdif2 {
+       display = <&display1>;
+       disp-dev = "ldb";
+       status = "okay";
+       display1: display@1 {
+               bits-per-pixel = <16>;
+               bus-width = <18>;
+       };
+};
+
+&ldb {
+       status = "okay";
+       lvds-channel@0 {
+               fsl,data-mapping = "spwg";
+               fsl,data-width = <18>;
+               crtc = "lcdif2";
+               status = "okay";
+               display-timings {
+                       native-mode = <&timing1>;
+                       timing1: hsd100pxn1 {
+                               clock-frequency = <65000000>;
+                               hactive = <1024>;
+                               vactive = <768>;
+                               hback-porch = <220>;
+                               hfront-porch = <40>;
+                               vback-porch = <21>;
+                               vfront-porch = <7>;
+                               hsync-len = <60>;
+                               vsync-len = <10>;
+                       };
+               };
+       };
+};
+
 &pwm3 {
        #pwm-cells = <2>;
        pinctrl-names = "default";