Skip to content

Commit f868ef9

Browse files
mripardLinus Walleij
authored andcommitted
pinctrl: pinconf-generic: add drive strength parameter
Some pin configurations IP allows to set the current output to the pin. This patch adds such a parameter to the pinconf-generic mechanism. This parameter takes as argument the drive strength in mA. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent b6ae7a2 commit f868ef9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎include/linux/pinctrl/pinconf-generic.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
* @PIN_CONFIG_DRIVE_OPEN_SOURCE: the pin will be driven with open source
4747
* (open emitter). Sending this config will enabale open drain mode, the
4848
* argument is ignored.
49+
* @PIN_CONFIG_DRIVE_STRENGTH: the pin will output the current passed as
50+
* argument. The argument is in mA.
4951
* @PIN_CONFIG_INPUT_SCHMITT_DISABLE: disable schmitt-trigger mode on the pin.
5052
* @PIN_CONFIG_INPUT_SCHMITT: this will configure an input pin to run in
5153
* schmitt-trigger mode. If the schmitt-trigger has adjustable hysteresis,
@@ -76,6 +78,7 @@ enum pin_config_param {
7678
PIN_CONFIG_DRIVE_PUSH_PULL,
7779
PIN_CONFIG_DRIVE_OPEN_DRAIN,
7880
PIN_CONFIG_DRIVE_OPEN_SOURCE,
81+
PIN_CONFIG_DRIVE_STRENGTH,
7982
PIN_CONFIG_INPUT_SCHMITT_DISABLE,
8083
PIN_CONFIG_INPUT_SCHMITT,
8184
PIN_CONFIG_INPUT_DEBOUNCE,

0 commit comments

Comments
 (0)