]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: at91-pio4: add support for drive strength
authorLudovic Desroches <ludovic.desroches@microchip.com>
Fri, 29 Jun 2018 08:15:33 +0000 (10:15 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 16 Jul 2018 12:46:11 +0000 (14:46 +0200)
commita0ea2dbea0652c3796239d55bb3ad1cb6dd6bfcc
tree332bb94416582cc5176ada527626285507ba694c
parent581977b888dcad2a793207df6d864e77bb2ef985
pinctrl: at91-pio4: add support for drive strength

Add support for the drive strength configuration. Usually, this value is
expressed in mA. Since the numeric value depends on VDDIOP voltage, a
value we can't retrieve at runtime, the controller uses low, medium and
high to define the drive strength.

The PIO controller accepts two values for the low drive configuration: 0
and 1. Most of the time, we don't care about the drive strength. So we
keep the default value which is 0. The drive strength is advertised
through the sysfs only when it has been explicitly set in the device
tree i.e. if its value is different from 0.

Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/pinctrl/atmel,at91-pio4-pinctrl.txt
drivers/pinctrl/pinctrl-at91-pio4.c
include/dt-bindings/pinctrl/at91.h