arm/dts: omap: add dt data for MUSB
v2 cover arm/dts: omap: add dt data for MUSB
No major change from the previous version. Just removed the omap-usb2 dt data and sent that as a separate patch.
Rebased ongit://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git musb
Kishon Vijay Abraham I (3):
arm/dts: Add twl6030-usb data
arm/dts: Add twl4030-usb data
arm/dts: omap: Add usb_otg and glue data
arch/arm/boot/dts/omap3-beagle.dts | 6 ++++++ arch/arm/boot/dts/omap3-evm.dts | 6 ++++++ arch/arm/boot/dts/omap3.dtsi | 8 ++++++++ arch/arm/boot/dts/omap4-panda.dts | 10 ++++++++++ arch/arm/boot/dts/omap4-sdp.dts | 10 ++++++++++ arch/arm/boot/dts/omap4.dtsi | 8 ++++++++ arch/arm/boot/dts/twl4030.dtsi | 21 +++++++++++++++++++++ arch/arm/boot/dts/twl6030.dtsi | 5 +++++ 8 files changed, 74 insertions(+)
Signature · 1 line
1.7.9.5
PATCH v2 1/3 arm/dts: Add twl6030-usb data
Add twl6030-usb data node in twl6030 device tree file
--- arch/arm/boot/dts/omap4-panda.dts | 4 ++++ arch/arm/boot/dts/omap4-sdp.dts | 4 ++++ arch/arm/boot/dts/twl6030.dtsi | 5 +++++ 3 files changed, 13 insertions(+)
arch/arm/boot/dts/omap4-panda.dts +4 -0
@@ -126,3 +126,7 @@ ti,non-removable; bus-width = <4>; }; + +&twlusb { + usb-supply = <&vusb>; +};
arch/arm/boot/dts/omap4-sdp.dts +4 -0
@@ -226,3 +226,7 @@ bus-width = <4>; ti,non-removable; }; + +&twlusb { + usb-supply = <&vusb>; +};
arch/arm/boot/dts/twl6030.dtsi +5 -0
@@ -83,4 +83,9 @@ clk32kg: regulator at 12 { compatible = "ti,twl6030-clk32kg"; }; + + twlusb: twl6030-usb { + compatible = "ti,twl6030-usb"; + interrupts = < 4 10 >; + }; };
Signature · 1 line
1.7.9.5
PATCH v2 2/3 arm/dts: Add twl4030-usb data
In reply to Kishon Vijay Abraham IAdd twl4030-usb data node in twl4030 device tree file.
--- arch/arm/boot/dts/twl4030.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
arch/arm/boot/dts/twl4030.dtsi +21 -0
@@ -37,6 +37,18 @@ regulator-max-microvolt = <3150000>; }; + vusb1v5: regulator-vusb1v5 { + compatible = "ti,twl4030-vusb1v5"; + }; + + vusb1v8: regulator-vusb1v8 { + compatible = "ti,twl4030-vusb1v8"; + }; + + vusb3v1: regulator-vusb3v1 { + compatible = "ti,twl4030-vusb3v1"; + }; + twl_gpio: gpio { compatible = "ti,twl4030-gpio"; gpio-controller;
@@ -44,4 +56,13 @@ interrupt-controller; #interrupt-cells = <1>; }; + + twl4030-usb { + compatible = "ti,twl4030-usb"; + interrupts = < 10 4 >; + usb1v5-supply = <&vusb1v5>; + usb1v8-supply = <&vusb1v8>; + usb3v1-supply = <&vusb3v1>; + usb_mode = <1>; + }; };
Signature · 1 line
1.7.9.5
PATCH v2 3/3 arm/dts: omap: Add usb_otg and glue data
In reply to Kishon Vijay Abraham IAdd usb otg data node in omap4/omap3 device tree file. Also update the node with board specific setting in omapx-<board>.dts file.
--- arch/arm/boot/dts/omap3-beagle.dts | 6 ++++++ arch/arm/boot/dts/omap3-evm.dts | 6 ++++++ arch/arm/boot/dts/omap3.dtsi | 8 ++++++++ arch/arm/boot/dts/omap4-panda.dts | 6 ++++++ arch/arm/boot/dts/omap4-sdp.dts | 6 ++++++ arch/arm/boot/dts/omap4.dtsi | 8 ++++++++ 6 files changed, 40 insertions(+)
arch/arm/boot/dts/omap3-beagle.dts +6 -0
@@ -67,3 +67,9 @@ &mmc3 { status = "disabled"; }; + +&usb_otg_hs { + interface_type = <0>; + mode = <3>; + power = <50>; +};
arch/arm/boot/dts/omap3-evm.dts +6 -0
@@ -46,3 +46,9 @@ reg = <0x5c>; }; }; + +&usb_otg_hs { + interface_type = <0>; + mode = <3>; + power = <50>; +};
arch/arm/boot/dts/omap3.dtsi +8 -0
@@ -220,5 +220,13 @@ compatible = "ti,omap3-wdt"; ti,hwmods = "wd_timer2"; }; + + usb_otg_hs: usb_otg_hs { + compatible = "ti,omap3-musb"; + ti,hwmods = "usb_otg_hs"; + multipoint = <1>; + num_eps = <16>; + ram_bits = <12>; + }; }; };
arch/arm/boot/dts/omap4-panda.dts +6 -0
@@ -130,3 +130,9 @@ &twlusb { usb-supply = <&vusb>; }; + +&usb_otg_hs { + interface_type = <1>; + mode = <3>; + power = <50>; +};
arch/arm/boot/dts/omap4-sdp.dts +6 -0
@@ -230,3 +230,9 @@ &twlusb { usb-supply = <&vusb>; }; + +&usb_otg_hs { + interface_type = <1>; + mode = <3>; + power = <50>; +};
arch/arm/boot/dts/omap4.dtsi +8 -0
@@ -295,5 +295,13 @@ interrupt-parent = <&gic>; ti,hwmods = "dmic"; }; + + usb_otg_hs: usb_otg_hs { + compatible = "ti,omap4-musb"; + ti,hwmods = "usb_otg_hs"; + multipoint = <1>; + num_eps = <16>; + ram_bits = <12>; + }; }; };
Signature · 1 line
1.7.9.5
Quoted 2 lines · Kishon Vijay Abraham I
No major change from the previous version. Just removed the omap-usb2 dt data and sent that as a separate patch.
Well, I think you'd better keep them in the same series :-)
Quoted 2 lines
Rebased on
git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.gitmusb
Since it is DTS stuf, you should rebase that on top of the latest lo/devel-dt branch. All the latest DTS patches an in there for 3.7.
While you are there, could you please rename the patches with "ARM: dts" prefix. It seems that this is the new convention :-)
Regards,
Benoit
Quoted 16 lines
Kishon Vijay Abraham I (3):
arm/dts: Add twl6030-usb data
arm/dts: Add twl4030-usb data
arm/dts: omap: Addusb_otgand glue dataarch/arm/boot/dts/omap3-beagle.dts | 6 ++++++ arch/arm/boot/dts/omap3-evm.dts | 6 ++++++ arch/arm/boot/dts/omap3.dtsi | 8 ++++++++ arch/arm/boot/dts/omap4-panda.dts | 10 ++++++++++ arch/arm/boot/dts/omap4-sdp.dts | 10 ++++++++++ arch/arm/boot/dts/omap4.dtsi | 8 ++++++++ arch/arm/boot/dts/twl4030.dtsi | 21 +++++++++++++++++++++ arch/arm/boot/dts/twl6030.dtsi | 5 +++++ 8 files changed, 74 insertions(+)
Hi Benoit,
Quoted 11 lines · Benoit Cousson
Quoted 2 lines · Kishon Vijay Abraham I
No major change from the previous version. Just removed the omap-usb2 dt data and sent that as a separate patch.
Well, I think you'd better keep them in the same series :-)
Quoted 2 lines
Rebased on
git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.gitmusbSince it is DTS stuf, you should rebase that on top of the latest lo/devel-dt branch. All the latest DTS patches an in there for 3.7.
The ocp2scp data is not in linux-omap :-( And omap-usb2 has to be a child of ocp2scp. So I used arm-soc tree to which ocp2scp stuff was pulled into.
Quoted 3 lines
While you are there, could you please rename the patches with "ARM: dts" prefix. It seems that this is the new convention :-)
Sure.
Thanks
Kishon
Quoted 12 lines · KISHON VIJAY
Hi Benoit,
Quoted 9 lines · Benoit Cousson
Quoted 2 lines · Kishon Vijay Abraham I
No major change from the previous version. Just removed the omap-usb2 dt data and sent that as a separate patch.
Well, I think you'd better keep them in the same series :-)
Quoted 2 lines
Rebased on
git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.gitmusb
Quoted 6 lines
Quoted 2 lines
Since it is DTS stuf, you should rebase that on top of the latest lo/devel-dt branch. All the latest DTS patches an in there for 3.7.
The ocp2scp data is not in linux-omap :-( And omap-usb2 has to be a child of ocp2scp. So I used arm-soc tree to which ocp2scp stuff was pulled into.
Mmm, but from what tree? It did not go through Tony? What arm-soc branch exactly?
In that case we need to merge Tony's devel-dt into arm-soc to have a common base or ask Tony to rebase on top of arm-soc.
I added a bunch of change inside OMAP4.dtsi, so we can expect some nice conflicts.
That's why it is better to push DTS patches using a single channel.
Tony,
What will make more sense to avoid merge conflict later?
Regards,
Benoit
Hi,
Quoted 16 lines · Benoit Cousson
Quoted 15 lines · KISHON VIJAY
Hi Benoit,
Quoted 11 lines · Benoit Cousson
Quoted 2 lines · Kishon Vijay Abraham I
No major change from the previous version. Just removed the omap-usb2 dt data and sent that as a separate patch.
Well, I think you'd better keep them in the same series :-)
Quoted 2 lines
Rebased on
git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.gitmusbSince it is DTS stuf, you should rebase that on top of the latest lo/devel-dt branch. All the latest DTS patches an in there for 3.7.
Quoted 6 lines
Quoted 3 lines
The ocp2scp data is not in linux-omap :-( And omap-usb2 has to be a child of ocp2scp. So I used arm-soc tree to which ocp2scp stuff was pulled into.
Mmm, but from what tree? It did not go through Tony? What arm-soc branch exactly?
git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git for-next (or) ocp2scp
Thanks
Kishon
Quoted 17 lines
In that case we need to merge Tony's devel-dt into arm-soc to have a common base or ask Tony to rebase on top of arm-soc.
I added a bunch of change inside
OMAP4.dtsi, so we can expect some nice conflicts.
That's why it is better to push DTS patches using a single channel.Tony,
What will make more sense to avoid merge conflict later?Regards,
Benoit
Re: [PATCH v2 1/3] arm/dts: Add twl6030-usb data
In reply to Kishon Vijay Abraham IQuoted 39 lines · Kishon Vijay Abraham I
Add twl6030-usb data node in twl6030 device tree file
Acked-by Felipe Balbi <[email protected]>Signed-off-by Kishon Vijay Abraham I <[email protected]>--- arch/arm/boot/dts/omap4-panda.dts | 4 ++++ arch/arm/boot/dts/omap4-sdp.dts | 4 ++++ arch/arm/boot/dts/twl6030.dtsi | 5 +++++ 3 files changed, 13 insertions(+)arch/arm/boot/dts/omap4-panda.dts +4
-0@@ -126,3 +126,7 @@ ti,non-removable; bus-width = <4>; }; + +&twlusb { + usb-supply = <&vusb>; +};arch/arm/boot/dts/omap4-sdp.dts +4
-0@@ -226,3 +226,7 @@ bus-width = <4>; ti,non-removable; }; + +&twlusb { + usb-supply = <&vusb>; +};arch/arm/boot/dts/twl6030.dtsi +0
-0
arch/arm/boot/dts/twl6030.dtsi line 87
Quoted 5 lines
arch/arm/boot/dts/twl6030.dtsi +2
-0@@ -83,4 +83,9 @@ clk32kg: regulator at 12 { compatible = "ti,twl6030-clk32kg"; }; + + twlusb: twl6030-usb {
That name should be a generic device class name is possible. What is twl6030-usb exactly? an USB PHY?
arch/arm/boot/dts/twl6030.dtsi line 89
Quoted 2 lines
arch/arm/boot/dts/twl6030.dtsi +2
-0+ compatible = "ti,twl6030-usb"; + interrupts = < 4 10 >;
If this is for two interrupts, you'd better split them to avoid confusion with irq specifiers that requires several attributes like for the GIC.
+ interrupts = <4>, <10>; /* IRQ1 blabla, IRQ2 blabla*/
The comments are not mandatory assuming the binding is documented.
Regards,
Benoit
Re: [PATCH v2 1/3] arm/dts: Add twl6030-usb data
Hi,
Quoted 40 lines · Benoit Cousson
Quoted 39 lines · Kishon Vijay Abraham I
Add twl6030-usb data node in twl6030 device tree file
Acked-by Felipe Balbi <[email protected]>Signed-off-by Kishon Vijay Abraham I <[email protected]>--- arch/arm/boot/dts/omap4-panda.dts | 4 ++++ arch/arm/boot/dts/omap4-sdp.dts | 4 ++++ arch/arm/boot/dts/twl6030.dtsi | 5 +++++ 3 files changed, 13 insertions(+)arch/arm/boot/dts/omap4-panda.dts +4
-0@@ -126,3 +126,7 @@ ti,non-removable; bus-width = <4>; }; + +&twlusb { + usb-supply = <&vusb>; +};arch/arm/boot/dts/omap4-sdp.dts +4
-0@@ -226,3 +226,7 @@ bus-width = <4>; ti,non-removable; }; + +&twlusb { + usb-supply = <&vusb>; +};arch/arm/boot/dts/twl6030.dtsi +0
-0@@ -83,4 +83,9 @@
Quoted 8 lines
arch/arm/boot/dts/twl6030.dtsi line 87
Quoted 5 lines
arch/arm/boot/dts/twl6030.dtsi +2
-0clk32kg: regulator at 12 { compatible = "ti,twl6030-clk32kg"; }; + + twlusb: twl6030-usb {That name should be a generic device class name is possible. What is twl6030-usb exactly? an USB PHY?
Of late we are calling it the comparator as it's used only to detect VBUS/ID events.
Should it be like usb-comparator? What should be the label?
Quoted 7 lines
arch/arm/boot/dts/twl6030.dtsi line 89
Quoted 3 lines
arch/arm/boot/dts/twl6030.dtsi +2
-0+ compatible = "ti,twl6030-usb"; + interrupts = < 4 10 >;If this is for two interrupts, you'd better split them to avoid confusion with irq specifiers that requires several attributes like for the GIC.
yeah. Thats for 2 interrupts.
Quoted 4 lines
+ interrupts = <4>, <10>; /* IRQ1 blabla, IRQ2 blabla*/
The comments are not mandatory assuming the binding is documented.
It's documented *usb: twl6030: Add dt support for twl6030 usb*
Thanks
Kishon
Quoted 23 lines · KISHON VIJAY
Hi,
Quoted 20 lines · Benoit Cousson
Quoted 18 lines · KISHON VIJAY
Hi Benoit,
Quoted 11 lines · Benoit Cousson
Quoted 2 lines · Kishon Vijay Abraham I
No major change from the previous version. Just removed the omap-usb2 dt data and sent that as a separate patch.
Well, I think you'd better keep them in the same series :-)
Quoted 2 lines
Rebased on
git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.gitmusbSince it is DTS stuf, you should rebase that on top of the latest lo/devel-dt branch. All the latest DTS patches an in there for 3.7.
The ocp2scp data is not in linux-omap :-( And omap-usb2 has to be a child of ocp2scp. So I used arm-soc tree to which ocp2scp stuff was pulled into.
Quoted 5 lines
Quoted 2 lines
Mmm, but from what tree? It did not go through Tony? What arm-soc branch exactly?
git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.gitfor-next (or) ocp2scp
OK, here it is:
+
+ ocp2scp {
+ compatible = "ti,omap-ocp2scp"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + ti,hwmods = "ocp2scp_usb_phy";
+ };
In order to be consistent with the OMAP4 data now, you should update it to add the reg, and IRQ if applicable.
But for that we do need a proper base with ocp2scp + devel-dt.
Regards,
Benoit
Re: [PATCH v2 1/3] arm/dts: Add twl6030-usb data
In reply to ABRAHAM, KISHON VIJAYQuoted 52 lines · KISHON VIJAY
Hi,
Quoted 40 lines · Benoit Cousson
Quoted 39 lines · Kishon Vijay Abraham I
Add twl6030-usb data node in twl6030 device tree file
Acked-by Felipe Balbi <[email protected]>Signed-off-by Kishon Vijay Abraham I <[email protected]>--- arch/arm/boot/dts/omap4-panda.dts | 4 ++++ arch/arm/boot/dts/omap4-sdp.dts | 4 ++++ arch/arm/boot/dts/twl6030.dtsi | 5 +++++ 3 files changed, 13 insertions(+)arch/arm/boot/dts/omap4-panda.dts +4
-0@@ -126,3 +126,7 @@ ti,non-removable; bus-width = <4>; }; + +&twlusb { + usb-supply = <&vusb>; +};arch/arm/boot/dts/omap4-sdp.dts +4
-0@@ -226,3 +226,7 @@ bus-width = <4>; ti,non-removable; }; + +&twlusb { + usb-supply = <&vusb>; +};arch/arm/boot/dts/twl6030.dtsi +0
-0@@ -83,4 +83,9 @@Quoted 8 lines
arch/arm/boot/dts/twl6030.dtsi line 87
Quoted 5 lines
arch/arm/boot/dts/twl6030.dtsi +2
-0clk32kg: regulator at 12 { compatible = "ti,twl6030-clk32kg"; }; + + twlusb: twl6030-usb {That name should be a generic device class name is possible. What is twl6030-usb exactly? an USB PHY?
Quoted 3 lines
Of late we are calling it the comparator as it's used only to detect VBUS/ID events.
Should it be like usb-comparator? What should be the label?
usb-comparator looks good and generic enough.
The label is useless until you reference it somewhere else. But in the case of the label, it can be more specific.
But you can just use "twl-usb-comparator" for example.
Quoted 8 lines
Quoted 7 lines
arch/arm/boot/dts/twl6030.dtsi line 89
Quoted 3 lines
arch/arm/boot/dts/twl6030.dtsi +2
-0+ compatible = "ti,twl6030-usb"; + interrupts = < 4 10 >;If this is for two interrupts, you'd better split them to avoid confusion with irq specifiers that requires several attributes like for the GIC.
Quoted 7 lines
yeah. Thats for 2 interrupts.
Quoted 4 lines
+ interrupts = <4>, <10>; /* IRQ1 blabla, IRQ2 blabla*/
The comments are not mandatory assuming the binding is documented.
It's documented *usb: twl6030: Add dt support for twl6030 usb*
Yeah, sorry for that, but it is indeed very confusing to review the DTS without having the binding documentation already merged :-(
Regards,
Benoit
Re: [PATCH v2 2/3] arm/dts: Add twl4030-usb data
In reply to Kishon Vijay Abraham IQuoted 1 line · Kishon Vijay Abraham I
Add twl4030-usb data node in twl4030 device tree file.
IIRC, the usb part on twl4030 was doing more than it does on twl6030.
Could you describe what part of the USB is really done by the TWL in that case?
Quoted 30 lines
Acked-by Felipe Balbi <[email protected]>Signed-off-by Kishon Vijay Abraham I <[email protected]>--- arch/arm/boot/dts/twl4030.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)arch/arm/boot/dts/twl4030.dtsi +12
-0@@ -37,6 +37,18 @@ regulator-max-microvolt = <3150000>; }; + vusb1v5: regulator-vusb1v5 { + compatible = "ti,twl4030-vusb1v5"; + }; + + vusb1v8: regulator-vusb1v8 { + compatible = "ti,twl4030-vusb1v8"; + }; + + vusb3v1: regulator-vusb3v1 { + compatible = "ti,twl4030-vusb3v1"; + }; + twl_gpio: gpio { compatible = "ti,twl4030-gpio"; gpio-controller;
arch/arm/boot/dts/twl4030.dtsi line 60
Quoted 5 lines
arch/arm/boot/dts/twl4030.dtsi +2
-0@@ -44,4 +56,13 @@ interrupt-controller; #interrupt-cells = <1>; }; + + twl4030-usb {
Same comment than before about the name. Is it the usb-comparator as well?
arch/arm/boot/dts/twl4030.dtsi line 66
Quoted 6 lines
arch/arm/boot/dts/twl4030.dtsi +6
-0+ compatible = "ti,twl4030-usb"; + interrupts = < 10 4 >; + usb1v5-supply = <&vusb1v5>; + usb1v8-supply = <&vusb1v8>; + usb3v1-supply = <&vusb3v1>; + usb_mode = <1>;
Is this a TI only attribute or something generic?
If this is TI only, it should be prefix with "ti," otherwise, it is fine.
Regards,
Benoit
Re: [PATCH v2 3/3] arm/dts: omap: Add usb_otg and glue data
In reply to Kishon Vijay Abraham IQuoted 92 lines · Kishon Vijay Abraham I
Add usb otg data node in omap4/omap3 device tree file. Also update the node with board specific setting in omapx-<board>.dts file.
Acked-by Felipe Balbi <[email protected]>Signed-off-by Kishon Vijay Abraham I <[email protected]>--- arch/arm/boot/dts/omap3-beagle.dts | 6 ++++++ arch/arm/boot/dts/omap3-evm.dts | 6 ++++++ arch/arm/boot/dts/omap3.dtsi | 8 ++++++++ arch/arm/boot/dts/omap4-panda.dts | 6 ++++++ arch/arm/boot/dts/omap4-sdp.dts | 6 ++++++ arch/arm/boot/dts/omap4.dtsi | 8 ++++++++ 6 files changed, 40 insertions(+)arch/arm/boot/dts/omap3-beagle.dts +6
-0@@ -67,3 +67,9 @@ &mmc3 { status = "disabled"; }; + +&usb_otg_hs { + interface_type = <0>; + mode = <3>; + power = <50>; +};arch/arm/boot/dts/omap3-evm.dts +6
-0@@ -46,3 +46,9 @@ reg = <0x5c>; }; }; + +&usb_otg_hs { + interface_type = <0>; + mode = <3>; + power = <50>; +};arch/arm/boot/dts/omap3.dtsi +8
-0@@ -220,5 +220,13 @@ compatible = "ti,omap3-wdt"; ti,hwmods = "wd_timer2"; }; + + usb_otg_hs: usb_otg_hs { + compatible = "ti,omap3-musb"; + ti,hwmods = "usb_otg_hs"; + multipoint = <1>; + num_eps = <16>; + ram_bits = <12>; + }; }; };arch/arm/boot/dts/omap4-panda.dts +6
-0@@ -130,3 +130,9 @@ &twlusb { usb-supply = <&vusb>; }; + +&usb_otg_hs { + interface_type = <1>; + mode = <3>; + power = <50>; +};arch/arm/boot/dts/omap4-sdp.dts +6
-0@@ -230,3 +230,9 @@ &twlusb { usb-supply = <&vusb>; }; + +&usb_otg_hs { + interface_type = <1>; + mode = <3>; + power = <50>; +};arch/arm/boot/dts/omap4.dtsi +0
-0
arch/arm/boot/dts/omap4.dtsi line 299
Quoted 5 lines
arch/arm/boot/dts/omap4.dtsi +2
-0@@ -295,5 +295,13 @@ interrupt-parent = <&gic>; ti,hwmods = "dmic"; }; + + usb_otg_hs: usb_otg_hs {
After rebasing your series on top of devel-dt, you should as well add the missing reg/irq entries that are now supported thanks to Vaibhav.
Regards,
Benoit
Quoted 9 lines
arch/arm/boot/dts/omap4.dtsi +6
-0+ compatible = "ti,omap4-musb"; + ti,hwmods = "usb_otg_hs"; + multipoint = <1>; + num_eps = <16>; + ram_bits = <12>; + }; }; };
Hi Kishon,
Beside minor comments and the lack of explicit changelog to explain what part of the HW you are addressing, this series looks good.
I guess that series should be rebased on top of lo/devel-dt without much trouble.
Quoted 2 lines · Kishon Vijay Abraham I
No major change from the previous version. Just removed the omap-usb2 dt data and sent that as a separate patch.
Indeed that one will be trickier to merge properly, so my second thought is it is better to have it separated.
Regards,
Benoit
Quoted 19 lines
Rebased on
git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.gitmusbKishon Vijay Abraham I (3):
arm/dts: Add twl6030-usb data
arm/dts: Add twl4030-usb data
arm/dts: omap: Addusb_otgand glue dataarch/arm/boot/dts/omap3-beagle.dts | 6 ++++++ arch/arm/boot/dts/omap3-evm.dts | 6 ++++++ arch/arm/boot/dts/omap3.dtsi | 8 ++++++++ arch/arm/boot/dts/omap4-panda.dts | 10 ++++++++++ arch/arm/boot/dts/omap4-sdp.dts | 10 ++++++++++ arch/arm/boot/dts/omap4.dtsi | 8 ++++++++ arch/arm/boot/dts/twl4030.dtsi | 21 +++++++++++++++++++++ arch/arm/boot/dts/twl6030.dtsi | 5 +++++ 8 files changed, 74 insertions(+)
Re: [PATCH v2 2/3] arm/dts: Add twl4030-usb data
In reply to Benoit CoussonHi,
Quoted 4 lines · Benoit Cousson
Quoted 1 line · Kishon Vijay Abraham I
Add twl4030-usb data node in twl4030 device tree file.
IIRC, the usb part on twl4030 was doing more than it does on twl6030.
Indeed. twl4030 is the usb phy as well (unlike twl6030 which is only a comparator). But there is not much difference in dt data.
Quoted 33 lines
Could you describe what part of the USB is really done by the TWL in that case?
Quoted 29 lines
Acked-by Felipe Balbi <[email protected]>Signed-off-by Kishon Vijay Abraham I <[email protected]>--- arch/arm/boot/dts/twl4030.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)arch/arm/boot/dts/twl4030.dtsi +12
-0@@ -37,6 +37,18 @@ regulator-max-microvolt = <3150000>; }; + vusb1v5: regulator-vusb1v5 { + compatible = "ti,twl4030-vusb1v5"; + }; + + vusb1v8: regulator-vusb1v8 { + compatible = "ti,twl4030-vusb1v8"; + }; + + vusb3v1: regulator-vusb3v1 { + compatible = "ti,twl4030-vusb3v1"; + }; + twl_gpio: gpio { compatible = "ti,twl4030-gpio"; gpio-controller;
Quoted 8 lines
arch/arm/boot/dts/twl4030.dtsi line 60
Quoted 6 lines
arch/arm/boot/dts/twl4030.dtsi +2
-0@@ -44,4 +56,13 @@ interrupt-controller; #interrupt-cells = <1>; }; + + twl4030-usb {Same comment than before about the name. Is it the usb-comparator as well?
No. Here it's the phy as well.
Quoted 9 lines
arch/arm/boot/dts/twl4030.dtsi line 66
Quoted 7 lines
arch/arm/boot/dts/twl4030.dtsi +6
-0+ compatible = "ti,twl4030-usb"; + interrupts = < 10 4 >; + usb1v5-supply = <&vusb1v5>; + usb1v8-supply = <&vusb1v8>; + usb3v1-supply = <&vusb3v1>; + usb_mode = <1>;Is this a TI only attribute or something generic?
It's describes the way twl4030 is connected is connected to omap. So I think it should be prefixed with "ti".
Thanks
Kishon