[PATCH 1/3 v2] usb: tegra20-ehci: Add devicetree support.

Stephen Warren swarren at nvidia.com
Thu Jul 21 05:51:08 EST 2011


achew at nvidia.com wrote at Wednesday, July 20, 2011 1:38 PM:
> From: Andrew Chew <achew at nvidia.com>
> 
> Add code to try to get platform data information (register base, irq,
> modes, various tuning parameters) from device tree, if not present in board
> files.
> 
> Signed-off-by: Andrew Chew <achew at nvidia.com>

> +++ b/Documentation/devicetree/bindings/usb/tegra20-ehci.txt
...
> +Required properties for type = "ulpi":
> + - reset_gpio: The GPIO used to drive reset
> + - clk

We should probably document what this is. I know you're finding out more
about this internally.

> diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c
> +	retval = of_property_read_u32(dn, "power_down_on_bus_suspend",
> +				      &pdata->power_down_on_bus_suspend);

Sorry I missed this before, but perhaps we should skip reading that
property unless mode=="host"?

Otherwise,
Acked-by: Stephen Warren <swarren at nvidia.com>

-- 
nvpublic



More information about the devicetree-discuss mailing list