Skip to contentSkip to conversation

arm: omap5: dts: split SMPS10 dt node

PATCH In review Kishon Vijay Abraham I 2 participants 7 messages Aug 12, 2013 – Aug 16, 2013 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/arm/boot/dts/omap5-uevm.dts |   13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
arch/arm/boot/dts/omap5-uevm.dts +11 -2
index 65d7b60..05b9b12 100644
@@ -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;
Signature · 1 line
1.7.10.4
#1 lore raw

Hi Kishon,

Quoted 2 lines · Kishon Vijay Abraham I

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

Quoted 32 lines
---
  arch/arm/boot/dts/omap5-uevm.dts |   13 +++++++++++--
  1 file changed, 11 insertions(+), 2 deletions(-)
arch/arm/boot/dts/omap5-uevm.dts +11 -2
index 65d7b60..05b9b12 100644
@@ -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;
#2 lore raw

Hi,

Quoted 9 lines · Benoit Cousson

Hi Kishon,

Quoted 2 lines · Kishon Vijay Abraham I

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

#3 lore raw
Quoted 9 lines · Kishon Vijay Abraham I

Hi,

Quoted 6 lines · Benoit Cousson

Hi Kishon,

Quoted 2 lines · Kishon Vijay Abraham I

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

Quoted 8 lines
Quoted 3 lines

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

#4 lore raw

Hi Benoit,

Quoted 18 lines · Benoit Cousson
Quoted 17 lines · Kishon Vijay Abraham I

Hi,

Quoted 9 lines · Benoit Cousson

Hi Kishon,

Quoted 2 lines · Kishon Vijay Abraham I

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.

Quoted 5 lines
Quoted 1 line

[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

#5 lore raw
Quoted 21 lines · Kishon Vijay Abraham I

Hi Benoit,

Quoted 18 lines · Benoit Cousson
Quoted 17 lines · Kishon Vijay Abraham I

Hi,

Quoted 9 lines · Benoit Cousson

Hi Kishon,

Quoted 2 lines · Kishon Vijay Abraham I

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.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

[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

#6 lore raw
Quoted 24 lines · Benoit Cousson
Quoted 23 lines · Kishon Vijay Abraham I

Hi Benoit,

Quoted 20 lines · Benoit Cousson
Quoted 18 lines · Kishon Vijay Abraham I

Hi,

Quoted 9 lines · Benoit Cousson

Hi Kishon,

Quoted 2 lines · Kishon Vijay Abraham I

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

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

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