From: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
To: Sean Paul <seanpaul-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
Cc: Thierry Reding
<thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org,
Olof Johansson <olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org>,
davidriley-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org
Subject: Re: [PATCH] pinctrl: tegra: Add APB misc MIPI pad control
Date: Wed, 03 Sep 2014 09:34:03 -0600 [thread overview]
Message-ID: <540734EB.2060508@wwwdotorg.org> (raw)
In-Reply-To: <CAOw6vbLFJVtQpXCXvV_b7uvkR5hBeZEN87dr5cANusDXyZjGaQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On 09/03/2014 09:24 AM, Sean Paul wrote:
> On Tue, Sep 2, 2014 at 4:31 PM, Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> wrote:
>> On 09/02/2014 11:18 AM, Sean Paul wrote:
>>>
>>> This patch adds MIPI CSI/DSIB pad control mux register
>>> from the APB misc block to tegra pinctrl.
>>>
>>> Without writing to this register, the dsib pads are
>>> muxed as csi, and cannot be used.
>>>
>>> The register is not yet documented in the TRM, here is
>>> the description:
>>>
>>> 70000820: APB_MISC_GP_MIPI_PAD_CTRL_0
>>> [31:02] RESERVED
>>> [01:01] DSIB_MODE [CSI=0,DSIB=1]
>>> [00:00] RESERVED
>>> diff --git a/drivers/pinctrl/pinctrl-tegra124.c
>>> b/drivers/pinctrl/pinctrl-tegra124.c
>>
>>
>>> +#define TEGRA_PIN_CSI_DSIB _PIN(8)
>>
>>
>> Is that actually the name of the pin on the Tegra package? I don't see
>> anything like that the board schematic I have.
>
> Well, there's more than one pin affected by this register. They're named:
>
> DSI_B_CLK_P
> DSI_B_CLK_N
> DSI_B_D0_P
> DSI_B_D0_N
> DSI_B_D1_P
> DSI_B_D1_N
> DSI_B_D2_P
> DSI_B_D2_N
> DSI_B_D3_P
> DSI_B_D3_N
>
> I'll change this to TEGRA_PIN_DSI_B, does that work for you?
Would it be possible to add a pin entry for each individual pin, and
then create a DSI_B group that contains all those pins? Mux selections
are made on pin groups rather than individual pins, so this shouldn't
affect anything except for a few data tables in the patch. This way, it
keeps the PIN macros purely as pins, rather than sometimes using them
for groups of pins. As background: On Tegra30+, there's a 1:1 mapping
between pins and groups for the regular pinmux registers, but if you
look at the Tegra20 HW/driver, you'll see a much smaller set of groups
than pins there.
next prev parent reply other threads:[~2014-09-03 15:34 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-02 17:18 [PATCH] pinctrl: tegra: Add APB misc MIPI pad control Sean Paul
[not found] ` <1409678286-28139-1-git-send-email-seanpaul-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2014-09-02 20:31 ` Stephen Warren
[not found] ` <5406290D.6000404-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-09-03 15:24 ` Sean Paul
[not found] ` <CAOw6vbLFJVtQpXCXvV_b7uvkR5hBeZEN87dr5cANusDXyZjGaQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-09-03 15:34 ` Stephen Warren [this message]
[not found] ` <540734EB.2060508-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-09-03 15:34 ` Sean Paul
2014-09-03 17:06 ` [PATCH v2 1/2] " Sean Paul
[not found] ` <1409764008-5401-1-git-send-email-seanpaul-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2014-09-03 17:06 ` [PATCH 2/2] arm: dts: tegra124: Add APB_MISC_GP as a pinctrl bank Sean Paul
[not found] ` <1409764008-5401-2-git-send-email-seanpaul-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2014-09-04 15:55 ` Stephen Warren
2014-09-04 15:54 ` [PATCH v2 1/2] pinctrl: tegra: Add APB misc MIPI pad control Stephen Warren
[not found] ` <54088B53.6040802-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-09-09 19:58 ` [PATCH v3 1/2] pinctrl: tegra: Add " Sean Paul
[not found] ` <1410292726-9179-1-git-send-email-seanpaul-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2014-09-09 19:58 ` [PATCH v3 2/2] arm: dts: tegra124: Add APB_MISC_GP as a mipi pad control bank Sean Paul
[not found] ` <1410292726-9179-2-git-send-email-seanpaul-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2014-11-07 12:35 ` Thierry Reding
2014-09-10 16:08 ` [PATCH v3 1/2] pinctrl: tegra: Add MIPI pad control Stephen Warren
[not found] ` <54107770.708-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-09-18 18:56 ` Sean Paul
[not found] ` <CAOw6vbJimj8QfQSSgurQdX5rtwB78bJzsHdd7su6ORJ_H988yw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-09-18 19:42 ` Stephen Warren
[not found] ` <541B35B2.9050509-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-09-19 17:29 ` Linus Walleij
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=540734EB.2060508@wwwdotorg.org \
--to=swarren-3lzwwm7+weoh9zmkesr00q@public.gmane.org \
--cc=davidriley-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
--cc=linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org \
--cc=seanpaul-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
--cc=thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.