All of lore.kernel.org
 help / color / mirror / Atom feed
* imx25: How to get frame buffer device in a system using device tree
@ 2013-07-04 15:03 Matthias Weißer
  2013-07-04 15:16 ` Fabio Estevam
  0 siblings, 1 reply; 8+ messages in thread
From: Matthias Weißer @ 2013-07-04 15:03 UTC (permalink / raw)
  To: linux-arm-kernel

Hi

I am currently try to get Linux running on a custom imx25 hardware
using device tree. So far I am quite successfull and have the system
up using current mainline kernel and a NFS root file system. Now I
would like to have the framebuffer driver to get something on the LCD.

My dts file looks like this:

/dts-v1/;
#include "imx25.dtsi"

/ {
  model = "Graf-Syteco zmx25";
  compatible = "graf,imx25-zmx25", "fsl,imx25";

  memory {
    reg = <0x80000000 0x4000000>;
  };

  soc {
    aips at 53f00000 { /* AIPS2 */
      lcdc at 53fbc000 {
        status = "okay";
      };
    };
  };
};

&uart1 {
  status = "okay";
};

&uart2 {
  status = "okay";
};

&fec {
  phy-mode = "rmii";
  status = "okay";
};

I also added the compatibility entry in the imx25.dtsi

--- a/arch/arm/boot/dts/imx25.dtsi
+++ b/arch/arm/boot/dts/imx25.dtsi
@@ -378,6 +378,7 @@
                        };

                        lcdc at 53fbc000 {
+                               compatible = "fsl,imx27-fb", "fsl,imx21-fb";
                                reg = <0x53fbc000 0x4000>;
                                interrupts = <39>;
                                clocks = <&clks 103>, <&clks 66>, <&clks 49>;

But still I didn't get /dev/fb so I think I am doing something wrong.
Any hints for docs I can study on how to do the right things?

Regards
Matthias

^ permalink raw reply	[flat|nested] 8+ messages in thread

* imx25: How to get frame buffer device in a system using device tree
  2013-07-04 15:03 imx25: How to get frame buffer device in a system using device tree Matthias Weißer
@ 2013-07-04 15:16 ` Fabio Estevam
  2013-07-04 15:41   ` gianluca
       [not found]   ` <CAO8h3eHAfV808izZzvpPc+z6iQPr14q8OmryNs5sC+VcNk+iLg@mail.gmail.com>
  0 siblings, 2 replies; 8+ messages in thread
From: Fabio Estevam @ 2013-07-04 15:16 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Matthias,

On Thu, Jul 4, 2013 at 12:03 PM, Matthias Wei?er <m.weisser.m@gmail.com> wrote:
> Hi
>
> I am currently try to get Linux running on a custom imx25 hardware
> using device tree. So far I am quite successfull and have the system
> up using current mainline kernel and a NFS root file system. Now I
> would like to have the framebuffer driver to get something on the LCD.
>
> My dts file looks like this:

These mx27 examples can help you to implement the support for mx25:

https://git.linaro.org/gitweb?p=people/shawnguo/linux-2.6.git;a=commitdiff;h=dcd23b848ed2e35f968a10984e255527b4dde3d5;hp=807f38ec8aae50626d5b4705a0a0f5c585275867

https://git.linaro.org/gitweb?p=people/shawnguo/linux-2.6.git;a=blob;f=arch/arm/boot/dts/imx27-phytec-phycard-s-rdk.dts;h=390d8f2f84d120bace022322c6319d82cf7e5a47;hb=refs/heads/for-next

Regards,

Fabio Estevam

^ permalink raw reply	[flat|nested] 8+ messages in thread

* imx25: How to get frame buffer device in a system using device tree
  2013-07-04 15:16 ` Fabio Estevam
@ 2013-07-04 15:41   ` gianluca
  2013-07-04 15:49     ` Fabio Estevam
       [not found]   ` <CAO8h3eHAfV808izZzvpPc+z6iQPr14q8OmryNs5sC+VcNk+iLg@mail.gmail.com>
  1 sibling, 1 reply; 8+ messages in thread
From: gianluca @ 2013-07-04 15:41 UTC (permalink / raw)
  To: linux-arm-kernel

On 07/04/2013 05:16 PM, Fabio Estevam wrote:
> Hi Matthias,
>
> On Thu, Jul 4, 2013 at 12:03 PM, Matthias Wei?er <m.weisser.m@gmail.com> wrote:
>> Hi
>>
>> I am currently try to get Linux running on a custom imx25 hardware
>> using device tree. So far I am quite successfull and have the system
>> up using current mainline kernel and a NFS root file system. Now I
>> would like to have the framebuffer driver to get something on the LCD.
>>
>> My dts file looks like this:
>
> These mx27 examples can help you to implement the support for mx25:
>
> https://git.linaro.org/gitweb?p=people/shawnguo/linux-2.6.git;a=commitdiff;h=dcd23b848ed2e35f968a10984e255527b4dde3d5;hp=807f38ec8aae50626d5b4705a0a0f5c585275867
>
> https://git.linaro.org/gitweb?p=people/shawnguo/linux-2.6.git;a=blob;f=arch/arm/boot/dts/imx27-phytec-phycard-s-rdk.dts;h=390d8f2f84d120bace022322c6319d82cf7e5a47;hb=refs/heads/for-next
>

The links above are valid as skeleton for a imx28 based board?

Best regards,
-- 
            ,,,
           (o o)
======oOO==(_)==OOo======

Gianluca Renzi
R&D
phone: +39.0542.609120
fax:   +39.0542.609212

       .oooO  Oooo.
======(   )==(   )=======
        \ (    ) /
         \_)  (_/

===================
| I would like to |
| fix the world,  |
| but they're not |
| giving me the   |
  \ source code!  /
   ---------------
     ?\_(".)_/?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* imx25: How to get frame buffer device in a system using device tree
  2013-07-04 15:41   ` gianluca
@ 2013-07-04 15:49     ` Fabio Estevam
  0 siblings, 0 replies; 8+ messages in thread
From: Fabio Estevam @ 2013-07-04 15:49 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Jul 4, 2013 at 12:41 PM, gianluca
<gianlucarenzi@eurekelettronica.it> wrote:

> The links above are valid as skeleton for a imx28 based board?

No, these examples are for mx27. mx25 and mx27 share the same video controller.

For a mx28 example, you can refer to imx28-evk.dts.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* imx25: How to get frame buffer device in a system using device tree
       [not found]     ` <CAOMZO5CgAs+hR41=WdJ=jxS5gZf=opOrCXufixBh_CMP0n2TFA@mail.gmail.com>
@ 2013-07-08  6:31       ` Matthias Weißer
  2013-07-10 17:06         ` Fabio Estevam
  0 siblings, 1 reply; 8+ messages in thread
From: Matthias Weißer @ 2013-07-08  6:31 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Fabio

2013/7/5 Fabio Estevam <festevam@gmail.com>:
> Hi Matthias,
>
> On Fri, Jul 5, 2013 at 4:37 AM, Matthias Wei?er <m.weisser.m@gmail.com> wrote:
>
>> Thanks for the links. That made some things clearer for me. But I am
>> still a bit confused about the driver (imxfb.c) itself. From what I
>> can see it is not dt aware as there is no of_device_id structure with
>> the compatible entries. I think I have to add dt support to the
>> framebuffer driver. Am I right?
>
> Yes, you need to apply this one:
> http://marc.info/?l=linux-fbdev&m=136956466617736&w=2

OK. Done that and it works like a charm. Thanks a lot.

> I thought it has already been applied, but it has not reached mainline yet.
>
> Regards,
>
> Fabio Estevam

Regards
Matthias

^ permalink raw reply	[flat|nested] 8+ messages in thread

* imx25: How to get frame buffer device in a system using device tree
  2013-07-08  6:31       ` Matthias Weißer
@ 2013-07-10 17:06         ` Fabio Estevam
  2013-07-11  6:28           ` Matthias Weißer
  0 siblings, 1 reply; 8+ messages in thread
From: Fabio Estevam @ 2013-07-10 17:06 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Matthias,

On Mon, Jul 8, 2013 at 3:31 AM, Matthias Wei?er <m.weisser.m@gmail.com> wrote:
> Hi Fabio
>
> 2013/7/5 Fabio Estevam <festevam@gmail.com>:
>> Hi Matthias,
>>
>> On Fri, Jul 5, 2013 at 4:37 AM, Matthias Wei?er <m.weisser.m@gmail.com> wrote:
>>
>>> Thanks for the links. That made some things clearer for me. But I am
>>> still a bit confused about the driver (imxfb.c) itself. From what I
>>> can see it is not dt aware as there is no of_device_id structure with
>>> the compatible entries. I think I have to add dt support to the
>>> framebuffer driver. Am I right?
>>
>> Yes, you need to apply this one:
>> http://marc.info/?l=linux-fbdev&m=136956466617736&w=2
>
> OK. Done that and it works like a charm. Thanks a lot.

Great, care to submit patches for adding mx25 fb support?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* imx25: How to get frame buffer device in a system using device tree
  2013-07-10 17:06         ` Fabio Estevam
@ 2013-07-11  6:28           ` Matthias Weißer
  2013-07-11 12:14             ` Fabio Estevam
  0 siblings, 1 reply; 8+ messages in thread
From: Matthias Weißer @ 2013-07-11  6:28 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Fabio

2013/7/10 Fabio Estevam <festevam@gmail.com>:
> Hi Matthias,
>
> On Mon, Jul 8, 2013 at 3:31 AM, Matthias Wei?er <m.weisser.m@gmail.com> wrote:
>> Hi Fabio
>>
>> 2013/7/5 Fabio Estevam <festevam@gmail.com>:
>>> Hi Matthias,
>>>
>>> On Fri, Jul 5, 2013 at 4:37 AM, Matthias Wei?er <m.weisser.m@gmail.com> wrote:
>>>
>>>> Thanks for the links. That made some things clearer for me. But I am
>>>> still a bit confused about the driver (imxfb.c) itself. From what I
>>>> can see it is not dt aware as there is no of_device_id structure with
>>>> the compatible entries. I think I have to add dt support to the
>>>> framebuffer driver. Am I right?
>>>
>>> Yes, you need to apply this one:
>>> http://marc.info/?l=linux-fbdev&m=136956466617736&w=2
>>
>> OK. Done that and it works like a charm. Thanks a lot.
>
> Great, care to submit patches for adding mx25 fb support?

I can. But I think the only thing is the slightly changed
arch/arm/boot/dts/imx25.dtsi. Patch to this mailing list? Patch
against mainline kernel is OK?

Regards
Matthias

^ permalink raw reply	[flat|nested] 8+ messages in thread

* imx25: How to get frame buffer device in a system using device tree
  2013-07-11  6:28           ` Matthias Weißer
@ 2013-07-11 12:14             ` Fabio Estevam
  0 siblings, 0 replies; 8+ messages in thread
From: Fabio Estevam @ 2013-07-11 12:14 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Jul 11, 2013 at 3:28 AM, Matthias Wei?er <m.weisser.m@gmail.com> wrote:

>> Great, care to submit patches for adding mx25 fb support?
>
> I can. But I think the only thing is the slightly changed
> arch/arm/boot/dts/imx25.dtsi. Patch to this mailing list? Patch
> against mainline kernel is OK?

Yes, you should generate the patch against Shawn's for-next branch:
http://git.linaro.org/gitweb?p=people/shawnguo/linux-2.6.git;a=shortlog;h=refs/heads/for-next

Then send the patch to him with the linux-arm-kernel list on Cc.

Regards,

Fabio Estevam

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-07-11 12:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-04 15:03 imx25: How to get frame buffer device in a system using device tree Matthias Weißer
2013-07-04 15:16 ` Fabio Estevam
2013-07-04 15:41   ` gianluca
2013-07-04 15:49     ` Fabio Estevam
     [not found]   ` <CAO8h3eHAfV808izZzvpPc+z6iQPr14q8OmryNs5sC+VcNk+iLg@mail.gmail.com>
     [not found]     ` <CAOMZO5CgAs+hR41=WdJ=jxS5gZf=opOrCXufixBh_CMP0n2TFA@mail.gmail.com>
2013-07-08  6:31       ` Matthias Weißer
2013-07-10 17:06         ` Fabio Estevam
2013-07-11  6:28           ` Matthias Weißer
2013-07-11 12:14             ` Fabio Estevam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.