linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/3]Add Nuvoton NPCM SGPIO feature
@ 2023-03-14  9:23 Jim Liu
  2023-03-14  9:23 ` [PATCH v5 1/3] gpio: nuvoton: Add Nuvoton NPCM sgpio driver Jim Liu
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Jim Liu @ 2023-03-14  9:23 UTC (permalink / raw)
  To: JJLIU0, KWLIU, linus.walleij, brgl, jim.t90615, robh+dt,
	krzysztof.kozlowski+dt
  Cc: linux-gpio, devicetree, linux-kernel, openbmc

This SGPIO controller is for NUVOTON NPCM7xx and NPCM8xx SoC.
Nuvoton NPCM SGPIO module is combine serial to parallel IC (HC595)
and parallel to serial IC (HC165), and use APB3 clock to control it.
This interface has 4 pins  (D_out , D_in, S_CLK, LDSH).
NPCM7xx/NPCM8xx have two sgpio module each module can support up
to 64 output pins,and up to 64 input pin, the pin is only for gpi or gpo.
GPIO pins have sequential, First half is gpo and second half is gpi.


Jim Liu (3):
  gpio: nuvoton: Add Nuvoton NPCM sgpio driver
  arm: dts: nuvoton: npcm: Add sgpio feature
  dt-bindings: gpio: add NPCM sgpio driver bindings

 .../bindings/gpio/nuvoton,sgpio.yaml          |  87 +++
 arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi |  30 +
 drivers/gpio/Kconfig                          |   8 +
 drivers/gpio/Makefile                         |   1 +
 drivers/gpio/gpio-npcm-sgpio.c                | 648 ++++++++++++++++++
 5 files changed, 774 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/gpio/nuvoton,sgpio.yaml
 create mode 100644 drivers/gpio/gpio-npcm-sgpio.c

-- 
2.17.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-07-25  9:12 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-14  9:23 [PATCH v5 0/3]Add Nuvoton NPCM SGPIO feature Jim Liu
2023-03-14  9:23 ` [PATCH v5 1/3] gpio: nuvoton: Add Nuvoton NPCM sgpio driver Jim Liu
2023-03-14 11:46   ` Paul Menzel
2023-07-24  3:04     ` Jim Liu
2023-07-24 14:44       ` Paul Menzel
2023-07-25  9:12         ` Jim Liu
2023-03-14 18:38   ` Linus Walleij
2023-03-14 18:48   ` Krzysztof Kozlowski
2023-03-14  9:23 ` [PATCH v5 2/3] arm: dts: nuvoton: npcm: Add sgpio feature Jim Liu
2023-03-14 18:47   ` Krzysztof Kozlowski
2023-03-14 18:49     ` Krzysztof Kozlowski
2023-03-14  9:23 ` [PATCH v5 3/3] dt-bindings: gpio: add NPCM sgpio driver bindings Jim Liu
2023-03-14 18:45   ` Krzysztof Kozlowski
2023-03-15  7:54     ` Krzysztof Kozlowski

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).