From: Fabio Giovagnini <fabio.giovagnini@aurion-tech.com>
To: linux-sh@vger.kernel.org
Subject: Re: LCDC of 7203
Date: Wed, 26 May 2010 07:54:48 +0000 [thread overview]
Message-ID: <201005260954.48760.fabio.giovagnini@aurion-tech.com> (raw)
In-Reply-To: <201005241912.44976.fabio.giovagnini@aurion-tech.com>
There are some low cost LCD having a parallel interface with the synch signals
and 16 / 18 bit of data.
The sh2a LCDC can manage such LCD panels
Am I right or not?
In data mercoledì 26 maggio 2010 09:34:36, Magnus Damm ha scritto:
: > On Wed, May 26, 2010 at 3:14 AM, Paul Mundt <lethal@linux-sh.org> wrote:
> > On Wed, May 26, 2010 at 02:20:05AM -0400, Magnus Damm wrote:
> >> On Mon, May 24, 2010 at 1:12 PM, Fabio Giovagnini
> >>
> >> <fabio.giovagnini@aurion-tech.com> wrote:
> >> > Hi all,
> >> > I have a little problem with LCDC of sh2a 7203.
> >> > I seem not to see the driver into the last kernel.
> >> > Where could I find a good reference?
> >>
> >> I don't think there is any upstream 7203 LCDC driver. It's a shame, I
> >> really wish people would submit their code upstream.
> >
> > I don't remember the details specifically, I thought the issue was panel
> > control via MSIOF and so on, which isn't too different from G3EVM?
>
> Some LCD panels come with a dedicated control channel over SPI/I2C,
> and some have their control channel muxed with pixel data like SYS or
> MIPI.
>
> I think rsk7203 dealt with the LCD panel setup over SPI, and most
> likely that SPI channel was hooked up to an SIOF or SIO. The MSIOF
> only exists on newer SH-Mobiles, so we would need a new SPI driver for
> SIOF or whatever is there to begin with. Perhaps the easiest is just
> to use an GPIO bitbang driver, but that requires pinmux support which
> probably is in place on some sh2a processor at least.
>
> > The existing "drivers" are much like the early G3EVM LCD support, so
> > while references are readily available, there's little that is directly
> > usable without some serious work on the infrastructure side. Perhaps we
> > can reuse parts of the SH-Mobile LCD support?
> >
> >From my POV, the biggest showstopper is that the SPI code is lacking
>
> support for using the bus without the driver model. I2C allows this,
> good or bad. It's sort of a hack, but there is nothing better
> available either. With I2C we can have some board specific support
> code for the LCD panel like the hack on Migo-R. This is not possible
> with SPI AFAIK.
>
> Perhaps the proper way is to add the LCD panel to the driver model and
> then write a normal SPI driver for the LCD, but that brings up init
> order issues.
>
> The G3EVM code is setting up the LCD panel using the MSIOF in SPI
> mode. The original code just accessed the MSIOF directly, but we
> should be able to use the SPI driver instead. The MSIOF hardware block
> on SH-Mobile ARM is unfortunately not working well with the MSIOF
> driver, so it's a bit of a mess. SPI bitbang could be useful in this
> case too though if the SPI-without-driver-model could be sorted out.
>
> I think the MIPI work by Guennadi is one step in the right direction.
>
> / magnus
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Fabio Giovagnini
Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
next prev parent reply other threads:[~2010-05-26 7:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-24 17:12 LCDC of 7203 Fabio Giovagnini
2010-05-26 6:20 ` Magnus Damm
2010-05-26 7:04 ` Fabio Giovagnini
2010-05-26 7:14 ` Paul Mundt
2010-05-26 7:34 ` Magnus Damm
2010-05-26 7:54 ` Fabio Giovagnini [this message]
2010-05-26 8:00 ` Magnus Damm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201005260954.48760.fabio.giovagnini@aurion-tech.com \
--to=fabio.giovagnini@aurion-tech.com \
--cc=linux-sh@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox