Skip to content

pinctrl: nuvoton: add pinmux and GPIO driver for NPCM8XX

Tomer Maimon linux-devicetree linux-gpio lkml openbmc 8 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest2 patches 3 repliesIn review
  2. v62 patches 7 repliesSuperseded
  3. v5 posting 2/22 patches 5 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v5 posting 1/22 patches1 replySuperseded
v42 patches1 replySuperseded
v32 patches3 repliesSuperseded
v22 patches15 repliesSuperseded
v12 patches16 repliesSuperseded

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-binding: pinctrl: Add NPCM8XX pinctrl and GPIO documentationDocumentation/devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml+216 -00 replies
2/2pinctrl: nuvoton: add NPCM8XX pinctrl and GPIO driverdrivers/pinctrl/nuvoton/Kconfig drivers/pinctrl/nuvoton/Makefile drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c+2506 -01 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchRob Herring
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 0/2] pinctrl: nuvoton: add pinmux and GPIO driver for NPCM8XX

This patch set adds pinmux and GPIO controller for the Arbel NPCM8XX Baseboard Management Controller (BMC).

Arbel BMC NPCM8XX pinctrl driver based on Poleg NPCM7XX, except the pin mux mapping difference the NPCM8XX GPIO supports adjust debounce period time.

Arbel BMC NPCM8XX Pinmux functions accessible only for pin groups and pin configuration parameters available only for individual pins.

Arbel BMC NPCM8XX has eight identical GPIO modules, each module has 32 GPIO ports.

Most of the GPIO ports are multiplexed with other system functions.

The NPCM8XX pinctrl and GPIO driver were tested on NPCM845 evaluation board.

Addressed comments from:
- Krzysztof Kozlowski: https://lore.kernel.org/lkml/[email protected]/

						https://lore.kernel.org/lkml/[email protected]/

Changes since version 6:
- Pin controller driver
- Remove blank line.

- Pin controller dt-binding
- Modify pinctrl address.
- Modify to lowercase hex.
- Add pin naming.

Changes since version 5:
- Pin controller dt-binding
- Modify gpio unit-address.
- Remove blank line at EOF.

Changes since version 4:
- Pin controller driver
- Modify DS definition.

- Pin controller dt-binding
- Modify -mux pattern.
- Remove tabs.

Changes since version 3:
- Pin controller driver
- Remove unused line in Kconfig.
- Add GPIO 183-189 GPIO support.
- Add SPI1 CS pins.
- Modify SMB23b pin list.
- Remove unused module pins.
- Fix PIN-CONFIG_OUTPUT setting.

- Pin controller dt-binding
    - Modify pin and function items.
- Use consistent quotes.
- drop unneseccary quote.
        - pincrtl node name modify to pinctrl@f0800260 since

          the pin controller handling was done in 0xf0800260 
          offset.

Changes since version 2:
- Pin controller driver
        - Modify kernel configuration.
        - Adding and removing include files.
        - Using the same register format size.
        - Reducing lines by command combination.
        - Remove unnecessary parentheses use.
        - Use GENMASK and BIT macros.
        - Using traditional patterns.

 - Pin controller dt-binding
        - Modify GPIO description.
        - pintcrtl node name, Sorry, I know we have a long discussion about it. Still, I think the best header pinctrl node name is pinctrl@f0800000. because the pin mux is handled through the GCR.

	  BTW, same pinctrl header name is used in the NPCM7XX pinctrl version.
	  https://elixir.bootlin.com/linux/v6.0-rc6/source/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi#L560

Changes since version 1:
- Pin controller driver
- Remove unnecessary debug prints and comments.
- Use fwnode functions.
- Remove Redundant 'else'.
- Use switch case instead of else if.
- Use GENMASK and BIT macros.
- Use dev_err_probe in probe error.
- Use callback GPIO range.
- Add GCR phandle property.
- Parameter order in reversed xmas

- Pin controller dt-binding
- Modify name from pin to mux.
- Add phandle property.

Tomer Maimon (2):
dt-binding: pinctrl: Add NPCM8XX pinctrl and GPIO documentation
pinctrl: nuvoton: add NPCM8XX pinctrl and GPIO driver

 .../pinctrl/nuvoton,npcm845-pinctrl.yaml      |  216 ++
 drivers/pinctrl/nuvoton/Kconfig               |   14 +
 drivers/pinctrl/nuvoton/Makefile              |    1 +
 drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c     | 2491 +++++++++++++++++
 4 files changed, 2722 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml
 create mode 100644 drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c
Signature · 1 line
2.33.0