* [PATCH] regulator: dts: Fix bindings description of regulator-boot-on
@ 2013-10-11 10:26 Nishanth Menon
2013-10-11 10:33 ` Rajendra Nayak
0 siblings, 1 reply; 3+ messages in thread
From: Nishanth Menon @ 2013-10-11 10:26 UTC (permalink / raw)
To: Rob Landley, Mark Brown
Cc: Rob Herring, Pawel Moll, Mark Rutland, Stephen Warren,
Kishon Vijay Abraham I, devicetree, linux-doc, linux-kernel,
Rajendra Nayak, Nishanth Menon
Since regulator-boot-on property maps back to constraints->boot_on,
current description of 'regulator-boot-on' property conflicts with
description of 'boot-on' in include/linux/regulator/machine.h and the
corresponding implementation in drivers/regulator/core.c.
Ensure the description is more inline with the original intent.
Cc: Rajendra Nayak <rnayak@ti.com>
Reported-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
---
Ref: my confusion in http://marc.info/?t=138140228800004&r=1&w=2
Based on v3.12-rc4 tag
.../devicetree/bindings/regulator/regulator.txt | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/regulator/regulator.txt b/Documentation/devicetree/bindings/regulator/regulator.txt
index 2bd8f09..d999f096 100644
--- a/Documentation/devicetree/bindings/regulator/regulator.txt
+++ b/Documentation/devicetree/bindings/regulator/regulator.txt
@@ -8,7 +8,9 @@ Optional properties:
- regulator-min-microamp: smallest current consumers may set
- regulator-max-microamp: largest current consumers may set
- regulator-always-on: boolean, regulator should never be disabled
-- regulator-boot-on: bootloader/firmware enabled regulator
+- regulator-boot-on: regulator is enabled when the system is initially started.
+ If the regulator is not enabled by the hardware or bootloader then it will be
+ enabled when the constraints are applied.
- regulator-allow-bypass: allow the regulator to go into bypass mode
- <name>-supply: phandle to the parent supply/regulator node
- regulator-ramp-delay: ramp delay for regulator(in uV/uS)
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] regulator: dts: Fix bindings description of regulator-boot-on
2013-10-11 10:26 [PATCH] regulator: dts: Fix bindings description of regulator-boot-on Nishanth Menon
@ 2013-10-11 10:33 ` Rajendra Nayak
2013-10-11 10:46 ` Nishanth Menon
0 siblings, 1 reply; 3+ messages in thread
From: Rajendra Nayak @ 2013-10-11 10:33 UTC (permalink / raw)
To: Nishanth Menon
Cc: Rob Landley, Mark Brown, Rob Herring, Pawel Moll, Mark Rutland,
Stephen Warren, Kishon Vijay Abraham I, devicetree, linux-doc,
linux-kernel
On Friday 11 October 2013 03:56 PM, Nishanth Menon wrote:
> Since regulator-boot-on property maps back to constraints->boot_on,
> current description of 'regulator-boot-on' property conflicts with
> description of 'boot-on' in include/linux/regulator/machine.h and the
> corresponding implementation in drivers/regulator/core.c.
>
> Ensure the description is more inline with the original intent.
>
> Cc: Rajendra Nayak <rnayak@ti.com>
>
> Reported-by: Kishon Vijay Abraham I <kishon@ti.com>
> Signed-off-by: Nishanth Menon <nm@ti.com>
> ---
>
> Ref: my confusion in http://marc.info/?t=138140228800004&r=1&w=2
> Based on v3.12-rc4 tag
>
> .../devicetree/bindings/regulator/regulator.txt | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/regulator/regulator.txt b/Documentation/devicetree/bindings/regulator/regulator.txt
> index 2bd8f09..d999f096 100644
> --- a/Documentation/devicetree/bindings/regulator/regulator.txt
> +++ b/Documentation/devicetree/bindings/regulator/regulator.txt
> @@ -8,7 +8,9 @@ Optional properties:
> - regulator-min-microamp: smallest current consumers may set
> - regulator-max-microamp: largest current consumers may set
> - regulator-always-on: boolean, regulator should never be disabled
> -- regulator-boot-on: bootloader/firmware enabled regulator
> +- regulator-boot-on: regulator is enabled when the system is initially started.
> + If the regulator is not enabled by the hardware or bootloader then it will be
> + enabled when the constraints are applied.
Isn't this specific to how the linux regulator framework implements it?
why should it be documented in the generic bindings documentation which has
nothing Linux specific but more hardware details?
> - regulator-allow-bypass: allow the regulator to go into bypass mode
> - <name>-supply: phandle to the parent supply/regulator node
> - regulator-ramp-delay: ramp delay for regulator(in uV/uS)
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] regulator: dts: Fix bindings description of regulator-boot-on
2013-10-11 10:33 ` Rajendra Nayak
@ 2013-10-11 10:46 ` Nishanth Menon
0 siblings, 0 replies; 3+ messages in thread
From: Nishanth Menon @ 2013-10-11 10:46 UTC (permalink / raw)
To: Rajendra Nayak
Cc: Rob Landley, Mark Brown, Rob Herring, Pawel Moll, Mark Rutland,
Stephen Warren, Kishon Vijay Abraham I, devicetree, linux-doc,
linux-kernel
On 10/11/2013 05:33 AM, Rajendra Nayak wrote:
> On Friday 11 October 2013 03:56 PM, Nishanth Menon wrote:
>> Since regulator-boot-on property maps back to constraints->boot_on,
>> current description of 'regulator-boot-on' property conflicts with
>> description of 'boot-on' in include/linux/regulator/machine.h and the
>> corresponding implementation in drivers/regulator/core.c.
>>
>> Ensure the description is more inline with the original intent.
>>
>> Cc: Rajendra Nayak <rnayak@ti.com>
>>
>> Reported-by: Kishon Vijay Abraham I <kishon@ti.com>
>> Signed-off-by: Nishanth Menon <nm@ti.com>
>> ---
>>
>> Ref: my confusion in http://marc.info/?t=138140228800004&r=1&w=2
>> Based on v3.12-rc4 tag
>>
>> .../devicetree/bindings/regulator/regulator.txt | 4 +++-
>> 1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/Documentation/devicetree/bindings/regulator/regulator.txt b/Documentation/devicetree/bindings/regulator/regulator.txt
>> index 2bd8f09..d999f096 100644
>> --- a/Documentation/devicetree/bindings/regulator/regulator.txt
>> +++ b/Documentation/devicetree/bindings/regulator/regulator.txt
>> @@ -8,7 +8,9 @@ Optional properties:
>> - regulator-min-microamp: smallest current consumers may set
>> - regulator-max-microamp: largest current consumers may set
>> - regulator-always-on: boolean, regulator should never be disabled
>> -- regulator-boot-on: bootloader/firmware enabled regulator
>> +- regulator-boot-on: regulator is enabled when the system is initially started.
>> + If the regulator is not enabled by the hardware or bootloader then it will be
>> + enabled when the constraints are applied.
>
> Isn't this specific to how the linux regulator framework implements it?
> why should it be documented in the generic bindings documentation which has
> nothing Linux specific but more hardware details?
Lets say for the moment that SMPS10 was enabled by hardware
/bootloader/firmware at boot.
By the description of "bootloader/firmware enabled regulator" , I have
described the dts correctly by adding regulator-boot-on. However,
translating that to implementation of "Keep the regulator enabled at
boot even if we dont use it in USB" makes no logical leap for me.
In fact, what does "bootloader/firmware enabled regulator" even mean
to OS? why should it even care if "bootloader/firmware enabled
regulator"? It cares about regulators that are mandatory to be kept on
at boot.
So, IMHO, either our implementation in regulator core is wrong, or we
are describing the wrong hardware property. This patch assumes the later.
--
Regards,
Nishanth Menon
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-11 10:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-11 10:26 [PATCH] regulator: dts: Fix bindings description of regulator-boot-on Nishanth Menon
2013-10-11 10:33 ` Rajendra Nayak
2013-10-11 10:46 ` Nishanth Menon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).