| d129779d | 03-Apr-2026 |
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> |
Documentation: gpio: update the preferred method for using software node lookup
In its current version, the manual for converting of board files from using GPIO lookup tables to software nodes recom
Documentation: gpio: update the preferred method for using software node lookup
In its current version, the manual for converting of board files from using GPIO lookup tables to software nodes recommends leaving the software nodes representing GPIO controllers as "free-floating", not attached objects and relying on the matching of their names against the GPIO controller's name. This is an abuse of the software node API and makes it impossible to create fw_devlinks between GPIO suppliers and consumers in this case. We want to remove this behavior from GPIOLIB and to this end, work on converting all existing drivers to using "attached" software nodes.
Except for a few corner-cases where board files define consumers depending on GPIO controllers described in firmware - where we need to reference a real firmware node from a software node - which requires a more complex approach, most board files can easily be converted to using propert firmware node lookup.
Update the documentation to recommend attaching the GPIO chip's software nodes to the actual platform devices and show how to do it.
Reviewed-by: Linus Walleij <linusw@kernel.org> Link: https://patch.msgid.link/20260403-doc-gpio-swnodes-v2-1-c705f5897b80@oss.qualcomm.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
show more ...
|
| 8ba37987 | 07-Jan-2026 |
Ernest Van Hoecke <ernest.vanhoecke@toradex.com> |
Documentation: gpio: pca953x: clarify interrupt source detection
There are multiple design tradeoffs and considerations in how the PCA953x driver detects the source(s) of an interrupt. This driver s
Documentation: gpio: pca953x: clarify interrupt source detection
There are multiple design tradeoffs and considerations in how the PCA953x driver detects the source(s) of an interrupt. This driver supports PCAL variants with input latching, a feature that is constrained by the fact that the interrupt status and input port registers cannot be read atomically. These limits and the design decisions deserve an in-depth explanation.
Update the documentation to clarify these hardware limits and describe how the driver determines pending interrupts, and how it makes use of the PCAL input latching.
Signed-off-by: Ernest Van Hoecke <ernest.vanhoecke@toradex.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20260107093125.4053468-1-ernestvanhoecke@gmail.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
show more ...
|
| 3ff1180a | 10-Jun-2024 |
Andrew Davis <afd@ti.com> |
gpiolib: Remove data-less gpiochip_add() function
GPIO chips should be added with driver-private data associated with the chip. If none is needed, NULL can be used. All users already do this except
gpiolib: Remove data-less gpiochip_add() function
GPIO chips should be added with driver-private data associated with the chip. If none is needed, NULL can be used. All users already do this except one, fix that here. With no more users of the base gpiochip_add() we can drop this function so no more users show up later.
Signed-off-by: Andrew Davis <afd@ti.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/20240610135313.142571-1-afd@ti.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
show more ...
|
| 3de14369 | 09-Apr-2024 |
Andy Shevchenko <andriy.shevchenko@linux.intel.com> |
Documentation: gpio: Replace leading TABs by spaces in code blocks
Code blocks are indented with two spaces. If there's a leading TAB, the syntax highlighting might be broken in some editors. To pre
Documentation: gpio: Replace leading TABs by spaces in code blocks
Code blocks are indented with two spaces. If there's a leading TAB, the syntax highlighting might be broken in some editors. To prevent that, unify all code blocks by using spaces instead of leading TAB(s).
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> [Bartosz: tweaked the commit message] Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
show more ...
|