Skip to contentSkip to conversation

iio: stx104: Add GPIO support for the Apex Embedded Systems STX104

PATCH In review William Breathitt Gray 3 participants 3 messages Jun 13, 2016 – Jun 26, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 iio: stx104: Add GPIO support for the Apex Embedded Systems STX104

The Apex Embedded Systems STX104 device features eight lines of digital I/O (four digital inputs and four digital outputs). This patch adds GPIO support for these eight lines of digital I/O via GPIOLIB.

Cc Linus Walleij <[email protected]>
Cc Alexandre Courbot <[email protected]>

---
Changes in v3:
- Revert v2 change; any arch should be able to select GPIOLIB
- Return -EINVAL when attempting to set a GPIO to a direction it cannot be
- Call stx104_gpio_set to have an initial value when setting a GPIO to output direction
Changes in v2:
- Change GPIOLIB Kconfig selection to a dependency for the STX104 Kconfig option; STX104 should only be available to systems configured for GPIOLIB

 drivers/iio/dac/Kconfig  |  11 +++--
 drivers/iio/dac/stx104.c | 125 ++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 129 insertions(+), 7 deletions(-)
drivers/iio/dac/Kconfig +6 -5
index 61d5008..b3feb0bf 100644
@@ -246,13 +246,14 @@ config MCP4922
 	  will be called mcp4922.
 
 config STX104
-	tristate "Apex Embedded Systems STX104 DAC driver"
+	tristate "Apex Embedded Systems STX104 driver"
 	depends on ISA
+	select GPIOLIB
 	help
-	  Say yes here to build support for the 2-channel DAC on the Apex
-	  Embedded Systems STX104 integrated analog PC/104 card. The base port
-	  addresses for the devices may be configured via the "base" module
-	  parameter array.
+	  Say yes here to build support for the 2-channel DAC and GPIO on the
+	  Apex Embedded Systems STX104 integrated analog PC/104 card. The base
+	  port addresses for the devices may be configured via the base array
+	  module parameter.
 
 config VF610_DAC
 	tristate "Vybrid vf610 DAC driver"
drivers/iio/dac/stx104.c +123 -2

170 lines not on this page · raw message

Signature · 1 line
2.7.3
Reviewed-by on v3 1/1
#1 lore raw
Quoted 7 lines · William Breathitt Gray

The Apex Embedded Systems STX104 device features eight lines of digital I/O (four digital inputs and four digital outputs). This patch adds GPIO support for these eight lines of digital I/O via GPIOLIB.

Cc Linus Walleij <[email protected]>
Cc Alexandre Courbot <[email protected]>
Quoted 7 lines

---
Changes in v3:
- Revert v2 change; any arch should be able to select GPIOLIB
- Return -EINVAL when attempting to set a GPIO to a direction it cannot be
- Call stx104_gpio_set to have an initial value when setting a GPIO to output direction

Yours,
Linus Walleij

maintainer
#2 lore raw
Quoted 18 lines · Linus Walleij
Quoted 7 lines · William Breathitt Gray

The Apex Embedded Systems STX104 device features eight lines of digital I/O (four digital inputs and four digital outputs). This patch adds GPIO support for these eight lines of digital I/O via GPIOLIB.

Cc Linus Walleij <[email protected]>
Cc Alexandre Courbot <[email protected]>
Quoted 7 lines

---
Changes in v3:
- Revert v2 change; any arch should be able to select GPIOLIB
- Return -EINVAL when attempting to set a GPIO to a direction it cannot be
- Call stx104_gpio_set to have an initial value when setting a GPIO to output direction

Quoted 1 line

Applied to the togreg branch of iio.git - initially pushed out as testing for the autobuilders to play with it.

Thanks,

Jonathan

Quoted 8 lines

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html