Pinctrl: A4: Add pinctrl driver
Status from this message: Thanks, Applied to https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git (v6.15/arm64-dt)
Get series with b4
b4 am [email protected] change-id 20240607-a4_pinctrl-44740301915fVersions newest first
- v7 Latest5 patches 3 repliesApplied
- v65 patches 6 repliesSuperseded
- v55 patches 5 repliesSuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v4 RFC | 4 patches | 6 replies | Superseded | |
| v3 | 3 patches | 23 replies | Superseded | |
| v2 | 3 patches | 8 replies | Superseded inferred link | |
| v1 | 3 patches | 4 replies | Superseded |
Changes in v7 from the cover letter
- Move gpio-controller property with "#gpio-cells" property
- Link to v6: https://lore.kernel.org/r/[email protected]
Patches in v7 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | dt-bindings: pinctrl: move gpio-cells and gpio-controller propertyDocumentation/ Documentation/ Documentation/ +3 more | +25 | 1 reply | |
| 2/5 | dt-bindings: pinctrl: Add support for Amlogic A4 SoCsDocumentation/ include/ | +127 | 0 replies | |
| 3/5 | pinctrl: meson: add interface of of_xlatedrivers/ drivers/ | +8 | 0 replies | |
| 4/5 | pinctrl: meson: Add driver support for Amlogic A4 SoCsdrivers/ drivers/ drivers/ | +1331 | 1 reply | |
| 5/5 | arm64: dts: amlogic: a4: add pinctrl nodearch/ | +36 | 0 replies |
Reviews trailers per patch
4 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Rob Herring (Arm) | Neil Armstrong |
|---|---|---|
| 1/5 | ||
| 2/5 | A-b | |
| 3/5 | R-b | |
| 4/5 | R-b | |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v7 0/5] Pinctrl: A4: Add pinctrl driver
Add pinctrl driver support for Amloigc A4 SoC
All of Amogic SoCs GPIO device requirement is met here by adding GPIO bank definition instead of the pin definition. Binding header files will no longer be added to future SoCs's pin devices.
The pinctrl software only adds insterface of of_xlate to support for transformation without affecting the overall framework and is compatible with previous drivers.
The code in DTS file is also readable when using GPIO, as below:
reset-gpios = <&gpio AMLOGIC_GPIO_X 6 GPIO_ACTIVE_LOW>;
---
Changes in v7:
- Move gpio-controller property with "#gpio-cells" property
- Link to v6: https://lore.kernel.org/r/[email protected]
Changes in v6:
- Adjust code formatting and style.
- Remove "#gpio-cells" definition from amlogic,meson-pinctrl-common.yaml
and add them in all amlogic,meson-pinctrl-XXX.yaml with const: 2, and then add amlogic,meson-pinctrl-a4.yaml(copy form amlogic,meson-pinctrl-a1.yaml) with const: 3.
- Link to v5: https://lore.kernel.org/r/[email protected]
Changes in v5:
- Modify if to switch.
- Dropped parameter combination, bank and offset as independent parameter passing
- Link to v4: https://lore.kernel.org/r/[email protected]
Changes in v4:
- Add interface of of_xlate support.
- Add const for some variable.
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- Remove head file from binding.
- Move GPIO define to file *.c.
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Use one marco instead of all pin define.
- Add unit name for dts node.
- Link to v1: https://lore.kernel.org/all/[email protected]/
---
Xianwei Zhao (5):
dt-bindings: pinctrl: move gpio-cells and gpio-controller property
dt-bindings: pinctrl: Add support for Amlogic A4 SoCs
pinctrl: meson: add interface of of_xlate
pinctrl: meson: Add driver support for Amlogic A4 SoCs
arm64: dts: amlogic: a4: add pinctrl node
.../bindings/pinctrl/amlogic,meson-pinctrl-a1.yaml | 5 + .../bindings/pinctrl/amlogic,meson-pinctrl-a4.yaml | 82 ++ .../pinctrl/amlogic,meson-pinctrl-common.yaml | 5 - .../pinctrl/amlogic,meson-pinctrl-g12a-aobus.yaml | 5 + .../amlogic,meson-pinctrl-g12a-periphs.yaml | 5 + .../pinctrl/amlogic,meson8-pinctrl-aobus.yaml | 5 + .../pinctrl/amlogic,meson8-pinctrl-cbus.yaml | 5 + arch/arm64/boot/dts/amlogic/amlogic-a4.dtsi | 36 + drivers/pinctrl/meson/Kconfig | 6 + drivers/pinctrl/meson/Makefile | 1 + drivers/pinctrl/meson/pinctrl-amlogic-a4.c | 1324 ++++++++++++++++++++ drivers/pinctrl/meson/pinctrl-meson.c | 4 + drivers/pinctrl/meson/pinctrl-meson.h | 4 + include/dt-bindings/gpio/amlogic-gpio.h | 45 + 14 files changed, 1527 insertions(+), 5 deletions(-)
---
base-commit: 58e2d28ed28e5bc8836f8c14df1f94c27c1f9e2f
change-id: 20241012-a4_pinctrl-09d1b2a17e47
Best regards,
Signature · 1 line
Xianwei Zhao <[email protected]>