Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Haojian Zhuang and committed by
Linus Walleij
684697cb ef5e3eef

+5
+1
drivers/pinctrl/pinconf-generic.c
··· 45 45 PCONFDUMP(PIN_CONFIG_INPUT_SCHMITT, "input schmitt trigger", NULL), 46 46 PCONFDUMP(PIN_CONFIG_INPUT_DEBOUNCE, "input debounce", "time units"), 47 47 PCONFDUMP(PIN_CONFIG_POWER_SOURCE, "pin power source", "selector"), 48 + PCONFDUMP(PIN_CONFIG_SLEW_RATE, "slew rate", NULL), 48 49 PCONFDUMP(PIN_CONFIG_LOW_POWER_MODE, "pin low power", "mode"), 49 50 PCONFDUMP(PIN_CONFIG_OUTPUT, "pin output", "level"), 50 51 };
+4
include/linux/pinctrl/pinconf-generic.h
··· 60 60 * @PIN_CONFIG_POWER_SOURCE: if the pin can select between different power 61 61 * supplies, the argument to this parameter (on a custom format) tells 62 62 * 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. 63 66 * @PIN_CONFIG_LOW_POWER_MODE: this will configure the pin for low power 64 67 * operation, if several modes of operation are supported these can be 65 68 * passed in the argument on a custom form, else just use argument 1 ··· 86 83 PIN_CONFIG_INPUT_SCHMITT, 87 84 PIN_CONFIG_INPUT_DEBOUNCE, 88 85 PIN_CONFIG_POWER_SOURCE, 86 + PIN_CONFIG_SLEW_RATE, 89 87 PIN_CONFIG_LOW_POWER_MODE, 90 88 PIN_CONFIG_OUTPUT, 91 89 PIN_CONFIG_END = 0x7FFF,