All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Device tree support for AM35xx M-USB driver
@ 2015-10-23 15:42 Rolf Peukert
       [not found] ` <562A557B.4090501-cSCHQGRfioA@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Rolf Peukert @ 2015-10-23 15:42 UTC (permalink / raw)
  To: linux-omap-u79uwXL29TY76Z2rM5mHXA
  Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA, Felipe Balbi, Tony Lindgren

The M-USB drivers glue code for AM35xx SOCs does not yet support device
trees.

In legacy kernels, it was left to the respective board_ file to set up
some necessary data structures before calling am35x_probe(). To support
initialization using a DT, this now needs to be done in am35x.c.

These data structures including a set of four pointers to CPU-specific
helper functions from the mach-omap2 directory.

Unfortunately those functions are only declared locally under
arch/arm/mach-omap2/, and they can not easily be moved over to am35x.c.
(While they just set a few bits in some system control module registers,
they call functions from control.c to access the SCM. These control.c
functions are also declared locally in mach-omap2 and not exported,
and use some static variables and several other local include files.)

So if we want these four functions to be accessible from the driver glue
code, their declarations have to be moved to the include/ hierarchy and
their names need to be exported. This makes it possible to use the am35x
M-USB driver as a kernel module.

The patch defines a new device 'compatible' name (am35x-musb) to
differentiate it from omap3-musb. It also adds clock name declarations
for interface and function clock to the device tree, so the am35x
glue code's clk_get() calls can find them.

Rolf Peukert (5):
  Make am35x helper function declarations accessible
  Export am35x helper functions
  Add device tree support for M-USB on AM35xx SOCs
  Use new MUSB device name in AM3517 device tree.
  Add some information about the new DT device name

 Documentation/devicetree/bindings/usb/omap-usb.txt | 35 +++++++++++
 arch/arm/boot/dts/am3517.dtsi                      |  4 +-
 arch/arm/mach-omap2/omap_phy_internal.c            |  4 ++
 arch/arm/mach-omap2/usb.h                          |  5 --
 drivers/usb/musb/am35x.c                           | 73
++++++++++++++++++++++
 include/linux/platform_data/usb-omap.h             |  5 ++
 6 files changed, 120 insertions(+), 6 deletions(-)

-- 
2.4.10
--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-10-28 12:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-23 15:42 [PATCH 0/5] Device tree support for AM35xx M-USB driver Rolf Peukert
     [not found] ` <562A557B.4090501-cSCHQGRfioA@public.gmane.org>
2015-10-23 15:44   ` [PATCH 1/5] Make am35x helper function declarations accessible Rolf Peukert
2015-10-23 15:46   ` [PATCH 2/5] Export am35x helper functions Rolf Peukert
     [not found]     ` <562A5655.3000406-cSCHQGRfioA@public.gmane.org>
2015-10-24  1:28       ` Tony Lindgren
2015-10-23 15:51   ` [PATCH 3/5] Add device tree support for M-USB on AM35xx SOCs Rolf Peukert
     [not found]     ` <562A5793.3020200-cSCHQGRfioA@public.gmane.org>
2015-10-28 12:58       ` Sergei Shtylyov
2015-10-23 15:53   ` [PATCH 4/5] Use new MUSB device name in AM3517 device tree Rolf Peukert
2015-10-23 15:57   ` [PATCH 5/5] Add information about the new DT device name Rolf Peukert
     [not found]     ` <562A58DF.5020706-cSCHQGRfioA@public.gmane.org>
2015-10-23 19:40       ` Sergei Shtylyov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.