summaryrefslogtreecommitdiffstats
path: root/sys/dev/ofw/ofw_regulator.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* We are allowed to enable regulators with the "regulator-always-on"patrick2019-04-301-3/+3
| | | | | | | property. The definition is that a regulator with this property should never be disabled. ok kettenis@
* Add support for current limit regulators in addition to the voltagepatrick2019-02-201-25/+136
| | | | | | | | regulators we already support. The GPIO-based regulators are rather independent of the type, we only need to know the type to check the upper and lower limits. With feedback from kettenis@
* In the voltage regulator getter we need to actually check the GPIOpatrick2019-02-181-2/+3
| | | | | | | pin before setting the "pin is high" bit in the index for the states. Otherwise the index always has all possible bits sets. ok kettenis@
* Setting a fixed voltage regulator to the voltage it is fixed topatrick2019-01-021-1/+5
| | | | | | should not throw an error. ok kettenis@
* A fixed regulator's minimum voltage attribute is called regulator-min-microvoltpatrick2019-01-021-2/+2
| | | | | | instead of regulator-min-voltage. ok kettenis@
* Fix OFW GPIO regulator by breaking out of the loop once the correctpatrick2018-10-231-2/+4
| | | | | | | match has been found. Otherwise the error condition will always be true. ok kettenis@
* avoid uninitialised variable usejsg2018-08-281-1/+2
| | | | ok patrick@ kettenis@
* Support GPIO-based voltage regulators.patrick2018-08-131-2/+118
| | | | ok kettenis@
* Add delay when increasing the voltage of a regulator that has akettenis2018-08-021-3/+15
| | | | | | | "regulator-ramp-delay" property to guerantee that the target voltage has been reached when regulator_set_voltage(9) returns. ok patrick@
* Add support for enabling registered regulators. Make sure that we leavekettenis2017-12-181-10/+30
| | | | | | regulators with a "regulator-always-on" property alone. ok patrick@
* Enforce voltage limits from the device tree. Enforcing the limits alsokettenis2017-12-161-2/+18
| | | | | | | happens when regulators are registered. As a consequence they will be properly initialized even when the firmware doesn't do that. ok patrick@
* Extend regulator "framework" with functions to get/set voltages.kettenis2017-11-181-1/+54
| | | | ok jsg@
* Add a minimal regulator "framework".kettenis2016-08-131-0/+81
ok jsg@, patrick@