[U-Boot] [PATCH v4] Add single register pin controller driver

Simon Glass sjg at chromium.org
Mon Mar 27 02:27:32 UTC 2017


On 22 March 2017 at 04:26, Felix Brack <fb at ltec.ch> wrote:
> This patch adds a pin controller driver supporting devices
> using a single configuration register per pin.
> Signed-off-by: Felix Brack <fb at ltec.ch>
> ---
>
> Changes in v4:
> - add James Balean's modifications according to v3 to this patch
>
> Changes in v3:
> The use of pinctrl_ops.set_state_simple wile defining
> CONFIG_PINCTRL_FULL seems to be wrong.
> - use pinctrl_ops.set_state instead of pinctrl_ops.set_state_simple
>
> Changes in v2:
> - add a comment on function single_configure_pins() explaining
>   the function and its parameters
> - use fdt_getprop() to simplify retrieval of property
>   'pinctrl-single,pins' from FDT
> - change the return value of single_ofdata_to_platdata()
>   to -EINVAL in case of failure
> - change the driver name from pcs_pinctrl to single_pinctrl
> - minor reformatting to comply with coding style
>
>  drivers/pinctrl/Kconfig          |  10 +++
>  drivers/pinctrl/Makefile         |   1 +
>  drivers/pinctrl/pinctrl-single.c | 142 +++++++++++++++++++++++++++++++++++++++
>  3 files changed, 153 insertions(+)
>  create mode 100644 drivers/pinctrl/pinctrl-single.c

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list