Skip to contentSkip to conversation

pinctrl: berlin: add as370 SoC support

PATCH In review Jisheng Zhang 3 participants 5 messages Jul 18, 2018 – Jul 29, 2018

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

v2 cover pinctrl: berlin: add as370 SoC support

This series is to add the Synaptics AS370 SoC pinctrl driver.

since v1:
- remove MODULE_DEVICE_TABLE since the driver is non-modular. Thank kbuild test robot to report this issue.

Jisheng Zhang (2):
dt-binding: pinctrl: berlin: document AS370 SoC pinctrl
pinctrl: berlin: add the as370 SoC pinctrl driver

 .../bindings/pinctrl/berlin,pinctrl.txt       |   3 +-
 drivers/pinctrl/berlin/Kconfig                |   5 +
 drivers/pinctrl/berlin/Makefile               |   1 +
 drivers/pinctrl/berlin/pinctrl-as370.c        | 368 ++++++++++++++++++
 4 files changed, 376 insertions(+), 1 deletion(-)
 create mode 100644 drivers/pinctrl/berlin/pinctrl-as370.c
Signature · 1 line
2.18.0
#1 lore raw

PATCH v2 1/2 dt-binding: pinctrl: berlin: document AS370 SoC pinctrl

Add as370 to existing berlin pinctrl device tree binding.

---
 Documentation/devicetree/bindings/pinctrl/berlin,pinctrl.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/pinctrl/berlin,pinctrl.txt +2 -1
index f8fa28ce163e..0a2d5516e1f3 100644
@@ -23,7 +23,8 @@ Required properties:
 	"marvell,berlin2q-system-pinctrl",
 	"marvell,berlin4ct-avio-pinctrl",
 	"marvell,berlin4ct-soc-pinctrl",
-	"marvell,berlin4ct-system-pinctrl"
+	"marvell,berlin4ct-system-pinctrl",
+	"syna,as370-soc-pinctrl"
 
 Required subnode-properties:
 - groups: a list of strings describing the group names.
Signature · 1 line
2.18.0
maintainer Reviewed-by on v2 1/2
#2 lore raw

Re: [PATCH v2 1/2] dt-binding: pinctrl: berlin: document AS370 SoC pinctrl

Quoted 6 lines · Jisheng Zhang

Add as370 to existing berlin pinctrl device tree binding.

---
 Documentation/devicetree/bindings/pinctrl/berlin,pinctrl.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
#3 lore raw

PATCH v2 2/2 pinctrl: berlin: add the as370 SoC pinctrl driver

In reply to Jisheng Zhang

Add the pin-controller driver for Synaptics AS370 SoC, with definition of its groups and functions. This uses the core Berlin pinctrl driver.

---
 drivers/pinctrl/berlin/Kconfig         |   5 +
 drivers/pinctrl/berlin/Makefile        |   1 +
 drivers/pinctrl/berlin/pinctrl-as370.c | 368 +++++++++++++++++++++++++
 3 files changed, 374 insertions(+)
 create mode 100644 drivers/pinctrl/berlin/pinctrl-as370.c
drivers/pinctrl/berlin/Kconfig +5 -0
index 8fe6ad7795dc..0dd60278e973 100644
@@ -5,6 +5,11 @@ config PINCTRL_BERLIN
 	select PINMUX
 	select REGMAP_MMIO
 
+config PINCTRL_AS370
+	bool "Synaptics as370 pin controller driver"
+	depends on OF
+	select PINCTRL_BERLIN
+
 config PINCTRL_BERLIN_BG2
 	def_bool MACH_BERLIN_BG2
 	depends on OF
drivers/pinctrl/berlin/Makefile +1 -0
index 6f641ce2c830..00c53ca3676d 100644
@@ -3,3 +3,4 @@ obj-$(CONFIG_PINCTRL_BERLIN_BG2)	+= berlin-bg2.o
 obj-$(CONFIG_PINCTRL_BERLIN_BG2CD)	+= berlin-bg2cd.o
 obj-$(CONFIG_PINCTRL_BERLIN_BG2Q)	+= berlin-bg2q.o
 obj-$(CONFIG_PINCTRL_BERLIN_BG4CT)	+= berlin-bg4ct.o
+obj-$(CONFIG_PINCTRL_AS370)		+= pinctrl-as370.o
drivers/pinctrl/berlin/pinctrl-as370.c new file +368 -0

368 lines not on this page · raw message

Signature · 1 line
2.18.0
#4 lore raw

Re: [PATCH v2 2/2] pinctrl: berlin: add the as370 SoC pinctrl driver

Quoted 4 lines · Jisheng Zhang

Add the pin-controller driver for Synaptics AS370 SoC, with definition of its groups and functions. This uses the core Berlin pinctrl driver.

Patch applied.

Yours,
Linus Walleij