kernel-hacking-2024-linux-s.../drivers/gpio
Linus Torvalds 9b08f8327f gpio updates for v6.12-rc1
Core GPIOLIB:
 - provide and add users for a macro allowing to iterate over accepted
   GPIO property names of consumer device nodes
 - remove legacy definitions that are no longer used
 - put legacy GPIO devres helpers together with the rest of the deprecated
   code
 - implement and use swnode_gpio_get_reference(): a wrapper simplifying
   the underlying calls to fwnode_property_get_reference_args()
 - use IS_ERR_OR_NULL() where it makes sense
 - replace of_find_property() with of_property_present()
 - simplify code with the scoped variant of OF-node children iterator
 
 Documentation:
 - update GPIO kerneldocs with Return sections
 - fix "Excess struct member description" warnings now being triggered
   with W=1
 
 New drivers:
 - add support for Analog Devices ADP5585
 
 Driver improvements:
 - add support for wake-on-GPIO to gpio-mpc8xxx
 - use GPIO_LOOKUP_IDX() in gpio-virtuser
 - use devm_clk_get_[optional_]enabled() where applicable in several
   drivers
 - replace OF-specific functions with provider-agnostic alternatives where
   possible
 - drop support for legacy platform data from gpio-ath79 and gpio-davinci
 - refactor gpio-stmpe
 - improve error reporting in gpio-pca953x
 - add support for reading the direction of pins for some models to
   gpio-vf610
 
 DT bindings:
 - convert the bindings for nxp,lpc3220 to YAML
 - add gpio-reserved-ranges to gpio-davinci
 - simplify the GPIO hog schema
 - fix a GPIO hog issue in bindings for fcs,fxl6408
 
 Other:
 - fix format specifiers in user-space tools
 - remove leftover files on make clean in tools/gpio/
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEFp3rbAvDxGAT0sefEacuoBRx13IFAmboIqcACgkQEacuoBRx
 13KvTw/9FaLbR/9p5lZ6xre0VNseD6NgshfO5B8DFgip8bT7l8InsLE5/DJKI/re
 q8Bva3X1d2YZwGnKLjWW9GDFsJDHP9KFvH2n1iCoJ8Ctb7jbFDUgwq5uAO0N0ZC1
 fgcfC4c2DkOEWdp8iWEQtN7PdKqEWtk4jjCpK9IsLGSGuc8UWya3FCXjuOokFPKZ
 lvl9FU4U+5/Jt9YRuKnLtvRtXIx39tvxZbt6l4ot4fjgwhzZVrIG7Kc2wh/nFxr2
 Lgjuaxbcbqzopash5JHKIz8Pj11zUQkuHJpxBZ42QGNk5B63+7BvIl21jeeOvDHV
 Z4ueJkqaIriFeIM9G+jFzCyxPoYvUF3XiFF9+SSWEqTL1RaZCkQrJu20b7EqLgyv
 Tdj23ylHMuY9JPbAvs9e3zUVcoiT87LeSmYJ91Dw/DeKNZDInzxIPHGkbPXdfkRt
 ZpvCUzGA9a+FnOFRgGjsDxNG5rQN2rhZNTKKqxweCcecFMCVdnxomi3+j1cDxBHW
 2TGEgyewfYslsdC7KxSyGUCaku1aEA4UjliIwt3b6de6VHBawG4Rr2ObYR5Av8l8
 gI+nHZ0pD7Efxzj/HiFYXY2/nYh/NRR9JUrM7M+Lr+SD4TLjLNEzExxhl1AVnQkC
 cS+kJKMViQuForJtyerpmI1y3U7EdM5CWt5SP/XyKG8EM9Kt+0g=
 =vVau
 -----END PGP SIGNATURE-----

Merge tag 'gpio-updates-for-v6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux

Pull gpio updates from Bartosz Golaszewski:
 "Core GPIOLIB:
   - provide and add users for a macro allowing to iterate over accepted
     GPIO property names of consumer device nodes
   - remove legacy definitions that are no longer used
   - put legacy GPIO devres helpers together with the rest of the
     deprecated code
   - implement and use swnode_gpio_get_reference(): a wrapper
     simplifying the underlying calls to
     fwnode_property_get_reference_args()
   - use IS_ERR_OR_NULL() where it makes sense
   - replace of_find_property() with of_property_present()
   - simplify code with the scoped variant of OF-node children iterator

  Documentation:
   - update GPIO kerneldocs with Return sections
   - fix "Excess struct member description" warnings now being triggered
     with W=1

  New drivers:
   - add support for Analog Devices ADP5585

  Driver improvements:
   - add support for wake-on-GPIO to gpio-mpc8xxx
   - use GPIO_LOOKUP_IDX() in gpio-virtuser
   - use devm_clk_get_[optional_]enabled() where applicable in several
     drivers
   - replace OF-specific functions with provider-agnostic alternatives
     where possible
   - drop support for legacy platform data from gpio-ath79 and
     gpio-davinci
   - refactor gpio-stmpe
   - improve error reporting in gpio-pca953x
   - add support for reading the direction of pins for some models to
     gpio-vf610

  DT bindings:
   - convert the bindings for nxp,lpc3220 to YAML
   - add gpio-reserved-ranges to gpio-davinci
   - simplify the GPIO hog schema
   - fix a GPIO hog issue in bindings for fcs,fxl6408

  Other:
   - fix format specifiers in user-space tools
   - remove leftover files on make clean in tools/gpio/"

* tag 'gpio-updates-for-v6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux: (54 commits)
  gpio: mpc8xxx: switch to using DEFINE_RUNTIME_DEV_PM_OPS()
  gpio: xilinx: Use helper function devm_clk_get_optional_enabled()
  gpio: mb86s7x: Use helper function devm_clk_get_optional_enabled()
  gpio: lpc18xx: Use helper function devm_clk_get_enabled()
  gpio: cadence: Use helper function devm_clk_get_enabled()
  gpio: sama5d2-piobu: convert comma to semicolon
  gpio: mpc8xxx: order headers alphabetically
  gpio: davinci: use devm_clk_get_enabled()
  gpio: davinci: drop platform data support
  gpio: stmpe: Sort headers
  gpio: stmpe: Make use of device properties
  gpio: stmpe: Utilise temporary variable for struct device
  gpio: stmpe: Remove unused 'dev' member of struct stmpe_gpio
  gpio: stmpe: Fix IRQ related error messages
  gpio: pch: kerneldoc fixes for excess members
  gpio: zynq: Simplify using devm_clk_get_enabled()
  gpio: mpc8xxx: Add wake on GPIO support
  gpio: syscon: fix excess struct member build warning
  gpio: stp-xway: Simplify using devm_clk_get_enabled()
  gpiolib: legacy: Consolidate devm_gpio_*() with other legacy APIs
  ...
2024-09-18 10:43:07 +02:00
..
gpio-74x164.c gpio: 74x164: Enable output pins after registers are reset 2024-03-01 08:23:08 +01:00
gpio-74xx-mmio.c
gpio-104-dio-48e.c
gpio-104-idi-48.c
gpio-104-idio-16.c
gpio-adnp.c
gpio-adp5520.c
gpio-adp5585.c gpio: adp5585: Add Analog Devices ADP5585 support 2024-08-01 14:09:28 +01:00
gpio-aggregator.c
gpio-altera-a10sr.c
gpio-altera.c
gpio-amd-fch.c
gpio-amd8111.c gpio: amd8111: Convert PCIBIOS_* return codes to errnos 2024-05-30 11:20:53 +02:00
gpio-amdpt.c
gpio-arizona.c
gpio-aspeed-sgpio.c
gpio-aspeed.c
gpio-ath79.c gpio: ath79: remove support for platform data 2024-09-02 09:45:18 +02:00
gpio-bcm-kona.c
gpio-bd9571mwv.c
gpio-bd71815.c
gpio-bd71828.c
gpio-brcmstb.c of: remove internal arguments from of_property_for_each_u32() 2024-07-25 06:53:47 -05:00
gpio-bt8xx.c
gpio-cadence.c gpio: cadence: Use helper function devm_clk_get_enabled() 2024-09-05 15:04:44 +02:00
gpio-clps711x.c
gpio-creg-snps.c
gpio-cros-ec.c gpio: cros-ec: provide ID table for avoiding fallback match 2024-04-02 10:58:21 +02:00
gpio-crystalcove.c gpio: crystalcove: Use -ENOTSUPP consistently 2024-04-05 20:12:39 +03:00
gpio-cs5535.c
gpio-da9052.c
gpio-da9055.c
gpio-davinci.c gpio: davinci: use devm_clk_get_enabled() 2024-09-04 09:13:01 +02:00
gpio-dln2.c
gpio-ds4520.c
gpio-dwapb.c gpio: dwapb: Use generic request, free and set_config 2024-01-02 14:16:17 +01:00
gpio-eic-sprd.c Linux 6.8-rc4 2024-02-12 10:12:41 +01:00
gpio-elkhartlake.c
gpio-em.c
gpio-en7523.c gpio: EN7523: fix kernel-doc warnings 2024-01-15 23:15:35 +01:00
gpio-ep93xx.c
gpio-exar.c
gpio-f7188x.c
gpio-ftgpio010.c
gpio-fxl6408.c gpio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-07-29 10:50:51 +02:00
gpio-ge.c
gpio-gpio-mm.c
gpio-graniterapids.c gpio: graniterapids: Add missing raw_spinlock_init() 2024-06-26 10:18:19 +02:00
gpio-grgpio.c
gpio-gw-pld.c gpio: add missing MODULE_DESCRIPTION() macros 2024-06-07 10:05:21 +02:00
gpio-hisi.c
gpio-hlwd.c
gpio-htc-egpio.c
gpio-i8255.c
gpio-i8255.h
gpio-ich.c
gpio-idio-16.c
gpio-idio-16.h
gpio-idt3243x.c
gpio-imx-scu.c
gpio-it87.c
gpio-ixp4xx.c gpio: ixp4xx: Replace of_node_to_fwnode() with more suitable API 2024-09-02 12:27:36 +02:00
gpio-janz-ttl.c
gpio-kempld.c
gpio-latch.c
gpio-ljca.c
gpio-logicvc.c
gpio-loongson-64bit.c
gpio-loongson.c
gpio-loongson1.c
gpio-lp873x.c
gpio-lp3943.c
gpio-lp87565.c
gpio-lpc18xx.c gpio: lpc18xx: Use helper function devm_clk_get_enabled() 2024-09-05 15:04:44 +02:00
gpio-lpc32xx.c gpio: lpc32xx: fix module autoloading 2024-04-12 21:30:58 +02:00
gpio-madera.c
gpio-max730x.c gpio: max730x: don't use kernel-doc marker for regular comment 2023-12-07 09:24:08 +01:00
gpio-max732x.c
gpio-max3191x.c
gpio-max7300.c gpio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-07-29 10:50:51 +02:00
gpio-max7301.c
gpio-max77620.c
gpio-max77650.c
gpio-mb86s7x.c gpio: mb86s7x: Use helper function devm_clk_get_optional_enabled() 2024-09-05 15:04:44 +02:00
gpio-mc33880.c gpio updates for v6.11-rc1 2024-07-15 17:53:24 -07:00
gpio-menz127.c
gpio-merrifield.c
gpio-ml-ioh.c
gpio-mlxbf.c
gpio-mlxbf2.c
gpio-mlxbf3.c gpio: mlxbf3: Support shutdown() function 2024-08-10 21:35:16 +02:00
gpio-mm-lantiq.c
gpio-mmio.c gpio: mmio: do not calculate bgpio_bits via "ngpios" 2024-07-03 15:27:59 +02:00
gpio-mockup.c
gpio-moxtet.c
gpio-mpc8xxx.c gpio: mpc8xxx: switch to using DEFINE_RUNTIME_DEV_PM_OPS() 2024-09-06 08:50:48 +02:00
gpio-mpc5200.c
gpio-msc313.c gpio: msc313: Replace of_node_to_fwnode() with more suitable API 2024-09-02 12:27:36 +02:00
gpio-mt7621.c
gpio-mvebu.c gpio: mvebu: Make use of devm_pwmchip_alloc() function 2024-02-22 14:39:28 +01:00
gpio-mxc.c
gpio-mxs.c
gpio-nomadik.c drivers/gpio/nomadik: move dummy nmk_gpio_dbg_show_one() to header 2024-03-12 12:53:35 +01:00
gpio-npcm-sgpio.c gpio: nuvoton: Fix sgpio irq handle error 2024-05-07 09:44:33 +02:00
gpio-octeon.c
gpio-omap.c
gpio-palmas.c
gpio-pca953x.c gpio: pca953x: Print the error code on read/write failures 2024-08-21 14:28:55 +02:00
gpio-pca9570.c
gpio-pcf857x.c gpio: add missing MODULE_DESCRIPTION() macros 2024-06-07 10:05:21 +02:00
gpio-pch.c gpio: pch: kerneldoc fixes for excess members 2024-09-02 14:35:32 +02:00
gpio-pci-idio-16.c
gpio-pcie-idio-24.c gpio: pcie-idio-24: Use -ENOTSUPP consistently 2024-04-12 21:36:18 +02:00
gpio-pisosr.c
gpio-pl061.c gpio: add missing MODULE_DESCRIPTION() macros 2024-06-07 10:05:21 +02:00
gpio-pmic-eic-sprd.c gpio: pmic-eic-sprd: Configure the bit corresponding to the EIC through offset 2024-01-03 09:50:47 +01:00
gpio-pxa.c
gpio-raspberrypi-exp.c
gpio-rc5t583.c
gpio-rcar.c
gpio-rda.c
gpio-rdc321x.c gpio: rdc321x: Convert PCIBIOS_* return codes to errnos 2024-05-30 11:21:05 +02:00
gpio-realtek-otto.c
gpio-reg.c
gpio-regmap.c gpio: regmap: Use -ENOTSUPP consistently 2024-04-12 21:36:40 +02:00
gpio-rockchip.c gpio: rockchip: fix OF node leak in probe() 2024-09-02 14:37:25 +02:00
gpio-rtd.c gpio: rtd: Fix signedness bug in probe 2024-01-15 11:07:46 +01:00
gpio-sa1100.c
gpio-sama5d2-piobu.c gpio: sama5d2-piobu: convert comma to semicolon 2024-09-05 09:34:51 +02:00
gpio-sch.c gpio: sch: Utilise temporary variable for struct device 2024-04-15 16:12:18 +03:00
gpio-sch311x.c
gpio-sifive.c
gpio-sim.c gpio: sim: lock GPIOs as interrupts when they are requested 2024-07-04 09:25:59 +02:00
gpio-siox.c
gpio-sl28cpld.c
gpio-sloppy-logic-analyzer.c gpio: add sloppy logic analyzer using polling 2024-07-01 10:54:11 +02:00
gpio-sodaville.c
gpio-spear-spics.c
gpio-sprd.c
gpio-stmpe.c gpio: stmpe: Sort headers 2024-09-04 09:02:44 +02:00
gpio-stp-xway.c gpio: stp-xway: Simplify using devm_clk_get_enabled() 2024-09-02 12:31:48 +02:00
gpio-syscon.c gpio: syscon: fix excess struct member build warning 2024-09-02 12:35:59 +02:00
gpio-tangier.c gpio: tangier: Use correct type for the IRQ chip data 2024-04-12 23:41:05 +03:00
gpio-tangier.h
gpio-tb10x.c
gpio-tc3589x.c
gpio-tegra.c gpio: tegra: Replace of_node_to_fwnode() with more suitable API 2024-09-02 12:27:36 +02:00
gpio-tegra186.c gpio: tegra186: Replace of_node_to_fwnode() with more suitable API 2024-09-02 12:27:36 +02:00
gpio-thunderx.c gpio: thunderx: Replace of_node_to_fwnode() with more suitable API 2024-09-02 12:27:36 +02:00
gpio-timberdale.c
gpio-tn48m.c
gpio-tpic2810.c
gpio-tps6586x.c
gpio-tps65086.c
gpio-tps65218.c
gpio-tps65219.c gpio: tps65219: don't use CONFIG_DEBUG_GPIO 2023-12-27 15:56:48 +01:00
gpio-tps65910.c
gpio-tps65912.c
gpio-tps68470.c
gpio-tqmx86.c gpio: tqmx86: fix broken IRQ_TYPE_EDGE_BOTH interrupt type 2024-06-03 14:13:13 +02:00
gpio-ts4800.c
gpio-ts4900.c
gpio-ts5500.c
gpio-twl4030.c
gpio-twl6040.c
gpio-uniphier.c gpio: uniphier: Replace of_node_to_fwnode() with more suitable API 2024-09-02 12:27:36 +02:00
gpio-vf610.c gpio: vf610: add get_direction() support 2024-08-05 11:49:54 +02:00
gpio-viperboard.c
gpio-virtio.c virtio: rename virtio_find_vqs_info() to virtio_find_vqs() 2024-07-17 05:20:58 -04:00
gpio-virtuser.c gpio: virtuser: Use GPIO_LOOKUP_IDX() macro 2024-08-21 12:18:21 +02:00
gpio-visconti.c gpio: visconti: Replace of_node_to_fwnode() with more suitable API 2024-09-02 12:27:36 +02:00
gpio-vx855.c
gpio-wcd934x.c
gpio-wcove.c gpio: wcove: Use -ENOTSUPP consistently 2024-04-05 20:12:03 +03:00
gpio-winbond.c
gpio-wm831x.c gpio: wm831x: use gpiochip_dup_line_label() 2023-12-08 09:26:20 +01:00
gpio-wm8350.c
gpio-wm8994.c gpio: wm8994: use gpiochip_dup_line_label() 2023-12-08 09:26:25 +01:00
gpio-ws16c48.c
gpio-xgene-sb.c
gpio-xgene.c
gpio-xgs-iproc.c
gpio-xilinx.c gpio: xilinx: Use helper function devm_clk_get_optional_enabled() 2024-09-05 15:04:44 +02:00
gpio-xlp.c
gpio-xra1403.c
gpio-xtensa.c
gpio-zevio.c
gpio-zynq.c gpio: zynq: Simplify using devm_clk_get_enabled() 2024-09-02 13:59:31 +02:00
gpio-zynqmp-modepin.c gpio: modepin: Enable module autoloading 2024-09-02 15:00:53 +02:00
gpiolib-acpi.c gpiolib: Update the kernel documentation - add Return sections 2024-09-02 12:27:36 +02:00
gpiolib-acpi.h gpio: acpi: Make acpi_gpio_count() take firmware node as a parameter 2024-03-01 09:08:34 +01:00
gpiolib-cdev.c gpiolib: Update the kernel documentation - add Return sections 2024-09-02 12:27:36 +02:00
gpiolib-cdev.h
gpiolib-devres.c gpiolib: legacy: Consolidate devm_gpio_*() with other legacy APIs 2024-09-02 12:27:36 +02:00
gpiolib-legacy.c gpiolib: legacy: Consolidate devm_gpio_*() with other legacy APIs 2024-09-02 12:27:36 +02:00
gpiolib-of.c gpiolib: Update the kernel documentation - add Return sections 2024-09-02 12:27:36 +02:00
gpiolib-of.h gpio: of: Make of_gpio_get_count() take firmware node as a parameter 2024-03-01 09:07:21 +01:00
gpiolib-swnode.c gpiolib: Update the kernel documentation - add Return sections 2024-09-02 12:27:36 +02:00
gpiolib-swnode.h
gpiolib-sysfs.c gpiolib: Update the kernel documentation - add Return sections 2024-09-02 12:27:36 +02:00
gpiolib-sysfs.h gpiolib: revert the attempt to protect the GPIO device list with an rwsem 2024-01-17 09:52:37 +01:00
gpiolib.c gpiolib: Update the kernel documentation - add Return sections 2024-09-02 12:27:36 +02:00
gpiolib.h gpiolib: Replace gpio_suffix_count with NULL-terminated array 2024-08-20 10:22:38 +02:00
Kconfig gpio: adp5585: Add Analog Devices ADP5585 support 2024-08-01 14:09:28 +01:00
Makefile gpio: adp5585: Add Analog Devices ADP5585 support 2024-08-01 14:09:28 +01:00
TODO