Skip to contentSkip to conversation

usb: musb: dsps: dt binding - add resources, example

PATCH In review Afzal Mohammed 4 participants 5 messages Nov 6, 2012 – Nov 7, 2012 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 usb: musb: dsps: dt binding - add resources, example

OMAP2+ family of devices are now obtaining resources via DT, earlier it was obtained from hwmod. Update binding document accrodingly, while at it add example.

---

v2: node name changed to "usb"

 .../devicetree/bindings/usb/am33xx-usb.txt          | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
Documentation/devicetree/bindings/usb/am33xx-usb.txt +21 -0
index a922505..ea840f7 100644
@@ -1,5 +1,7 @@
 AM33XX MUSB GLUE
  - compatible : Should be "ti,musb-am33xx"
+ - reg : offset and length of register sets, first usbss, then for musb instances
+ - interrupts : usbss, musb instance interrupts in order
  - ti,hwmods : must be "usb_otg_hs"
  - multipoint : Should be "1" indicating the musb controller supports
    multipoint. This is a MUSB configuration-specific setting.
@@ -12,3 +14,22 @@ AM33XX MUSB GLUE
    represents PERIPHERAL.
  - power : Should be "250". This signifies the controller can supply upto
    500mA when operating in host mode.
+
+Example:
+
+usb@47400000  {
+	compatible = "ti,musb-am33xx";
+	reg = <0x47400000 0x1000	/* usbss */
+	       0x47401000 0x800		/* musb instance 0 */
+	       0x47401800 0x800>;	/* musb instance 1 */
+	interrupts = <17		/* usbss */
+		      18		/* musb instance 0 */
+		      19>;		/* musb instance 1 */
+	multipoint = <1>;
+	num-eps = <16>;
+	ram-bits = <12>;
+	port0-mode = <3>;
+	port1-mode = <3>;
+	power = <250>;
+	ti,hwmods = "usb_otg_hs";
+};
Signature · 1 line
1.7.12
Reviewed-by
#2 lore raw
In reply to a message not in the archive

Hi,

Quoted 5 lines · Afzal Mohammed

OMAP2+ family of devices are now obtaining resources via DT, earlier it was obtained from hwmod. Update binding document accrodingly, while at it add example.

this looks fine to me:

Benoit, do you take Documentation patches too ?

Quoted 45 lines

---

v2: node name changed to "usb"

 .../devicetree/bindings/usb/am33xx-usb.txt          | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
Documentation/devicetree/bindings/usb/am33xx-usb.txt +21 -0
index a922505..ea840f7 100644
@@ -1,5 +1,7 @@
 AM33XX MUSB GLUE
  - compatible : Should be "ti,musb-am33xx"
+ - reg : offset and length of register sets, first usbss, then for musb instances
+ - interrupts : usbss, musb instance interrupts in order
  - ti,hwmods : must be "usb_otg_hs"
  - multipoint : Should be "1" indicating the musb controller supports
    multipoint. This is a MUSB configuration-specific setting.
@@ -12,3 +14,22 @@ AM33XX MUSB GLUE
    represents PERIPHERAL.
  - power : Should be "250". This signifies the controller can supply upto
    500mA when operating in host mode.
+
+Example:
+
+usb@47400000  {
+	compatible = "ti,musb-am33xx";
+	reg = <0x47400000 0x1000	/* usbss */
+	       0x47401000 0x800		/* musb instance 0 */
+	       0x47401800 0x800>;	/* musb instance 1 */
+	interrupts = <17		/* usbss */
+		      18		/* musb instance 0 */
+		      19>;		/* musb instance 1 */
+	multipoint = <1>;
+	num-eps = <16>;
+	ram-bits = <12>;
+	port0-mode = <3>;
+	port1-mode = <3>;
+	power = <250>;
+	ti,hwmods = "usb_otg_hs";
+};
Signature · 1 line
1.7.12
Signature · 1 line
balbi
#3 lore raw
Quoted 7 lines · Felipe Balbi

Hi,

Quoted 4 lines · Afzal Mohammed

OMAP2+ family of devices are now obtaining resources via DT, earlier it was obtained from hwmod. Update binding document accrodingly, while at it add example.

Quoted 7 lines
Quoted 1 line

this looks fine to me:

Benoit, do you take Documentation patches too ?

Well, ideally it should go with the driver change. But if this is a simple change related to generic attribute I can take it.

Regards,
Benoit

Quoted 47 lines
Quoted 46 lines

---

v2: node name changed to "usb"

 .../devicetree/bindings/usb/am33xx-usb.txt          | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
Documentation/devicetree/bindings/usb/am33xx-usb.txt +21 -0
index a922505..ea840f7 100644
@@ -1,5 +1,7 @@
 AM33XX MUSB GLUE
  - compatible : Should be "ti,musb-am33xx"
+ - reg : offset and length of register sets, first usbss, then for musb instances
+ - interrupts : usbss, musb instance interrupts in order
  - ti,hwmods : must be "usb_otg_hs"
  - multipoint : Should be "1" indicating the musb controller supports
    multipoint. This is a MUSB configuration-specific setting.
@@ -12,3 +14,22 @@ AM33XX MUSB GLUE
    represents PERIPHERAL.
  - power : Should be "250". This signifies the controller can supply upto
    500mA when operating in host mode.
+
+Example:
+
+usb@47400000  {
+	compatible = "ti,musb-am33xx";
+	reg = <0x47400000 0x1000	/* usbss */
+	       0x47401000 0x800		/* musb instance 0 */
+	       0x47401800 0x800>;	/* musb instance 1 */
+	interrupts = <17		/* usbss */
+		      18		/* musb instance 0 */
+		      19>;		/* musb instance 1 */
+	multipoint = <1>;
+	num-eps = <16>;
+	ram-bits = <12>;
+	port0-mode = <3>;
+	port1-mode = <3>;
+	power = <250>;
+	ti,hwmods = "usb_otg_hs";
+};
Signature · 1 line
1.7.12
#4 lore raw

Hi,

Quoted 10 lines · Benoit Cousson
Quoted 9 lines · Felipe Balbi

Hi,

Quoted 5 lines · Afzal Mohammed

OMAP2+ family of devices are now obtaining resources via DT, earlier it was obtained from hwmod. Update binding document accrodingly, while at it add example.

Quoted 8 lines
Quoted 5 lines

this looks fine to me:

Benoit, do you take Documentation patches too ?

Well, ideally it should go with the driver change. But if this is a simple change related to generic attribute I can take it.

ok, cool. Please take this via your tree.

thanks

Signature · 1 line
balbi
#5 lore raw

Hi Felipe,

Quoted 15 lines · Felipe Balbi

Hi,

Quoted 12 lines · Benoit Cousson
Quoted 11 lines · Felipe Balbi

Hi,

Quoted 5 lines · Afzal Mohammed

OMAP2+ family of devices are now obtaining resources via DT, earlier it was obtained from hwmod. Update binding document accrodingly, while at it add example.

this looks fine to me:

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

Benoit, do you take Documentation patches too ?

Well, ideally it should go with the driver change. But if this is a simple change related to generic attribute I can take it.

ok, cool. Please take this via your tree.

Done. I've just applied it in my for_3.8/dts_part2 branch.

Regards,
Benoit