linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: Igor Grinberg <grinberg@compulab.co.il>
Cc: "Aaro Koskinen" <aaro.koskinen@iki.fi>,
	"Thomas Weber" <weber@corscience.de>,
	"Mike Rapoport" <mike@compulab.co.il>,
	"Steve Sakoman" <steve@sakoman.com>,
	"Gražvydas Ignotas" <notasas@gmail.com>,
	linux-omap <linux-omap@vger.kernel.org>
Subject: Re: Request for OMAPDSS testing
Date: Thu, 27 Jun 2013 09:41:48 +0300	[thread overview]
Message-ID: <51CBDEAC.1050408@ti.com> (raw)
In-Reply-To: <51BECB6B.7010409@compulab.co.il>

[-- Attachment #1: Type: text/plain, Size: 1502 bytes --]

On 17/06/13 11:40, Igor Grinberg wrote:

> Yes, the reason for this is the sb-t35 (the baseboard) which has the TFP410
> in 3.3V domain, but the cm-t3530/3730 are in 1.8V domain.
> This means that the line must be shifted.
> Now for some reason hardware guys used an inverter as the level shifter
> instead of a simple buffer. So now it is shifted and inverted...

Sigh =).

>> There seems to be OF_GPIO_ACTIVE_LOW, but I'm not sure how it should be
>> used, as I don't see anyone setting that flag... And supporting that
>> would mean, in principle, that every driver should support inverting the
>> gpio with every gpio they have.
> 
> Might be worth to consider adding this functionality to the GPIOLIB?
> Meanwhile, I think the simplest way would be to add a boolean
> like OF_GPIO_ACTIVE_LOW, as we have hardware that needs it.
> 
> If you think the patches are conceptually fine,
> I can rebase them on top of your tree with the new drivers and
> submit properly.

Yes, the patches look conceptually fine. I don't like it that the TFP410
driver has to have extra functionality to handle board oddities, but
then again, it's just a few lines of code and I don't have any better
idea how to solve it. A gpiochip driver that handles the inversion
sounds a bit overkill...

The 3.11 kernel will have two versions of tfp410 driver, the old one and
the one using the new dss device model. If possible, I'd like to have
the modifications only for the new one.

 Tomi


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]

      reply	other threads:[~2013-06-27  6:42 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-04  7:40 Request for OMAPDSS testing Tomi Valkeinen
2013-06-06 11:30 ` Igor Grinberg
2013-06-06 20:43 ` Aaro Koskinen
2013-06-07  8:39   ` Tomi Valkeinen
2013-06-09 14:28 ` Grazvydas Ignotas
2013-06-12  6:01   ` Tomi Valkeinen
2013-06-13 15:51 ` Igor Grinberg
2013-06-13 16:01   ` Tomi Valkeinen
2013-06-16 12:28     ` Igor Grinberg
2013-06-17  7:08       ` Tomi Valkeinen
2013-06-17  8:40         ` Igor Grinberg
2013-06-27  6:41           ` Tomi Valkeinen [this message]

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=51CBDEAC.1050408@ti.com \
    --to=tomi.valkeinen@ti.com \
    --cc=aaro.koskinen@iki.fi \
    --cc=grinberg@compulab.co.il \
    --cc=linux-omap@vger.kernel.org \
    --cc=mike@compulab.co.il \
    --cc=notasas@gmail.com \
    --cc=steve@sakoman.com \
    --cc=weber@corscience.de \
    /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;
as well as URLs for NNTP newsgroup(s).