u-boot/drivers/pinctrl
Simon Glass 7e0a96d559 dm: gpio: Add a way to update flags
It is convenient to be able to adjust some of the flags for a GPIO while
leaving others alone. Add a function for this.

Update dm_gpio_set_dir_flags() to make use of this.

Also update dm_gpio_set_value() to use this also, since this allows the
open-drain / open-source features to be implemented directly in the
driver, rather than using the uclass workaround.

Update the sandbox tests accordingly. This involves a lot of changes to
dm_test_gpio_opendrain_opensource() since we no-longer have the direciion
being reported differently depending on the open drain/open source flags.

Also update the STM32 drivers to let the uclass handle the active low/high
logic.

Drop the GPIOD_FLAGS_OUTPUT() macro which is no-longer used.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Kory Maincent <kory.maincent@bootlin.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Tested-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Tested-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
2021-03-03 15:40:10 -05:00
..
aspeed dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
ath79 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
broadcom dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
exynos common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
intel x86: apl: Move priv/plat structs to headers 2021-01-05 12:24:41 -07:00
mediatek pinctrl: mediatek: correct error handling 2021-01-18 15:23:06 -05:00
meson common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mscc dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
mtmips common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mvebu common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
nexell common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
nxp common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
renesas common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
rockchip common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
uniphier dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
Kconfig pinctrl: Add support for Kendryte K210 FPIOA 2020-10-08 11:42:36 -04:00
Makefile pinctrl: Add support for Kendryte K210 FPIOA 2020-10-08 11:42:36 -04:00
pinctrl-at91-pio4.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
pinctrl-at91.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
pinctrl-generic.c pinctrl: Add pinmux property support to pinctrl-generic 2020-10-08 11:42:36 -04:00
pinctrl-kendryte.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
pinctrl-qe-io.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
pinctrl-sandbox.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
pinctrl-single.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
pinctrl-sti.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
pinctrl-stmfx.c dm: gpio: Add a way to update flags 2021-03-03 15:40:10 -05:00
pinctrl-uclass.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
pinctrl_pic32.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
pinctrl_stm32.c pinctrl: stm32: bind only the enabled GPIO subnode 2021-02-09 10:31:04 +01:00