From: Xianwei Zhao via B4 Relay <devnull+xianwei.zhao.amlogic.com@kernel.org>
To: Linus Walleij <linus.walleij@linaro.org>,
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>,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
Bartosz Golaszewski <brgl@bgdev.pl>
Cc: 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,
Xianwei Zhao <xianwei.zhao@amlogic.com>
Subject: [PATCH v2 0/5] Pinctrl: Add Amlogic pinctrl driver
Date: Thu, 26 Dec 2024 15:57:40 +0800 [thread overview]
Message-ID: <20241226-amlogic-pinctrl-v2-0-cdae42a67b76@amlogic.com> (raw)
Add pinctrl driver support for Amloigc SoCs
Base on the previous discussion,
https://lore.kernel.org/r/20241113-a4_pinctrl-v6-0-35ba2401ee35@amlogic.com
The existed meson driver failed to meet the requirement of the current dt-binding.
So we start this new pinctrl driver to solve problem.
The advantage of this version: Once the source file and binding document
are added, adding dts node will be only operation for subsequent Amlogic SoCs
(such as A4, A5).
The code in DTS file is also readable when using GPIO, as below:
reset-gpios = <&gpiob 6 GPIO_ACTIVE_LOW>;
Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com>
---
Changes in v2:
- Some modifications and optimizations were made to bindings according to Rob's suggestions.
- Refined some details on functions node for bindings.
- Some source code optimizations were made according to Linus's suggestions.
- Add stand API to generic to deal pinmux propertity.
- Add private reg data to deal with for future SoCs.
- Simplified some unused processing (previously used for extension).
- Sync add to MAINTAINERS files.
- Link to v1: https://lore.kernel.org/r/20241211-amlogic-pinctrl-v1-0-410727335119@amlogic.com
---
Xianwei Zhao (5):
dt-bindings: pinctrl: Add support for Amlogic SoCs
pinctrl: pinconf-generic: Add API for pinmux propertity in DTS file
pinctrl: Add driver support for Amlogic SoCs
arm64: dts: amlogic: a4: add pinctrl node
MAINTAINERS: Add an entry for Amlogic pinctrl driver
.../bindings/pinctrl/amlogic,pinctrl-a4.yaml | 155 +++
MAINTAINERS | 8 +
arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi | 133 +++
drivers/pinctrl/Kconfig | 18 +
drivers/pinctrl/Makefile | 1 +
drivers/pinctrl/pinconf-generic.c | 130 +++
drivers/pinctrl/pinconf.h | 4 +
drivers/pinctrl/pinctrl-amlogic.c | 1047 ++++++++++++++++++++
include/dt-bindings/pinctrl/amlogic,pinctrl.h | 68 ++
include/linux/pinctrl/pinconf-generic.h | 4 +
10 files changed, 1568 insertions(+)
---
base-commit: 4de5110762b94b9978fb8182a568572fb2194f8b
change-id: 20241211-amlogic-pinctrl-22ea61820d0d
Best regards,
--
Xianwei Zhao <xianwei.zhao@amlogic.com>
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
next reply other threads:[~2024-12-26 7:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-26 7:57 Xianwei Zhao via B4 Relay [this message]
2024-12-26 7:57 ` [PATCH v2 1/5] dt-bindings: pinctrl: Add support for Amlogic SoCs Xianwei Zhao via B4 Relay
2025-01-02 21:24 ` Rob Herring
2025-01-09 2:32 ` Xianwei Zhao
2024-12-26 7:57 ` [PATCH v2 2/5] pinctrl: pinconf-generic: Add API for pinmux propertity in DTS file Xianwei Zhao via B4 Relay
2024-12-26 10:15 ` kernel test robot
2025-01-07 15:18 ` Linus Walleij
2025-01-08 3:14 ` Xianwei Zhao
2025-01-07 16:47 ` Jerome Brunet
2025-01-14 6:46 ` Xianwei Zhao
2024-12-26 7:57 ` [PATCH v2 3/5] pinctrl: Add driver support for Amlogic SoCs Xianwei Zhao via B4 Relay
2024-12-27 21:11 ` Martin Blumenstingl
2025-01-10 6:09 ` Xianwei Zhao
2024-12-26 7:57 ` [PATCH v2 4/5] arm64: dts: amlogic: a4: add pinctrl node Xianwei Zhao via B4 Relay
2024-12-26 7:57 ` [PATCH v2 5/5] MAINTAINERS: Add an entry for Amlogic pinctrl driver 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=20241226-amlogic-pinctrl-v2-0-cdae42a67b76@amlogic.com \
--to=devnull+xianwei.zhao.amlogic.com@kernel.org \
--cc=brgl@bgdev.pl \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--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=robh@kernel.org \
--cc=xianwei.zhao@amlogic.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