[U-Boot] [U-Boot, v7, 3/4] pinctrl: at91-pio4: Add pinctrl driver

Andreas Bießmann andreas at biessmann.org
Mon Aug 15 22:16:35 CEST 2016


Dear Wenyou Yang,

Wenyou Yang <wenyou.yang at atmel.com> writes:
>AT91 PIO4 controller is a combined gpio-controller, pin-mux and
>pin-config module. The peripheral's pins are assigned through
>per-pin based muxing logic.
>
>The pin configuration is performed on specific registers which
>are shared along with the gpio controller. So regard the pinctrl
>device as a child of atmel_pio4 device.
>
>Signed-off-by: Wenyou Yang <wenyou.yang at atmel.com>
>Reviewed-by: Simon Glass <sjg at chromium.org>
>Reviewed-by: Andreas Bießmann <andreas at biessmann.org>
>---
>
>Changes in v7: None
>Changes in v6: None
>Changes in v5:
> - Fixed the return value, -ENODEV->-EINVAL.
> - Remove check on dev_get_parent() return.
>
>Changes in v4: None
>Changes in v3:
> - Rework due to the pinctrl device is regarded as atmel_pio4
>   device's child.
>
>Changes in v2:
> - remove meaningless comment.
> - add else path for argument of pinconf.
> - add inline attribute for atmel_pio4_bank_base().
> - add handle if the pinmux entries is greater maximum value.
>
> drivers/pinctrl/Kconfig             |   7 ++
> drivers/pinctrl/Makefile            |   1 +
> drivers/pinctrl/pinctrl-at91-pio4.c | 182 ++++++++++++++++++++++++++++++++++++
> 3 files changed, 190 insertions(+)
> create mode 100644 drivers/pinctrl/pinctrl-at91-pio4.c

applied to u-boot-atmel/master, thanks!

I had to rebase this patch before applying.

Best regards,
Andreas Bießmann


More information about the U-Boot mailing list