gpio: sim: allow to mark simulated lines as invalid
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 30 Jun 2025 13:03:57 +0000 (15:03 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 9 Jul 2025 14:48:49 +0000 (16:48 +0200)
commit0cf6d425d39cfc1b676fbf9dea36ecd68eeb27ee
tree28a7017ee010b6223cc3456d94a896a09ff74db3
parent6c99a046edfac782b5ec3a3a1a5f0633bed28563
gpio: sim: allow to mark simulated lines as invalid

Add a new line-level, boolean property to the gpio-sim configfs
interface called 'valid'. It's set by default and the user can unset it
to make the line be included in the standard `gpio-reserved-ranges`
property when the chip is registered with GPIO core. This allows users
to specify which lines should not be available for requesting as GPIOs.

Link: https://lore.kernel.org/r/20250630130358.40352-1-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Documentation/admin-guide/gpio/gpio-sim.rst
drivers/gpio/gpio-sim.c