Skip to content

Commit 70637a6

Browse files
mmindLinus Walleij
authored andcommitted
pinctrl: more clarifications for generic pull configs
PULL_PIN_DEFAULT is meant for hardware completely hiding any pull settings from the driver, so that it's really only possible to turn the pull on or off, but it not being possible to determine any pull settings from software. Also the binding-documentation for the pull arguments did not match the changes to the expected values. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Reviewed-by: James Hogan <james.hogan@imgtec.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent ad42fc6 commit 70637a6

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,8 @@ output-high - set the pin to output mode with high level
165165

166166
Arguments for parameters:
167167

168-
- bias-pull-up, -down and -pin-default take as optional argument 0 to disable
169-
the pull, on hardware supporting it the pull strength in Ohm. bias-disable
170-
will also disable any active pull.
168+
- bias-pull-up, -down and -pin-default take as optional argument on hardware
169+
supporting it the pull strength in Ohm. bias-disable will disable the pull.
171170

172171
- drive-strength takes as argument the target strength in mA.
173172

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@
4141
* impedance to GROUND). If the argument is != 0 pull-down is enabled,
4242
* if it is 0, pull-down is total, i.e. the pin is connected to GROUND.
4343
* @PIN_CONFIG_BIAS_PULL_PIN_DEFAULT: the pin will be pulled up or down based
44-
* on embedded knowledge of the controller, like current mux function.
44+
* on embedded knowledge of the controller hardware, like current mux
45+
* function. The pull direction and possibly strength too will normally
46+
* be decided completely inside the hardware block and not be readable
47+
* from the kernel side.
4548
* If the argument is != 0 pull up/down is enabled, if it is 0, the
4649
* configuration is ignored. The proper way to disable it is to use
4750
* @PIN_CONFIG_BIAS_DISABLE.

0 commit comments

Comments
 (0)