History

pinctrl: generic: add new 'drive-strength-microamp' property support

Add drive-strength-microamp property support to allow drive strength in uA

Guillaume La Roque committed 7 years ago

Commit c08e7e41 parent 3e75b762 files · +5 −0Browse files

Unified · Split

2 files
  1. drivers/pinctrl/pinconf-generic.c +2 −0
  2. include/linux/pinctrl/pinconf-generic.h +3 −0
drivers/pinctrl/pinconf-generic.c+2−0
@@ -39,6 +39,7 @@ static const struct pin_config_item conf_items[] = { · 38 unmodified lines
3939 PCONFDUMP(PIN_CONFIG_DRIVE_OPEN_SOURCE, "output drive open source", NULL, false),
4040 PCONFDUMP(PIN_CONFIG_DRIVE_PUSH_PULL, "output drive push pull", NULL, false),
4141 PCONFDUMP(PIN_CONFIG_DRIVE_STRENGTH, "output drive strength", "mA", true),
42+ PCONFDUMP(PIN_CONFIG_DRIVE_STRENGTH_UA, "output drive strength", "uA", true),
4243 PCONFDUMP(PIN_CONFIG_INPUT_DEBOUNCE, "input debounce", "usec", true),
4344 PCONFDUMP(PIN_CONFIG_INPUT_ENABLE, "input enabled", NULL, false),
4445 PCONFDUMP(PIN_CONFIG_INPUT_SCHMITT, "input schmitt trigger", NULL, false),
@@ -167,6 +168,7 @@ static const struct pinconf_generic_params dt_params[] = { · 122 unmodified lines
167168 { "drive-open-source", PIN_CONFIG_DRIVE_OPEN_SOURCE, 0 },
168169 { "drive-push-pull", PIN_CONFIG_DRIVE_PUSH_PULL, 0 },
169170 { "drive-strength", PIN_CONFIG_DRIVE_STRENGTH, 0 },
171+ { "drive-strength-microamp", PIN_CONFIG_DRIVE_STRENGTH_UA, 0 },
170172 { "input-debounce", PIN_CONFIG_INPUT_DEBOUNCE, 0 },
171173 { "input-disable", PIN_CONFIG_INPUT_ENABLE, 0 },
172174 { "input-enable", PIN_CONFIG_INPUT_ENABLE, 1 },
include/linux/pinctrl/pinconf-generic.h+3−0
@@ -55,6 +55,8 @@ · 54 unmodified lines
5555 * push-pull mode, the argument is ignored.
5656 * @PIN_CONFIG_DRIVE_STRENGTH: the pin will sink or source at most the current
5757 * passed as argument. The argument is in mA.
58+ * @PIN_CONFIG_DRIVE_STRENGTH_UA: the pin will sink or source at most the current
59+ * passed as argument. The argument is in uA.
5860 * @PIN_CONFIG_INPUT_DEBOUNCE: this will configure the pin to debounce mode,
5961 * which means it will wait for signals to settle when reading inputs. The
6062 * argument gives the debounce time in usecs. Setting the
@@ -112,6 +114,7 @@ enum pin_config_param { · 51 unmodified lines
112114 PIN_CONFIG_DRIVE_OPEN_SOURCE,
113115 PIN_CONFIG_DRIVE_PUSH_PULL,
114116 PIN_CONFIG_DRIVE_STRENGTH,
117+ PIN_CONFIG_DRIVE_STRENGTH_UA,
115118 PIN_CONFIG_INPUT_DEBOUNCE,
116119 PIN_CONFIG_INPUT_ENABLE,
117120 PIN_CONFIG_INPUT_SCHMITT,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t