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

Configure Feed

Select the types of activity you want to include in your feed.

pinctrl: pinconf-generic: Add properties 'input-threshold-voltage-microvolt'

Add a new generic pin configuration parameter PIN_CONFIG_INPUT_VOLTAGE_UV.
This parameter is used to specify the input voltage level of a pin in
microvolts, which corresponds to the 'input-voltage-microvolt' property
in Device Tree.

Reviewed-by: Linus Walleij <linusw@kernel.org>
Signed-off-by: Tzuyi Chang <tychang@realtek.com>
Co-developed-by: Yu-Chun Lin <eleanor.lin@realtek.com>
Signed-off-by: Yu-Chun Lin <eleanor.lin@realtek.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>

authored by

Tzuyi Chang and committed by
Linus Walleij
00a5d1e7 7b9fe771

+5
+2
drivers/pinctrl/pinconf-generic.c
··· 57 57 PCONFDUMP(PIN_CONFIG_SKEW_DELAY, "skew delay", NULL, true), 58 58 PCONFDUMP(PIN_CONFIG_SKEW_DELAY_INPUT_PS, "input skew delay", "ps", true), 59 59 PCONFDUMP(PIN_CONFIG_SKEW_DELAY_OUTPUT_PS, "output skew delay", "ps", true), 60 + PCONFDUMP(PIN_CONFIG_INPUT_VOLTAGE_UV, "input voltage in microvolt", "uV", true), 60 61 }; 61 62 62 63 static void pinconf_generic_dump_one(struct pinctrl_dev *pctldev, ··· 204 203 { "skew-delay", PIN_CONFIG_SKEW_DELAY, 0 }, 205 204 { "skew-delay-input-ps", PIN_CONFIG_SKEW_DELAY_INPUT_PS, 0 }, 206 205 { "skew-delay-output-ps", PIN_CONFIG_SKEW_DELAY_OUTPUT_PS, 0 }, 206 + { "input-threshold-voltage-microvolt", PIN_CONFIG_INPUT_VOLTAGE_UV, 0 }, 207 207 }; 208 208 209 209 /**
+3
include/linux/pinctrl/pinconf-generic.h
··· 83 83 * schmitt-trigger mode is disabled. 84 84 * @PIN_CONFIG_INPUT_SCHMITT_UV: this will configure an input pin to run in 85 85 * schmitt-trigger mode. The argument is in uV. 86 + * @PIN_CONFIG_INPUT_VOLTAGE_UV: this will configure the input voltage level of 87 + * the pin. The argument is specified in microvolts. 86 88 * @PIN_CONFIG_MODE_LOW_POWER: this will configure the pin for low power 87 89 * operation, if several modes of operation are supported these can be 88 90 * passed in the argument on a custom form, else just use argument 1 ··· 147 145 PIN_CONFIG_INPUT_SCHMITT, 148 146 PIN_CONFIG_INPUT_SCHMITT_ENABLE, 149 147 PIN_CONFIG_INPUT_SCHMITT_UV, 148 + PIN_CONFIG_INPUT_VOLTAGE_UV, 150 149 PIN_CONFIG_MODE_LOW_POWER, 151 150 PIN_CONFIG_MODE_PWM, 152 151 PIN_CONFIG_LEVEL,