* i.MX27 SLCDC driver
@ 2012-08-17 7:07 Gaëtan Carlier
2012-08-20 15:21 ` Matt Sealey
0 siblings, 1 reply; 3+ messages in thread
From: Gaëtan Carlier @ 2012-08-17 7:07 UTC (permalink / raw)
To: linux-arm-kernel
Hello,
I would like to write the driver for SmartLCD controller of i.MX27. This
kind of interface needs a LCD with an embedded graphic controller
partially controlled by GPIO. I want to link it with an OLED DD12832.
How have I to write this driver : One driver for SLCDC and one driver
for DD12832 ? How to link them together ?
Maybe use similar philosophy than soc-camera ?
I have written a driver for kernel 2.6.22 but SLCDC and DD12832 are in
the same driver.
Thank you for your help.
Ga?tan Carlier
ps : I attach my previous driver for a better overview (this is a
working draft for test purpose)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mx2fb-slcd_dd12832_oled.c
Type: text/x-csrc
Size: 35409 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120817/ea3df386/attachment-0001.bin>
^ permalink raw reply [flat|nested] 3+ messages in thread
* i.MX27 SLCDC driver
2012-08-17 7:07 i.MX27 SLCDC driver Gaëtan Carlier
@ 2012-08-20 15:21 ` Matt Sealey
2012-08-20 16:21 ` Gaëtan Carlier
0 siblings, 1 reply; 3+ messages in thread
From: Matt Sealey @ 2012-08-20 15:21 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Aug 17, 2012 at 2:07 AM, Ga?tan Carlier <gcembed@gmail.com> wrote:
> Hello,
> I would like to write the driver for SmartLCD controller of i.MX27. This
> kind of interface needs a LCD with an embedded graphic controller partially
> controlled by GPIO. I want to link it with an OLED DD12832.
>
> How have I to write this driver : One driver for SLCDC and one driver for
> DD12832 ? How to link them together ?
>
> Maybe use similar philosophy than soc-camera ?
Please use DRM if you can. That way your SLCDC controller is a "crtc"
and your OLED panel is a combination "encoder" and "connector". The
DRM subsystem isn't by far the best solution since it is designed
around PCI-class graphics cards and the split is intended for those
and not for more tightly-knit LCDC+display combinations, but it does
split things the way you're thinking and with a little extra code it
will do exactly what you want if a little less efficient than your
attached driver.
I was sure Sascha had a driver for this already;
http://git.pengutronix.de/?p=imx/linux-2.6.git;a=commit;h=c333f47fa185edfd1c9d889fc8af040dd557b02c
- it should not be too hard to add your panel and the specific gpio
control as an encoder/connector. Maybe with a user this can actually
go upstream.
--
Matt Sealey <matt@genesi-usa.com>
Product Development Analyst, Genesi USA, Inc.
^ permalink raw reply [flat|nested] 3+ messages in thread
* i.MX27 SLCDC driver
2012-08-20 15:21 ` Matt Sealey
@ 2012-08-20 16:21 ` Gaëtan Carlier
0 siblings, 0 replies; 3+ messages in thread
From: Gaëtan Carlier @ 2012-08-20 16:21 UTC (permalink / raw)
To: linux-arm-kernel
Hello
On 08/20/2012 05:21 PM, Matt Sealey wrote:
> On Fri, Aug 17, 2012 at 2:07 AM, Ga?tan Carlier <gcembed@gmail.com> wrote:
>> Hello,
>> I would like to write the driver for SmartLCD controller of i.MX27. This
>> kind of interface needs a LCD with an embedded graphic controller partially
>> controlled by GPIO. I want to link it with an OLED DD12832.
>>
>> How have I to write this driver : One driver for SLCDC and one driver for
>> DD12832 ? How to link them together ?
>>
>> Maybe use similar philosophy than soc-camera ?
>
> Please use DRM if you can. That way your SLCDC controller is a "crtc"
> and your OLED panel is a combination "encoder" and "connector". The
> DRM subsystem isn't by far the best solution since it is designed
> around PCI-class graphics cards and the split is intended for those
> and not for more tightly-knit LCDC+display combinations, but it does
> split things the way you're thinking and with a little extra code it
> will do exactly what you want if a little less efficient than your
> attached driver.
>
> I was sure Sascha had a driver for this already;
> http://git.pengutronix.de/?p=imx/linux-2.6.git;a=commit;h=c333f47fa185edfd1c9d889fc8af040dd557b02c
> - it should not be too hard to add your panel and the specific gpio
> control as an encoder/connector. Maybe with a user this can actually
> go upstream.
>
Thanks a lot for your advises. I will study this code.
Regards,
Ga?tan Carlier.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-08-20 16:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-17 7:07 i.MX27 SLCDC driver Gaëtan Carlier
2012-08-20 15:21 ` Matt Sealey
2012-08-20 16:21 ` Gaëtan Carlier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).