Skip to contentSkip to conversation

drivers: pinctrl: add driver for Allwinner A64 SoC

PATCH In review Andre Przywara 2 participants 2 messages Mar 8, 2016 – Mar 11, 2016

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 drivers: pinctrl: add driver for Allwinner A64 SoC

Based on the Allwinner A64 user manual and on the previous sunxi pinctrl drivers this introduces the pin multiplex assignments for the ARMv8 Allwinner A64 SoC.
Port A is apparently used for the fixed function DRAM controller, so the ports start at B here (the manual mentions "n from 1 to 7", so not starting at 0).

---
Hi Linus,

as requested a rebased version of the driver, now based upon pinctrl/devel.
I adjusted the PINCTRL_SUNXI symbol name in the Kconfig, which got renamed lately, that should be fixed for the sun8i-h3-r driver as well.
Also I dropped the arm64 Kconfig.platforms line as requested and removed the no longer needed MODULE_DEVICE_TABLE entry.

Cheers,
Andre.

 .../bindings/pinctrl/allwinner,sunxi-pinctrl.txt   |   1 +
 drivers/pinctrl/sunxi/Kconfig                      |   4 +
 drivers/pinctrl/sunxi/Makefile                     |   1 +
 drivers/pinctrl/sunxi/pinctrl-sun50i-a64.c         | 601 +++++++++++++++++++++
 4 files changed, 607 insertions(+)
 create mode 100644 drivers/pinctrl/sunxi/pinctrl-sun50i-a64.c
Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt +1 -0
index 3e56b16..6961722 100644
@@ -22,6 +22,7 @@ Required properties:
   "allwinner,sun8i-a83t-pinctrl"
   "allwinner,sun8i-h3-pinctrl"
   "allwinner,sun8i-h3-r-pinctrl"
+  "allwinner,sun50i-a64-pinctrl"
 
 - reg: Should contain the register physical address and length for the
   pin controller.
drivers/pinctrl/sunxi/Kconfig +4 -0
index 1868b82..aaf075b 100644
@@ -68,4 +68,8 @@ config PINCTRL_SUN9I_A80_R
 	depends on RESET_CONTROLLER
 	select PINCTRL_SUNXI
 
+config PINCTRL_SUN50I_A64
+	bool
+	select PINCTRL_SUNXI
+
 endif
drivers/pinctrl/sunxi/Makefile +1 -0
index f22de0e..2d8b64e 100644
@@ -12,6 +12,7 @@ obj-$(CONFIG_PINCTRL_SUN7I_A20)		+= pinctrl-sun7i-a20.o
 obj-$(CONFIG_PINCTRL_SUN8I_A23)		+= pinctrl-sun8i-a23.o
 obj-$(CONFIG_PINCTRL_SUN8I_A23_R)	+= pinctrl-sun8i-a23-r.o
 obj-$(CONFIG_PINCTRL_SUN8I_A33)		+= pinctrl-sun8i-a33.o
+obj-$(CONFIG_PINCTRL_SUN50I_A64)	+= pinctrl-sun50i-a64.o
 obj-$(CONFIG_PINCTRL_SUN8I_A83T)	+= pinctrl-sun8i-a83t.o
 obj-$(CONFIG_PINCTRL_SUN8I_H3)		+= pinctrl-sun8i-h3.o
 obj-$(CONFIG_PINCTRL_SUN8I_H3_R)	+= pinctrl-sun8i-h3-r.o
drivers/pinctrl/sunxi/pinctrl-sun50i-a64.c new file +601 -0

601 lines not on this page · raw message

Signature · 1 line
1.8.4
#1 lore raw
Quoted 10 lines · Andre Przywara

Based on the Allwinner A64 user manual and on the previous sunxi pinctrl drivers this introduces the pin multiplex assignments for the ARMv8 Allwinner A64 SoC.
Port A is apparently used for the fixed function DRAM controller, so the ports start at B here (the manual mentions "n from 1 to 7", so not starting at 0).

Patch applied.

Yours,
Linus Walleij