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
..
2021-02-01 15:11:41 +08:00
2021-03-03 15:40:10 -05:00
2021-02-26 15:39:12 +01:00
2021-02-18 11:56:25 +01:00
2021-02-07 21:12:56 +01:00
2021-03-01 09:54:11 -05:00
2021-02-16 11:48:20 -05:00
2021-02-02 15:33:42 -05:00
2021-02-16 11:48:20 -05:00
2021-01-16 14:49:09 -05:00
2021-02-24 16:51:48 -05:00
2021-02-18 11:56:26 +01:00
2021-02-21 06:08:00 +01:00
2020-12-13 16:51:08 -07:00
2021-01-15 14:36:12 -05:00
2020-12-13 16:51:09 -07:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2021-01-25 21:52:00 +00:00
2021-01-25 21:52:00 +00:00
2021-02-02 15:33:42 -05:00
2021-01-31 14:08:56 +01:00
2021-01-27 17:03:16 -05:00
2020-12-13 16:51:08 -07:00
2021-01-27 17:03:16 -05:00
2021-02-02 15:33:42 -05:00
2021-02-22 11:07:57 +01:00
2021-02-02 15:33:42 -05:00
2021-01-12 10:58:04 +05:30
2021-01-12 10:58:04 +05:30
2021-02-03 23:16:44 +08:00
2021-02-02 15:33:42 -05:00
2020-12-26 12:37:28 +01:00
2021-01-20 08:09:34 +01:00
2021-02-21 06:08:00 +01:00
2021-01-15 14:38:00 -05:00
2021-03-02 14:03:02 -05:00
2021-02-02 15:33:42 -05:00
2021-01-30 14:25:41 -07:00
2021-01-30 14:25:42 -07:00
2021-01-31 14:08:56 +01:00
2021-02-02 15:33:42 -05:00
2021-01-15 17:48:36 +08:00
2021-01-30 14:25:41 -07:00
2021-01-20 08:17:17 +01:00
2021-01-13 02:38:01 +01:00
2021-02-26 16:17:43 +01:00
2021-01-20 08:17:17 +01:00
2021-01-13 02:38:01 +01:00
2021-02-08 08:52:50 +01:00
2021-02-08 08:52:50 +01:00
2021-02-21 06:08:00 +01:00
2021-02-02 15:33:42 -05:00
2021-02-26 15:30:55 +01:00
2021-01-23 07:56:53 +01:00
2021-02-18 11:56:25 +01:00
2020-12-13 16:51:09 -07:00
2021-02-02 15:33:42 -05:00
2021-02-10 10:00:51 +01:00
2021-02-21 06:08:00 +01:00
2021-02-02 15:33:42 -05:00
2021-02-17 19:46:43 -05:00
2021-02-15 10:16:45 -05:00
2021-02-02 15:33:42 -05:00
2021-02-16 11:16:08 -05:00
2021-02-02 15:33:42 -05:00
2020-12-18 20:32:21 -07:00
2021-01-16 19:17:11 -05:00
2021-02-24 16:51:48 -05:00
2021-01-15 14:36:12 -05:00
2021-02-02 15:33:42 -05:00
2021-02-19 15:10:41 +08:00
2021-02-16 11:48:20 -05:00
2021-02-02 15:33:42 -05:00
2021-01-05 12:24:40 -07:00
2021-03-02 15:53:37 -05:00
2020-12-13 16:51:09 -07:00
2021-02-21 06:08:00 +01:00
2021-01-16 14:49:09 -05:00
2021-02-26 15:30:55 +01:00
2020-12-18 20:32:21 -07:00
2021-02-10 10:00:51 +01:00
2021-02-16 11:48:20 -05:00
2021-02-18 11:56:25 +01:00
2021-01-15 14:36:11 -05:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2020-12-13 16:51:09 -07:00
2020-12-13 16:51:08 -07:00
2021-02-02 15:33:42 -05:00
2021-02-04 20:37:57 +05:30
2020-12-31 14:41:31 +01:00
2021-02-06 19:20:27 +08:00
2021-02-02 15:33:42 -05:00
2021-02-08 14:01:18 +05:30
2021-01-05 16:20:26 -05:00
2021-02-17 17:12:45 -05:00
2021-02-16 11:16:07 -05:00
2021-01-11 23:19:33 +00:00
2020-12-13 16:51:09 -07:00
2021-02-15 10:16:45 -05:00
2021-03-02 14:03:02 -05:00
2021-02-02 15:33:42 -05:00
2021-01-31 14:08:56 +01:00
2021-03-02 15:53:37 -05:00
2021-03-02 15:53:37 -05:00
2021-03-02 15:53:37 -05:00
2021-03-02 15:53:37 -05:00
2021-02-02 15:33:42 -05:00
2021-02-21 06:08:00 +01:00
2021-02-21 06:08:00 +01:00
2021-02-02 15:33:42 -05:00
2020-12-13 16:51:09 -07:00
2021-01-31 14:08:56 +01:00
2021-01-27 17:03:16 -05:00
2020-12-13 16:51:09 -07:00
2021-01-27 17:03:16 -05:00
2021-01-05 12:24:41 -07:00
2021-01-15 14:36:12 -05:00