Skip to content

Commit 2ccb0bc

Browse files
hzhuang1Linus Walleij
authored andcommitted
pinctrl: generic: add input schmitt disable parameter
In Marvell PXA/MMP silicons, input schmitt disable value is 0x40, not 0. So append new config parameter -- input schmitt disable. Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 8604ac3 commit 2ccb0bc

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎drivers/pinctrl/pinconf-generic.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ struct pin_config_item conf_items[] = {
4141
PCONFDUMP(PIN_CONFIG_DRIVE_PUSH_PULL, "output drive push pull", NULL),
4242
PCONFDUMP(PIN_CONFIG_DRIVE_OPEN_DRAIN, "output drive open drain", NULL),
4343
PCONFDUMP(PIN_CONFIG_DRIVE_OPEN_SOURCE, "output drive open source", NULL),
44+
PCONFDUMP(PIN_CONFIG_INPUT_SCHMITT_DISABLE, "input schmitt disabled", NULL),
4445
PCONFDUMP(PIN_CONFIG_INPUT_SCHMITT, "input schmitt trigger", NULL),
4546
PCONFDUMP(PIN_CONFIG_INPUT_DEBOUNCE, "input debounce", "time units"),
4647
PCONFDUMP(PIN_CONFIG_POWER_SOURCE, "pin power source", "selector"),

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@
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_INPUT_SCHMITT_DISABLE: disable schmitt-trigger mode on the pin.
4950
* @PIN_CONFIG_INPUT_SCHMITT: this will configure an input pin to run in
5051
* schmitt-trigger mode. If the schmitt-trigger has adjustable hysteresis,
5152
* the threshold value is given on a custom format as argument when
52-
* setting pins to this mode. The argument zero turns the schmitt trigger
53-
* off.
53+
* setting pins to this mode.
5454
* @PIN_CONFIG_INPUT_DEBOUNCE: this will configure the pin to debounce mode,
5555
* which means it will wait for signals to settle when reading inputs. The
5656
* argument gives the debounce time on a custom format. Setting the
@@ -74,6 +74,7 @@ enum pin_config_param {
7474
PIN_CONFIG_DRIVE_PUSH_PULL,
7575
PIN_CONFIG_DRIVE_OPEN_DRAIN,
7676
PIN_CONFIG_DRIVE_OPEN_SOURCE,
77+
PIN_CONFIG_INPUT_SCHMITT_DISABLE,
7778
PIN_CONFIG_INPUT_SCHMITT,
7879
PIN_CONFIG_INPUT_DEBOUNCE,
7980
PIN_CONFIG_POWER_SOURCE,

0 commit comments

Comments
 (0)