OSDN Git Service

ARM: dts: Fix USB dts configuration for dm816x
authorTony Lindgren <tony@atomide.com>
Tue, 24 Feb 2015 16:48:52 +0000 (08:48 -0800)
committerTony Lindgren <tony@atomide.com>
Tue, 24 Feb 2015 16:48:52 +0000 (08:48 -0800)
commita54879a0085993c06be5630321d962d6b48e134f
tree043259ad5445c7f2c6fcec9f708dbb40e5815473
parenta0182724abd82ad90e0312db0da60a2f2d0442f1
ARM: dts: Fix USB dts configuration for dm816x

Commit 7800064ba507 ("ARM: dts: Add basic dm816x device tree
configuration") added basic devices for dm816x, but I was not able
to test the USB completely because of an unconfigured USB phy, and
I only tested it to make sure the Mentor chips are detected and
clocked without a phy.

After testing the USB with actual devices I noticed a few issues
that should be fixed to avoid confusion:

- The USB id pin on dm8168-evm is hardwired and can be changed
  only by software. As there are two USB-A type connectors, let's
  start both in host mode instead of otg.

- The Mentor core is configured in such a way on dm8168-evm that
  it's not capable of multipoint at least on revision c board
  that I have.

- We need ranges for the syscon to properly set up the phy as
  children of the SCM syscon area.

- Let's not disable the second interface, the board specific
  dts files can do that if really needed. Most boards should
  just keep it enabled to ensure the device is idled properly.

Note that also a phy and several musb fixes are still needed to
make the USB to work properly in addition to this fix.

Cc: Brian Hutchinson <b.hutchman@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/dm8168-evm.dts
arch/arm/boot/dts/dm816x.dtsi