From: Bjorn Andersson <bjorn.andersson@linaro.org>
To: Timur Tabi <timur@codeaurora.org>
Cc: Andy Gross <andy.gross@linaro.org>,
Stephen Boyd <sboyd@codeaurora.org>,
linux-gpio@vger.kernel.org
Subject: Re: Sparse GPIO maps with pinctrl-msm.c?
Date: Wed, 28 Jun 2017 21:59:31 -0700 [thread overview]
Message-ID: <20170629045931.GW18666@tuxbook> (raw)
In-Reply-To: <5dcca3bd-7a14-271c-ab5e-0eea3e0a575c@codeaurora.org>
On Fri 16 Jun 12:07 PDT 2017, Timur Tabi wrote:
> On 06/16/2017 01:50 PM, Bjorn Andersson wrote:
[..]
> > For GPIOs this doesn't make a difference, but rather than naming the
> > pins "sdc2_data" there should be pins named "SDC2_DATA_0" ...
> > "SDC2_DATA_3". But the configurable entity is "sdc2_data", so that's
> > what should go in the "group".
>
> I don't understand the SDC_PINGROUP() macro. Most of the values are set to
> -1:
>
> .intr_cfg_reg = 0, \
> .intr_status_reg = 0, \
> .intr_target_reg = 0, \
> .mux_bit = -1, \
> .pull_bit = pull, \
> .drv_bit = drv, \
> .oe_bit = -1, \
> .in_bit = -1, \
> .out_bit = -1, \
>
In some cases SDC function can be found muxed among GPIOs, in others
there are dedicated configuration in TLMM for SDC properties. This entry
represent the latter.
You can set the bias and drive-strength, but there's no mux
configuration, no enable/disable, no interrupt and no value.
> I'm not familiar with that SOC, but this looks to me like it's a non-TLMM
> GPIO.
It's a non-GPIO configuration in TLMM.
> In that case, what's the point of including it? What does this
> actually do? It's a "configurable entity", but there doesn't appear
> any way to configure it.
>
It's common to find at least the primary SDC on dedicated pins and hence
separate configuration. But as it's not available for generic IO
operations the properties/operations typical for this are not available.
> > According to the pinctrl documentation we should actually have called
> > the pins of the sdc2_data group "P3", "R6", "T7" and "P7" (for
> > APQ8016E). If nothing else this would probably have made things less
> > confusing.
>
> Not for me.
>
:)
Regards,
Bjorn
next prev parent reply other threads:[~2017-06-29 4:59 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-13 23:35 Sparse GPIO maps with pinctrl-msm.c? Timur Tabi
2017-06-14 18:59 ` Timur Tabi
2017-06-16 15:07 ` Stephen Boyd
2017-06-16 15:15 ` Timur Tabi
2017-06-16 15:41 ` Stephen Boyd
2017-06-16 15:49 ` Timur Tabi
2017-06-16 16:06 ` Bjorn Andersson
2017-06-16 16:17 ` Timur Tabi
2017-06-16 16:21 ` Andy Gross
2017-06-16 16:26 ` Timur Tabi
2017-06-16 17:44 ` Bjorn Andersson
2017-06-16 18:10 ` Timur Tabi
2017-06-16 18:50 ` Bjorn Andersson
2017-06-16 19:07 ` Timur Tabi
2017-06-29 4:59 ` Bjorn Andersson [this message]
2017-06-20 23:10 ` Timur Tabi
2017-06-16 15:55 ` Bjorn Andersson
2017-06-16 16:07 ` Timur Tabi
2017-06-16 16:35 ` Bjorn Andersson
2017-06-16 18:42 ` Timur Tabi
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=20170629045931.GW18666@tuxbook \
--to=bjorn.andersson@linaro.org \
--cc=andy.gross@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=sboyd@codeaurora.org \
--cc=timur@codeaurora.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).