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

pinctrl: Enable "power-source" to be extracted from DT files

Add "power-source" 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: Ivan T. Ivanov <iivanov@mm-sol.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Ivan T. Ivanov and committed by
Linus Walleij
ca6c5518 d54e9a28

+2
+1
Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
··· 156 156 input-schmitt-enable - enable schmitt-trigger mode 157 157 input-schmitt-disable - disable schmitt-trigger mode 158 158 input-debounce - debounce mode with debound time X 159 + power-source - select between different power supplies 159 160 low-power-enable - enable low power mode 160 161 low-power-disable - disable low power mode 161 162 output-low - set the pin to output mode with low level
+1
drivers/pinctrl/pinconf-generic.c
··· 166 166 { "input-schmitt-enable", PIN_CONFIG_INPUT_SCHMITT_ENABLE, 1 }, 167 167 { "input-schmitt-disable", PIN_CONFIG_INPUT_SCHMITT_ENABLE, 0 }, 168 168 { "input-debounce", PIN_CONFIG_INPUT_DEBOUNCE, 0 }, 169 + { "power-source", PIN_CONFIG_POWER_SOURCE, 0 }, 169 170 { "low-power-enable", PIN_CONFIG_LOW_POWER_MODE, 1 }, 170 171 { "low-power-disable", PIN_CONFIG_LOW_POWER_MODE, 0 }, 171 172 { "output-low", PIN_CONFIG_OUTPUT, 0, },