public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* Subsystem/interface for a 16x2 character LCD driver?
@ 2013-10-26 21:00 Arnaud Ebalard
  2013-10-26 22:11 ` Willy Tarreau
  0 siblings, 1 reply; 3+ messages in thread
From: Arnaud Ebalard @ 2013-10-26 21:00 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

I did not know where to ask but because it is related to an ARM
platform, I decide to start here. NETGEAR ReadyNAS 104 has a front
16x2 characters backlight-capable LCD (Winstar WH1608). It is
controlled via 11 GPIOS.

I am starting to write a driver for it to be able to pass messages (via
/proc?) from userland to be displayed on the LCD and also enable/disable
the backlight. I just wonder where it should go (auxdisplay? staging?
video/backlight? drivers/misc?), if there are existing interfaces for
such beasts and on which existing driver (if any) I could base my dev.

If you have any idea where/who I can ask, do not hesitate. Additionally,
if someone has thoughts on what the DT interface should look like for
such a device, I am interested.

Cheers,

a+

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

* Subsystem/interface for a 16x2 character LCD driver?
  2013-10-26 21:00 Subsystem/interface for a 16x2 character LCD driver? Arnaud Ebalard
@ 2013-10-26 22:11 ` Willy Tarreau
  2013-10-26 22:58   ` Arnaud Ebalard
  0 siblings, 1 reply; 3+ messages in thread
From: Willy Tarreau @ 2013-10-26 22:11 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Arnaud,

On Sat, Oct 26, 2013 at 11:00:49PM +0200, Arnaud Ebalard wrote:
> Hi,
> 
> I did not know where to ask but because it is related to an ARM
> platform, I decide to start here. NETGEAR ReadyNAS 104 has a front
> 16x2 characters backlight-capable LCD (Winstar WH1608). It is
> controlled via 11 GPIOS.
> 
> I am starting to write a driver for it to be able to pass messages (via
> /proc?) from userland to be displayed on the LCD and also enable/disable
> the backlight. I just wonder where it should go (auxdisplay? staging?
> video/backlight? drivers/misc?), if there are existing interfaces for
> such beasts and on which existing driver (if any) I could base my dev.
> 
> If you have any idea where/who I can ask, do not hesitate. Additionally,
> if someone has thoughts on what the DT interface should look like for
> such a device, I am interested.

You should probably take a look at the "panel" driver in staging. It's
a driver I wrote 10-15 years ago and that someone submitted. It supports
most 2-line text LCD panels with various wirings (serial/parallel), and
relies on parport to drive them. You can probably reuse some/most of it
for your driver. You may also possibly add a new backend to it to access
GPIOs. Userland drives it by writing into /dev/lcd. I don't know if that
can help.

Cheers,
Willy

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

* Subsystem/interface for a 16x2 character LCD driver?
  2013-10-26 22:11 ` Willy Tarreau
@ 2013-10-26 22:58   ` Arnaud Ebalard
  0 siblings, 0 replies; 3+ messages in thread
From: Arnaud Ebalard @ 2013-10-26 22:58 UTC (permalink / raw)
  To: linux-arm-kernel

Hi WIlly,

Willy Tarreau <w@1wt.eu> writes:

>> If you have any idea where/who I can ask, do not hesitate. Additionally,
>> if someone has thoughts on what the DT interface should look like for
>> such a device, I am interested.
>
> You should probably take a look at the "panel" driver in staging. It's
> a driver I wrote 10-15 years ago and that someone submitted. It supports
> most 2-line text LCD panels with various wirings (serial/parallel), and
> relies on parport to drive them. You can probably reuse some/most of it
> for your driver. You may also possibly add a new backend to it to access
> GPIOs. Userland drives it by writing into /dev/lcd. I don't know if that
> can help.

Will take a look. Thanks.

Cheers,

a+

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

end of thread, other threads:[~2013-10-26 22:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-26 21:00 Subsystem/interface for a 16x2 character LCD driver? Arnaud Ebalard
2013-10-26 22:11 ` Willy Tarreau
2013-10-26 22:58   ` Arnaud Ebalard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox