arm: omap5: dts: split SMPS10 dt node
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
@@ -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
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
Signed-off-by Kishon Vijay Abraham I <[email protected]>--- arch/arm/boot/dts/omap5-uevm.dts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)arch/arm/boot/dts/omap5-uevm.dts +11
-2@@ -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;
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
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
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
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
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