Thread (1 message) 1 message, 1 author, 2016-02-06

Re: [PATCH 1/1] Drivers: USB: DA8xx MUSB: added DT support

From: Sergei Shtylyov <hidden>
Date: 2016-02-06 21:48:02

Hello.

On 02/06/2016 02:55 AM, Petr Kulhavy wrote:
quoted
One more thing:
quoted
  3 files changed, 227 insertions(+), 1 deletion(-)
  create mode 100644 Documentation/devicetree/bindings/usb/da8xx-usb.txt
diff --git a/Documentation/devicetree/bindings/usb/da8xx-usb.txt b/Documentation/devicetree/bindings/usb/da8xx-usb.txt
new file mode 100644
index 0000000..69c0961
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/da8xx-usb.txt
@@ -0,0 +1,63 @@
+TI DA8xx MUSB
+~~~~~~~~~~~~~
+
+Required properties:
+~~~~~~~~~~~~~~~~~~~~
+ - compatible : Should be "ti,da8xx-musb"
+
Please make this

         Should be one of "ti,da850-musb" or "ti,da830-musb"

We don't use wildcards in compatible strings, so better use specific model
names in case we later find something that is different betweent the models.
OK, I will update the binding. But is the MODULE_DEVICE_TABLE() in the
code able to handle wildcards?
    No!
Or do I need to create 2 entries in the code? I mean something like this:
    You don't -- unless you'll find something different between DMA8x0/AM1x0x.
If not, "ti,da830-musb" will do for all SoCs.
static const struct of_device_id da8xx_id_table[] = {
        {
                .compatible = "ti,da850-musb"
        },
        {
                .compatible = "ti,da830-musb"
        },
       {},
};

MODULE_DEVICE_TABLE(of, da8xx_id_table);

Thanks
Petr
MBR, Sergei


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help