linux/named-gpio-export: add support for OPEN_DRAIN and OPEN_SOURCE flag
authorMartin Schiller <ms@dev.tdt.de>
Fri, 4 Aug 2023 10:59:03 +0000 (12:59 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 15 Aug 2023 14:07:04 +0000 (16:07 +0200)
commit0af88d2512b94bb0e3d81058beaa220448e46119
tree991ac6f912c2bc62a88efe95022a0bf179b0c63d
parent7770d08e2bd28c9c0dc0b3dc0aaf74074ad5772a
linux/named-gpio-export: add support for OPEN_DRAIN and OPEN_SOURCE flag

This change makes it possible to use the GPIO_OPEN_DRAIN /
GPIO_OPEN_SOURCE Flags when exporting GPIOs via dts.

We need to emulate the open-source or open-drain functionalities for the
initial value, because the used functions (gpiod_direction_output_raw)
do not take this into account.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
target/linux/generic/hack-5.15/800-GPIO-add-named-gpio-exports.patch
target/linux/generic/hack-6.1/800-GPIO-add-named-gpio-exports.patch