#
1.20 |
|
14-Jun-2024 |
kettenis |
Disallow setting the voltage of coupled regulators for now. Some RK3588 boards use different regulators for CPU core voltage and memory interface voltage. But the two have to be kept synchronized. So the devicetree for these boards marks these regulators as coupled. We have no support for coupled regulators yet and letting the DVFS code set just the CPU core voltage would probably lead to strange crashes.
ok mlarkin@
|
Revision tags: OPENBSD_7_4_BASE OPENBSD_7_5_BASE
|
#
1.19 |
|
15-Apr-2023 |
dlg |
fixed regulators might rely on other regulators specified by "vin-supply"
when turning a fixed regulator on, turn on the regulator specified in vin-supply too.
kettenis agrees we should do this.
|
#
1.18 |
|
07-Apr-2023 |
dlg |
fixed regulators could have a "gpios" or "gpio" property.
we only handled "gpio" before. figuring this out has wasted many days of my life recently.
ok patrick@ kettenis@
|
#
1.17 |
|
01-Apr-2023 |
kettenis |
Implement regulator notifiers which get called when the voltage/current for a regulator is changed or when the regulator gets initialized when it attaches for the first time. The latter makes it possible to register a notifier for a regulator that hasn't attached yet.
ok dlg@
|
Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE
|
#
1.16 |
|
14-Feb-2022 |
jsg |
OF_getproplen() returns -1 on error, so don't store result in size_t spotted by and ok tb@, ok tobhe@
|
Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE
|
#
1.15 |
|
23-Dec-2020 |
kettenis |
Fix regulators that use "active-low" polarity. Our implementation now ignores the presence "enable-active-high" property and relies on the encode polarity of the GPIO in the flags in the device tree instead. This might not be the case for older device trees; such device trees should be fixed.
ok patrick@
|
Revision tags: OPENBSD_6_8_BASE
|
#
1.14 |
|
06-Jun-2020 |
patrick |
Some devices have no phandle since they are not referenced in the device tree, but they are still registered in our OFW framework. These then tend to have a phandle 0. If we are trying to lookup a device by phandle, we should explicitly check for phandle 0 and bail, since otherwise it is possible that we falsely match that phandle and return a device.
ok kettenis@
|
Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
|
#
1.13 |
|
30-Apr-2019 |
patrick |
We are allowed to enable regulators with the "regulator-always-on" property. The definition is that a regulator with this property should never be disabled.
ok kettenis@
|
Revision tags: OPENBSD_6_5_BASE
|
#
1.12 |
|
20-Feb-2019 |
patrick |
Add support for current limit regulators in addition to the voltage 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@
|
#
1.11 |
|
18-Feb-2019 |
patrick |
In the voltage regulator getter we need to actually check the GPIO 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@
|
#
1.10 |
|
02-Jan-2019 |
patrick |
Setting a fixed voltage regulator to the voltage it is fixed to should not throw an error.
ok kettenis@
|
#
1.9 |
|
02-Jan-2019 |
patrick |
A fixed regulator's minimum voltage attribute is called regulator-min-microvolt instead of regulator-min-voltage.
ok kettenis@
|
#
1.8 |
|
23-Oct-2018 |
patrick |
Fix OFW GPIO regulator by breaking out of the loop once the correct match has been found. Otherwise the error condition will always be true.
ok kettenis@
|
Revision tags: OPENBSD_6_4_BASE
|
#
1.7 |
|
28-Aug-2018 |
jsg |
avoid uninitialised variable use ok patrick@ kettenis@
|
#
1.6 |
|
13-Aug-2018 |
patrick |
Support GPIO-based voltage regulators.
ok kettenis@
|
#
1.5 |
|
02-Aug-2018 |
kettenis |
Add delay when increasing the voltage of a regulator that has a "regulator-ramp-delay" property to guerantee that the target voltage has been reached when regulator_set_voltage(9) returns.
ok patrick@
|
Revision tags: OPENBSD_6_3_BASE
|
#
1.4 |
|
18-Dec-2017 |
kettenis |
Add support for enabling registered regulators. Make sure that we leave regulators with a "regulator-always-on" property alone.
ok patrick@
|
#
1.3 |
|
16-Dec-2017 |
kettenis |
Enforce voltage limits from the device tree. Enforcing the limits also happens when regulators are registered. As a consequence they will be properly initialized even when the firmware doesn't do that.
ok patrick@
|
#
1.2 |
|
18-Nov-2017 |
kettenis |
Extend regulator "framework" with functions to get/set voltages.
ok jsg@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.1 |
|
13-Aug-2016 |
kettenis |
Add a minimal regulator "framework".
ok jsg@, patrick@
|
#
1.19 |
|
15-Apr-2023 |
dlg |
fixed regulators might rely on other regulators specified by "vin-supply"
when turning a fixed regulator on, turn on the regulator specified in vin-supply too.
kettenis agrees we should do this.
|
#
1.18 |
|
07-Apr-2023 |
dlg |
fixed regulators could have a "gpios" or "gpio" property.
we only handled "gpio" before. figuring this out has wasted many days of my life recently.
ok patrick@ kettenis@
|
#
1.17 |
|
01-Apr-2023 |
kettenis |
Implement regulator notifiers which get called when the voltage/current for a regulator is changed or when the regulator gets initialized when it attaches for the first time. The latter makes it possible to register a notifier for a regulator that hasn't attached yet.
ok dlg@
|
Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE
|
#
1.16 |
|
14-Feb-2022 |
jsg |
OF_getproplen() returns -1 on error, so don't store result in size_t spotted by and ok tb@, ok tobhe@
|
Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE
|
#
1.15 |
|
23-Dec-2020 |
kettenis |
Fix regulators that use "active-low" polarity. Our implementation now ignores the presence "enable-active-high" property and relies on the encode polarity of the GPIO in the flags in the device tree instead. This might not be the case for older device trees; such device trees should be fixed.
ok patrick@
|
Revision tags: OPENBSD_6_8_BASE
|
#
1.14 |
|
06-Jun-2020 |
patrick |
Some devices have no phandle since they are not referenced in the device tree, but they are still registered in our OFW framework. These then tend to have a phandle 0. If we are trying to lookup a device by phandle, we should explicitly check for phandle 0 and bail, since otherwise it is possible that we falsely match that phandle and return a device.
ok kettenis@
|
Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
|
#
1.13 |
|
30-Apr-2019 |
patrick |
We are allowed to enable regulators with the "regulator-always-on" property. The definition is that a regulator with this property should never be disabled.
ok kettenis@
|
Revision tags: OPENBSD_6_5_BASE
|
#
1.12 |
|
20-Feb-2019 |
patrick |
Add support for current limit regulators in addition to the voltage 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@
|
#
1.11 |
|
18-Feb-2019 |
patrick |
In the voltage regulator getter we need to actually check the GPIO 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@
|
#
1.10 |
|
02-Jan-2019 |
patrick |
Setting a fixed voltage regulator to the voltage it is fixed to should not throw an error.
ok kettenis@
|
#
1.9 |
|
02-Jan-2019 |
patrick |
A fixed regulator's minimum voltage attribute is called regulator-min-microvolt instead of regulator-min-voltage.
ok kettenis@
|
#
1.8 |
|
23-Oct-2018 |
patrick |
Fix OFW GPIO regulator by breaking out of the loop once the correct match has been found. Otherwise the error condition will always be true.
ok kettenis@
|
Revision tags: OPENBSD_6_4_BASE
|
#
1.7 |
|
28-Aug-2018 |
jsg |
avoid uninitialised variable use ok patrick@ kettenis@
|
#
1.6 |
|
13-Aug-2018 |
patrick |
Support GPIO-based voltage regulators.
ok kettenis@
|
#
1.5 |
|
02-Aug-2018 |
kettenis |
Add delay when increasing the voltage of a regulator that has a "regulator-ramp-delay" property to guerantee that the target voltage has been reached when regulator_set_voltage(9) returns.
ok patrick@
|
Revision tags: OPENBSD_6_3_BASE
|
#
1.4 |
|
18-Dec-2017 |
kettenis |
Add support for enabling registered regulators. Make sure that we leave regulators with a "regulator-always-on" property alone.
ok patrick@
|
#
1.3 |
|
16-Dec-2017 |
kettenis |
Enforce voltage limits from the device tree. Enforcing the limits also happens when regulators are registered. As a consequence they will be properly initialized even when the firmware doesn't do that.
ok patrick@
|
#
1.2 |
|
18-Nov-2017 |
kettenis |
Extend regulator "framework" with functions to get/set voltages.
ok jsg@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.1 |
|
13-Aug-2016 |
kettenis |
Add a minimal regulator "framework".
ok jsg@, patrick@
|
#
1.16 |
|
14-Feb-2022 |
jsg |
OF_getproplen() returns -1 on error, so don't store result in size_t spotted by and ok tb@, ok tobhe@
|
Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE
|
#
1.15 |
|
23-Dec-2020 |
kettenis |
Fix regulators that use "active-low" polarity. Our implementation now ignores the presence "enable-active-high" property and relies on the encode polarity of the GPIO in the flags in the device tree instead. This might not be the case for older device trees; such device trees should be fixed.
ok patrick@
|
Revision tags: OPENBSD_6_8_BASE
|
#
1.14 |
|
06-Jun-2020 |
patrick |
Some devices have no phandle since they are not referenced in the device tree, but they are still registered in our OFW framework. These then tend to have a phandle 0. If we are trying to lookup a device by phandle, we should explicitly check for phandle 0 and bail, since otherwise it is possible that we falsely match that phandle and return a device.
ok kettenis@
|
Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
|
#
1.13 |
|
30-Apr-2019 |
patrick |
We are allowed to enable regulators with the "regulator-always-on" property. The definition is that a regulator with this property should never be disabled.
ok kettenis@
|
Revision tags: OPENBSD_6_5_BASE
|
#
1.12 |
|
20-Feb-2019 |
patrick |
Add support for current limit regulators in addition to the voltage 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@
|
#
1.11 |
|
18-Feb-2019 |
patrick |
In the voltage regulator getter we need to actually check the GPIO 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@
|
#
1.10 |
|
02-Jan-2019 |
patrick |
Setting a fixed voltage regulator to the voltage it is fixed to should not throw an error.
ok kettenis@
|
#
1.9 |
|
02-Jan-2019 |
patrick |
A fixed regulator's minimum voltage attribute is called regulator-min-microvolt instead of regulator-min-voltage.
ok kettenis@
|
#
1.8 |
|
23-Oct-2018 |
patrick |
Fix OFW GPIO regulator by breaking out of the loop once the correct match has been found. Otherwise the error condition will always be true.
ok kettenis@
|
Revision tags: OPENBSD_6_4_BASE
|
#
1.7 |
|
28-Aug-2018 |
jsg |
avoid uninitialised variable use ok patrick@ kettenis@
|
#
1.6 |
|
13-Aug-2018 |
patrick |
Support GPIO-based voltage regulators.
ok kettenis@
|
#
1.5 |
|
02-Aug-2018 |
kettenis |
Add delay when increasing the voltage of a regulator that has a "regulator-ramp-delay" property to guerantee that the target voltage has been reached when regulator_set_voltage(9) returns.
ok patrick@
|
Revision tags: OPENBSD_6_3_BASE
|
#
1.4 |
|
18-Dec-2017 |
kettenis |
Add support for enabling registered regulators. Make sure that we leave regulators with a "regulator-always-on" property alone.
ok patrick@
|
#
1.3 |
|
16-Dec-2017 |
kettenis |
Enforce voltage limits from the device tree. Enforcing the limits also happens when regulators are registered. As a consequence they will be properly initialized even when the firmware doesn't do that.
ok patrick@
|
#
1.2 |
|
18-Nov-2017 |
kettenis |
Extend regulator "framework" with functions to get/set voltages.
ok jsg@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.1 |
|
13-Aug-2016 |
kettenis |
Add a minimal regulator "framework".
ok jsg@, patrick@
|
#
1.15 |
|
23-Dec-2020 |
kettenis |
Fix regulators that use "active-low" polarity. Our implementation now ignores the presence "enable-active-high" property and relies on the encode polarity of the GPIO in the flags in the device tree instead. This might not be the case for older device trees; such device trees should be fixed.
ok patrick@
|
Revision tags: OPENBSD_6_8_BASE
|
#
1.14 |
|
06-Jun-2020 |
patrick |
Some devices have no phandle since they are not referenced in the device tree, but they are still registered in our OFW framework. These then tend to have a phandle 0. If we are trying to lookup a device by phandle, we should explicitly check for phandle 0 and bail, since otherwise it is possible that we falsely match that phandle and return a device.
ok kettenis@
|
Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
|
#
1.13 |
|
30-Apr-2019 |
patrick |
We are allowed to enable regulators with the "regulator-always-on" property. The definition is that a regulator with this property should never be disabled.
ok kettenis@
|
Revision tags: OPENBSD_6_5_BASE
|
#
1.12 |
|
20-Feb-2019 |
patrick |
Add support for current limit regulators in addition to the voltage 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@
|
#
1.11 |
|
18-Feb-2019 |
patrick |
In the voltage regulator getter we need to actually check the GPIO 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@
|
#
1.10 |
|
02-Jan-2019 |
patrick |
Setting a fixed voltage regulator to the voltage it is fixed to should not throw an error.
ok kettenis@
|
#
1.9 |
|
02-Jan-2019 |
patrick |
A fixed regulator's minimum voltage attribute is called regulator-min-microvolt instead of regulator-min-voltage.
ok kettenis@
|
#
1.8 |
|
23-Oct-2018 |
patrick |
Fix OFW GPIO regulator by breaking out of the loop once the correct match has been found. Otherwise the error condition will always be true.
ok kettenis@
|
Revision tags: OPENBSD_6_4_BASE
|
#
1.7 |
|
28-Aug-2018 |
jsg |
avoid uninitialised variable use ok patrick@ kettenis@
|
#
1.6 |
|
13-Aug-2018 |
patrick |
Support GPIO-based voltage regulators.
ok kettenis@
|
#
1.5 |
|
02-Aug-2018 |
kettenis |
Add delay when increasing the voltage of a regulator that has a "regulator-ramp-delay" property to guerantee that the target voltage has been reached when regulator_set_voltage(9) returns.
ok patrick@
|
Revision tags: OPENBSD_6_3_BASE
|
#
1.4 |
|
18-Dec-2017 |
kettenis |
Add support for enabling registered regulators. Make sure that we leave regulators with a "regulator-always-on" property alone.
ok patrick@
|
#
1.3 |
|
16-Dec-2017 |
kettenis |
Enforce voltage limits from the device tree. Enforcing the limits also happens when regulators are registered. As a consequence they will be properly initialized even when the firmware doesn't do that.
ok patrick@
|
#
1.2 |
|
18-Nov-2017 |
kettenis |
Extend regulator "framework" with functions to get/set voltages.
ok jsg@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.1 |
|
13-Aug-2016 |
kettenis |
Add a minimal regulator "framework".
ok jsg@, patrick@
|
#
1.14 |
|
06-Jun-2020 |
patrick |
Some devices have no phandle since they are not referenced in the device tree, but they are still registered in our OFW framework. These then tend to have a phandle 0. If we are trying to lookup a device by phandle, we should explicitly check for phandle 0 and bail, since otherwise it is possible that we falsely match that phandle and return a device.
ok kettenis@
|
Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
|
#
1.13 |
|
30-Apr-2019 |
patrick |
We are allowed to enable regulators with the "regulator-always-on" property. The definition is that a regulator with this property should never be disabled.
ok kettenis@
|
Revision tags: OPENBSD_6_5_BASE
|
#
1.12 |
|
20-Feb-2019 |
patrick |
Add support for current limit regulators in addition to the voltage 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@
|
#
1.11 |
|
18-Feb-2019 |
patrick |
In the voltage regulator getter we need to actually check the GPIO 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@
|
#
1.10 |
|
02-Jan-2019 |
patrick |
Setting a fixed voltage regulator to the voltage it is fixed to should not throw an error.
ok kettenis@
|
#
1.9 |
|
02-Jan-2019 |
patrick |
A fixed regulator's minimum voltage attribute is called regulator-min-microvolt instead of regulator-min-voltage.
ok kettenis@
|
#
1.8 |
|
23-Oct-2018 |
patrick |
Fix OFW GPIO regulator by breaking out of the loop once the correct match has been found. Otherwise the error condition will always be true.
ok kettenis@
|
Revision tags: OPENBSD_6_4_BASE
|
#
1.7 |
|
28-Aug-2018 |
jsg |
avoid uninitialised variable use ok patrick@ kettenis@
|
#
1.6 |
|
13-Aug-2018 |
patrick |
Support GPIO-based voltage regulators.
ok kettenis@
|
#
1.5 |
|
02-Aug-2018 |
kettenis |
Add delay when increasing the voltage of a regulator that has a "regulator-ramp-delay" property to guerantee that the target voltage has been reached when regulator_set_voltage(9) returns.
ok patrick@
|
Revision tags: OPENBSD_6_3_BASE
|
#
1.4 |
|
18-Dec-2017 |
kettenis |
Add support for enabling registered regulators. Make sure that we leave regulators with a "regulator-always-on" property alone.
ok patrick@
|
#
1.3 |
|
16-Dec-2017 |
kettenis |
Enforce voltage limits from the device tree. Enforcing the limits also happens when regulators are registered. As a consequence they will be properly initialized even when the firmware doesn't do that.
ok patrick@
|
#
1.2 |
|
18-Nov-2017 |
kettenis |
Extend regulator "framework" with functions to get/set voltages.
ok jsg@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.1 |
|
13-Aug-2016 |
kettenis |
Add a minimal regulator "framework".
ok jsg@, patrick@
|
#
1.13 |
|
30-Apr-2019 |
patrick |
We are allowed to enable regulators with the "regulator-always-on" property. The definition is that a regulator with this property should never be disabled.
ok kettenis@
|
Revision tags: OPENBSD_6_5_BASE
|
#
1.12 |
|
20-Feb-2019 |
patrick |
Add support for current limit regulators in addition to the voltage 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@
|
#
1.11 |
|
18-Feb-2019 |
patrick |
In the voltage regulator getter we need to actually check the GPIO 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@
|
#
1.10 |
|
02-Jan-2019 |
patrick |
Setting a fixed voltage regulator to the voltage it is fixed to should not throw an error.
ok kettenis@
|
#
1.9 |
|
02-Jan-2019 |
patrick |
A fixed regulator's minimum voltage attribute is called regulator-min-microvolt instead of regulator-min-voltage.
ok kettenis@
|
#
1.8 |
|
23-Oct-2018 |
patrick |
Fix OFW GPIO regulator by breaking out of the loop once the correct match has been found. Otherwise the error condition will always be true.
ok kettenis@
|
Revision tags: OPENBSD_6_4_BASE
|
#
1.7 |
|
28-Aug-2018 |
jsg |
avoid uninitialised variable use ok patrick@ kettenis@
|
#
1.6 |
|
13-Aug-2018 |
patrick |
Support GPIO-based voltage regulators.
ok kettenis@
|
#
1.5 |
|
02-Aug-2018 |
kettenis |
Add delay when increasing the voltage of a regulator that has a "regulator-ramp-delay" property to guerantee that the target voltage has been reached when regulator_set_voltage(9) returns.
ok patrick@
|
Revision tags: OPENBSD_6_3_BASE
|
#
1.4 |
|
18-Dec-2017 |
kettenis |
Add support for enabling registered regulators. Make sure that we leave regulators with a "regulator-always-on" property alone.
ok patrick@
|
#
1.3 |
|
16-Dec-2017 |
kettenis |
Enforce voltage limits from the device tree. Enforcing the limits also happens when regulators are registered. As a consequence they will be properly initialized even when the firmware doesn't do that.
ok patrick@
|
#
1.2 |
|
18-Nov-2017 |
kettenis |
Extend regulator "framework" with functions to get/set voltages.
ok jsg@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.1 |
|
13-Aug-2016 |
kettenis |
Add a minimal regulator "framework".
ok jsg@, patrick@
|
#
1.12 |
|
20-Feb-2019 |
patrick |
Add support for current limit regulators in addition to the voltage 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@
|
#
1.11 |
|
18-Feb-2019 |
patrick |
In the voltage regulator getter we need to actually check the GPIO 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@
|
#
1.10 |
|
02-Jan-2019 |
patrick |
Setting a fixed voltage regulator to the voltage it is fixed to should not throw an error.
ok kettenis@
|
#
1.9 |
|
02-Jan-2019 |
patrick |
A fixed regulator's minimum voltage attribute is called regulator-min-microvolt instead of regulator-min-voltage.
ok kettenis@
|
#
1.8 |
|
23-Oct-2018 |
patrick |
Fix OFW GPIO regulator by breaking out of the loop once the correct match has been found. Otherwise the error condition will always be true.
ok kettenis@
|
Revision tags: OPENBSD_6_4_BASE
|
#
1.7 |
|
28-Aug-2018 |
jsg |
avoid uninitialised variable use ok patrick@ kettenis@
|
#
1.6 |
|
13-Aug-2018 |
patrick |
Support GPIO-based voltage regulators.
ok kettenis@
|
#
1.5 |
|
02-Aug-2018 |
kettenis |
Add delay when increasing the voltage of a regulator that has a "regulator-ramp-delay" property to guerantee that the target voltage has been reached when regulator_set_voltage(9) returns.
ok patrick@
|
Revision tags: OPENBSD_6_3_BASE
|
#
1.4 |
|
18-Dec-2017 |
kettenis |
Add support for enabling registered regulators. Make sure that we leave regulators with a "regulator-always-on" property alone.
ok patrick@
|
#
1.3 |
|
16-Dec-2017 |
kettenis |
Enforce voltage limits from the device tree. Enforcing the limits also happens when regulators are registered. As a consequence they will be properly initialized even when the firmware doesn't do that.
ok patrick@
|
#
1.2 |
|
18-Nov-2017 |
kettenis |
Extend regulator "framework" with functions to get/set voltages.
ok jsg@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.1 |
|
13-Aug-2016 |
kettenis |
Add a minimal regulator "framework".
ok jsg@, patrick@
|
#
1.11 |
|
18-Feb-2019 |
patrick |
In the voltage regulator getter we need to actually check the GPIO 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@
|
#
1.10 |
|
02-Jan-2019 |
patrick |
Setting a fixed voltage regulator to the voltage it is fixed to should not throw an error.
ok kettenis@
|
#
1.9 |
|
02-Jan-2019 |
patrick |
A fixed regulator's minimum voltage attribute is called regulator-min-microvolt instead of regulator-min-voltage.
ok kettenis@
|
#
1.8 |
|
23-Oct-2018 |
patrick |
Fix OFW GPIO regulator by breaking out of the loop once the correct match has been found. Otherwise the error condition will always be true.
ok kettenis@
|
Revision tags: OPENBSD_6_4_BASE
|
#
1.7 |
|
28-Aug-2018 |
jsg |
avoid uninitialised variable use ok patrick@ kettenis@
|
#
1.6 |
|
13-Aug-2018 |
patrick |
Support GPIO-based voltage regulators.
ok kettenis@
|
#
1.5 |
|
02-Aug-2018 |
kettenis |
Add delay when increasing the voltage of a regulator that has a "regulator-ramp-delay" property to guerantee that the target voltage has been reached when regulator_set_voltage(9) returns.
ok patrick@
|
Revision tags: OPENBSD_6_3_BASE
|
#
1.4 |
|
18-Dec-2017 |
kettenis |
Add support for enabling registered regulators. Make sure that we leave regulators with a "regulator-always-on" property alone.
ok patrick@
|
#
1.3 |
|
16-Dec-2017 |
kettenis |
Enforce voltage limits from the device tree. Enforcing the limits also happens when regulators are registered. As a consequence they will be properly initialized even when the firmware doesn't do that.
ok patrick@
|
#
1.2 |
|
18-Nov-2017 |
kettenis |
Extend regulator "framework" with functions to get/set voltages.
ok jsg@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.1 |
|
13-Aug-2016 |
kettenis |
Add a minimal regulator "framework".
ok jsg@, patrick@
|
#
1.10 |
|
02-Jan-2019 |
patrick |
Setting a fixed voltage regulator to the voltage it is fixed to should not throw an error.
ok kettenis@
|
#
1.9 |
|
02-Jan-2019 |
patrick |
A fixed regulator's minimum voltage attribute is called regulator-min-microvolt instead of regulator-min-voltage.
ok kettenis@
|
#
1.8 |
|
23-Oct-2018 |
patrick |
Fix OFW GPIO regulator by breaking out of the loop once the correct match has been found. Otherwise the error condition will always be true.
ok kettenis@
|
Revision tags: OPENBSD_6_4_BASE
|
#
1.7 |
|
28-Aug-2018 |
jsg |
avoid uninitialised variable use ok patrick@ kettenis@
|
#
1.6 |
|
13-Aug-2018 |
patrick |
Support GPIO-based voltage regulators.
ok kettenis@
|
#
1.5 |
|
02-Aug-2018 |
kettenis |
Add delay when increasing the voltage of a regulator that has a "regulator-ramp-delay" property to guerantee that the target voltage has been reached when regulator_set_voltage(9) returns.
ok patrick@
|
Revision tags: OPENBSD_6_3_BASE
|
#
1.4 |
|
18-Dec-2017 |
kettenis |
Add support for enabling registered regulators. Make sure that we leave regulators with a "regulator-always-on" property alone.
ok patrick@
|
#
1.3 |
|
16-Dec-2017 |
kettenis |
Enforce voltage limits from the device tree. Enforcing the limits also happens when regulators are registered. As a consequence they will be properly initialized even when the firmware doesn't do that.
ok patrick@
|
#
1.2 |
|
18-Nov-2017 |
kettenis |
Extend regulator "framework" with functions to get/set voltages.
ok jsg@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.1 |
|
13-Aug-2016 |
kettenis |
Add a minimal regulator "framework".
ok jsg@, patrick@
|
#
1.8 |
|
23-Oct-2018 |
patrick |
Fix OFW GPIO regulator by breaking out of the loop once the correct match has been found. Otherwise the error condition will always be true.
ok kettenis@
|
Revision tags: OPENBSD_6_4_BASE
|
#
1.7 |
|
28-Aug-2018 |
jsg |
avoid uninitialised variable use ok patrick@ kettenis@
|
#
1.6 |
|
13-Aug-2018 |
patrick |
Support GPIO-based voltage regulators.
ok kettenis@
|
#
1.5 |
|
02-Aug-2018 |
kettenis |
Add delay when increasing the voltage of a regulator that has a "regulator-ramp-delay" property to guerantee that the target voltage has been reached when regulator_set_voltage(9) returns.
ok patrick@
|
Revision tags: OPENBSD_6_3_BASE
|
#
1.4 |
|
18-Dec-2017 |
kettenis |
Add support for enabling registered regulators. Make sure that we leave regulators with a "regulator-always-on" property alone.
ok patrick@
|
#
1.3 |
|
16-Dec-2017 |
kettenis |
Enforce voltage limits from the device tree. Enforcing the limits also happens when regulators are registered. As a consequence they will be properly initialized even when the firmware doesn't do that.
ok patrick@
|
#
1.2 |
|
18-Nov-2017 |
kettenis |
Extend regulator "framework" with functions to get/set voltages.
ok jsg@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.1 |
|
13-Aug-2016 |
kettenis |
Add a minimal regulator "framework".
ok jsg@, patrick@
|
#
1.7 |
|
28-Aug-2018 |
jsg |
avoid uninitialised variable use ok patrick@ kettenis@
|
#
1.6 |
|
13-Aug-2018 |
patrick |
Support GPIO-based voltage regulators.
ok kettenis@
|
#
1.5 |
|
02-Aug-2018 |
kettenis |
Add delay when increasing the voltage of a regulator that has a "regulator-ramp-delay" property to guerantee that the target voltage has been reached when regulator_set_voltage(9) returns.
ok patrick@
|
Revision tags: OPENBSD_6_3_BASE
|
#
1.4 |
|
18-Dec-2017 |
kettenis |
Add support for enabling registered regulators. Make sure that we leave regulators with a "regulator-always-on" property alone.
ok patrick@
|
#
1.3 |
|
16-Dec-2017 |
kettenis |
Enforce voltage limits from the device tree. Enforcing the limits also happens when regulators are registered. As a consequence they will be properly initialized even when the firmware doesn't do that.
ok patrick@
|
#
1.2 |
|
18-Nov-2017 |
kettenis |
Extend regulator "framework" with functions to get/set voltages.
ok jsg@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.1 |
|
13-Aug-2016 |
kettenis |
Add a minimal regulator "framework".
ok jsg@, patrick@
|
#
1.4 |
|
18-Dec-2017 |
kettenis |
Add support for enabling registered regulators. Make sure that we leave regulators with a "regulator-always-on" property alone.
ok patrick@
|
#
1.3 |
|
16-Dec-2017 |
kettenis |
Enforce voltage limits from the device tree. Enforcing the limits also happens when regulators are registered. As a consequence they will be properly initialized even when the firmware doesn't do that.
ok patrick@
|
#
1.2 |
|
18-Nov-2017 |
kettenis |
Extend regulator "framework" with functions to get/set voltages.
ok jsg@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.1 |
|
13-Aug-2016 |
kettenis |
Add a minimal regulator "framework".
ok jsg@, patrick@
|