From: Bjorn Andersson <bjorn.andersson@linaro.org>
To: Christian Lamparter <chunkeey@googlemail.com>,
Ram Chandra Jangir <rjangir@codeaurora.org>
Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,
Linus Walleij <linus.walleij@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
John Crispin <john@phrozen.org>
Subject: Re: [PATCH 2/2] pinctrl: qcom: ipq4019: add remaining pin definitions
Date: Tue, 23 May 2017 12:28:57 -0700 [thread overview]
Message-ID: <20170523192857.GW12920@tuxbook> (raw)
In-Reply-To: <2018547.lycQhaDrJg@debian64>
On Tue 23 May 09:58 PDT 2017, Christian Lamparter wrote:
> On Friday, May 19, 2017 10:08:24 PM CEST Bjorn Andersson wrote:
> > On Thu 18 May 11:38 PDT 2017, Christian Lamparter wrote:
> > > On Wednesday, May 17, 2017 1:07:29 PM CEST Bjorn Andersson wrote:
> > > > On Wed 10 May 04:27 PDT 2017, Christian Lamparter wrote:
> > > > > diff --git a/drivers/pinctrl/qcom/pinctrl-ipq4019.c b/drivers/pinctrl/qcom/pinctrl-ipq4019.c
> > > > > index 743d1f458205..7219d1e33c71 100644
> > > > > --- a/drivers/pinctrl/qcom/pinctrl-ipq4019.c
> > > > > +++ b/drivers/pinctrl/qcom/pinctrl-ipq4019.c
> > > > > + qca_mux_rmii0_refclk,
> > > > > + qca_mux_wifi0_rfsilient0,
> > > > > + qca_mux_wifi1_rfsilient0,
> > > > > + qca_mux_smart2,
> > > > > + qca_mux_led4,
> > > >
> > > > What drives ledX? Is it 11 different LED controllers or is it a single
> > > > LED controller with 11 outputs.
> > >
> > > The latter. The IPQ40xx have one LED controller @ 0x1937000.
> > > According to the driver (leds-ipq40xx.c in the SDK), it
> > > does control up to 11 LEDs. A LED can either be muxed to
> > > one of the hardware sources (wifi, lan or wan-ports activity/linkspeed),
> > > or it can be operated by one of four software-programmable "blink"
> > > sources (each with a variable blink rate and duty cycle).
> > > The driver labels each LED as "ipq40xx::led%d".
> > >
> >
> > As they all stem from the same hardware block I suggest we name the
> > function "led".
>
> This is going to be a problem for Pin 36:
>
> PINGROUP(36, rmii0, *led2*, *led0*, NA, ...)
>
> I checked the other pins too, but this seems to be the only time two
> LED-lines share the same pin. What's the recommended/prefered option
> in this case? Something like led_alt, or should I keep the led0-led11?
>
> There are a few more collisions with other functions as well:
> smartX, i2s_*, wifi1_uart*:
>
Looks like we're stuck with individually named functions for these
then...
> PINGROUP(58, qpic, led2, blsp_i2c0, *smart3*, *smart1*,
> i2s_rx_mclk, NA, wcss0_dbg, tm4, wifi0, wifi1, NA, NA, NA),
>
> PINGROUP(60, qpic, blsp_uart0, smart1, smart3, led0,
> *i2s_tx_bclk*, *i2s_rx_bclk*, atest_char, NA, wcss0_dbg,
> qdss_traceclk_a, NA, tm6, NA),
>
> PINGROUP(61, qpic, blsp_uart0, *smart1*, *smart3*, led1, *i2s_tx_fsync*,
> *i2s_rx_fsync*, NA, NA, wcss0_dbg, qdss_cti_trig_out_a0,
> NA, tm7, NA),
>
> PINGROUP(63, qpic, wifi0_uart1, *wifi1_uart1*, *wifi1_uart*, *i2s_td1*,
> *i2s_rxd*, *i2s_spdif_out*, *i2s_spdif_in*, NA, wcss0_dbg,
> wcss1_dbg, NA, tm, NA),
> ...
This makes me wonder what wifi1_uart (and uart1) actually is...
The wifi\d_uart seems to have 5 pins in its group and wifi\d_uart\d
seems to be two sets of two pins. So perhaps this is some alternative
routing and wifi0_uart0 and wifi0_uart1 is actually the same function?
@Ram, can you help us out here?
> > > > > + qca_mux_qpic_pad4,
> > > >
> > > > Please keep an eye on the ipq8074 patch from Varadarajan and make this
> > > > follow the same scheme.
> > > Ok, I'll wait for how qca8074 plays out then.
>
> <https://www.spinics.net/lists/arm-kernel/msg582958.html>:
> | On Sat, May 20, 2017 at 7:54 AM, Bjorn Andersson wrote:
> | [...]
> | > If you consider that you are defining the available functions for this
> | > pinmuxer and then define the sets of pins exposing these available
> | > functions it does make sense to just name it "qpic".
> | >
> | > I think that naming them _common, _lcd and _nand is just adding
> | > confusion when it comes to writing the dts files.
> | >
> | > @Linus, do you have a different preference here?
> |
> |No I pretty much trust the driver maintainer to know this best.
> |
> |Yours,
> |Linus Walleij
>
> Thanks for the answer, I'll go with "qpic" then.
> I'll also combine the various sdio_* to sdio and look at the other candidates
> (rgmii*, rmii0/1*, pmuX, pcie_clk*, jtag*, tmX, audio_pwmX). Unless someone
> comes up with a good reason not to.
>
Sounds good!
Regards,
Bjorn
next prev parent reply other threads:[~2017-05-23 19:28 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-10 11:27 [PATCH 1/2] dt-bindings: pinctrl: add most other IPQ4019 pin functions and groups Christian Lamparter
[not found] ` <d53b7a9b1bab818536680123136ac58481d959c8.1494415174.git.chunkeey-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2017-05-10 11:27 ` [PATCH 1/2] pinctrl: qcom: ipq4019: " Christian Lamparter
[not found] ` <20170510112712.14744-1-chunkeey-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2017-05-13 0:10 ` Rob Herring
2017-05-13 16:03 ` Christian Lamparter
2017-05-16 0:13 ` Rob Herring
2017-05-10 11:27 ` [PATCH 2/2] pinctrl: qcom: ipq4019: add remaining pin definitions Christian Lamparter
[not found] ` <3dac044cd9a879cad145f9a04dcc3d225721aa3c.1494415174.git.chunkeey-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2017-05-10 22:23 ` Bjorn Andersson
2017-05-17 15:44 ` Christian Lamparter
2017-05-17 19:24 ` Bjorn Andersson
2017-05-17 20:07 ` Bjorn Andersson
2017-05-18 18:38 ` Christian Lamparter
2017-05-20 5:08 ` Bjorn Andersson
2017-05-23 16:58 ` Christian Lamparter
2017-05-23 19:28 ` Bjorn Andersson [this message]
2017-05-24 13:04 ` Ram Chandra Jangir
2017-07-06 6:02 ` Bjorn Andersson
2017-07-14 13:18 ` Christian Lamparter
2017-05-13 0:07 ` [PATCH 1/2] dt-bindings: pinctrl: add most other IPQ4019 pin functions and groups Rob Herring
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=20170523192857.GW12920@tuxbook \
--to=bjorn.andersson@linaro.org \
--cc=chunkeey@googlemail.com \
--cc=devicetree@vger.kernel.org \
--cc=john@phrozen.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=rjangir@codeaurora.org \
--cc=robh+dt@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 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.