diff mbox

[RFC,3/3] atmel: dt: Add supports for the lcdc support on the sama5d36ek

Message ID 1397814309-32160-4-git-send-email-jjhiblot@traphandler.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jean-Jacques Hiblot April 18, 2014, 9:45 a.m. UTC
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@traphandler.com>
---
 arch/arm/boot/dts/sama5d36ek.dts | 27 ++++++++++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)

Comments

Robert Nelson April 18, 2014, 2:48 p.m. UTC | #1
On Fri, Apr 18, 2014 at 4:45 AM, Jean-Jacques Hiblot
<jjhiblot@traphandler.com> wrote:
> Signed-off-by: Jean-Jacques Hiblot <jjhiblot@traphandler.com>
> ---
>  arch/arm/boot/dts/sama5d36ek.dts | 27 ++++++++++++++++++++++++++-
>  1 file changed, 26 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/sama5d36ek.dts b/arch/arm/boot/dts/sama5d36ek.dts
> index 59576c6..df01037 100644
> --- a/arch/arm/boot/dts/sama5d36ek.dts
> +++ b/arch/arm/boot/dts/sama5d36ek.dts
> @@ -11,12 +11,17 @@
>  #include "sama5d3xmb.dtsi"
>  #include "sama5d3xdm.dtsi"
>
> +

extra space

>  / {
>         model = "Atmel SAMA5D36-EK";
>         compatible = "atmel,sama5d36ek", "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d36", "atmel,sama5d3", "atmel,sama5";
>
>         ahb {
>                 apb {
> +                       hlcdc: hlcdc@f0030000 {
> +                               status = "okay";
> +                       };
> +
>                         spi0: spi@f0004000 {
>                                 status = "okay";
>                         };
> @@ -46,7 +51,27 @@
>                         };
>                 };
>         };
> -
> +       panel {
> +               compatible = "atmel,hlcdc,panel";
> +               invert-hsync;
> +               invert-vsync;
> +               status = "okay";
> +               display-timings {
> +                       800x480p60 {
> +                               clock-frequency = <33260000>;
> +                               hactive = <800>;
> +                               vactive = <480>;
> +                               hfront-porch = <168>;
> +                               hback-porch = <88>;
> +                               hsync-len = <64>;
> +                               vback-porch = <8>;
> +                               vfront-porch = <37>;
> +                               vsync-len = <2>;
> +                               hsync-active = <1>;
> +                               vsync-active = <1>;
> +                       };
> +               };
> +       };
>         sound {
>                 status = "okay";
>         };
> --
> 1.9.1

Feel free to merge in this patch:

https://github.com/RobertCNelson/armv7_devel/blob/v3.15.x-sama5-armv7/patches/drm/0005-atmel-dt-Add-supports-for-the-lcdc-support-on-the-sa.patch

With this commit..

All tested with sama5d31/33/34/36ek board's..

Regards,
Jean-Jacques Hiblot April 19, 2014, 7:07 p.m. UTC | #2
2014-04-18 16:48 GMT+02:00 Robert Nelson <robertcnelson@gmail.com>:
>
> On Fri, Apr 18, 2014 at 4:45 AM, Jean-Jacques Hiblot
> <jjhiblot@traphandler.com> wrote:
>> Signed-off-by: Jean-Jacques Hiblot <jjhiblot@traphandler.com>
>> ---
>>  arch/arm/boot/dts/sama5d36ek.dts | 27 ++++++++++++++++++++++++++-
>>  1 file changed, 26 insertions(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/boot/dts/sama5d36ek.dts b/arch/arm/boot/dts/sama5d36ek.dts
>> index 59576c6..df01037 100644
>> --- a/arch/arm/boot/dts/sama5d36ek.dts
>> +++ b/arch/arm/boot/dts/sama5d36ek.dts
>> @@ -11,12 +11,17 @@
>>  #include "sama5d3xmb.dtsi"
>>  #include "sama5d3xdm.dtsi"
>>
>> +
>
> extra space
>
>>  / {
>>         model = "Atmel SAMA5D36-EK";
>>         compatible = "atmel,sama5d36ek", "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d36", "atmel,sama5d3", "atmel,sama5";
>>
>>         ahb {
>>                 apb {
>> +                       hlcdc: hlcdc@f0030000 {
>> +                               status = "okay";
>> +                       };
>> +
>>                         spi0: spi@f0004000 {
>>                                 status = "okay";
>>                         };
>> @@ -46,7 +51,27 @@
>>                         };
>>                 };
>>         };
>> -
>> +       panel {
>> +               compatible = "atmel,hlcdc,panel";
>> +               invert-hsync;
>> +               invert-vsync;
>> +               status = "okay";
>> +               display-timings {
>> +                       800x480p60 {
>> +                               clock-frequency = <33260000>;
>> +                               hactive = <800>;
>> +                               vactive = <480>;
>> +                               hfront-porch = <168>;
>> +                               hback-porch = <88>;
>> +                               hsync-len = <64>;
>> +                               vback-porch = <8>;
>> +                               vfront-porch = <37>;
>> +                               vsync-len = <2>;
>> +                               hsync-active = <1>;
>> +                               vsync-active = <1>;
>> +                       };
>> +               };
>> +       };
>>         sound {
>>                 status = "okay";
>>         };
>> --
>> 1.9.1
>
> Feel free to merge in this patch:
>
> https://github.com/RobertCNelson/armv7_devel/blob/v3.15.x-sama5-armv7/patches/drm/0005-atmel-dt-Add-supports-for-the-lcdc-support-on-the-sa.patch
>
Thanks for the patch.
> With this commit..
>
> All tested with sama5d31/33/34/36ek board's..

and many thanks for the testing.

>
> Regards,
>
> --
> Robert Nelson
> http://www.rcn-ee.com/
diff mbox

Patch

diff --git a/arch/arm/boot/dts/sama5d36ek.dts b/arch/arm/boot/dts/sama5d36ek.dts
index 59576c6..df01037 100644
--- a/arch/arm/boot/dts/sama5d36ek.dts
+++ b/arch/arm/boot/dts/sama5d36ek.dts
@@ -11,12 +11,17 @@ 
 #include "sama5d3xmb.dtsi"
 #include "sama5d3xdm.dtsi"
 
+
 / {
 	model = "Atmel SAMA5D36-EK";
 	compatible = "atmel,sama5d36ek", "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d36", "atmel,sama5d3", "atmel,sama5";
 
 	ahb {
 		apb {
+			hlcdc: hlcdc@f0030000 {
+				status = "okay";
+			};
+
 			spi0: spi@f0004000 {
 				status = "okay";
 			};
@@ -46,7 +51,27 @@ 
 			};
 		};
 	};
-
+	panel {
+		compatible = "atmel,hlcdc,panel";
+		invert-hsync;
+		invert-vsync;
+		status = "okay";
+		display-timings {
+			800x480p60 {
+				clock-frequency = <33260000>;
+				hactive = <800>;
+				vactive = <480>;
+				hfront-porch = <168>;
+				hback-porch = <88>;
+				hsync-len = <64>;
+				vback-porch = <8>;
+				vfront-porch = <37>;
+				vsync-len = <2>;
+				hsync-active = <1>;
+				vsync-active = <1>;
+			};
+		};
+	};
 	sound {
 		status = "okay";
 	};