2013-08-12 09:37:51

by Kishon Vijay Abraham I

[permalink] [raw]
Subject: [PATCH] arm: omap5: dts: split SMPS10 dt node

SMPS10 has two outputs OUT1 and OUT2. Hence SMPS10 is modeled as
two regulators. The dt node is split to reflect it.

Signed-off-by: Kishon Vijay Abraham I <[email protected]>
---
arch/arm/boot/dts/omap5-uevm.dts | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/omap5-uevm.dts b/arch/arm/boot/dts/omap5-uevm.dts
index 65d7b60..05b9b12 100644
--- a/arch/arm/boot/dts/omap5-uevm.dts
+++ b/arch/arm/boot/dts/omap5-uevm.dts
@@ -334,9 +334,18 @@
ti,smps-range = <0x80>;
};

- smps10_reg: smps10 {
+ smps10_out2_reg: smps10_out2 {
/* VBUS_5V_OTG */
- regulator-name = "smps10";
+ regulator-name = "smps10_out2";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ regulator-always-on;
+ regulator-boot-on;
+ };
+
+ smps10_out1_reg: smps10_out1 {
+ /* VBUS_5V_OTG */
+ regulator-name = "smps10_out1";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-always-on;
--
1.7.10.4


2013-08-13 13:21:26

by Benoit Cousson

[permalink] [raw]
Subject: Re: [PATCH] arm: omap5: dts: split SMPS10 dt node

Hi Kishon,

On 12/08/2013 11:37, Kishon Vijay Abraham I wrote:
> SMPS10 has two outputs OUT1 and OUT2. Hence SMPS10 is modeled as
> two regulators. The dt node is split to reflect it.

Mmm, I'm curious. How is it supposed to work?

Do you have dedicated control on each output?

Otherwise, it should be seen as one output with two potential consumers.

Regards,
Benoit

>
> Signed-off-by: Kishon Vijay Abraham I <[email protected]>
> ---
> arch/arm/boot/dts/omap5-uevm.dts | 13 +++++++++++--
> 1 file changed, 11 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/boot/dts/omap5-uevm.dts b/arch/arm/boot/dts/omap5-uevm.dts
> index 65d7b60..05b9b12 100644
> --- a/arch/arm/boot/dts/omap5-uevm.dts
> +++ b/arch/arm/boot/dts/omap5-uevm.dts
> @@ -334,9 +334,18 @@
> ti,smps-range = <0x80>;
> };
>
> - smps10_reg: smps10 {
> + smps10_out2_reg: smps10_out2 {
> /* VBUS_5V_OTG */
> - regulator-name = "smps10";
> + regulator-name = "smps10_out2";
> + regulator-min-microvolt = <5000000>;
> + regulator-max-microvolt = <5000000>;
> + regulator-always-on;
> + regulator-boot-on;
> + };
> +
> + smps10_out1_reg: smps10_out1 {
> + /* VBUS_5V_OTG */
> + regulator-name = "smps10_out1";
> regulator-min-microvolt = <5000000>;
> regulator-max-microvolt = <5000000>;
> regulator-always-on;
>

2013-08-13 14:46:10

by Kishon Vijay Abraham I

[permalink] [raw]
Subject: Re: [PATCH] arm: omap5: dts: split SMPS10 dt node

Hi,

On Tuesday 13 August 2013 06:51 PM, Benoit Cousson wrote:
> Hi Kishon,
>
> On 12/08/2013 11:37, Kishon Vijay Abraham I wrote:
>> SMPS10 has two outputs OUT1 and OUT2. Hence SMPS10 is modeled as
>> two regulators. The dt node is split to reflect it.
>
> Mmm, I'm curious. How is it supposed to work?
>
> Do you have dedicated control on each output?

Yes. It can be controlled by setting different values to the same bit fields.
You can refer [1] where we actually implement SMPS10 as two different regulators.

[1] -> http://permalink.gmane.org/gmane.linux.kernel/1542521

Thanks
Kishon

2013-08-13 14:48:53

by Benoit Cousson

[permalink] [raw]
Subject: Re: [PATCH] arm: omap5: dts: split SMPS10 dt node

On 13/08/2013 16:45, Kishon Vijay Abraham I wrote:
> Hi,
>
> On Tuesday 13 August 2013 06:51 PM, Benoit Cousson wrote:
>> Hi Kishon,
>>
>> On 12/08/2013 11:37, Kishon Vijay Abraham I wrote:
>>> SMPS10 has two outputs OUT1 and OUT2. Hence SMPS10 is modeled as
>>> two regulators. The dt node is split to reflect it.
>>
>> Mmm, I'm curious. How is it supposed to work?
>>
>> Do you have dedicated control on each output?
>
> Yes. It can be controlled by setting different values to the same bit fields.
> You can refer [1] where we actually implement SMPS10 as two different regulators.
>
> [1] -> http://permalink.gmane.org/gmane.linux.kernel/1542521

Great, thanks.

Can we merge that one safely if the driver changed are not done yet?

Regards,
Benoit

2013-08-16 05:15:50

by Kishon Vijay Abraham I

[permalink] [raw]
Subject: Re: [PATCH] arm: omap5: dts: split SMPS10 dt node

Hi Benoit,

On Tuesday 13 August 2013 08:18 PM, Benoit Cousson wrote:
> On 13/08/2013 16:45, Kishon Vijay Abraham I wrote:
>> Hi,
>>
>> On Tuesday 13 August 2013 06:51 PM, Benoit Cousson wrote:
>>> Hi Kishon,
>>>
>>> On 12/08/2013 11:37, Kishon Vijay Abraham I wrote:
>>>> SMPS10 has two outputs OUT1 and OUT2. Hence SMPS10 is modeled as
>>>> two regulators. The dt node is split to reflect it.
>>>
>>> Mmm, I'm curious. How is it supposed to work?
>>>
>>> Do you have dedicated control on each output?
>>
>> Yes. It can be controlled by setting different values to the same bit fields.
>> You can refer [1] where we actually implement SMPS10 as two different
>> regulators.
>>
>> [1] -> http://permalink.gmane.org/gmane.linux.kernel/1542521
>
> Great, thanks.
>
> Can we merge that one safely if the driver changed are not done yet?

I think it shouldn't cause any issues. However Mark has already merged the
driver changes.

Thanks
Kishon

2013-08-16 08:54:41

by Benoit Cousson

[permalink] [raw]
Subject: Re: [PATCH] arm: omap5: dts: split SMPS10 dt node

On 16/08/2013 07:15, Kishon Vijay Abraham I wrote:
> Hi Benoit,
>
> On Tuesday 13 August 2013 08:18 PM, Benoit Cousson wrote:
>> On 13/08/2013 16:45, Kishon Vijay Abraham I wrote:
>>> Hi,
>>>
>>> On Tuesday 13 August 2013 06:51 PM, Benoit Cousson wrote:
>>>> Hi Kishon,
>>>>
>>>> On 12/08/2013 11:37, Kishon Vijay Abraham I wrote:
>>>>> SMPS10 has two outputs OUT1 and OUT2. Hence SMPS10 is modeled as
>>>>> two regulators. The dt node is split to reflect it.
>>>>
>>>> Mmm, I'm curious. How is it supposed to work?
>>>>
>>>> Do you have dedicated control on each output?
>>>
>>> Yes. It can be controlled by setting different values to the same bit fields.
>>> You can refer [1] where we actually implement SMPS10 as two different
>>> regulators.
>>>
>>> [1] -> http://permalink.gmane.org/gmane.linux.kernel/1542521
>>
>> Great, thanks.
>>
>> Can we merge that one safely if the driver changed are not done yet?
>
> I think it shouldn't cause any issues. However Mark has already merged the
> driver changes.

Cool. I've just applied your patch in for_3.12/dts

Thanks,
Benoit

2013-08-16 10:22:30

by Kishon Vijay Abraham I

[permalink] [raw]
Subject: Re: [PATCH] arm: omap5: dts: split SMPS10 dt node

On Friday 16 August 2013 02:24 PM, Benoit Cousson wrote:
> On 16/08/2013 07:15, Kishon Vijay Abraham I wrote:
>> Hi Benoit,
>>
>> On Tuesday 13 August 2013 08:18 PM, Benoit Cousson wrote:
>>> On 13/08/2013 16:45, Kishon Vijay Abraham I wrote:
>>>> Hi,
>>>>
>>>> On Tuesday 13 August 2013 06:51 PM, Benoit Cousson wrote:
>>>>> Hi Kishon,
>>>>>
>>>>> On 12/08/2013 11:37, Kishon Vijay Abraham I wrote:
>>>>>> SMPS10 has two outputs OUT1 and OUT2. Hence SMPS10 is modeled as
>>>>>> two regulators. The dt node is split to reflect it.
>>>>>
>>>>> Mmm, I'm curious. How is it supposed to work?
>>>>>
>>>>> Do you have dedicated control on each output?
>>>>
>>>> Yes. It can be controlled by setting different values to the same bit fields.
>>>> You can refer [1] where we actually implement SMPS10 as two different
>>>> regulators.
>>>>
>>>> [1] -> http://permalink.gmane.org/gmane.linux.kernel/1542521
>>>
>>> Great, thanks.
>>>
>>> Can we merge that one safely if the driver changed are not done yet?
>>
>> I think it shouldn't cause any issues. However Mark has already merged the
>> driver changes.
>
> Cool. I've just applied your patch in for_3.12/dts

Thanks :-)

Regards
Kishon