Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302255
b: refs/heads/master
c: 9a50dba
h: refs/heads/master
i:
  302253: b1ca844
  302251: d292219
  302247: e408e42
  302239: d0ba97e
v: v3
  • Loading branch information
Laxman Dewangan authored and Mark Brown committed May 7, 2012
1 parent b16777d commit a165357
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 62f6b0879304e2169d6bf6221612e8111e342ee7
refs/heads/master: 9a50dba509251dfce7895a5990cb938f383a6273
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Optional properties:
- startup-delay-us: startup time in microseconds
- enable-active-high: Polarity of GPIO is Active high
If this property is missing, the default assumed is Active low.
- gpio-open-drain: GPIO is open drain type.
If this property is missing then default assumption is false.

Any property defined as part of the core regulator
binding, defined in regulator.txt, can also be used.
Expand All @@ -25,5 +27,6 @@ Example:
gpio = <&gpio1 16 0>;
startup-delay-us = <70000>;
enable-active-high;
regulator-boot-on
regulator-boot-on;
gpio-open-drain;
};
3 changes: 3 additions & 0 deletions trunk/drivers/regulator/fixed.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ of_get_fixed_voltage_config(struct device *dev)
if (of_find_property(np, "enable-active-high", NULL))
config->enable_high = true;

if (of_find_property(np, "gpio-open-drain", NULL))
config->gpio_is_open_drain = true;

return config;
}

Expand Down

0 comments on commit a165357

Please sign in to comment.