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

pinctrl: pinconf-generic: Add support for "input-schmitt-microvolt" property

Add "input-schmitt-microvolt" property to generic options used for DT
parsing files. This enables drivers, which use generic pin configurations,
to get the value passed to this property.

Signed-off-by: Inochi Amaoto <inochiama@outlook.com>
Link: https://lore.kernel.org/IA1PR20MB4953806785BA04E075DC4F03BBAC2@IA1PR20MB4953.namprd20.prod.outlook.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Inochi Amaoto and committed by
Linus Walleij
d21fe1e9 737df109

+5
+2
drivers/pinctrl/pinconf-generic.c
··· 44 44 PCONFDUMP(PIN_CONFIG_INPUT_DEBOUNCE, "input debounce", "usec", true), 45 45 PCONFDUMP(PIN_CONFIG_INPUT_ENABLE, "input enabled", NULL, false), 46 46 PCONFDUMP(PIN_CONFIG_INPUT_SCHMITT, "input schmitt trigger", NULL, false), 47 + PCONFDUMP(PIN_CONFIG_INPUT_SCHMITT_UV, "input schmitt threshold", "uV", true), 47 48 PCONFDUMP(PIN_CONFIG_INPUT_SCHMITT_ENABLE, "input schmitt enabled", NULL, false), 48 49 PCONFDUMP(PIN_CONFIG_MODE_LOW_POWER, "pin low power", "mode", true), 49 50 PCONFDUMP(PIN_CONFIG_OUTPUT_ENABLE, "output enabled", NULL, false), ··· 178 177 { "input-schmitt", PIN_CONFIG_INPUT_SCHMITT, 0 }, 179 178 { "input-schmitt-disable", PIN_CONFIG_INPUT_SCHMITT_ENABLE, 0 }, 180 179 { "input-schmitt-enable", PIN_CONFIG_INPUT_SCHMITT_ENABLE, 1 }, 180 + { "input-schmitt-microvolts", PIN_CONFIG_INPUT_SCHMITT_UV, 0 }, 181 181 { "low-power-disable", PIN_CONFIG_MODE_LOW_POWER, 0 }, 182 182 { "low-power-enable", PIN_CONFIG_MODE_LOW_POWER, 1 }, 183 183 { "output-disable", PIN_CONFIG_OUTPUT_ENABLE, 0 },
+3
include/linux/pinctrl/pinconf-generic.h
··· 81 81 * @PIN_CONFIG_INPUT_SCHMITT_ENABLE: control schmitt-trigger mode on the pin. 82 82 * If the argument != 0, schmitt-trigger mode is enabled. If it's 0, 83 83 * schmitt-trigger mode is disabled. 84 + * @PIN_CONFIG_INPUT_SCHMITT_UV: this will configure an input pin to run in 85 + * schmitt-trigger mode. The argument is in uV. 84 86 * @PIN_CONFIG_MODE_LOW_POWER: this will configure the pin for low power 85 87 * operation, if several modes of operation are supported these can be 86 88 * passed in the argument on a custom form, else just use argument 1 ··· 134 132 PIN_CONFIG_INPUT_ENABLE, 135 133 PIN_CONFIG_INPUT_SCHMITT, 136 134 PIN_CONFIG_INPUT_SCHMITT_ENABLE, 135 + PIN_CONFIG_INPUT_SCHMITT_UV, 137 136 PIN_CONFIG_MODE_LOW_POWER, 138 137 PIN_CONFIG_MODE_PWM, 139 138 PIN_CONFIG_OUTPUT,