[PATCH v4 0/2] gpio: add generic gpio input multiplexer
From: Mauri Sandberg
Date: Sun May 30 2021 - 12:50:14 EST
Hello all!
I changed my email setup because there were serious issues with it
previously and patches were not delivered to people. Hopefully it's working
now. Because of that I am sending updated patches in v4, which consist of
the same functionality as in v3 added with cosmetic changes to Kconfig and
updated author email address.
Drew gave acked and tested-by tags in [1] so I took the liberty to include
them in the patches.
For convenience I am including also rangediff between v3 and v4 below.
Thanks,
Mauri
[1] https://www.spinics.net/lists/linux-gpio/msg61277.html
1: 1ca26bb53ab6 ! 1: 496558967cd8 dt-bindings: gpio-mux-input: add documentation
@@
## Metadata ##
-Author: Mauri Sandberg <sandberg@xxxxxxxxxxxxx>
+Author: Mauri Sandberg <maukka@xxxxxxxxxxxx>
## Commit message ##
dt-bindings: gpio-mux-input: add documentation
Add documentation for a general GPIO multiplexer.
- Signed-off-by: Mauri Sandberg <sandberg@xxxxxxxxxxxxx>
+ Signed-off-by: Mauri Sandberg <maukka@xxxxxxxxxxxx>
+ Tested-by: Drew Fustini <drew@xxxxxxxxxxxxxxx>
+ Reviewed-by: Drew Fustini <drew@xxxxxxxxxxxxxxx>
---
+ v3 -> v4:
+ - Changed author email
+ - Included Tested-by and Reviewed-by from Drew
v2 -> v3: added a complete example on dual 4-way multiplexer
v1 -> v2: added a little bit more text in the binding documenation
@@ Documentation/devicetree/bindings/gpio/gpio-mux-input.yaml (new)
+title: Generic GPIO input multiplexer
+
+maintainers:
-+ - Mauri Sandberg <sandberg@xxxxxxxxxxxxx>
++ - Mauri Sandberg <maukka@xxxxxxxxxxxx>
+
+description: |
+ A generic GPIO based input multiplexer
2: dcd76ada9d34 ! 2: 782e009ba54b gpio: gpio-mux-input: add generic gpio input multiplexer
@@
## Metadata ##
-Author: Mauri Sandberg <sandberg@xxxxxxxxxxxxx>
+Author: Mauri Sandberg <maukka@xxxxxxxxxxxx>
## Commit message ##
gpio: gpio-mux-input: add generic gpio input multiplexer
@@ Commit message
pin.
Reported-by: kernel test robot <lkp@xxxxxxxxx>
- Signed-off-by: Mauri Sandberg <sandberg@xxxxxxxxxxxxx>
+ Signed-off-by: Mauri Sandberg <maukka@xxxxxxxxxxxx>
+ Tested-by: Drew Fustini <drew@xxxxxxxxxxxxxxx>
+ Reviewed-by: Drew Fustini <drew@xxxxxxxxxxxxxxx>
---
+ v3 -> v4:
+ - Changed author email
+ - Included Tested-by and Reviewed-by from Drew
v2 -> v3:
- use managed device resources
- update Kconfig description
@@ drivers/gpio/Kconfig: config GPIO_MOCKUP
+ help
+ Say yes here to enable support for generic GPIO input multiplexer.
+
-+ This driver uses a mux-controller to drive the multiplexer and has a
-+ single output pin for reading the inputs to the mux. The driver can be
-+ used in situations when GPIO pins are used to select what multiplexer
-+ pin should be used for reading input and the output pin of the
-+ multiplexer is connected to a GPIO input pin.
++ This driver uses a mux-controller to drive the multiplexer and has a
++ single output pin for reading the inputs to the mux. The driver can
++ be used in situations when GPIO pins are used to select what
++ multiplexer pin should be used for reading input and the output pin
++ of the multiplexer is connected to a GPIO input pin.
+
endif
@@ drivers/gpio/gpio-mux-input.c (new)
+/*
+ * A generic GPIO input multiplexer driver
+ *
-+ * Copyright (C) 2021 Mauri Sandberg <sandberg@xxxxxxxxxxxxx>
++ * Copyright (C) 2021 Mauri Sandberg <maukka@xxxxxxxxxxxx>
+ *
+ */
+
@@ drivers/gpio/gpio-mux-input.c (new)
+};
+module_platform_driver(gpio_mux_input_driver);
+
-+MODULE_AUTHOR("Mauri Sandberg <sandberg@xxxxxxxxxxxxx>");
++MODULE_AUTHOR("Mauri Sandberg <maukka@xxxxxxxxxxxx>");
+MODULE_DESCRIPTION("Generic GPIO input multiplexer");
+MODULE_LICENSE("GPL");
Mauri Sandberg (2):
dt-bindings: gpio-mux-input: add documentation
gpio: gpio-mux-input: add generic gpio input multiplexer
.../bindings/gpio/gpio-mux-input.yaml | 75 +++++++++++
drivers/gpio/Kconfig | 16 +++
drivers/gpio/Makefile | 1 +
drivers/gpio/gpio-mux-input.c | 124 ++++++++++++++++++
4 files changed, 216 insertions(+)
create mode 100644 Documentation/devicetree/bindings/gpio/gpio-mux-input.yaml
create mode 100644 drivers/gpio/gpio-mux-input.c
base-commit: c354c29524eeabba63da51f30a09b85ec9dc853a
--
2.25.1