* MPC5121e - using both USB modules
@ 2010-03-17 13:56 LD
2010-03-17 14:24 ` Wolfram Sang
0 siblings, 1 reply; 2+ messages in thread
From: LD @ 2010-03-17 13:56 UTC (permalink / raw)
To: Linux ppc mailing list
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
I am working on a custom MPC5121e board, adapting 2.6.24 kernel.
The board has two USB ports:
- - cell-index 0 uses internal phy
- - cell-index 1 uses external phy
For mechanical/commercial reasons I cannot use Mini-A / Mini-B connectors, so I
have two "host" connectors, but the board should be capable of doing host or
device by dip-switch selection and using an external M/M connector adapter.
First I enabled cell-index 0 only in dts file, dr_mode = "otg", used OTG kernel
modules ; I succeeded in switching from host to device mode : port 0 is working.
Cell-index 1: disabled cell 0 and wrote some tweaks in drivers to enable correct
USB clocks (I saw some recent patches about this), then realized that the
hardware people have chosen a wrong ULPI phy (CY7C68003), which is capable of
doing only device, not host (arrrggghh !!) ; next boards will have a different
phy (capable of OTG).
I have some preliminary boards with this Cypress phy and tried enabling this
cell in otg mode to try and see if I can work in device mode, but strange things
- - ehci_hub_control complains. I suppose the phy is not ok to work this way.
Now I am trying to arrive to something like:
cell-0 : dr_mode = otg
cell-1 : dr_mode = peripheral
This way I could save the preliminary boards, with cell-1 working only as a usb
device. I am having problems with processor reset in inserting modules, still
not clear what is happening.
Anyway, final target will be (new boards):
cell-0 : dr_mode = otg
cell-1 : dr_mode = otg
Each port will have its dip-switch to select host or device mode.
So, here we are:
- - anyone having some suggestions or link to documentation please ?
- - is it possible to have two ports working as "peripheral" ? Not necessary for
me, but just to understand the "linux" constraints (if any).
I could, for example, use file_storage to one USB cell and ethernet-dev to the
other...
I also have to investigate how to tell file_storage which USB cell to use : map
both USB cells to the same pseudo-disk seems not good.
Thanks,
best regards
Lucio Dona'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iD8DBQFLoN+FvxHCsvXy9okRAtvfAJ4pEaBgPfmKLVRgczx3C1yYlQ8QdwCfYoyO
0KCTXBxZrALLHG/7BziuZpA=
=W1D6
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: MPC5121e - using both USB modules
2010-03-17 13:56 MPC5121e - using both USB modules LD
@ 2010-03-17 14:24 ` Wolfram Sang
0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2010-03-17 14:24 UTC (permalink / raw)
To: LD; +Cc: Linux ppc mailing list
[-- Attachment #1: Type: text/plain, Size: 547 bytes --]
On Wed, Mar 17, 2010 at 02:56:22PM +0100, LD wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all,
> I am working on a custom MPC5121e board, adapting 2.6.24 kernel.
This is probably the Freescale-provided kernel, so you should ask them.
Or, even better, use the current mainline kernel and check the newly
merged MPC5121-patches :)
Regards,
Wolfram
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-17 14:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-17 13:56 MPC5121e - using both USB modules LD
2010-03-17 14:24 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).