linux/Documentation/devicetree/bindings/gpio
Linus Torvalds 58cf279aca GPIO bulk updates for the v4.5 kernel cycle:
Infrastructural changes:
 
 - In struct gpio_chip, rename the .dev node to .parent to better reflect
   the fact that this is not the GPIO struct device abstraction. We will
   add that soon so this would be totallt confusing.
 
 - It was noted that the driver .get_value() callbacks was
   sometimes reporting negative -ERR values to the gpiolib core, expecting
   them to be propagated to consumer gpiod_get_value() and gpio_get_value()
   calls. This was not happening, so as there was a mess of drivers
   returning negative errors and some returning "anything else than zero"
   to indicate that a line was active. As some would have bit 31 set to
   indicate "line active" it clashed with negative error codes. This is
   fixed by the largeish series clamping values in all drivers with
   !!value to [0,1] and then augmenting the code to propagate error codes
   to consumers. (Includes some ACKed patches in other subsystems.)
 
 - Add a void *data pointer to struct gpio_chip. The container_of() design
   pattern is indeed very nice, but we want to reform the struct gpio_chip
   to be a non-volative, stateless business, and keep states internal to
   the gpiolib to be able to hold on to the state when adding a proper
   userspace ABI (character device) further down the road. To achieve this,
   drivers need a handle at the internal state that is not dependent on
   their struct gpio_chip() so we add gpiochip_add_data() and
   gpiochip_get_data() following the pattern of many other subsystems.
   All the "use gpiochip data pointer" patches transforms drivers to this
   scheme.
 
 - The Generic GPIO chip header has been merged into the general
   <linux/gpio/driver.h> header, and the custom header for that removed.
   Instead of having a separate mm_gpio_chip struct for these generic
   drivers, merge that into struct gpio_chip, simplifying the code and
   removing the need for separate and confusing includes.
 
 Misc improvements:
 
 - Stabilize the way GPIOs are looked up from the ACPI legacy
   specification.
 
 - Incremental driver features for PXA, PCA953X, Lantiq (patches from the
   OpenWRT community), RCAR, Zynq, PL061, 104-idi-48
 
 New drivers:
 
 - Add a GPIO chip to the ALSA SoC AC97 driver.
 
 - Add a new Broadcom NSP SoC driver (this lands in the pinctrl dir, but
   the branch is merged here too to account for infrastructural changes).
 
 - The sx150x driver now supports the sx1502.
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIcBAABAgAGBQJWmsZhAAoJEEEQszewGV1ztq0QAJ1KbNOpmf/s3INkOH4r771Z
 WIrNEsmwwLIAryo8gKNOM0H1zCwhRUV7hIE5jYWgD6JvjuAN6vobMlZAq21j6YpB
 pKgqnI5DuoND450xjb8wSwGQ5NTYp1rFXNmwCrtyTjOle6AAW+Kp2cvVWxVr77Av
 uJinRuuBr9GOKW/yYM1Fw/6EPjkvvhVOb+LBguRyVvq0s5Peyw7ZVeY1tjgPHJLn
 oSZ9dmPUjHEn91oZQbtfro3plOObcxdgJ8vo//pgEmyhMeR8XjXES+aUfErxqWOU
 PimrZuMMy4cxnsqWwh3Dyxo7KSWfJKfSPRwnGwc/HgbHZEoWxOZI1ezRtGKrRQtj
 vubxp5dUBA5z66TMsOCeJtzKVSofkvgX2Wr/Y9jKp5oy9cHdAZv9+jEHV1pr6asz
 Tas97MmmO77XuRI/GPDqVHx8dfa15OIz9s92+Gu64KxNzVxTo4+NdoPSNxkbCILO
 FKn7EmU3D0OjmN2NJ9GAURoFaj3BBUgNhaxacG9j2bieyh+euuUHRtyh2k8zXR9y
 8OnY1UOrTUYF8YIq9pXZxMQRD/lqwCNHvEjtI6BqMcNx4MptfTL+FKYUkn/SgCYk
 QTNV6Ui+ety5D5aEpp5q0ItGsrDJ2LYSItsS+cOtMy2ieOxbQav9NWwu7eI3l5ly
 gwYTZjG9p9joPXLW0E3g
 =63rR
 -----END PGP SIGNATURE-----

Merge tag 'gpio-v4.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio

Pull GPIO updates from Linus Walleij:
 "Here is the bulk of GPIO changes for v4.5.

  Notably there are big refactorings mostly by myself, aimed at getting
  the gpio_chip into a shape that makes me believe I can proceed to
  preserve state for a proper userspace ABI (character device) that has
  already been proposed once, but resulted in the feedback that I need
  to go back and restructure stuff.  So I've been restructuring stuff.
  On the way I ran into brokenness (return code from the get_value()
  callback) and had to fix it.  Also, refactored generic GPIO to be
  simpler.

  Some of that is still waiting to trickle down from the subsystems all
  over the kernel that provide random gpio_chips, I've touched every
  single GPIO driver in the kernel now, oh man I didn't know I was
  responsible for so much...

  Apart from that we're churning along as usual.

  I took some effort to test and retest so it should merge nicely and we
  shook out a couple of bugs in -next.

  Infrastructural changes:

   - In struct gpio_chip, rename the .dev node to .parent to better
     reflect the fact that this is not the GPIO struct device
     abstraction.  We will add that soon so this would be totallt
     confusing.

   - It was noted that the driver .get_value() callbacks was sometimes
     reporting negative -ERR values to the gpiolib core, expecting them
     to be propagated to consumer gpiod_get_value() and gpio_get_value()
     calls.  This was not happening, so as there was a mess of drivers
     returning negative errors and some returning "anything else than
     zero" to indicate that a line was active.  As some would have bit
     31 set to indicate "line active" it clashed with negative error
     codes.  This is fixed by the largeish series clamping values in all
     drivers with !!value to [0,1] and then augmenting the code to
     propagate error codes to consumers.  (Includes some ACKed patches
     in other subsystems.)

   - Add a void *data pointer to struct gpio_chip.  The container_of()
     design pattern is indeed very nice, but we want to reform the
     struct gpio_chip to be a non-volative, stateless business, and keep
     states internal to the gpiolib to be able to hold on to the state
     when adding a proper userspace ABI (character device) further down
     the road.  To achieve this, drivers need a handle at the internal
     state that is not dependent on their struct gpio_chip() so we add
     gpiochip_add_data() and gpiochip_get_data() following the pattern
     of many other subsystems.  All the "use gpiochip data pointer"
     patches transforms drivers to this scheme.

   - The Generic GPIO chip header has been merged into the general
     <linux/gpio/driver.h> header, and the custom header for that
     removed.  Instead of having a separate mm_gpio_chip struct for
     these generic drivers, merge that into struct gpio_chip,
     simplifying the code and removing the need for separate and
     confusing includes.

  Misc improvements:

   - Stabilize the way GPIOs are looked up from the ACPI legacy
     specification.

   - Incremental driver features for PXA, PCA953X, Lantiq (patches from
     the OpenWRT community), RCAR, Zynq, PL061, 104-idi-48

  New drivers:

   - Add a GPIO chip to the ALSA SoC AC97 driver.

   - Add a new Broadcom NSP SoC driver (this lands in the pinctrl dir,
     but the branch is merged here too to account for infrastructural
     changes).

   - The sx150x driver now supports the sx1502"

* tag 'gpio-v4.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio: (220 commits)
  gpio: generic: make bgpio_pdata always visible
  gpiolib: fix chip order in gpio list
  gpio: mpc8xxx: Do not use gpiochip_get_data() in mpc8xxx_gpio_save_regs()
  gpio: mm-lantiq: Do not use gpiochip_get_data() in ltq_mm_save_regs()
  gpio: brcmstb: Allow building driver for BMIPS_GENERIC
  gpio: brcmstb: Set endian flags for big-endian MIPS
  gpio: moxart: fix build regression
  gpio: xilinx: Do not use gpiochip_get_data() in xgpio_save_regs()
  leds: pca9532: use gpiochip data pointer
  leds: tca6507: use gpiochip data pointer
  hid: cp2112: use gpiochip data pointer
  bcma: gpio: use gpiochip data pointer
  avr32: gpio: use gpiochip data pointer
  video: fbdev: via: use gpiochip data pointer
  gpio: pch: Optimize pch_gpio_get()
  Revert "pinctrl: lantiq: Implement gpio_chip.to_irq"
  pinctrl: nsp-gpio: use gpiochip data pointer
  pinctrl: vt8500-wmt: use gpiochip data pointer
  pinctrl: exynos5440: use gpiochip data pointer
  pinctrl: at91-pio4: use gpiochip data pointer
  ...
2016-01-17 12:32:01 -08:00
..
8xxx_gpio.txt dt: binding: reword PowerPC 8xxx GPIO documentation 2013-12-03 00:01:03 -06:00
abilis,tb10x-gpio.txt gpio: add TB10x GPIO driver 2013-10-25 23:42:34 +02:00
brcm,brcmstb-gpio.txt dt-bindings: brcmstb-gpio: document properties for wakeup 2015-07-16 00:11:02 +02:00
brcm,kona-gpio.txt dt-bindings: brcm: rationalize Broadcom documentation naming 2015-03-26 12:14:11 -05:00
cavium-octeon-gpio.txt MIPS: Octeon: Add device tree source files. 2012-07-23 13:54:52 +01:00
cirrus,clps711x-mctrl-gpio.txt gpio: Driver for SYSCON-based GPIOs 2014-03-18 09:28:31 +01:00
fsl-imx-gpio.txt GPIO changes for v3.6: 2012-07-26 13:56:38 -07:00
fujitsu,mb86s70-gpio.txt gpio: Add Fujitsu MB86S7x GPIO driver 2015-01-20 11:23:18 +01:00
gpio_atmel.txt arm: at91: at91sam9x5: fix gpio number per bank 2012-10-13 09:09:29 +08:00
gpio_lpc32xx.txt
gpio-74x164.txt gpio: 74x164: dts: Add documentation for the dt binding 2012-09-11 19:21:34 +02:00
gpio-74xx-mmio.txt GPIO: 74xx-mmio: Add DT bindings documentation 2014-10-21 10:48:45 +02:00
gpio-adnp.txt gpio: adnp: dt: Reference generic interrupt binding 2012-09-20 08:54:58 +02:00
gpio-altera.txt drivers/gpio: Altera soft IP GPIO driver device tree binding 2015-03-07 20:36:33 +01:00
gpio-ath79.txt DEVICETREE: Add bindings for the ATH79 GPIO controllers 2015-06-21 21:54:08 +02:00
gpio-atlas7.txt pinctrl: sirf: add sirf atlas7 pinctrl and gpio support 2015-05-19 16:01:30 +02:00
gpio-clps711x.txt GPIO: clps711x: Add DT support 2013-06-11 15:44:57 -07:00
gpio-davinci.txt devicetree: bindings: gpio-davinic: fix documentation 2014-03-11 11:20:01 +01:00
gpio-dsp-keystone.txt gpio: syscon: reuse for keystone 2 socs 2014-09-16 14:42:16 -07:00
gpio-etraxfs.txt gpio: etraxfs: add support for ARTPEC-3 2015-07-27 15:02:23 +02:00
gpio-fan.txt (gpio-fan): Add thermal control hooks 2015-03-09 09:59:36 -07:00
gpio-grgpio.txt gpio: grgpio: Add irq support 2013-04-26 08:52:38 +02:00
gpio-lp3943.txt Documentation: Add LP3943 DT bindings and document 2014-01-21 08:27:55 +00:00
gpio-max732x.txt gpio: max732x: Add DT binding documentation 2015-01-15 18:18:44 +01:00
gpio-mcp23s08.txt gpio: mcp23s08: Add option to configure IRQ output polarity as active high 2014-12-03 14:34:45 +01:00
gpio-mm-lantiq.txt
gpio-mpc8xxx.txt dt-bindings: define little-endian property for QorIQ GPIO 2015-12-11 16:13:02 -08:00
gpio-mvebu.txt Documentation: add description of DT binding for the gpio-mvebu driver 2012-09-22 14:51:37 +00:00
gpio-mxs.txt bindings: update imx and mxs #gpio-cells 2012-07-06 19:57:42 +08:00
gpio-nmk.txt pinctrl: pinctrl-nomadik: Append sleepmode property with vendor specific prefixes 2012-07-13 10:14:39 +02:00
gpio-omap.txt ARM: arm-soc device tree changes, part 2 2013-05-07 11:06:17 -07:00
gpio-palmas.txt gpio: palmas: add dt support 2013-07-29 18:14:33 +02:00
gpio-pca953x.txt gpio: pca953x: add onsemi,pca9654 id 2015-12-09 08:04:38 +01:00
gpio-pcf857x.txt Documentation: devicetree: Fix double words in Doumentation/devicetree 2015-01-28 15:13:11 -07:00
gpio-poweroff.txt Power: gpio-poweroff: Fix documentation and gpio_is_valid 2013-01-06 17:53:00 +00:00
gpio-restart.txt power: Add simple gpio-restart driver 2014-09-26 19:51:15 +02:00
gpio-samsung.txt gpio: samsung: Remove OF support for s3c24xx 2013-06-12 05:22:17 +09:00
gpio-stericsson-coh901.txt pinctrl: coh901: add device tree support 2013-05-31 11:25:45 +02:00
gpio-stmpe.txt gpio: stmpe: Add DT support for stmpe gpio 2012-12-01 17:45:16 +01:00
gpio-stp-xway.txt
gpio-sx150x.txt gpio: sx150x: Add support for sx1502 2015-12-22 11:07:48 +01:00
gpio-tps65086.txt gpio: tps65086: Add DT bindings for the TPS65086 GPO controller 2015-11-19 09:24:36 +01:00
gpio-twl4030.txt gpio/twl4030: get platform data from device tree 2012-09-07 19:22:27 +02:00
gpio-tz1090-pdc.txt gpio-tz1090-pdc: add TZ1090 PDC gpio driver 2013-07-20 19:03:48 +02:00
gpio-tz1090.txt gpio-tz1090: add TZ1090 gpio driver 2013-07-20 19:00:44 +02:00
gpio-vf610.txt Documentation: dts: add bindings for Vybrid GPIO/PORT module 2014-10-24 14:22:27 +02:00
gpio-xgene-sb.txt Documentation: gpio: Add APM X-Gene standby GPIO controller DTS binding 2015-01-20 10:39:25 +01:00
gpio-xgene.txt Documentation: gpio: Add APM X-Gene SoC GPIO controller DTS binding 2014-08-28 14:20:45 +02:00
gpio-xilinx.txt DT: Add documentation for gpio-xilinx 2013-06-17 07:48:42 +02:00
gpio-xlp.txt gpio: Add Netlogic XLP GPIO devicetree bindings documentation 2015-05-06 16:30:59 +02:00
gpio-zevio.txt gpio: New driver for LSI ZEVIO SoCs 2014-02-27 10:30:42 +01:00
gpio-zynq.txt gpio: zynq: Document interrupt-controller DT binding 2015-10-27 17:01:28 +01:00
gpio.txt This is the bulk of GPIO changes for v4.4: 2015-11-02 12:59:12 -08:00
moxa,moxart-gpio.txt gpio: Add MOXA ART GPIO driver 2013-12-03 11:26:08 +01:00
mrvl-gpio.txt gpio: mrvl: documentation: trivial: fix typo 2015-03-09 15:45:40 +01:00
netxbig-gpio-ext.txt leds: netxbig: add device tree binding 2015-11-03 08:59:25 +01:00
nvidia,tegra20-gpio.txt
nxp,lpc1850-gpio.txt gpio: add DT bindings for lpc1850-gpio driver 2015-05-05 17:53:47 +02:00
pl061-gpio.txt gpio: pl061: document gpio-ranges property for bindings file 2014-12-03 14:46:27 +01:00
renesas,gpio-rcar.txt gpio: rcar: Add r8a7795 (R-Car H3) support 2015-07-27 14:51:40 +02:00
snps-dwapb-gpio.txt Documentation: dt-bindings: Fix interrupt documentation file path 2015-11-24 11:11:17 +00:00
sodaville.txt
spear_spics.txt gpio: SPEAr: add spi chipselect control driver 2012-11-18 00:01:27 +01:00
zx296702-gpio.txt gpio: Document ZTE zx296702 GPIO DT binding 2015-07-16 10:11:41 +02:00