[PATCH v2 0/2] r8a7795 pinctrl: Add drive strength support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux