[PATCH v2 0/5] Refactor of ARM64 sunxi pinctrl enabling and add A64 R_PIO driver

Icenowy Zheng icenowy at aosc.xyz
Wed Mar 1 10:01:06 PST 2017


Nearly all Allwinner SoCs need a per-SoC pinctrl driver, some will need one
more for the R_PIO pin controller.

This patchset try to refactor the enabling method of pinctrl drivers for
64-bit Allwinner SoCs, to prevent furthur change of Kconfig.platforms when
adding new SoC support.

Thus, the R_PIO pin controller driver for A64 will be added, and use the
new method to get it enabled when building 64-bit sunxi kernel.

The first patch makes the default value of pinctrl drivers about 64-bit
Allwinner SoCs (ARM64 && ARCH_SUNXI), which means 64-bit Allwinner SoCs.

The second patch then clean up Kconfig.platforms. It must be applied after
the first one, otherwise newly built 64-bit Allwinner kernel will have no
pinctrl drivers and become unusable.

The third patch is only a small fix for a typo in H5 generic pinctrl
compatible.

The fourth patch adds compatible for A64 R_PIO pin controller.

The fifth patch really introduces the A64 R_PIO pin controller driver,
it still cannot be enabled in device tree, as we lack the R_CCU driver.

Icenowy Zheng (5):
  pinctrl: sunxi: refactor pinctrl choice selecting for ARM64
  arm64: only select PINCTRL for Allwinner platforms
  dt-bindings: fix for Allwinner H5 pinctrl's compatible
  dt: bindings: add binding for Allwinner A64 R_PIO pinctrl
  pinctrl: sunxi: Add A64 R_PIO controller support

 .../bindings/pinctrl/allwinner,sunxi-pinctrl.txt   |   3 +-
 arch/arm64/Kconfig.platforms                       |   1 -
 drivers/pinctrl/sunxi/Kconfig                      |  12 +-
 drivers/pinctrl/sunxi/Makefile                     |   1 +
 drivers/pinctrl/sunxi/pinctrl-sun50i-a64-r.c       | 125 +++++++++++++++++++++
 5 files changed, 136 insertions(+), 6 deletions(-)
 create mode 100644 drivers/pinctrl/sunxi/pinctrl-sun50i-a64-r.c

-- 
2.11.1




More information about the linux-arm-kernel mailing list