Skip to contentSkip to conversation

pinctrl: sunxi: Add A80 special pin controller

PATCH RESEND In review Chen-Yu Tsai 2 participants 2 messages Dec 16, 2015 – Dec 22, 2015

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

PATCH RESEND 1/1 pinctrl: sunxi: Add A80 special pin controller

From: Maxime Ripard <[email protected]>

Like the previous designs, the A80 has a special pin controller for the critical pins, like the PMIC bus.

Add a driver for this controller.

[wens: Add A80 compatible strings to bindings doc; fix pin function
names based on v1.3 datasheet; constify of_device_id table]

---

Linus, can we have this one included for 4.5?

Thanks

---
 .../bindings/pinctrl/allwinner,sunxi-pinctrl.txt   |   2 +
 drivers/pinctrl/sunxi/Kconfig                      |   5 +
 drivers/pinctrl/sunxi/Makefile                     |   1 +
 drivers/pinctrl/sunxi/pinctrl-sun9i-a80-r.c        | 181 +++++++++++++++++++++
 4 files changed, 189 insertions(+)
 create mode 100644 drivers/pinctrl/sunxi/pinctrl-sun9i-a80-r.c
Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt +2 -0
index b321b26780dc..b3b6c2f210d7 100644
@@ -18,6 +18,8 @@ Required properties:
   "allwinner,sun8i-a23-r-pinctrl"
   "allwinner,sun8i-a33-pinctrl"
   "allwinner,sun8i-a83t-pinctrl"
+  "allwinner,sun9i-a80-pinctrl"
+  "allwinner,sun9i-a80-r-pinctrl"
 
 - reg: Should contain the register physical address and length for the
   pin controller.
drivers/pinctrl/sunxi/Kconfig +5 -0
index e68fd951129a..0252b3fa41ce 100644
@@ -55,4 +55,9 @@ config PINCTRL_SUN9I_A80
 	def_bool MACH_SUN9I
 	select PINCTRL_SUNXI_COMMON
 
+config PINCTRL_SUN9I_A80_R
+	def_bool MACH_SUN9I
+	depends on RESET_CONTROLLER
+	select PINCTRL_SUNXI_COMMON
+
 endif
drivers/pinctrl/sunxi/Makefile +1 -0
index e08029034510..0b4b827f314b 100644
@@ -14,3 +14,4 @@ obj-$(CONFIG_PINCTRL_SUN8I_A23_R)	+= pinctrl-sun8i-a23-r.o
 obj-$(CONFIG_PINCTRL_SUN8I_A33)		+= pinctrl-sun8i-a33.o
 obj-$(CONFIG_PINCTRL_SUN8I_A83T)	+= pinctrl-sun8i-a83t.o
 obj-$(CONFIG_PINCTRL_SUN9I_A80)		+= pinctrl-sun9i-a80.o
+obj-$(CONFIG_PINCTRL_SUN9I_A80_R)	+= pinctrl-sun9i-a80-r.o
drivers/pinctrl/sunxi/pinctrl-sun9i-a80-r.c new file +181 -0

181 lines not on this page · raw message

Signature · 1 line
2.6.4
#1 lore raw
Quoted 7 lines · Chen-Yu Tsai

From: Maxime Ripard <[email protected]>

Like the previous designs, the A80 has a special pin controller for the critical pins, like the PMIC bus.

Add a driver for this controller.

Quoted 8 lines

[wens: Add A80 compatible strings to bindings doc; fix pin function
names based on v1.3 datasheet; constify of_device_id table]

---

Linus, can we have this one included for 4.5?

Yep. Patch rebased and applied!

Yours,
Linus Walleij