mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 17:24:17 +08:00
regulator: fixed: add property for gpio open drain flag
Add property for the gpio flag open drain when registering fixed regulator. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
62f6b08793
commit
9a50dba509
@ -8,6 +8,8 @@ Optional properties:
|
|||||||
- startup-delay-us: startup time in microseconds
|
- startup-delay-us: startup time in microseconds
|
||||||
- enable-active-high: Polarity of GPIO is Active high
|
- enable-active-high: Polarity of GPIO is Active high
|
||||||
If this property is missing, the default assumed is Active low.
|
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
|
Any property defined as part of the core regulator
|
||||||
binding, defined in regulator.txt, can also be used.
|
binding, defined in regulator.txt, can also be used.
|
||||||
@ -25,5 +27,6 @@ Example:
|
|||||||
gpio = <&gpio1 16 0>;
|
gpio = <&gpio1 16 0>;
|
||||||
startup-delay-us = <70000>;
|
startup-delay-us = <70000>;
|
||||||
enable-active-high;
|
enable-active-high;
|
||||||
regulator-boot-on
|
regulator-boot-on;
|
||||||
|
gpio-open-drain;
|
||||||
};
|
};
|
||||||
|
@ -90,6 +90,9 @@ of_get_fixed_voltage_config(struct device *dev)
|
|||||||
if (of_find_property(np, "enable-active-high", NULL))
|
if (of_find_property(np, "enable-active-high", NULL))
|
||||||
config->enable_high = true;
|
config->enable_high = true;
|
||||||
|
|
||||||
|
if (of_find_property(np, "gpio-open-drain", NULL))
|
||||||
|
config->gpio_is_open_drain = true;
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user