diff mbox

[v4,4/6] ARM: dts: imx6dl-icore: Add LVDS support

Message ID 1505121145-9507-4-git-send-email-jteki@openedev.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jagan Teki Sept. 11, 2017, 9:12 a.m. UTC
From: Jagan Teki <jagan@amarulasolutions.com>

Add LVDS display support for OpenFrame Capacitive touch 7 inc
display which is supported by Engicam i.CoreM6 DualLite/Solo Starter Kit.

Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Matteo Lisi <matteo.lisi@engicam.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
Changes for v4, v3, v2:
- none

 arch/arm/boot/dts/imx6dl-icore.dts | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

Comments

Fabio Estevam Sept. 11, 2017, 11:25 a.m. UTC | #1
Hi Jagan,

On Mon, Sep 11, 2017 at 6:12 AM, Jagan Teki <jagannadh.teki@gmail.com> wrote:

> +&ldb {
> +       status = "okay";
> +
> +       lvds-channel@0 {
> +               fsl,data-mapping = "spwg";
> +               fsl,data-width = <18>;
> +               status = "okay";
> +
> +               display-timings {
> +                       native-mode = <&timing0>;
> +                       timing0: timing0 {
> +                               clock-frequency = <60000000>;
> +                               hactive = <800>;
> +                               vactive = <480>;
> +                               hback-porch = <30>;
> +                               hfront-porch = <30>;
> +                               vback-porch = <5>;
> +                               vfront-porch = <5>;
> +                               hsync-len = <64>;
> +                               vsync-len = <20>;

Please add the support of this panel to drivers/gpu/drm/panel/panel-simple.c.

Then you can refer its compatible in your board dts.
Fabio Estevam Sept. 19, 2017, 3:52 p.m. UTC | #2
Hi Jagan,

On Tue, Sep 19, 2017 at 2:06 AM, Jagan Teki <jagan@amarulasolutions.com> wrote:
> Hi Fabio,
>
>> Please add the support of this panel to drivers/gpu/drm/panel/panel-simple.c.
>>
>> Then you can refer its compatible in your board dts.
>
> Yes, I'm trying to add the display timings but I couldn't find any
> info how to find front_portch, back_porch and sync. I remember
> blanking time = Sync Width + BP + FP so out of which how can we
> determine each one respectively. Please let me know if you have any
> idea, I’ve attached the data-sheet.

Does the existing ampire,am800480r3tmqwa1h binding work for your display?
Jagan Teki Sept. 19, 2017, 7:21 p.m. UTC | #3
Hi Fabio,

On Tue, Sep 19, 2017 at 9:22 PM, Fabio Estevam <festevam@gmail.com> wrote:
> Hi Jagan,
>
> On Tue, Sep 19, 2017 at 2:06 AM, Jagan Teki <jagan@amarulasolutions.com> wrote:
>> Hi Fabio,
>>
>>> Please add the support of this panel to drivers/gpu/drm/panel/panel-simple.c.
>>>
>>> Then you can refer its compatible in your board dts.
>>
>> Yes, I'm trying to add the display timings but I couldn't find any
>> info how to find front_portch, back_porch and sync. I remember
>> blanking time = Sync Width + BP + FP so out of which how can we
>> determine each one respectively. Please let me know if you have any
>> idea, I’ve attached the data-sheet.
>
> Does the existing ampire,am800480r3tmqwa1h binding work for your display?

Yes, it is working..but need to understand how these respective
timings were calculated(because I need to add few more) . I tried this
supported ampire but couldn't get the data-sheet. Please point me if
you find any details.

thanks!
Fabio Estevam Sept. 19, 2017, 8:11 p.m. UTC | #4
On Tue, Sep 19, 2017 at 4:21 PM, Jagan Teki <jagan@amarulasolutions.com> wrote:

> Yes, it is working..but need to understand how these respective
> timings were calculated(because I need to add few more) . I tried this
> supported ampire but couldn't get the data-sheet. Please point me if
> you find any details.

I don't have information about this panel.

Maybe you could check with the author from commit:

commit 1c550fa193d08920255240743f57731d4d57cd4d
Author: Philipp Zabel <p.zabel@pengutronix.de>
Date:   Wed Feb 11 18:50:09 2015 +0100

    drm/panel: Add support for Ampire AM-800480R3TMQW-A1H 800x480 7" panel

    This adds support for the AM-800480R3TMQW-A1H 7" 800x480 panel to the
    DRM simple panel driver.

    Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
    Signed-off-by: Thierry Reding <treding@nvidia.com>

via dri-devel@lists.freedesktop.org list.
diff mbox

Patch

diff --git a/arch/arm/boot/dts/imx6dl-icore.dts b/arch/arm/boot/dts/imx6dl-icore.dts
index 6de83c7..360c32e 100644
--- a/arch/arm/boot/dts/imx6dl-icore.dts
+++ b/arch/arm/boot/dts/imx6dl-icore.dts
@@ -57,3 +57,28 @@ 
 &can2 {
 	status = "okay";
 };
+
+&ldb {
+	status = "okay";
+
+	lvds-channel@0 {
+		fsl,data-mapping = "spwg";
+		fsl,data-width = <18>;
+		status = "okay";
+
+		display-timings {
+			native-mode = <&timing0>;
+			timing0: timing0 {
+				clock-frequency = <60000000>;
+				hactive = <800>;
+				vactive = <480>;
+				hback-porch = <30>;
+				hfront-porch = <30>;
+				vback-porch = <5>;
+				vfront-porch = <5>;
+				hsync-len = <64>;
+				vsync-len = <20>;
+			};
+		};
+	};
+};