Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: ehci-platform: support EHCIs with transaction translator

Some EHCI controllers have a Transaction Translator built into
the root hub. Support this feature in device tree when using
the ehci-platform driver by adding a feature flag for it.

This is needed to get USB working on NXP LPC18xx/43xx platforms.

Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Joachim Eastwood and committed by
Greg Kroah-Hartman
40f2f2a3 ca07e1c1

+6
+2
Documentation/devicetree/bindings/usb/usb-ehci.txt
··· 13 13 - big-endian-desc : boolean, set this for hcds with big-endian descriptors 14 14 - big-endian : boolean, for hcds with big-endian-regs + big-endian-desc 15 15 - needs-reset-on-resume : boolean, set this to force EHCI reset after resume 16 + - has-transaction-translator : boolean, set this if EHCI have a Transaction 17 + Translator built into the root hub. 16 18 - clocks : a list of phandle + clock specifier pairs 17 19 - phys : phandle + phy specifier pair 18 20 - phy-names : "usb"
+4
drivers/usb/host/ehci-platform.c
··· 202 202 "needs-reset-on-resume")) 203 203 pdata->reset_on_resume = 1; 204 204 205 + if (of_property_read_bool(dev->dev.of_node, 206 + "has-transaction-translator")) 207 + pdata->has_tt = 1; 208 + 205 209 priv->num_phys = of_count_phandle_with_args(dev->dev.of_node, 206 210 "phys", "#phy-cells"); 207 211 priv->num_phys = priv->num_phys > 0 ? priv->num_phys : 1;