linux_dsm_epyc7002/Documentation/gpio
Rojhalat Ibrahim 5f42424354 gpiolib: allow simultaneous setting of multiple GPIO outputs
Introduce new functions gpiod_set_array & gpiod_set_raw_array to the consumer
interface which allow setting multiple outputs with just one function call.
Also add an optional set_multiple function to the driver interface. Without an
implementation of that function in the chip driver outputs are set
sequentially.

Implementing the set_multiple function in a chip driver allows for:
- Improved performance for certain use cases. The original motivation for this
  was the task of configuring an FPGA. In that specific case, where 9 GPIO
  lines have to be set many times, configuration time goes down from 48 s to
  20 s when using the new function.
- Simultaneous glitch-free setting of multiple pins on any kind of parallel
  bus attached to GPIOs provided they all reside on the same chip and bank.

Limitations:
  Performance is only improved for normal high-low outputs. Open drain and
  open source outputs are always set separately from each other. Those kinds
  of outputs could probably be accelerated in a similar way if we could
  forgo the error checking when setting GPIO directions.

Change log:
  v6: - rebase on current linux-gpio devel branch
  v5: - check can_sleep property per chip
      - remove superfluous checks
      - supplement documentation
  v4: - add gpiod_set_array function for setting logical values
      - change interface of the set_multiple driver function to use
        unsigned long as type for the bit fields
      - use generic bitops (which also use unsigned long for bit fields)
      - do not use ARCH_NR_GPIOS any more
  v3: - add documentation
      - change commit message
  v2: - use descriptor interface
      - allow arbitrary groups of GPIOs spanning multiple chips

Signed-off-by: Rojhalat Ibrahim <imr@rtschenk.de>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2014-11-27 15:01:18 +01:00
..
00-INDEX Documentation: gpiolib: add 00-INDEX file 2013-12-03 13:10:48 +01:00
board.txt gpio: split gpiod board registration into machine header 2014-07-28 12:23:35 +02:00
consumer.txt gpiolib: allow simultaneous setting of multiple GPIO outputs 2014-11-27 15:01:18 +01:00
driver.txt gpio: rename gpio_lock_as_irq to gpiochip_lock_as_irq 2014-10-28 17:30:59 +01:00
gpio-legacy.txt Documentation: gpiolib: document new interface 2013-11-25 09:02:30 +01:00
gpio.txt Documentation: gpiolib: document new interface 2013-11-25 09:02:30 +01:00
sysfs.txt Documentation: gpiolib: document new interface 2013-11-25 09:02:30 +01:00