iio: stx104: Add GPIO support for the Apex Embedded Systems STX104
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.
---
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
@@ -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
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]>Signed-off-by William Breathitt Gray <[email protected]>
Quoted 7 lines
---
Changes in v3:
- Revert v2 change; any arch should be able to select GPIOLIB
- Return-EINVALwhen attempting to set a GPIO to a direction it cannot be
- Callstx104_gpio_setto have an initial value when setting a GPIO to output direction
Yours,
Linus Walleij
Jonathan Cameron
maintainerQuoted 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]>Signed-off-by William Breathitt Gray <[email protected]>Quoted 7 lines
---
Changes in v3:
- Revert v2 change; any arch should be able to select GPIOLIB
- Return-EINVALwhen attempting to set a GPIO to a direction it cannot be
- Callstx104_gpio_setto have an initial value when setting a GPIO to output direction
Quoted 1 line
Reviewed-by Linus Walleij <[email protected]>
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