From: Sean Anderson <sean.anderson@linux.dev>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Michal Simek <michal.simek@amd.com>,
linux-gpio@vger.kernel.org,
Krishna Potthuri <sai.krishna.potthuri@amd.com>,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Conor Dooley <conor+dt@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Rob Herring <robh@kernel.org>,
devicetree@vger.kernel.org
Subject: Re: [PATCH 0/2] pinctrl: zynqmp: Support muxing individual pins
Date: Mon, 6 May 2024 10:45:30 -0400 [thread overview]
Message-ID: <06a4e5fd-3d26-4923-bcbf-0bdd66d756c4@linux.dev> (raw)
In-Reply-To: <CACRpkdbOAoSDNFhXfz3djUZh1_MQ_T75CC+-LmojRXvyCbUusA@mail.gmail.com>
On 5/6/24 02:43, Linus Walleij wrote:
> On Fri, May 3, 2024 at 6:22 PM Sean Anderson <sean.anderson@linux.dev> wrote:
>
>> This series adds support for muxing individual pins, instead of
>> requiring groups to be muxed together. See [1] for additional
>> discussion.
>>
>> [1] https://lore.kernel.org/linux-arm-kernel/5bb0dc7e-4c89-4f3d-abc6-41ae9ded5ae9@linux.dev/
>
> The way I usually would recommend to solve this would be to
> define new subgroups, so e.g. for a UARTS:
>
> uart0_grp = pin_rx, pin_tx, pin_cts, pin_dts, pin_dcd;
>
> And today this would be used like that:
>
> mux0:
> function = "uart0";
> groups = "uart0_grp";
>
> Then we realize that not everyone need all the modem
> control signals provided. What to do. Well this:
>
> uart0_rxtx_grp = pin_rx, pin_tx:
> uart0_modem_grp = pin_cts, pin_dts, pin_dcd;
>
> mux0:
> function = "uart0";
> groups = "uart0_rxtx_grp";
>
> Now the CTS, DTS, DCD pins can be reused for something
> else such as GPIO.
>
> I *know* that this breaks ABI: the driver group definitions change
> and the device tree needs to be changed too.
>
> This only matters if the users have a habit of distributing the
> kernel and DTB separately so a new kernel needs to support
> and old DTB. This varies in how much control we have but I
> think for Xilinx systems the kernel and DTB are always updated
> in lockstep, so it really does not matter?
Well, the pin groups are actually defined in the PMU firmware. And
frankly, I don't see the point of pin "groups" when there are not actual
pin groups at the hardware level. The pins can all be muxed
individually, so there's no point in adding artificial groups on top.
Just mux the pins like the hardware allows and everything is easy. Cuts
down on the absurd number of strings too.
--Sean
next prev parent reply other threads:[~2024-05-06 14:45 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-03 16:22 [PATCH 0/2] pinctrl: zynqmp: Support muxing individual pins Sean Anderson
2024-05-03 16:22 ` [PATCH 1/2] dt-bindings: pinctrl: xilinx: Add support for function with pins Sean Anderson
2024-05-03 16:22 ` [PATCH 2/2] pinctrl: zynqmp: Support muxing individual pins Sean Anderson
2024-05-06 19:26 ` Andy Shevchenko
2024-05-06 19:38 ` Sean Anderson
2024-05-06 19:39 ` Sean Anderson
2024-05-06 6:43 ` [PATCH 0/2] " Linus Walleij
2024-05-06 14:45 ` Sean Anderson [this message]
2024-05-08 11:54 ` Michal Simek
2024-05-27 13:15 ` Linus Walleij
2024-05-28 14:28 ` Sean Anderson
2024-05-29 8:38 ` Linus Walleij
2024-05-30 17:08 ` Sean Anderson
2024-06-03 9:02 ` Linus Walleij
2024-06-03 12:36 ` Michal Simek
2024-06-03 13:37 ` 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=06a4e5fd-3d26-4923-bcbf-0bdd66d756c4@linux.dev \
--to=sean.anderson@linux.dev \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.simek@amd.com \
--cc=robh@kernel.org \
--cc=sai.krishna.potthuri@amd.com \
/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).