From: Bastian Hecht <hechtb@gmail.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH 6/6] ARM: shmobile: Armadillo800EVA: Reference DT implementation
Date: Fri, 05 Apr 2013 11:28:07 +0000 [thread overview]
Message-ID: <CABYn4szmQPN6PT9jxWHwsLmAg99fqXQhthmVAyOSX20izgtkYA@mail.gmail.com> (raw)
In-Reply-To: <87txxzk77s.wl%kuninori.morimoto.gx@renesas.com>
Hello Laurent,
2013/4/5 Laurent Pinchart <laurent.pinchart@ideasonboard.com>:
> Hi Bastian,
>
> On Thursday 04 April 2013 17:58:40 Bastian Hecht wrote:
>> 2013/4/4 Laurent Pinchart <laurent.pinchart@ideasonboard.com>:
>> > Hi Bastian,
>> >
>> > Thanks for the patch.
>>
>> [snip]
>>
>> >> + /* Touchscreen */
>> >> + gpio_request(GPIO_FN_IRQ10, NULL); /* TP_INT */
>> >
>> > Please, no function GPIO in reference DT implementations.
>>
>> As far as I understood the pinctrl framework, we choose preconfigured
>> settings (in pfc-r8a7740.c) for each device we want to run. We identify
>> these devices by their names, like sh-sci.1. How does that work with devices
>> connected to busses like the I2C controller for which we can't know which
>> GPIOs we need in advance as it is board dependent?
>
> pfc-r8a7740.c defines pin groups and functions. It's then up to board and DT
> files to map the groups and functions they need to devices. The mappings can
> be selected explicitly by drivers, or, for default mappings, automatically by
> the device core. Please see the eva_pinctrl_map array in arch/arm/mach-
> shmobile/board-armadillo800eva.c for mapping examples.
Thanks for the explanation.
>> >> + gpio_request_one(166, GPIOF_OUT_INIT_HIGH, NULL); /* TP_RST_B */
>> >
>> > The GPIO should be passed to the touchscreen driver through DT. As we have
>> > no GPIO DT bindings for the r8a7740 yet, an option would be to pass it
>> > through platform data (using OF_DEV_AUXDATA).
>>
>> I don't see who would use that data. Does your suggestion include to expand
>> the st1232 driver?
>
> There's two options here. The one I was suggesting indeed involved modifying
> the st1232 driver to handle the reset signal explicitly. The other option
> would be to use pinctrl mappings to configure the GPIO. This isn't possible
> yet with the PFC driver but I'm working on it.
Ah now I'm on track, I guess. So the idea is to be self-contained the
st1232 needs to be supplied with 2 GPIOs and while the IRQ GPIO is
given (indirectly) by the IRQ number, the reset signal is missing. The
"gpio_request(GPIO_FN_IRQ10, NULL)" is purely board specific to
route the IRQ signal correctly while the reset signal is already muxed
correctly by default and just the output value is changed. So I'll
have a look at the driver and see if I can add the reset GPIO code.
Thanks,
Bastian
>> So far I see only that the IRQ number is used to set up the IRQ handler. I
>> don't see the connection where the muxing would be done.
>
> --
> Regards,
>
> Laurent Pinchart
>
next prev parent reply other threads:[~2013-04-05 11:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-25 10:37 [PATCH 6/6] ARM: shmobile: armadillo800eva: enable DMAEngine on USB Kuninori Morimoto
2013-04-04 13:45 ` [PATCH 6/6] ARM: shmobile: Armadillo800EVA: Reference DT implementation Bastian Hecht
2013-04-04 14:11 ` Laurent Pinchart
2013-04-04 15:58 ` Bastian Hecht
2013-04-05 0:20 ` Laurent Pinchart
2013-04-05 11:28 ` Bastian Hecht [this message]
2013-04-05 11:43 ` Laurent Pinchart
2013-04-06 13:59 ` Bastian Hecht
2013-04-07 20:29 ` Laurent Pinchart
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=CABYn4szmQPN6PT9jxWHwsLmAg99fqXQhthmVAyOSX20izgtkYA@mail.gmail.com \
--to=hechtb@gmail.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;
as well as URLs for NNTP newsgroup(s).