Skip to content

Commit 684697c

Browse files
hzhuang1Linus Walleij
authored andcommitted
pinctrl: generic: add slew rate config parameter
Add PIN_CONFIG_SLEW_RATE parameter into pinconf-generic driver. Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent ef5e3ee commit 684697c

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎drivers/pinctrl/pinconf-generic.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ struct pin_config_item conf_items[] = {
4545
PCONFDUMP(PIN_CONFIG_INPUT_SCHMITT, "input schmitt trigger", NULL),
4646
PCONFDUMP(PIN_CONFIG_INPUT_DEBOUNCE, "input debounce", "time units"),
4747
PCONFDUMP(PIN_CONFIG_POWER_SOURCE, "pin power source", "selector"),
48+
PCONFDUMP(PIN_CONFIG_SLEW_RATE, "slew rate", NULL),
4849
PCONFDUMP(PIN_CONFIG_LOW_POWER_MODE, "pin low power", "mode"),
4950
PCONFDUMP(PIN_CONFIG_OUTPUT, "pin output", "level"),
5051
};

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060
* @PIN_CONFIG_POWER_SOURCE: if the pin can select between different power
6161
* supplies, the argument to this parameter (on a custom format) tells
6262
* the driver which alternative power source to use.
63+
* @PIN_CONFIG_SLEW_RATE: if the pin can select slew rate, the argument to
64+
* this parameter (on a custom format) tells the driver which alternative
65+
* slew rate to use.
6366
* @PIN_CONFIG_LOW_POWER_MODE: this will configure the pin for low power
6467
* operation, if several modes of operation are supported these can be
6568
* passed in the argument on a custom form, else just use argument 1
@@ -83,6 +86,7 @@ enum pin_config_param {
8386
PIN_CONFIG_INPUT_SCHMITT,
8487
PIN_CONFIG_INPUT_DEBOUNCE,
8588
PIN_CONFIG_POWER_SOURCE,
89+
PIN_CONFIG_SLEW_RATE,
8690
PIN_CONFIG_LOW_POWER_MODE,
8791
PIN_CONFIG_OUTPUT,
8892
PIN_CONFIG_END = 0x7FFF,

0 commit comments

Comments
 (0)