Skip to contentSkip to conversation

regulator: core: add regulator_has_continuous_voltage_range()

PATCH In review Matthias Kaehlcke 2 participants 9 messages Mar 8, 2017 – Mar 24, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 regulator: core: add regulator_has_continuous_voltage_range()

The new function allows consumers to determine if a regulator is continuous or discrete, and whether the results of regulator_count_voltages() and regulator_list_voltage() correspond to the regulator itself or its supply.

Change-Id I1198cee9fff60dc747a02860e9652034f4d5da33

---
Changes in v2:
- Added regulator_has_continuous_voltage_range()

 drivers/regulator/core.c           | 16 ++++++++++++++++
 include/linux/regulator/consumer.h |  1 +
 2 files changed, 17 insertions(+)
drivers/regulator/core.c +16 -0
index 53d4fc70dbd0..ce1d02792ef4 100644
@@ -2552,6 +2552,22 @@ int regulator_count_voltages(struct regulator *regulator)
 EXPORT_SYMBOL_GPL(regulator_count_voltages);
 
 /**
+ * regulator_has_continuous_voltage_range - is the regulator continuous
+ * or discrete
+ * @regulator: regulator source
+ *
+ * Returns true if the regulator has a continuous voltage range and
+ * false for discrete voltage regulators.
+ */
+int regulator_has_continuous_voltage_range(struct regulator *regulator)
+{
+	struct regulator_dev	*rdev = regulator->rdev;
+
+	return rdev->desc->continuous_voltage_range;
+}
+EXPORT_SYMBOL_GPL(regulator_has_continuous_voltage_range);
+
+/**
  * regulator_list_voltage - enumerate supported voltages
  * @regulator: regulator source
  * @selector: identify voltage to list
include/linux/regulator/consumer.h +1 -0
index ea0fffa5faeb..19945b5a702e 100644
@@ -241,6 +241,7 @@ void regulator_bulk_free(int num_consumers,
 			 struct regulator_bulk_data *consumers);
 
 int regulator_count_voltages(struct regulator *regulator);
+int regulator_has_continuous_voltage_range(struct regulator *regulator);
 int regulator_list_voltage(struct regulator *regulator, unsigned selector);
 int regulator_is_supported_voltage(struct regulator *regulator,
 				   int min_uV, int max_uV);
Signature · 6 lines
2.12.0.246.ga2ecc84866-goog

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw

PATCH v2 2/2 regulator: Add driver for voltage controlled regulators

The output voltage of a voltage controlled regulator can be controlled through the voltage of another regulator. A vctrl regulator can be continuous or discrete, depending on its control regulator. The current version of this driver assumes that the output voltage is a linear function of the control voltage.

Some hardware configurations include overvoltage protection (OVP) circuitry which can shutdown the regulator on downward voltage changes that exceed a certain threshold. To prevent this the driver can be configured to adjust the voltage gradually when a single step would exceed the threshold.

Change-Id: Ibbf74a9727ff666887cc15e09e8b364aef820063
---
Changes in v2:
- Don't configure control regulator as supply
- Added enable/disable ops to turn control regulator on/off
- Use regulator_has_continuous_voltage_range() to determine if control regulator is continuous or discrete
- Use regulator-min/max-microvolt as output voltage range
- Updated and fixed example in DT bindings
- Updated commit message

 .../devicetree/bindings/regulator/vctrl.txt        |  50 ++
 drivers/regulator/Kconfig                          |   7 +
 drivers/regulator/Makefile                         |   1 +
 drivers/regulator/vctrl-regulator.c                | 556 +++++++++++++++++++++
 4 files changed, 614 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/regulator/vctrl.txt
 create mode 100644 drivers/regulator/vctrl-regulator.c
Documentation/devicetree/bindings/regulator/vctrl.txt new file +50 -0
new file mode 100644
index 000000000000..c7ee9956d62d
@@ -0,0 +1,50 @@
+Bindings for Voltage controlled regulators
+==========================================
+
+Required properties:
+--------------------
+- compatible		  : must be "vctrl-regulator".
+- regulator-min-microvolt : smallest voltage consumers may set
+- regulator-max-microvolt : largest voltage consumers may set
+- ctrl-regulator:	  : the name of the regulator supplying the control
+			    voltage.
+- ctrl-voltage-range	  : an array of two integer values describing the range
+			    (min/max) of the control voltage. The values specify
+			    the control voltage needed to generate the corresponding
+			    regulator-min/max-microvolt output voltage.
+
+Optional properties:
+--------------------
+- ovp-threshold-percent	: overvoltage protection (OVP) threshold of the
+			  regulator in percent. Some regulators have an OVP
+			  circuitry which shuts down the regulator when the
+			  actual output voltage deviates beyond a certain
+			  margin from the expected value for a given control
+			  voltage. On larger voltage decreases this can occur
+			  undesiredly since the output voltage does not adjust
+			  inmediately to changes in the control voltage. To
+			  avoid this situation the vctrl driver breaks down
+			  larger voltage decreases into multiple steps, where
+			  each step is within the OVP threshold.
+- min-slew-down-rate	: Describes how slowly the regulator voltage will decay
+			  down in the worst case (lightest expected load).
+			  Specified in uV / us (like main regulator ramp rate).
+			  This value is required when ovp-threshold-percent is
+			  specified.
+
+Example:
+
+	vctrl-reg {
+		compatible = "vctrl-regulator";
+		regulator-name = "vctrl_reg";
+
+		ctrl-regulator = "ctrl_reg";
+
+		regulator-min-microvolt = <800000>;
+		regulator-max-microvolt = <1500000>;
+
+		ctrl-voltage-range = <200000 500000>;
+
+		min-slew-down-rate = <225>;
+		ovp-threshold-percent = <16>;
+	};
drivers/regulator/Kconfig +7 -0
index be06eb29c681..9a090e338a19 100644
@@ -850,6 +850,13 @@ config REGULATOR_TWL4030
 	  This driver supports the voltage regulators provided by
 	  this family of companion chips.
 
+config REGULATOR_VCTRL
+	tristate "Voltage controlled regulators"
+	depends on OF
+	help
+	  This driver provides support for voltage regulators whose output
+	  voltage is controlled by the voltage of another regulator.
+
 config REGULATOR_VEXPRESS
 	tristate "Versatile Express regulators"
 	depends on VEXPRESS_CONFIG
drivers/regulator/Makefile +1 -0
index ef7725e2592a..891dd287f26b 100644
@@ -106,6 +106,7 @@ obj-$(CONFIG_REGULATOR_TPS65910) += tps65910-regulator.o
 obj-$(CONFIG_REGULATOR_TPS65912) += tps65912-regulator.o
 obj-$(CONFIG_REGULATOR_TPS80031) += tps80031-regulator.o
 obj-$(CONFIG_REGULATOR_TWL4030) += twl-regulator.o twl6030-regulator.o
+obj-$(CONFIG_REGULATOR_VCTRL) += vctrl-regulator.o
 obj-$(CONFIG_REGULATOR_VEXPRESS) += vexpress-regulator.o
 obj-$(CONFIG_REGULATOR_WM831X) += wm831x-dcdc.o
 obj-$(CONFIG_REGULATOR_WM831X) += wm831x-isink.o
drivers/regulator/vctrl-regulator.c new file +556 -0

556 lines not on this page · raw message

Signature · 1 line
2.12.0.246.ga2ecc84866-goog
maintainer
#2 lore raw
In reply to Matthias Kaehlcke
Quoted 2 lines · Matthias Kaehlcke

The new function allows consumers to determine if a regulator is continuous or discrete, and whether the results of

Why? As we discussed at ELC this is an implementation detail of the regulator and it's to an extent a taste decision if the regulator is represented as a linear range or a continuous range (in fact given improvements in the core we could probably just update all continuous range regulators to linear ones).

Quoted 2 lines

regulator_count_voltages() and regulator_list_voltage() correspond to the regulator itself or its supply.

Why?

Quoted 1 line

Change-Id: I1198cee9fff60dc747a02860e9652034f4d5da33

Don't include noise like this upstream.

#3 lore raw

Hi Mark,

El Thu, Mar 09, 2017 at 11:28:19AM +0100 Mark Brown ha dit:

Quoted 10 lines · Matthias Kaehlcke
Quoted 3 lines

The new function allows consumers to determine if a regulator is continuous or discrete, and whether the results of

Why? As we discussed at ELC this is an implementation detail of the regulator and it's to an extent a taste decision if the regulator is represented as a linear range or a continuous range (in fact given improvements in the core we could probably just update all continuous range regulators to linear ones).

The second patch of this series is a driver for voltage controlled regulators (vctrl), ie the output voltage of a vctrl regulator is controlled through the voltage of another regulator. The control regulator can be continuous or discrete and I think it makes sense for the vctrl regulator to mirror its control regulator in this aspect. Why should it pretend to have a continuous range when it is actually discrete due to the control regulator?

Also the vctrl driver allows to break down a voltage change into multiple steps to prevent overvoltage protection (OVP) circuitry from shutting down the regulator when a voltage change in a single step would exceed the OVP threshold.
For continuous control regulators we can simply calculate a "safe" voltage for the next step and pass it to the control regulator. In case of a discrete control regulator this calculated voltage may not be directly available, without knowing the available steps the vctrl driver has to try different voltage ranges until it finds one that is accepted by the control regulator. Obviously this can be done but it adds code complexity and runtime overhead which is not necessary if we know the available steps (and regulator_list_voltage() is already there to provide them).

Quoted 4 lines
Quoted 2 lines

regulator_count_voltages() and regulator_list_voltage() correspond to the regulator itself or its supply.

Why?

Please see my explication above on why the vctrl driver needs to know this.

In general I think the behavior of these APIs can be confusing for users without intimate knowledge of the regulator core. For me (as a possibly naive user) it isn't clear why regulator_count_voltages() of a continuous regulator would return the voltage count of its supply, instead of a value like 0 or -EINVAL that indicates that it is continuous. Similar for regulator_list_voltage(). I'm sure there are reasons for it, but it's not really intuitive.

Above you characterize discrete vs. continuous as an implementation detail. Aren't we already exposing large parts of it through regulator_count_voltages() and regulator_list_voltage()?

Quoted 3 lines
Quoted 1 line

Change-Id: I1198cee9fff60dc747a02860e9652034f4d5da33

Don't include noise like this upstream.

Sorry, will remove

Matthias

maintainer
#4 lore raw
Quoted 12 lines · Matthias Kaehlcke

El Thu, Mar 09, 2017 at 11:28:19AM +0100 Mark Brown ha dit:

Quoted 10 lines · Matthias Kaehlcke
Quoted 3 lines

The new function allows consumers to determine if a regulator is continuous or discrete, and whether the results of

Why? As we discussed at ELC this is an implementation detail of the regulator and it's to an extent a taste decision if the regulator is represented as a linear range or a continuous range (in fact given improvements in the core we could probably just update all continuous range regulators to linear ones).

Quoted 7 lines

The second patch of this series is a driver for voltage controlled regulators (vctrl), ie the output voltage of a vctrl regulator is controlled through the voltage of another regulator. The control regulator can be continuous or discrete and I think it makes sense for the vctrl regulator to mirror its control regulator in this aspect. Why should it pretend to have a continuous range when it is actually discrete due to the control regulator?

I don't think we should be providing a consumer facing API which invites consumers to peer into the implementation details of regulators, or gives them the idea that these concepts exist. Consumers can already enumerate the set of supported voltages via _list_voltage() and so on, I'd expect consumers to be able to get what they need from those. You have an incrediblity specialist use case here but this is just a general consumer interface that's being added.

Quoted 9 lines

For continuous control regulators we can simply calculate a "safe" voltage for the next step and pass it to the control regulator. In case of a discrete control regulator this calculated voltage may not be directly available, without knowing the available steps the vctrl driver has to try different voltage ranges until it finds one that is accepted by the control regulator. Obviously this can be done but it adds code complexity and runtime overhead which is not necessary if we know the available steps (and regulator_list_voltage() is already there to provide them).

I'm not seeing how knowing if a regulator is continuous is helpful for regulators with discrete voltages?

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

regulator_count_voltages() and regulator_list_voltage() correspond to the regulator itself or its supply.

Why?

Please see my explication above on why the vctrl driver needs to know this.

I'm seeing nothing in the above that addresses my question, you don't even seem to have mentioned supplies.

Quoted 7 lines

In general I think the behavior of these APIs can be confusing for users without intimate knowledge of the regulator core. For me (as a possibly naive user) it isn't clear why regulator_count_voltages() of a continuous regulator would return the voltage count of its supply, instead of a value like 0 or -EINVAL that indicates that it is continuous. Similar for regulator_list_voltage(). I'm sure there are reasons for it, but it's not really intuitive.

This is happening because continuous regulators are an infrequently used hack and not every case where they are relevant has been caught. If the abstractions are confusing or not working then let's improve them, not just punch holes in the abstraction layers and make the problem worse. What you're effectively saying is "I don't really understand what's going on but this seems to work for me" which is a fairly big warning sign that the solution isn't great.

The reason we report properties of the parent supply if the child supply has no control is so that we can pass operations on up to the parent to implement them there, supporting things like dumb power switches. We shouldn't be leaking details of the parent regulator for anything that does actually regulate.

Quoted 3 lines

Above you characterize discrete vs. continuous as an implementation detail. Aren't we already exposing large parts of it through regulator_count_voltages() and regulator_list_voltage()?

What we should be doing for continuous regulators is allowing people to list the supported voltages as they would for other regulators.

#5 lore raw

Hi Mark,

El Fri, Mar 17, 2017 at 09:15:47PM +0000 Mark Brown ha dit:

Quoted 21 lines · Matthias Kaehlcke
Quoted 12 lines

El Thu, Mar 09, 2017 at 11:28:19AM +0100 Mark Brown ha dit:

Quoted 10 lines · Matthias Kaehlcke
Quoted 3 lines

The new function allows consumers to determine if a regulator is continuous or discrete, and whether the results of

Why? As we discussed at ELC this is an implementation detail of the regulator and it's to an extent a taste decision if the regulator is represented as a linear range or a continuous range (in fact given improvements in the core we could probably just update all continuous range regulators to linear ones).

Quoted 7 lines

The second patch of this series is a driver for voltage controlled regulators (vctrl), ie the output voltage of a vctrl regulator is controlled through the voltage of another regulator. The control regulator can be continuous or discrete and I think it makes sense for the vctrl regulator to mirror its control regulator in this aspect. Why should it pretend to have a continuous range when it is actually discrete due to the control regulator?

Quoted 7 lines

I don't think we should be providing a consumer facing API which invites consumers to peer into the implementation details of regulators, or gives them the idea that these concepts exist. Consumers can already enumerate the set of supported voltages via _list_voltage() and so on, I'd expect consumers to be able to get what they need from those. You have an incrediblity specialist use case here but this is just a general consumer interface that's being added.

In principle I totally agree with you that consumers should be able to enumerate the supported voltages with the existing functions. And they can, as long as they already know (or assume) that the regulator they are using actually has discrete steps, otherwise they might get unexpected results.

You are right that my case is very specialist, however I think it is a general problem that a consumer can't know whether the results of _list_voltage(), etc correspond to the regulator itself or to its supplies. E.g. a consumer might have a continuous reg which is supplied by a discrete reg, in this case _list_voltage() would return the steps of the supply reg, which is probably not what most consumers expect.

Quoted 10 lines
Quoted 9 lines

For continuous control regulators we can simply calculate a "safe" voltage for the next step and pass it to the control regulator. In case of a discrete control regulator this calculated voltage may not be directly available, without knowing the available steps the vctrl driver has to try different voltage ranges until it finds one that is accepted by the control regulator. Obviously this can be done but it adds code complexity and runtime overhead which is not necessary if we know the available steps (and regulator_list_voltage() is already there to provide them).

Quoted 2 lines

I'm not seeing how knowing if a regulator is continuous is helpful for regulators with discrete voltages?

The main purpose of the function for vctrl is: Do the values reported by _count_voltages()/_list_voltage() actually describe this regulator or do I ignore them because they come from the regulators' supply?

Quoted 10 lines
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

regulator_count_voltages() and regulator_list_voltage() correspond to the regulator itself or its supply.

Why?

Please see my explication above on why the vctrl driver needs to know this.

I'm seeing nothing in the above that addresses my question, you don't even seem to have mentioned supplies.

Sorry, I really didn't try to evade your question. Does it make more sense with the example above?

Quoted 8 lines
Quoted 7 lines

In general I think the behavior of these APIs can be confusing for users without intimate knowledge of the regulator core. For me (as a possibly naive user) it isn't clear why regulator_count_voltages() of a continuous regulator would return the voltage count of its supply, instead of a value like 0 or -EINVAL that indicates that it is continuous. Similar for regulator_list_voltage(). I'm sure there are reasons for it, but it's not really intuitive.

Quoted 7 lines

This is happening because continuous regulators are an infrequently used hack and not every case where they are relevant has been caught. If the abstractions are confusing or not working then let's improve them, not just punch holes in the abstraction layers and make the problem worse. What you're effectively saying is "I don't really understand what's going on but this seems to work for me" which is a fairly big warning sign that the solution isn't great.

I'm not happy with this function either and agree that the (perceived) need for it could be an indication of an issue in the abstraction. The function was useful to unblock me on certain aspects of the vctrl driver, please interpret it more as an RFC than 'I need exactly this'.

Quoted 5 lines

The reason we report properties of the parent supply if the child supply has no control is so that we can pass operations on up to the parent to implement them there, supporting things like dumb power switches. We shouldn't be leaking details of the parent regulator for anything that does actually regulate.

I see, for dumb power switches it seems indeed reasonable to 'forward' the details of the parent regulator. In most other cases we don't want that for the sake of encapsulation and to give consumers values that describe the regulator they are inquiring about (even if that just means 'no values'). So we probably want a flag or some other mechanism to indicate whether to 'forward' the parents' details or not.

With regulator_count_voltages() returning 0 or -EINVAL there would be no need for regulator_has_continuous_voltage_range(), and I would be more than happy to live without it.

Quoted 6 lines
Quoted 3 lines

Above you characterize discrete vs. continuous as an implementation detail. Aren't we already exposing large parts of it through regulator_count_voltages() and regulator_list_voltage()?

What we should be doing for continuous regulators is allowing people to list the supported voltages as they would for other regulators.

In the overall regulator context this may make sense, at this point I don't really have enough background on the subsystem to have an informed opinion.

Quoted 1 line

From the vctrl perspective I wouldn't be overly happy, since it

wouldn't allow to distinguish between continuous and discrete supplies, and I still think that handling discrete supplies differently is simpler/more efficient. This doesn't mean I argue against your proposal if it is deemed the right thing from a subsystem perspective.

Thanks for the constructive discussion!

Matthias
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#6 lore raw
Quoted 5 lines · Matthias Kaehlcke

In principle I totally agree with you that consumers should be able to enumerate the supported voltages with the existing functions. And they can, as long as they already know (or assume) that the regulator they are using actually has discrete steps, otherwise they might get unexpected results.

Given the limits of number representation continuous regulators also have discrete steps, they just have a lot of them (but so do some regulators we currently say aren't continuous so...).

Quoted 7 lines

You are right that my case is very specialist, however I think it is a general problem that a consumer can't know whether the results of _list_voltage(), etc correspond to the regulator itself or to its supplies. E.g. a consumer might have a continuous reg which is supplied by a discrete reg, in this case _list_voltage() would return the steps of the supply reg, which is probably not what most consumers expect.

No, this is doesn't make much sense! Why should we be reporting properties of the parent regulator when the child regulator is regulating away all visibility of those properties?

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Please see my explication above on why the vctrl driver needs to know this.

I'm seeing nothing in the above that addresses my question, you don't even seem to have mentioned supplies.

Sorry, I really didn't try to evade your question. Does it make more sense with the example above?

No, not at all.

Quoted 7 lines
Quoted 2 lines

What we should be doing for continuous regulators is allowing people to list the supported voltages as they would for other regulators.

In the overall regulator context this may make sense, at this point I don't really have enough background on the subsystem to have an informed opinion.

Quoted 6 lines

From the vctrl perspective I wouldn't be overly happy, since it wouldn't allow to distinguish between continuous and discrete supplies, and I still think that handling discrete supplies differently is simpler/more efficient. This doesn't mean I argue against your proposal if it is deemed the right thing from a subsystem perspective.

If it helps think of a continuous regulator as a discrete regulator with a base voltage of 0 and steps of 1uV.

#7 lore raw

El Mon, Mar 20, 2017 at 12:06:15PM +0000 Mark Brown ha dit:

Quoted 20 lines · Matthias Kaehlcke
Quoted 6 lines

In principle I totally agree with you that consumers should be able to enumerate the supported voltages with the existing functions. And they can, as long as they already know (or assume) that the regulator they are using actually has discrete steps, otherwise they might get unexpected results.

Given the limits of number representation continuous regulators also have discrete steps, they just have a lot of them (but so do some regulators we currently say aren't continuous so...).

Quoted 7 lines

You are right that my case is very specialist, however I think it is a general problem that a consumer can't know whether the results of _list_voltage(), etc correspond to the regulator itself or to its supplies. E.g. a consumer might have a continuous reg which is supplied by a discrete reg, in this case _list_voltage() would return the steps of the supply reg, which is probably not what most consumers expect.

Quoted 3 lines

No, this is doesn't make much sense! Why should we be reporting properties of the parent regulator when the child regulator is regulating away all visibility of those properties?

I am confused whether you are confirming that the current behavior makes no sense or if you think that what I'm saying is nonsense.

Quoted 10 lines
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Please see my explication above on why the vctrl driver needs to know this.

I'm seeing nothing in the above that addresses my question, you don't even seem to have mentioned supplies.

Sorry, I really didn't try to evade your question. Does it make more sense with the example above?

No, not at all.

I take this as an indication that you don't think my description above is correct.

Let's use a real world example then, tested with actual software and hardware.

Our regulator is 'ppvar_bigcpu':

https://chromium.googlesource.com/chromiumos/third_party/kernel/+/release-R58-9334.B-chromeos-4.4/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi#177

For our test we change the supply to 'pp1200_lpddr' to make sure the supply has at least one voltage and this voltage is within the constraints of 'ppvar_bigcpu'.

'ppvar_bigcpu' is continuous, however _count_voltages(ppvar_bigcpu) returns 1 and _list_voltage(ppvar_bigcpu, 0) returns 1200000, which is precisely the configuration of 'pp1200_lpddr'. I verified this with a 4.10ish kernel (no major changes, zero changes in regulators).

Quoted 14 lines
Quoted 7 lines
Quoted 2 lines

What we should be doing for continuous regulators is allowing people to list the supported voltages as they would for other regulators.

In the overall regulator context this may make sense, at this point I don't really have enough background on the subsystem to have an informed opinion.

Quoted 6 lines

From the vctrl perspective I wouldn't be overly happy, since it wouldn't allow to distinguish between continuous and discrete supplies, and I still think that handling discrete supplies differently is simpler/more efficient. This doesn't mean I argue against your proposal if it is deemed the right thing from a subsystem perspective.

Quoted 2 lines

If it helps think of a continuous regulator as a discrete regulator with a base voltage of 0 and steps of 1uV.

Thanks, I understood that. What I didn't realize initially is that we can avoid iterating through all the voltages if the regulator has linear steps, which we can determine with regulator_get_linear_step(). With that in mind I don't see concerns from the vctrl perspective.

Matthias
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#8 lore raw
Quoted 11 lines · Matthias Kaehlcke

El Mon, Mar 20, 2017 at 12:06:15PM +0000 Mark Brown ha dit:

Quoted 9 lines · Matthias Kaehlcke
Quoted 8 lines

You are right that my case is very specialist, however I think it is a general problem that a consumer can't know whether the results of _list_voltage(), etc correspond to the regulator itself or to its supplies. E.g. a consumer might have a continuous reg which is supplied by a discrete reg, in this case _list_voltage() would return the steps of the supply reg, which is probably not what most consumers expect.

Quoted 6 lines
Quoted 3 lines

No, this is doesn't make much sense! Why should we be reporting properties of the parent regulator when the child regulator is regulating away all visibility of those properties?

I am confused whether you are confirming that the current behavior makes no sense or if you think that what I'm saying is nonsense.

I'm saying that the current behaviour isn't good and that the incoherence of what you're proposing should make this clear to you.

Quoted 7 lines
Quoted 2 lines

If it helps think of a continuous regulator as a discrete regulator with a base voltage of 0 and steps of 1uV.

Thanks, I understood that. What I didn't realize initially is that we can avoid iterating through all the voltages if the regulator has linear steps, which we can determine with regulator_get_linear_step(). With that in mind I don't see concerns from the vctrl perspective.

OK, good. I keep meaning to look into retooling all the continuous regulators to actually be linear regulators to simplify things.