Skip to contentSkip to conversation

pinctrl: nsp: add pinmux driver support for Broadcom NSP SoC

PATCH Applied Yendapally Reddy Dhananjaya Reddy 3 participants 5 messages Nov 20, 2015 – Dec 10, 2015

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

PATCH 2/3 pinctrl: nsp: add pinmux driver support for Broadcom NSP SoC

This adds the initial support of the Broadcom NSP pinmux driver.

---
 drivers/pinctrl/bcm/Kconfig           |  13 +
 drivers/pinctrl/bcm/Makefile          |   1 +
 drivers/pinctrl/bcm/pinctrl-nsp-mux.c | 650 ++++++++++++++++++++++++++++++++++
 3 files changed, 664 insertions(+)
 create mode 100644 drivers/pinctrl/bcm/pinctrl-nsp-mux.c
drivers/pinctrl/bcm/Kconfig +13 -0
index cd11d4d..9e961d9 100644
@@ -54,3 +54,16 @@ config PINCTRL_CYGNUS_MUX
 	  The Broadcom Cygnus IOMUX driver supports group based IOMUX
 	  configuration, with the exception that certain individual pins
 	  can be overrided to GPIO function
+
+config PINCTRL_NSP_MUX
+	bool "Broadcom NSP IOMUX driver"
+	depends on (ARCH_BCM_NSP || COMPILE_TEST)
+	select PINMUX
+	select GENERIC_PINCONF
+	default ARCH_BCM_NSP
+	help
+	  Say yes here to enable the Broadcom NSP SOC IOMUX driver.
+
+	  The Broadcom Northstar Plus IOMUX driver supports pin based IOMUX
+	  configuration, with certain individual pins can be overridden
+	  to GPIO function.
drivers/pinctrl/bcm/Makefile +1 -0
index 2b2f70e..1effa44 100644
@@ -4,3 +4,4 @@ obj-$(CONFIG_PINCTRL_BCM281XX)		+= pinctrl-bcm281xx.o
 obj-$(CONFIG_PINCTRL_BCM2835)		+= pinctrl-bcm2835.o
 obj-$(CONFIG_PINCTRL_CYGNUS_GPIO)	+= pinctrl-cygnus-gpio.o
 obj-$(CONFIG_PINCTRL_CYGNUS_MUX)	+= pinctrl-cygnus-mux.o
+obj-$(CONFIG_PINCTRL_NSP_MUX)		+= pinctrl-nsp-mux.o
drivers/pinctrl/bcm/pinctrl-nsp-mux.c new file +650 -0

650 lines not on this page · raw message

Signature · 1 line
2.1.0
#1 lore raw
Quoted 3 lines · Yendapally Reddy Dhananjaya Reddy

This adds the initial support of the Broadcom NSP pinmux driver.

So what does Ray and Stephen say about this?

Is the hardware unique enough to warrant its own driver?

Or should it utilize/extend one of the existing Broadcom drivers?

Yours,
Linus Walleij

maintainer
#2 lore raw

Hi Linus,

Quoted 5 lines · Linus Walleij
Quoted 2 lines · Yendapally Reddy Dhananjaya Reddy

This adds the initial support of the Broadcom NSP pinmux driver.

Quoted 8 lines
Quoted 1 line

So what does Ray and Stephen say about this?

Is the hardware unique enough to warrant its own driver?

Or should it utilize/extend one of the existing Broadcom drivers?

Currently, the IOMUX configurations in Cygnus, NSP, and NS2 are completely different and require a separate driver to each of these SoCs. We now realize the shortcomings and have been communicating with our ASIC team. We'd like to fix this for the next-gen of our SoC. We are driving towards using a register layout that will allow us to use just "pinctrl-single" and "pinconf-single."

Quoted 4 lines

Yours,
Linus Walleij

Thanks,

Ray

#3 lore raw
Quoted 20 lines · Ray Jui

Hi Linus,

Quoted 9 lines · Linus Walleij
Quoted 3 lines · Yendapally Reddy Dhananjaya Reddy

This adds the initial support of the Broadcom NSP pinmux driver.

Quoted 6 lines

So what does Ray and Stephen say about this?

Is the hardware unique enough to warrant its own driver?

Or should it utilize/extend one of the existing Broadcom drivers?

Quoted 6 lines

Currently, the IOMUX configurations in Cygnus, NSP, and NS2 are completely different and require a separate driver to each of these SoCs. We now realize the shortcomings and have been communicating with our ASIC team. We'd like to fix this for the next-gen of our SoC. We are driving towards using a register layout that will allow us to use just "pinctrl-single" and "pinconf-single."

OK can you provide your reviews for the NSP driver?

Yours,
Linus Walleij

maintainer
#4 lore raw

Hi Linus,

Quoted 28 lines · Linus Walleij
Quoted 20 lines · Ray Jui

Hi Linus,

Quoted 9 lines · Linus Walleij
Quoted 3 lines · Yendapally Reddy Dhananjaya Reddy

This adds the initial support of the Broadcom NSP pinmux driver.

Quoted 6 lines

So what does Ray and Stephen say about this?

Is the hardware unique enough to warrant its own driver?

Or should it utilize/extend one of the existing Broadcom drivers?

Quoted 6 lines

Currently, the IOMUX configurations in Cygnus, NSP, and NS2 are completely different and require a separate driver to each of these SoCs. We now realize the shortcomings and have been communicating with our ASIC team. We'd like to fix this for the next-gen of our SoC. We are driving towards using a register layout that will allow us to use just "pinctrl-single" and "pinconf-single."

Quoted 5 lines

OK can you provide your reviews for the NSP driver?

Yours,
Linus Walleij

Yes, I just replied to the email thread with my "Reviewed-by". In fact, both Scott and I reviewed the patches internally in Broadcom before they went out to public.

Thanks,

Ray