aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt22
-rw-r--r--drivers/pinctrl/pinconf-generic.c9
2 files changed, 26 insertions, 5 deletions
diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt b/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
index ef7cd572214c..2d730e3dd496 100644
--- a/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
+++ b/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
@@ -158,9 +158,29 @@ input-schmitt - run in schmitt-trigger mode with hysteresis X
158input-debounce - debounce mode with debound time X 158input-debounce - debounce mode with debound time X
159power-source - select power source X 159power-source - select power source X
160slew-rate - use slew-rate X 160slew-rate - use slew-rate X
161low-power-mode - low power mode 161low-power-enable - enable low power mode
162low-power-disable - disable low power mode
162output-low - set the pin to output mode with low level 163output-low - set the pin to output mode with low level
163output-high - set the pin to output mode with high level 164output-high - set the pin to output mode with high level
164 165
166Arguments for parameters:
167
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.
171
172- drive-strength takes as argument the target strength in mA.
173
174- input-schmitt takes as argument the adjustable hysteresis in a
175 driver-specific format
176
177- input-debounce takes the debounce time as argument or 0 to disable debouncing
178
179- power-source argument is the custom value describing the source to select
180
181- slew-rate takes as argument the target rate in a driver-specific format
182
183All parameters not listed here, do not take an argument.
184
165More in-depth documentation on these parameters can be found in 185More in-depth documentation on these parameters can be found in
166<include/linux/pinctrl/pinconfig-generic.h> 186<include/linux/pinctrl/pinconfig-generic.h>
diff --git a/drivers/pinctrl/pinconf-generic.c b/drivers/pinctrl/pinconf-generic.c
index d3c693c0c250..dcf03714de90 100644
--- a/drivers/pinctrl/pinconf-generic.c
+++ b/drivers/pinctrl/pinconf-generic.c
@@ -152,9 +152,9 @@ static struct pinconf_generic_dt_params dt_params[] = {
152 { "bias-disable", PIN_CONFIG_BIAS_DISABLE, 0 }, 152 { "bias-disable", PIN_CONFIG_BIAS_DISABLE, 0 },
153 { "bias-high-impedance", PIN_CONFIG_BIAS_HIGH_IMPEDANCE, 0 }, 153 { "bias-high-impedance", PIN_CONFIG_BIAS_HIGH_IMPEDANCE, 0 },
154 { "bias-bus-hold", PIN_CONFIG_BIAS_BUS_HOLD, 0 }, 154 { "bias-bus-hold", PIN_CONFIG_BIAS_BUS_HOLD, 0 },
155 { "bias-pull-up", PIN_CONFIG_BIAS_PULL_UP, 0 }, 155 { "bias-pull-up", PIN_CONFIG_BIAS_PULL_UP, 1 },
156 { "bias-pull-down", PIN_CONFIG_BIAS_PULL_DOWN, 0 }, 156 { "bias-pull-down", PIN_CONFIG_BIAS_PULL_DOWN, 1 },
157 { "bias-pull-pin-default", PIN_CONFIG_BIAS_PULL_PIN_DEFAULT, 0 }, 157 { "bias-pull-pin-default", PIN_CONFIG_BIAS_PULL_PIN_DEFAULT, 1 },
158 { "drive-push-pull", PIN_CONFIG_DRIVE_PUSH_PULL, 0 }, 158 { "drive-push-pull", PIN_CONFIG_DRIVE_PUSH_PULL, 0 },
159 { "drive-open-drain", PIN_CONFIG_DRIVE_OPEN_DRAIN, 0 }, 159 { "drive-open-drain", PIN_CONFIG_DRIVE_OPEN_DRAIN, 0 },
160 { "drive-open-source", PIN_CONFIG_DRIVE_OPEN_SOURCE, 0 }, 160 { "drive-open-source", PIN_CONFIG_DRIVE_OPEN_SOURCE, 0 },
@@ -165,7 +165,8 @@ static struct pinconf_generic_dt_params dt_params[] = {
165 { "input-debounce", PIN_CONFIG_INPUT_DEBOUNCE, 0 }, 165 { "input-debounce", PIN_CONFIG_INPUT_DEBOUNCE, 0 },
166 { "power-source", PIN_CONFIG_POWER_SOURCE, 0 }, 166 { "power-source", PIN_CONFIG_POWER_SOURCE, 0 },
167 { "slew-rate", PIN_CONFIG_SLEW_RATE, 0 }, 167 { "slew-rate", PIN_CONFIG_SLEW_RATE, 0 },
168 { "low-power-mode", PIN_CONFIG_LOW_POWER_MODE, 0 }, 168 { "low-power-enable", PIN_CONFIG_LOW_POWER_MODE, 1 },
169 { "low-power-disable", PIN_CONFIG_LOW_POWER_MODE, 0 },
169 { "output-low", PIN_CONFIG_OUTPUT, 0, }, 170 { "output-low", PIN_CONFIG_OUTPUT, 0, },
170 { "output-high", PIN_CONFIG_OUTPUT, 1, }, 171 { "output-high", PIN_CONFIG_OUTPUT, 1, },
171}; 172};