From: Xianwei Zhao <xianwei.zhao@amlogic.com>
To: Linus Walleij <linus.walleij@linaro.org>,
Huqiang Qin <huqiang.qin@amlogic.com>,
Qianggui Song <qianggui.song@amlogic.com>,
Hyeonki Hong <hhk7734@gmail.com>,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
Beniamino Galvani <b.galvani@gmail.com>,
Carlo Caione <carlo@endlessm.com>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Kevin Hilman <khilman@baylibre.com>,
Jerome Brunet <jbrunet@baylibre.com>,
linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-amlogic@lists.infradead.org
Subject: Re: [PATCH RFC 2/3] pinctrl: Add driver support for Amlogic SoCs
Date: Tue, 31 Dec 2024 16:26:22 +0800 [thread overview]
Message-ID: <4647512f-5be8-4ebc-8897-8191e1fb5cff@amlogic.com> (raw)
In-Reply-To: <CACRpkdbd5HFzRhoC7qRAb-Kd89fa9sX67aqK9AAMoif3nw9qbQ@mail.gmail.com>
Hi Linus,
Thanks for your reply.
On 2024/12/28 01:19, Linus Walleij wrote:
> [ EXTERNAL EMAIL ]
>
> Newcomers, latest patch set:
> https://lore.kernel.org/linux-gpio/20241226-amlogic-pinctrl-v2-0-cdae42a67b76@amlogic.com/
>
> I included some of the prior meson authors on the to line to see if
> their mail addresses still work and if they have some feedback on this.
>
> On Sun, Dec 22, 2024 at 10:08 AM Linus Walleij <linus.walleij@linaro.org> wrote:
>
>>>> - Renaming drivers/pinctrl/sunxi to drivers/pinctrl/amlogic
>>>> so we keep this sorted by actual vendor, sunxi is apparently
>>>> yours (AMlogic:s) isn't it?
>>>
>>> It isn't. Sunxi is Allwinner SoCs.
>>
>> My apologies. I mixed it up completely. :(
>
> But wait a minute. I see there is meson. And in the "meson" subdirectory
> there is stuff named "amlogic" ...
>
> $ ls -1 drivers/pinctrl/meson/
> Kconfig
> Makefile
> pinctrl-amlogic-c3.c
> pinctrl-amlogic-t7.c
> pinctrl-meson8b.c
> pinctrl-meson8.c
> pinctrl-meson8-pmx.c
> pinctrl-meson8-pmx.h
> pinctrl-meson-a1.c
> pinctrl-meson-axg.c
> pinctrl-meson-axg-pmx.c
> pinctrl-meson-axg-pmx.h
> pinctrl-meson.c
> pinctrl-meson-g12a.c
> pinctrl-meson-gxbb.c
> pinctrl-meson-gxl.c
> pinctrl-meson.h
> pinctrl-meson-s4.c
>
>> What do you think of the idea of a separate drivers/pinctrl/amlogic directory
>> though? I think there are already quite a few amlogic SoCs that need
>> to be supported and more will come.
>
> So what about renaming the existing subdir "meson" to "amlogic"
> and put the driver there.
>
> Also I want to know if this driver and hardware shares anything with
> the existing drivers in that directory. It sometimes happen that
> developers start something from scratch despite the existence of
> prior art simply because of organizational issues, and we don't want
> that kind of situation to leak over to the kernel.
>
Initially, I developed the driver for the A4 chip based on the existing
framework (driver/pinctrl/meson/). Following the pattern of previous
chips, I added the pin definitions directly to the bindings, but this
approach was rejected by the maintainers ([0]).
I then attempted an alternative approach: adding the bank to the
bindings and converting pin definitions based on the bank and offset
within the source code. I moved the pin definitions into the source code
itself, but this was also not accepted ([1]).
Realizing that the issue could not be resolved within the limitations of
the old framework, I decided to introduce a new framework driver to
address these problems.
In the new framework, I made significant changes to simplify support for
subsequent chips. Now, after adding the source files and binding
documents, the only required operation for supporting future Amlogic
SoCs (such as A4, A5, as well as existing chips like S4, C3, and T7) is
to add the corresponding DTS node.
[0]
https://lore.kernel.org/all/20240611-a4_pinctrl-v1-2-dc487b1977b3@amlogic.com/
[1]
https://lore.kernel.org/all/20241113-a4_pinctrl-v6-0-35ba2401ee35@amlogic.com/
> Yours,
> Linus Walleij
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
next prev parent reply other threads:[~2024-12-31 8:27 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-11 6:47 [PATCH RFC 0/3] Pinctrl: Add Amlogic pinctrl driver Xianwei Zhao via B4 Relay
2024-12-11 6:47 ` [PATCH RFC 1/3] dt-bindings: pinctrl: Add support for Amlogic SoCs Xianwei Zhao via B4 Relay
2024-12-17 14:20 ` Rob Herring
2024-12-18 8:47 ` Xianwei Zhao
2024-12-11 6:47 ` [PATCH RFC 2/3] pinctrl: Add driver " Xianwei Zhao via B4 Relay
2024-12-17 14:49 ` Linus Walleij
2024-12-17 14:53 ` Neil Armstrong
2024-12-18 9:37 ` Xianwei Zhao
2024-12-22 9:08 ` Linus Walleij
2024-12-26 7:49 ` Xianwei Zhao
2024-12-27 17:19 ` Linus Walleij
2024-12-27 21:01 ` Martin Blumenstingl
2024-12-31 8:26 ` Xianwei Zhao [this message]
2024-12-11 6:47 ` [PATCH RFC 3/3] arm64: dts: amlogic: a4: add pinctrl node Xianwei Zhao via B4 Relay
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=4647512f-5be8-4ebc-8897-8191e1fb5cff@amlogic.com \
--to=xianwei.zhao@amlogic.com \
--cc=b.galvani@gmail.com \
--cc=carlo@endlessm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=hhk7734@gmail.com \
--cc=huqiang.qin@amlogic.com \
--cc=jbrunet@baylibre.com \
--cc=khilman@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.blumenstingl@googlemail.com \
--cc=neil.armstrong@linaro.org \
--cc=qianggui.song@amlogic.com \
--cc=robh@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®