From: Bjorn Andersson <bjorn.andersson@linaro.org>
To: Christian Lamparter <chunkeey@googlemail.com>
Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,
Ram Chandra Jangir <rjangir@codeaurora.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: Fri, 19 May 2017 22:08:24 -0700 [thread overview]
Message-ID: <20170520050824.GS12920@tuxbook> (raw)
In-Reply-To: <1975629.nrP45RYYW5@debian64>
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".
> That said: ASUS, Cisco, Compex, Netgear, Zyxel... opted to either
> 1. export the individual GPIOs with sysfs
> 2. gpio-leds
>
For any software-driven LED control it makes sense to configure the pins
as gpio and just rely on the gpio-leds driver.
But as you have both hardware driven control and hardware blink support
it sounds like there's good reason to have a specific LED driver as
well.
> > [..]
> > > + qca_mux_wifi01,
> >
> > Please make these "wifi0" and include all "wifi0XY", rather than having
> > a group per pin.
> >
> > > + qca_mux_wifi11,
> >
> > "wifi1"
>
> Ok. Can I leave wifi1_cal, _wci, uartX... the way they are?
>
Yes, that sounds reasonable
> > > + qca_mux_atest_char3,
> > > + qca_mux_pmu0,
> > > + qca_mux_boot8,
> > > + qca_mux_tm1,
> > > + qca_mux_atest_char2,
> > > + qca_mux_pmu1,
> > > + qca_mux_boot9,
> > > + qca_mux_tm2,
> > > + qca_mux_atest_char1,
> > > + qca_mux_tm_ack,
> > > + qca_mux_wifi03,
> > > + qca_mux_wifi13,
> > > + 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.
> By the way, can you ask if the QCA8074 follows the IPQ40XX SoC's
> GPIO Pull-up config?
>
> I'm asking because Varadarajan was also involved in the
> pinctrl-ipq4019 back in 2015: <https://patchwork.kernel.org/patch/7662241/>
>
> Back then, this wasn't mentioned anywhere. In fact, the special pull-up
> configuration was only discovered due to an issue with the NAND on the
> Cisco Meraki MR33. So I think it is better ask them now, when the devs
> are actually present/responding.
>
I do unfortunately not have access to the specification or either
platform, I would appreciate if you could post a reply on Varadarajan's
IPQ8074 patch asking him to verify the layout of the config register.
[..]
> > > + qca_mux_boot18,
> >
> > Do you know what the "boot" function is and what 2, 4, 5, 7, 8, 9 11,
> > 14, 18, 19 and 20 means?
> Sadly no. That said, neither the u-boot nor the linux kernel
> sources set any pin to bootX. I think I'll remove it for now.
>
Better leave them out for now then.
> > [..]
> > > + qca_mux_sdio0,
> >
> > There are 8 of these, so that's more likely the 8 data pins in a single
> > function. Please squash them into "sdio_data".
> Yes, this is very likely. We know that this is the case for the qpic_padX.
>
Sounds good.
Regards,
Bjorn
next prev parent reply other threads:[~2017-05-20 5:08 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 [this message]
2017-05-23 16:58 ` Christian Lamparter
2017-05-23 19:28 ` Bjorn Andersson
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=20170520050824.GS12920@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.