Add pinctrl support for dwapb gpio driver
cover Add pinctrl support for dwapb gpio driver
Synopsys DWAPB IP includes support for pin control. This control is basic and allows to switch between a hardware and a software function. Software function is when driving GPIOs from IP and hardware is controlled by external signals.
This serie export necessary interface to be able to move the driver to pinctrl folder and then implement the pinctrl support which is based on the digicolor driver. The idea is to avoid hardcoding pins in driver since this IP is a generic one available on multiple SoC.
Clement Leger (5):
gpio: export acpi_gpiochip_request_interrupts in gpio/driver.h
pinctrl: dw: move gpio-dwapb.c to pinctrl folder
pinctrl: dw: use devm_gpiochip_add_data
pinctrl: dw: add pinctrl support for dwapb gpio driver
dt-bindings: pinctrl: dw: move sps,dwapb-gpio.txt to pinctrl
.../bindings/{gpio => pinctrl}/snps-dwapb-gpio.txt | 21 +-
MAINTAINERS | 6 +-
drivers/gpio/Kconfig | 8 -
drivers/gpio/Makefile | 1 -
drivers/gpio/gpiolib-acpi.h | 4 -
drivers/pinctrl/Kconfig | 1 +
drivers/pinctrl/Makefile | 1 +
drivers/pinctrl/dw/Kconfig | 11 +
drivers/pinctrl/dw/Makefile | 4 +
.../gpio-dwapb.c => pinctrl/dw/pinctrl-dwapb.c} | 277 +++++++++++++++++++--
include/linux/gpio/driver.h | 12 +
include/linux/platform_data/gpio-dwapb.h | 1 +
12 files changed, 310 insertions(+), 37 deletions(-)
rename Documentation/devicetree/bindings/{gpio => pinctrl}/snps-dwapb-gpio.txt (76%)
create mode 100644 drivers/pinctrl/dw/Kconfig
create mode 100644 drivers/pinctrl/dw/Makefile
rename drivers/{gpio/gpio-dwapb.c => pinctrl/dw/pinctrl-dwapb.c} (77%)Signature · 1 line
2.15.0.276.g89ea799
Quoted 10 lines · Clement Leger
Synopsys DWAPB IP includes support for pin control. This control is basic and allows to switch between a hardware and a software function. Software function is when driving GPIOs from IP and hardware is controlled by external signals.
This serie export necessary interface to be able to move the driver to pinctrl folder and then implement the pinctrl support which is based on the digicolor driver. The idea is to avoid hardcoding pins in driver since this IP is a generic one available on multiple SoC.
This series misses at least GPIO ACPI maintainers to be Cc'ed to for the certain changes.
Moreover, I would like to see entire series in the future in my mailbox.
I will look at v1 closer anyway.
Quoted 28 lines
Clement Leger (5):
gpio: exportacpi_gpiochip_request_interruptsingpio/driver.h
pinctrl: dw: movegpio-dwapb.cto pinctrl folder
pinctrl: dw: usedevm_gpiochip_add_data
pinctrl: dw: add pinctrl support for dwapb gpio driver
dt-bindings: pinctrl: dw: move sps,dwapb-gpio.txt to pinctrl.../bindings/{gpio => pinctrl}/snps-dwapb-gpio.txt | 21 +- MAINTAINERS | 6 +- drivers/gpio/Kconfig | 8 - drivers/gpio/Makefile | 1 - drivers/gpio/gpiolib-acpi.h | 4 - drivers/pinctrl/Kconfig | 1 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/dw/Kconfig | 11 + drivers/pinctrl/dw/Makefile | 4 + .../gpio-dwapb.c => pinctrl/dw/pinctrl-dwapb.c} | 277 +++++++++++++++++++-- include/linux/gpio/driver.h | 12 + include/linux/platform_data/gpio-dwapb.h | 1 + 12 files changed, 310 insertions(+), 37 deletions(-) rename Documentation/devicetree/bindings/{gpio => pinctrl}/snps-dwapb-gpio.txt (76%) create mode 100644 drivers/pinctrl/dw/Kconfig create mode 100644 drivers/pinctrl/dw/Makefile rename drivers/{gpio/gpio-dwapb.c => pinctrl/dw/pinctrl-dwapb.c} (77%)--
2.15.0.276.g89ea799
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 12 lines · ----- On 4 Dec, 2019, at 13:24, Andy Shevchenko [email protected] wrote:
Quoted 10 lines · Clement Leger
Synopsys DWAPB IP includes support for pin control. This control is basic and allows to switch between a hardware and a software function. Software function is when driving GPIOs from IP and hardware is controlled by external signals.
This serie export necessary interface to be able to move the driver to pinctrl folder and then implement the pinctrl support which is based on the digicolor driver. The idea is to avoid hardcoding pins in driver since this IP is a generic one available on multiple SoC.
Quoted 3 lines
This series misses at least GPIO ACPI maintainers to be Cc'ed to for the certain changes.
Moreover, I would like to see entire series in the future in my mailbox.
Sorry, I messed up with get_maintainer.pl while sending the serie. I can resend it properly if needed.
Quoted 37 lines
I will look at v1 closer anyway.
Quoted 26 lines
Clement Leger (5):
gpio: exportacpi_gpiochip_request_interruptsingpio/driver.h
pinctrl: dw: movegpio-dwapb.cto pinctrl folder
pinctrl: dw: usedevm_gpiochip_add_data
pinctrl: dw: add pinctrl support for dwapb gpio driver
dt-bindings: pinctrl: dw: move sps,dwapb-gpio.txt to pinctrl.../bindings/{gpio => pinctrl}/snps-dwapb-gpio.txt | 21 +- MAINTAINERS | 6 +- drivers/gpio/Kconfig | 8 - drivers/gpio/Makefile | 1 - drivers/gpio/gpiolib-acpi.h | 4 - drivers/pinctrl/Kconfig | 1 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/dw/Kconfig | 11 + drivers/pinctrl/dw/Makefile | 4 + .../gpio-dwapb.c => pinctrl/dw/pinctrl-dwapb.c} | 277 +++++++++++++++++++-- include/linux/gpio/driver.h | 12 + include/linux/platform_data/gpio-dwapb.h | 1 + 12 files changed, 310 insertions(+), 37 deletions(-) rename Documentation/devicetree/bindings/{gpio => pinctrl}/snps-dwapb-gpio.txt (76%) create mode 100644 drivers/pinctrl/dw/Kconfig create mode 100644 drivers/pinctrl/dw/Makefile rename drivers/{gpio/gpio-dwapb.c => pinctrl/dw/pinctrl-dwapb.c} (77%)Quoted 3 lines
--
2.15.0.276.g89ea799--
With Best Regards,
Andy Shevchenko
Quoted 8 lines · Clément Leger
Quoted 5 lines · ----- On 4 Dec, 2019, at 13:24, Andy Shevchenko [email protected] wrote:
On Wed, Dec 4, 2019 at 12:13 PM Clement Leger <[email protected]> wrote:
This series misses at least GPIO ACPI maintainers to be Cc'ed to for the certain changes.
Moreover, I would like to see entire series in the future in my mailbox.Sorry, I messed up with get_maintainer.pl while sending the serie.
It's not your fault. I sent a patch to update MAINTAINERS to include header file under GPIO ACPI record.
Quoted 1 line
I can resend it properly if needed.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 8 lines · Clement Leger
Synopsys DWAPB IP includes support for pin control. This control is basic and allows to switch between a hardware and a software function. Software function is when driving GPIOs from IP and hardware is controlled by external signals.
This serie export necessary interface to be able to move the driver to pinctrl folder and then implement the pinctrl support which is based on the digicolor driver. The idea is to avoid hardcoding pins in driver since this IP is a generic one available on multiple SoC.
The overall approach is correct, just tidy up the patch series the way indicated by Andy and we can probably proceed efficiently with this. I will review the patch adding the pinctrl interfaces separately.
Yours,
Linus Walleij
Ok thanks for your review, I will do that.
Regards,
Clément Léger
Quoted 17 lines · ----- On 13 Dec, 2019, at 09:59, Linus Walleij [email protected] wrote:
Quoted 8 lines · Clement Leger
Synopsys DWAPB IP includes support for pin control. This control is basic and allows to switch between a hardware and a software function. Software function is when driving GPIOs from IP and hardware is controlled by external signals.
This serie export necessary interface to be able to move the driver to pinctrl folder and then implement the pinctrl support which is based on the digicolor driver. The idea is to avoid hardcoding pins in driver since this IP is a generic one available on multiple SoC.The overall approach is correct, just tidy up the patch series the way indicated by Andy and we can probably proceed efficiently with this. I will review the patch adding the pinctrl interfaces separately.
Yours,
Linus Walleij