[U-Boot] [PATCH v4 0/5] ARM: AT91: Add AT91 PIO4 pinctrl driver and gpio driver with DM

Wenyou Yang wenyou.yang at atmel.com
Tue Jun 7 09:24:17 CEST 2016


AT91 PIO4 controller is a combined gpio-controller, pin-mux and
pin-config module.

This patch is to add the pinctrl driver, and rework the atmel-pio4
gpio driver to support driver model and device tree.

Changes in v4:
 - Remove the redundant log print.

Changes in v3:
 - Add bind callback to support the pinctl device regarding as
   a child of atmel_pio4 device.
 - Add clock support.
 - 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.
 - add detailed example to show how to configure pinctrl for device.
 - remove interrupt and gpio property description.
 - add reviewed-by tag.
 - integrate the gpio rework patch into this patch series.
 - add the new patch to move the PIO4 definitions to head file
   and rephrase them.
 - add the new patch to add #ifndef before CONFIG_ATMEL_PIO4
   in configs/sama5d2_xplained.h

Wenyou Yang (5):
  gpio: atmel_pio4: Move PIO4 definitions to head file
  gpio: atmel_pio4: Rework to support DM & DT
  pinctrl: at91-pio4: Add pinctrl driver
  atmel: Bring in at91 pio4 device tree file and bindings
  configs: sama5d2_xplained: Add #ifndef before CONFIG_ATMEL_PIO4

 arch/arm/dts/sama5d2-pinfunc.h                     | 880 +++++++++++++++++++++
 arch/arm/mach-at91/include/mach/atmel_pio4.h       |  35 +
 .../pinctrl/atmel,at91-pio4-pinctrl.txt            |  66 ++
 drivers/gpio/Kconfig                               |   2 +-
 drivers/gpio/atmel_pio4.c                          | 196 +++--
 drivers/pinctrl/Kconfig                            |   7 +
 drivers/pinctrl/Makefile                           |   1 +
 drivers/pinctrl/pinctrl-at91-pio4.c                | 185 +++++
 include/configs/sama5d2_xplained.h                 |   2 +
 9 files changed, 1304 insertions(+), 70 deletions(-)
 create mode 100644 arch/arm/dts/sama5d2-pinfunc.h
 create mode 100644 doc/device-tree-bindings/pinctrl/atmel,at91-pio4-pinctrl.txt
 create mode 100644 drivers/pinctrl/pinctrl-at91-pio4.c

-- 
2.7.4



More information about the U-Boot mailing list