mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-15 19:56:03 +00:00
GPIO core:
- defer probe on software node lookups when the remote software node
exists but has not been registered as a firmware node yet
- unify GPIO hog handling by moving code duplicated in OF and ACPI
modules into GPIO core and allow setting up hogs with software nodes
- allow matching GPIO controllers by secondary firmware node if matching
by primary does not succeed
- demote deferral warnings to debug level as they are quite normal when
using software nodes which don't support fw_devlink yet
- disable the legacy GPIO character device uAPI v1 supprt in Kconfig by
default
- rework several core functions in preparation for the upcoming Revocable
helper library for protecting resources against sudden removal, this
reduces the number of SRCU dereferences in GPIO core
- simplify file descriptor logic in GPIO character device code by using
FD_PREPARE()
- introduce a header defining symbols used by both GPIO consumers and
providers to avoid having to include provider-specific headers from
drivers which only consume GPIOs
- replace snprintf() with strscpy() where formatting is not required
New drivers:
- add the gpio-by-pinctrl generic driver using the ARM SCMI protocol to
control GPIOs (along with SCMI changes pulled from the pinctrl tree)
- add a driver providing support for handling of platform events via
GPIO-signalled ACPI events (used on Intel Nova Lake and later platforms)
Driver changes:
- extend the gpio-kempld driver with support for more recent models,
interrupts and setting/getting multiple values at once
- improve interrupt handling in gpio-brcmstb
- add support for multi-SoC systems in gpio-tegra186
- make sure we return correct values from the .get() callbacks in several
GPIO drivers by normalizing any values other than 0, 1 or negative error
numbers
- use flexible arrays in several drivers to reduce the number of required
memory allocations
- simplify synchronous waiting for virtual drivers to probe and remove the
dedicated, a bit overengineered helper library dev-sync-probe
- remove unneeded Kconfig dependencies on OF_GPIO in several drivers and
subsystems
- convert the two remaining users of of_get_named_gpio() to using GPIO
descriptors and remove the (no longer used) function along with the
header that declares it
- add missing includes in gpio-mmio
- shrink and simplify code in gpio-max732x by using guard(mutex)
- remove duplicated code handling the 'ngpios' property from gpio-ts4800,
it's already handled in GPIO core
- use correct variable type in gpio-aspeed
- add support for a new model in gpio-realtek-otto
- allow to specify the active-low setting of simulated hogs over the
configfs interface (in addition to existing devicetree support) in
gpio-sim
Bug fixes:
- clear the OF_POPULATED flag on hog nodes in GPIO chip remove path on
OF systems
- fix resource leaks in error path in gpiochip_add_data_with_key()
- drop redundant device reference in gpio-mpsse
Tests:
- add selftests for use-after-free cases in GPIO character device code
DT bindings:
- add a DT binding document for SCMI based, gpio-over-pinctrl devices
- fix interrupt description in microchip,mpfs-gpio
- add new compatible for gpio-realtek-otto
- describe the resets of the mpfs-gpio controller
- fix maintainer's email in gpio-delay bindings
- remove the binding document for cavium,thunder-8890 as the corresponding
device is bound over PCI and not firmware nodes
Documentation:
- update the recommended way of converting legacy boards to using software
nodes for GPIO description
- describe GPIO line value semantics
- misc updates to kerneldocs
Misc:
- convert OMAP1 ams-delta board to using GPIO hogs described with software
nodes
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEkeUTLeW1Rh17omX8BZ0uy/82hMMFAmnYsngACgkQBZ0uy/82
hMO+Tw/+N8eX1GOWkEdZBZRzd6QW+2qjmeMgvizMUu2CzfYpcuO9kpOqiSjguj2S
6hODOajwU6EDdrxEHy7zJrAc6Tw1xIQeCnmSsFjC+4OePsCP6bU0QBgdb0V5waIx
3kEdBsM3Msw48SCDFTUQJ0XyUD/VP4TZXzhDmU0X1OJsGYDSMchiBytNpZrFt18q
qTq/NJm6mT6h5XlTeTCmfBcf/TG7MZhAPzXw8YZp+ZIgDsTRtD/P6CAZgJ0OU9f4
MQwJO5+JFkTO7XhL+qOfJcnKnC2lRHaa7mJiSQ+XS43NOqO7NGeGH2l7hU/Lx/fR
NIIZk27uBRV1akpnMGtgbqL2A8SFeH5yj3/o6S4rp9IzDwOouN+1seaL2RUHpTns
TgIm037MNIZI8eQ2lSA9/+f4vwF1bml8mA/6lVBGHI9ZcaZbcUyWjXPcsuVIyiqY
HlV+A3sVjchpaH9Eie78nbVm2X7Wm5slEazXAl3zVjlekQut+Fp+xoBWwulEjp+H
7PZXqLP2hV/Xw4C2mn/zwwokzj+1S1DPW5Inn5Y7Qi6/j4GmvdVmI1zBculrf7jj
GE6UUz+Vm9v6oE+q19jsksudVrDPapASYV/TLGQZk48IXhy+KxB8lep6L2rEAQtS
YgBltnjJlbrx99u1sZkPECzgCRYSgm59Lt0aOv93CL2fURI1Seg=
=VknJ
-----END PGP SIGNATURE-----
Merge tag 'gpio-updates-for-v7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux
Pull gpio updates from Bartosz Golaszewski:
"For this merge window we have two new drivers: support for
GPIO-signalled ACPI events on Intel platforms and a generic
GPIO-over-pinctrl driver using the ARM SCMI protocol for
controlling pins.
Several things have been reworked in GPIO core: we unduplicated GPIO
hog handling, reduced the number of SRCU locks and dereferences,
improved support for software-node-based lookup and removed more
legacy code after converting remaining users to modern alternatives.
There's also a number of driver reworks and refactoring, documentation
updates, some bug-fixes and new tests.
GPIO core:
- defer probe on software node lookups when the remote software node
exists but has not been registered as a firmware node yet
- unify GPIO hog handling by moving code duplicated in OF and ACPI
modules into GPIO core and allow setting up hogs with software
nodes
- allow matching GPIO controllers by secondary firmware node if
matching by primary does not succeed
- demote deferral warnings to debug level as they are quite normal
when using software nodes which don't support fw_devlink yet
- disable the legacy GPIO character device uAPI v1 supprt in Kconfig
by default
- rework several core functions in preparation for the upcoming
Revocable helper library for protecting resources against sudden
removal, this reduces the number of SRCU dereferences in GPIO core
- simplify file descriptor logic in GPIO character device code by
using FD_PREPARE()
- introduce a header defining symbols used by both GPIO consumers and
providers to avoid having to include provider-specific headers from
drivers which only consume GPIOs
- replace snprintf() with strscpy() where formatting is not required
New drivers:
- add the gpio-by-pinctrl generic driver using the ARM SCMI protocol
to control GPIOs (along with SCMI changes pulled from the pinctrl
tree)
- add a driver providing support for handling of platform events via
GPIO-signalled ACPI events (used on Intel Nova Lake and later
platforms)
Driver changes:
- extend the gpio-kempld driver with support for more recent models,
interrupts and setting/getting multiple values at once
- improve interrupt handling in gpio-brcmstb
- add support for multi-SoC systems in gpio-tegra186
- make sure we return correct values from the .get() callbacks in
several GPIO drivers by normalizing any values other than 0, 1 or
negative error numbers
- use flexible arrays in several drivers to reduce the number of
required memory allocations
- simplify synchronous waiting for virtual drivers to probe and
remove the dedicated, a bit overengineered helper library
dev-sync-probe
- remove unneeded Kconfig dependencies on OF_GPIO in several drivers
and subsystems
- convert the two remaining users of of_get_named_gpio() to using
GPIO descriptors and remove the (no longer used) function along
with the header that declares it
- add missing includes in gpio-mmio
- shrink and simplify code in gpio-max732x by using guard(mutex)
- remove duplicated code handling the 'ngpios' property from
gpio-ts4800, it's already handled in GPIO core
- use correct variable type in gpio-aspeed
- add support for a new model in gpio-realtek-otto
- allow to specify the active-low setting of simulated hogs over the
configfs interface (in addition to existing devicetree support) in
gpio-sim
Bug fixes:
- clear the OF_POPULATED flag on hog nodes in GPIO chip remove path
on OF systems
- fix resource leaks in error path in gpiochip_add_data_with_key()
- drop redundant device reference in gpio-mpsse
Tests:
- add selftests for use-after-free cases in GPIO character device
code
DT bindings:
- add a DT binding document for SCMI based, gpio-over-pinctrl devices
- fix interrupt description in microchip,mpfs-gpio
- add new compatible for gpio-realtek-otto
- describe the resets of the mpfs-gpio controller
- fix maintainer's email in gpio-delay bindings
- remove the binding document for cavium,thunder-8890 as the
corresponding device is bound over PCI and not firmware nodes
Documentation:
- update the recommended way of converting legacy boards to using
software nodes for GPIO description
- describe GPIO line value semantics
- misc updates to kerneldocs
Misc:
- convert OMAP1 ams-delta board to using GPIO hogs described with
software nodes"
* tag 'gpio-updates-for-v7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux: (79 commits)
gpio: swnode: defer probe on references to unregistered software nodes
dt-bindings: gpio: cavium,thunder-8890: Remove DT binding
Documentation: gpio: update the preferred method for using software node lookup
gpio: gpio-by-pinctrl: s/used to do/is used to do/
gpio: aspeed: fix unsigned long int declaration
gpio: rockchip: convert to dynamic GPIO base allocation
gpio: remove dev-sync-probe
gpio: virtuser: stop using dev-sync-probe
gpio: aggregator: stop using dev-sync-probe
gpio: sim: stop using dev-sync-probe
gpio: Add Intel Nova Lake ACPI GPIO events driver
gpiolib: Make deferral warnings debug messages
gpiolib: fix hogs with multiple lines
gpio: fix up CONFIG_OF dependencies
gpio: gpio-by-pinctrl: add pinctrl based generic GPIO driver
gpio: dt-bindings: Add GPIO on top of generic pin control
firmware: arm_scmi: Allow PINCTRL_REQUEST to return EOPNOTSUPP
pinctrl: scmi: ignore PIN_CONFIG_PERSIST_STATE
pinctrl: scmi: Delete PIN_CONFIG_OUTPUT_IMPEDANCE_OHMS support
pinctrl: scmi: Add SCMI_PIN_INPUT_VALUE
...
|
History
|
|
|---|---|---|
| .. | ||
| gpio-74x164.c | ||
| 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-aggregator.c | ||
| gpio-altera-a10sr.c | ||
| gpio-altera.c | ||
| gpio-amd-fch.c | ||
| gpio-amd8111.c | ||
| gpio-amdpt.c | ||
| gpio-arizona.c | ||
| gpio-aspeed-sgpio.c | ||
| gpio-aspeed.c | ||
| gpio-ath79.c | ||
| gpio-bcm-kona.c | ||
| gpio-bd9571mwv.c | ||
| gpio-bd71815.c | ||
| gpio-bd71828.c | ||
| gpio-bd72720.c | ||
| gpio-blzp1600.c | ||
| gpio-brcmstb.c | ||
| gpio-bt8xx.c | ||
| gpio-by-pinctrl.c | ||
| gpio-cadence.c | ||
| gpio-cgbc.c | ||
| gpio-clps711x.c | ||
| gpio-creg-snps.c | ||
| gpio-cros-ec.c | ||
| gpio-crystalcove.c | ||
| gpio-cs5535.c | ||
| gpio-da9052.c | ||
| gpio-da9055.c | ||
| gpio-davinci.c | ||
| gpio-dln2.c | ||
| gpio-ds4520.c | ||
| gpio-dwapb.c | ||
| gpio-eic-sprd.c | ||
| gpio-elkhartlake.c | ||
| gpio-em.c | ||
| gpio-en7523.c | ||
| gpio-ep93xx.c | ||
| gpio-exar.c | ||
| gpio-f7188x.c | ||
| gpio-ftgpio010.c | ||
| gpio-fxl6408.c | ||
| gpio-ge.c | ||
| gpio-gpio-mm.c | ||
| gpio-graniterapids.c | ||
| gpio-grgpio.c | ||
| gpio-gw-pld.c | ||
| 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-janz-ttl.c | ||
| gpio-kempld.c | ||
| gpio-latch.c | ||
| gpio-line-mux.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-lpc32xx.c | ||
| gpio-macsmc.c | ||
| gpio-madera.c | ||
| gpio-max730x.c | ||
| gpio-max732x.c | ||
| gpio-max3191x.c | ||
| gpio-max7300.c | ||
| gpio-max7301.c | ||
| gpio-max7360.c | ||
| gpio-max77620.c | ||
| gpio-max77650.c | ||
| gpio-max77759.c | ||
| gpio-mb86s7x.c | ||
| gpio-mc33880.c | ||
| gpio-menz127.c | ||
| gpio-merrifield.c | ||
| gpio-ml-ioh.c | ||
| gpio-mlxbf.c | ||
| gpio-mlxbf2.c | ||
| gpio-mlxbf3.c | ||
| gpio-mm-lantiq.c | ||
| gpio-mmio.c | ||
| gpio-mockup.c | ||
| gpio-moxtet.c | ||
| gpio-mpc8xxx.c | ||
| gpio-mpc5200.c | ||
| gpio-mpfs.c | ||
| gpio-mpsse.c | ||
| gpio-msc313.c | ||
| gpio-mt7621.c | ||
| gpio-mvebu.c | ||
| gpio-mxc.c | ||
| gpio-mxs.c | ||
| gpio-nct6694.c | ||
| gpio-nomadik.c | ||
| gpio-novalake-events.c | ||
| gpio-npcm-sgpio.c | ||
| gpio-octeon.c | ||
| gpio-omap.c | ||
| gpio-palmas.c | ||
| gpio-pca953x.c | ||
| gpio-pca9570.c | ||
| gpio-pcf857x.c | ||
| gpio-pch.c | ||
| gpio-pci-idio-16.c | ||
| gpio-pcie-idio-24.c | ||
| gpio-pisosr.c | ||
| gpio-pl061.c | ||
| gpio-pmic-eic-sprd.c | ||
| gpio-pxa.c | ||
| gpio-qixis-fpga.c | ||
| gpio-raspberrypi-exp.c | ||
| gpio-rc5t583.c | ||
| gpio-rcar.c | ||
| gpio-rda.c | ||
| gpio-rdc321x.c | ||
| gpio-realtek-otto.c | ||
| gpio-reg.c | ||
| gpio-regmap.c | ||
| gpio-rockchip.c | ||
| gpio-rtd.c | ||
| gpio-sa1100.c | ||
| gpio-sama5d2-piobu.c | ||
| gpio-sch.c | ||
| gpio-sch311x.c | ||
| gpio-shared-proxy.c | ||
| gpio-sifive.c | ||
| gpio-sim.c | ||
| gpio-siox.c | ||
| gpio-sl28cpld.c | ||
| gpio-sloppy-logic-analyzer.c | ||
| gpio-sodaville.c | ||
| gpio-spacemit-k1.c | ||
| gpio-spear-spics.c | ||
| gpio-sprd.c | ||
| gpio-stmpe.c | ||
| gpio-stp-xway.c | ||
| gpio-syscon.c | ||
| gpio-tangier.c | ||
| gpio-tangier.h | ||
| gpio-tb10x.c | ||
| gpio-tc3589x.c | ||
| gpio-tegra.c | ||
| gpio-tegra186.c | ||
| gpio-thunderx.c | ||
| gpio-timberdale.c | ||
| gpio-tn48m.c | ||
| gpio-tpic2810.c | ||
| gpio-tps6586x.c | ||
| gpio-tps65086.c | ||
| gpio-tps65218.c | ||
| gpio-tps65219.c | ||
| gpio-tps65910.c | ||
| gpio-tps65912.c | ||
| gpio-tps68470.c | ||
| gpio-tqmx86.c | ||
| gpio-ts4800.c | ||
| gpio-ts4900.c | ||
| gpio-ts5500.c | ||
| gpio-twl4030.c | ||
| gpio-twl6040.c | ||
| gpio-uniphier.c | ||
| gpio-usbio.c | ||
| gpio-vf610.c | ||
| gpio-viperboard.c | ||
| gpio-virtio.c | ||
| gpio-virtuser.c | ||
| gpio-visconti.c | ||
| gpio-vx855.c | ||
| gpio-wcd934x.c | ||
| gpio-wcove.c | ||
| gpio-winbond.c | ||
| gpio-wm831x.c | ||
| gpio-wm8350.c | ||
| gpio-wm8994.c | ||
| gpio-ws16c48.c | ||
| gpio-xgene-sb.c | ||
| gpio-xgene.c | ||
| gpio-xgs-iproc.c | ||
| gpio-xilinx.c | ||
| gpio-xlp.c | ||
| gpio-xra1403.c | ||
| gpio-xtensa.c | ||
| gpio-zevio.c | ||
| gpio-zynq.c | ||
| gpio-zynqmp-modepin.c | ||
| gpiolib-acpi-core.c | ||
| gpiolib-acpi-quirks.c | ||
| gpiolib-acpi.h | ||
| gpiolib-cdev.c | ||
| gpiolib-cdev.h | ||
| gpiolib-devres.c | ||
| gpiolib-legacy.c | ||
| gpiolib-of.c | ||
| gpiolib-of.h | ||
| gpiolib-shared.c | ||
| gpiolib-shared.h | ||
| gpiolib-swnode.c | ||
| gpiolib-swnode.h | ||
| gpiolib-sysfs.c | ||
| gpiolib-sysfs.h | ||
| gpiolib.c | ||
| gpiolib.h | ||
| Kconfig | ||
| Makefile | ||
| TODO | ||