linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] r8a7795 pinctrl: Add drive strength support
@ 2016-03-23 14:05 Laurent Pinchart
  2016-03-23 14:06 ` [PATCH v2 1/2] pinctrl: sh-pfc: " Laurent Pinchart
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Laurent Pinchart @ 2016-03-23 14:05 UTC (permalink / raw)
  To: linux-renesas-soc; +Cc: linux-gpio, Linus Walleij

Hello,

This patch series adds drive strength control support to the sh-pfc driver for
the R8A7795 (R-Car H3) SoC.

The SoC can control the drive strength of all GPIO pins, as well as of some
dedicated-purpose pins. As the R8A7795 pinctrl driver doesn't support non-GPIO
pins yet, this series is limited to controlling the drive strength on the GPIO
pins.

Patch 1/2 adds drive strength support to the sh-pfc driver. It hardcodes a few
assumptions that might be specific to the R8A7795, I'll revisit them if future
SoCs break them.

Patch 2/2 adds R8A7795-specific support by setting the drive strength
configuration flag for all GPIO pins, and defining the drive strength
registers layout.

The series has been tested on the Salvator-X board with the GPIO pins
connected to the on-board LEDs. The 4.7µF capacitor to ground provides a large
enough load on the lines to make the effect of the drive strength easily
measurable with an oscilloscope.

Changes compared to v1:

- Fix conversion from register value to mA
- Fix boundary checking when setting drive strength

Laurent Pinchart (2):
  pinctrl: sh-pfc: Add drive strength support
  pinctrl: sh-pfc: r8a7795: Add drive strength support

 .../bindings/pinctrl/renesas,pfc-pinctrl.txt       |   4 +-
 drivers/pinctrl/sh-pfc/core.c                      |  15 ++
 drivers/pinctrl/sh-pfc/core.h                      |   3 +
 drivers/pinctrl/sh-pfc/pfc-r8a7795.c               | 218 ++++++++++++++++++++-
 drivers/pinctrl/sh-pfc/pinctrl.c                   | 111 +++++++++++
 drivers/pinctrl/sh-pfc/sh_pfc.h                    |  17 ++
 6 files changed, 358 insertions(+), 10 deletions(-)

-- 
Regards,

Laurent Pinchart

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-03-31  9:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-23 14:05 [PATCH v2 0/2] r8a7795 pinctrl: Add drive strength support Laurent Pinchart
2016-03-23 14:06 ` [PATCH v2 1/2] pinctrl: sh-pfc: " Laurent Pinchart
2016-03-23 14:06 ` [PATCH v2 2/2] pinctrl: sh-pfc: r8a7795: " Laurent Pinchart
2016-03-31  8:34 ` [PATCH v2 0/2] r8a7795 pinctrl: " Linus Walleij
2016-03-31  8:41   ` Geert Uytterhoeven
2016-03-31  9:20     ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).