[PATCH v3 2/7] ARM: dts: imx6q-icore: Switch LVDS timings from panel-simple

2018-02-04 Thread Jagan Teki
Switch to use ampire,am-800480aytzqw-00h LVDS timings from
panel-simple instead hard coding the same in dts.

Signed-off-by: Jagan Teki 
---
Changes for v3, v2:
- none

 arch/arm/boot/dts/imx6q-icore.dts| 31 +--
 arch/arm/boot/dts/imx6qdl-icore.dtsi |  2 +-
 2 files changed, 18 insertions(+), 15 deletions(-)

diff --git a/arch/arm/boot/dts/imx6q-icore.dts 
b/arch/arm/boot/dts/imx6q-icore.dts
index 5613dd9..c8e464e 100644
--- a/arch/arm/boot/dts/imx6q-icore.dts
+++ b/arch/arm/boot/dts/imx6q-icore.dts
@@ -48,6 +48,17 @@
 / {
model = "Engicam i.CoreM6 Quad/Dual Starter Kit";
compatible = "engicam,imx6-icore", "fsl,imx6q";
+
+   panel {
+   compatible = "ampire,am-800480aytzqw-00h";
+   backlight = <_lvds>;
+
+   port {
+   panel_in: endpoint {
+   remote-endpoint = <_out>;
+   };
+   };
+   };
 };
 
  {
@@ -71,22 +82,14 @@
status = "okay";
 
lvds-channel@0 {
-   fsl,data-mapping = "spwg";
-   fsl,data-width = <18>;
+   reg = <0>;
status = "okay";
 
-   display-timings {
-   native-mode = <>;
-   timing0: timing0 {
-   clock-frequency = <6000>;
-   hactive = <800>;
-   vactive = <480>;
-   hback-porch = <30>;
-   hfront-porch = <30>;
-   vback-porch = <5>;
-   vfront-porch = <5>;
-   hsync-len = <64>;
-   vsync-len = <20>;
+   port@4 {
+   reg = <4>;
+
+   lvds0_out: endpoint {
+   remote-endpoint = <_in>;
};
};
};
diff --git a/arch/arm/boot/dts/imx6qdl-icore.dtsi 
b/arch/arm/boot/dts/imx6qdl-icore.dtsi
index a1b469c..5fd9e00 100644
--- a/arch/arm/boot/dts/imx6qdl-icore.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-icore.dtsi
@@ -49,7 +49,7 @@
reg = <0x1000 0x8000>;
};
 
-   backlight {
+   backlight_lvds: backlight-lvds {
compatible = "pwm-backlight";
pwms = < 0 10>;
brightness-levels = <0 4 8 16 32 64 128 255>;
-- 
2.7.4



[PATCH v3 2/7] ARM: dts: imx6q-icore: Switch LVDS timings from panel-simple

2018-02-04 Thread Jagan Teki
Switch to use ampire,am-800480aytzqw-00h LVDS timings from
panel-simple instead hard coding the same in dts.

Signed-off-by: Jagan Teki 
---
Changes for v3, v2:
- none

 arch/arm/boot/dts/imx6q-icore.dts| 31 +--
 arch/arm/boot/dts/imx6qdl-icore.dtsi |  2 +-
 2 files changed, 18 insertions(+), 15 deletions(-)

diff --git a/arch/arm/boot/dts/imx6q-icore.dts 
b/arch/arm/boot/dts/imx6q-icore.dts
index 5613dd9..c8e464e 100644
--- a/arch/arm/boot/dts/imx6q-icore.dts
+++ b/arch/arm/boot/dts/imx6q-icore.dts
@@ -48,6 +48,17 @@
 / {
model = "Engicam i.CoreM6 Quad/Dual Starter Kit";
compatible = "engicam,imx6-icore", "fsl,imx6q";
+
+   panel {
+   compatible = "ampire,am-800480aytzqw-00h";
+   backlight = <_lvds>;
+
+   port {
+   panel_in: endpoint {
+   remote-endpoint = <_out>;
+   };
+   };
+   };
 };
 
  {
@@ -71,22 +82,14 @@
status = "okay";
 
lvds-channel@0 {
-   fsl,data-mapping = "spwg";
-   fsl,data-width = <18>;
+   reg = <0>;
status = "okay";
 
-   display-timings {
-   native-mode = <>;
-   timing0: timing0 {
-   clock-frequency = <6000>;
-   hactive = <800>;
-   vactive = <480>;
-   hback-porch = <30>;
-   hfront-porch = <30>;
-   vback-porch = <5>;
-   vfront-porch = <5>;
-   hsync-len = <64>;
-   vsync-len = <20>;
+   port@4 {
+   reg = <4>;
+
+   lvds0_out: endpoint {
+   remote-endpoint = <_in>;
};
};
};
diff --git a/arch/arm/boot/dts/imx6qdl-icore.dtsi 
b/arch/arm/boot/dts/imx6qdl-icore.dtsi
index a1b469c..5fd9e00 100644
--- a/arch/arm/boot/dts/imx6qdl-icore.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-icore.dtsi
@@ -49,7 +49,7 @@
reg = <0x1000 0x8000>;
};
 
-   backlight {
+   backlight_lvds: backlight-lvds {
compatible = "pwm-backlight";
pwms = < 0 10>;
brightness-levels = <0 4 8 16 32 64 128 255>;
-- 
2.7.4