Re: USB support for device tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 4, 2011 at 4:25 AM, Pavan Kondeti <pkondeti@xxxxxxxxxxxxxx> wrote:
> Hi
>
> I am working on adding USB device tree support for MSM platform.  One of
> our chip set has 2 hsusb cores. The first core is configured as otg and
> the other core is configured in host only mode (EHCI compliant). Are the
> below device node names Okay? Please suggest.
>
> hsusb0-otg: usb@0xa6000000 {
>        compatible = "qcom,hsusb-otg";
>        ---
> };
>
> hsusb0-device: usb@0xa6000000 {
>        compatible = "qcom,hsusb-device";
>        ---
> };
>
> hsusb0-host: usb@0xa6000000 {
>        compatible = "qcom,hsusb-host", "usb-ehci";
>        ---
> };
>
> hsusb1-host: usb@0xa6000000 {
>        compatible = "qcom,hsusb-host", "usb-ehci";
>        ---
> };
>
> /* super speed support
>
> ssusb0-device: usb@0xa6000000 {
>        compatible = "qcom,ssusb-device";
> };


The host controller node names as "usb@<adddr>" as you have here is
exactly right.  The driver doesn't care and will only look at the
compatible list.  OTG controllers can also use "usb@" as the prefix.

Controllers that are only in device mode should probably be called
something like "usb-gadget@<addr>" or similar, because "usb@" is used
for host controllers.

The label names (hsusb*-host, hsusb*-device) are completely irrelevant
since Linux never sees them.  Use whatever you want for the label
names.

Also, the form of the node name is: "usb@a6000000" (without '0x' in
the address).

g.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux