Skip to contentSkip to conversation

pinctrl: berlin: add as370 SoC support

PATCH Superseded Jisheng Zhang 2 participants 4 messages Jul 13, 2018

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover pinctrl: berlin: add as370 SoC support

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

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        | 369 ++++++++++++++++++
 4 files changed, 377 insertions(+), 1 deletion(-)
 create mode 100644 drivers/pinctrl/berlin/pinctrl-as370.c
Signature · 1 line
2.18.0
#1 lore raw

PATCH 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
#2 lore raw

PATCH 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 | 369 +++++++++++++++++++++++++
 3 files changed, 375 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 +369 -0

369 lines not on this page · raw message

Signature · 1 line
2.18.0
#3 lore raw

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

I love your patch! Yet something to improve:

Hi Jisheng,

I love your patch! Yet something to improve:

[auto build test ERROR on pinctrl/devel]
[also build test ERROR on v4.18-rc4 next-20180713]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Jisheng-Zhang/dt-binding-pinctrl-berlin-document-AS370-SoC-pinctrl/20180713-235943
base:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

drivers/pinctrl/berlin/pinctrl-as370.c:330:1: sparse: 'MODULE_DEVICE_TABLE()' has implicit return type

>> drivers/pinctrl/berlin/pinctrl-as370.c:330:1: warning: data definition has no type or storage class
    MODULE_DEVICE_TABLE(of, as370_pinctrl_match);
    ^~~~~~~~~~~~~~~~~~~
>> drivers/pinctrl/berlin/pinctrl-as370.c:330:1: error: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' [-Werror=implicit-int]
>> drivers/pinctrl/berlin/pinctrl-as370.c:330:1: warning: parameter names (without types) in function declaration

cc1: some warnings being treated as errors

sparse warnings: (new ones prefixed by >>)

>> drivers/pinctrl/berlin/pinctrl-as370.c:330:1: sparse: 'MODULE_DEVICE_TABLE()' has implicit return type
   drivers/pinctrl/berlin/pinctrl-as370.c:330:1: warning: data definition has no type or storage class
    MODULE_DEVICE_TABLE(of, as370_pinctrl_match);
    ^~~~~~~~~~~~~~~~~~~

drivers/pinctrl/berlin/pinctrl-as370.c:330:1: error: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' [-Werror=implicit-int] drivers/pinctrl/berlin/pinctrl-as370.c:330:1: warning: parameter names (without types) in function declaration
cc1: some warnings being treated as errors

vim +330 drivers/pinctrl/berlin/pinctrl-as370.c

322
323 static const struct of_device_id as370_pinctrl_match[] = {
324 {
325 .compatible = "syna,as370-soc-pinctrl",
326 .data = &as370_soc_pinctrl_data,
327 },
328 {}
329 };

 > 330	MODULE_DEVICE_TABLE(of, as370_pinctrl_match);

331

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation