pinctrl: add function to parse generic pinconfig properties from a dt node
[deliverable/linux.git] / Documentation / devicetree / bindings / pinctrl / pinctrl-bindings.txt
index c95ea8278f870ba29c4fa998165ee5b760bc3076..ef7cd572214c2a7c578dc9fdc22a20e5a846aae5 100644 (file)
@@ -126,3 +126,41 @@ device; they may be grandchildren, for example. Whether this is legal, and
 whether there is any interaction between the child and intermediate parent
 nodes, is again defined entirely by the binding for the individual pin
 controller device.
+
+== Using generic pinconfig options ==
+
+Generic pinconfig parameters can be used by defining a separate node containing
+the applicable parameters (and optional values), like:
+
+pcfg_pull_up: pcfg_pull_up {
+       bias-pull-up;
+       drive-strength = <20>;
+};
+
+This node should then be referenced in the appropriate pinctrl node as a phandle
+and parsed in the driver using the pinconf_generic_parse_dt_config function.
+
+Supported configuration parameters are:
+
+bias-disable           - disable any pin bias
+bias-high-impedance    - high impedance mode ("third-state", "floating")
+bias-bus-hold          - latch weakly
+bias-pull-up           - pull up the pin
+bias-pull-down         - pull down the pin
+bias-pull-pin-default  - use pin-default pull state
+drive-push-pull                - drive actively high and low
+drive-open-drain       - drive with open drain
+drive-open-source      - drive with open source
+drive-strength         - sink or source at most X mA
+input-schmitt-enable   - enable schmitt-trigger mode
+input-schmitt-disable  - disable schmitt-trigger mode
+input-schmitt          - run in schmitt-trigger mode with hysteresis X
+input-debounce         - debounce mode with debound time X
+power-source           - select power source X
+slew-rate              - use slew-rate X
+low-power-mode         - low power mode
+output-low             - set the pin to output mode with low level
+output-high            - set the pin to output mode with high level
+
+More in-depth documentation on these parameters can be found in
+<include/linux/pinctrl/pinconfig-generic.h>
This page took 0.028187 seconds and 5 git commands to generate.