* [PATCH 1/3] usb: tegra20-ehci: Add devicetree support.
@ 2011-07-19 22:46 achew
2011-07-19 22:46 ` [PATCH 2/3] dt: tegra20: Add ehci host controller nodes achew
[not found] ` <1311115617-9697-1-git-send-email-achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
0 siblings, 2 replies; 13+ messages in thread
From: achew @ 2011-07-19 22:46 UTC (permalink / raw)
To: grant.likely, olof, swarren, dwillemsen, rklein, mogantyv
Cc: devicetree-discuss, linux-tegra, linux-arm-kernel, linux-usb,
linux-kernel, Andrew Chew
From: Andrew Chew <achew@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@nvidia.com>
---
.../devicetree/bindings/usb/tegra20-ehci.txt | 27 +++
arch/arm/mach-tegra/include/mach/usb_phy.h | 2 +-
drivers/usb/host/ehci-tegra.c | 197 +++++++++++++++++++-
3 files changed, 219 insertions(+), 7 deletions(-)
create mode 100644 Documentation/devicetree/bindings/usb/tegra20-ehci.txt
diff --git a/Documentation/devicetree/bindings/usb/tegra20-ehci.txt b/Documentation/devicetree/bindings/usb/tegra20-ehci.txt
new file mode 100644
index 0000000..89168a7
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/tegra20-ehci.txt
@@ -0,0 +1,27 @@
+NVIDIA Tegra20 SOC USB controllers
+
+The device node for a USB controller that is part of a Tegra20
+SOC is as described in the document "Open Firmware Recommended
+Practice : Universal Serial Bus" with the following modifications
+and additions :
+
+Required properties :
+ - compatible : Should be "tegra20-ehci".
+ - mode : Should be <1> for USB device, <2> for USB host, or <3> for USB OTG.
+ - power_down_on_bus_suspend : For host mode only, should be defined if you
+ want the USB phy to power down when the host is suspended.
+ - type : Should be one of "utmi" or "ulpi".
+
+Required properties for type = "utmi". These values are derived from
+characterization by system engineering.
+ - hssync_start_delay
+ - idle_wait_delay
+ - elastic_limit
+ - term_range_adj
+ - xcvr_setup
+ - xcvr_lsfslew
+ - xcvr_lsrslew
+
+Required properties for type = "ulpi":
+ - reset_gpio : The GPIO used to drive reset
+ - clk
diff --git a/arch/arm/mach-tegra/include/mach/usb_phy.h b/arch/arm/mach-tegra/include/mach/usb_phy.h
index d4b8f9e..882af45 100644
--- a/arch/arm/mach-tegra/include/mach/usb_phy.h
+++ b/arch/arm/mach-tegra/include/mach/usb_phy.h
@@ -32,7 +32,7 @@ struct tegra_utmip_config {
struct tegra_ulpi_config {
int reset_gpio;
- const char *clk;
+ char *clk;
};
enum tegra_usb_phy_port_speed {
diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c
index 02b2bfd..47d8586 100644
--- a/drivers/usb/host/ehci-tegra.c
+++ b/drivers/usb/host/ehci-tegra.c
@@ -21,6 +21,14 @@
#include <linux/platform_data/tegra_usb.h>
#include <linux/irq.h>
#include <linux/usb/otg.h>
+
+#if defined(CONFIG_OF)
+#include <linux/of.h>
+#include <linux/of_address.h>
+#include <linux/of_irq.h>
+#include <linux/of_platform.h>
+#endif
+
#include <mach/usb_phy.h>
#define TEGRA_USB_DMA_ALIGN 32
@@ -574,9 +582,130 @@ static const struct hc_driver tegra_ehci_hc_driver = {
.port_handed_over = ehci_port_handed_over,
};
+#if defined(CONFIG_OF)
+static int tegra_ehci_parse_dt_node_utmi(struct device_node *dn,
+ struct platform_device *pdev)
+{
+ struct device *dev = &pdev->dev;
+ struct tegra_ehci_platform_data *pdata = pdev->dev.platform_data;
+ struct tegra_utmip_config *phy_config;
+
+ phy_config = devm_kzalloc(dev, sizeof(struct tegra_utmip_config),
+ GFP_KERNEL);
+ if (!phy_config)
+ return -ENOMEM;
+
+ if (of_property_read_u32(dn, "hssync_start_delay",
+ (u32 *)&phy_config->hssync_start_delay))
+ dev_warn(dev, "Missing property \"hssync_start_delay\"\n");
+
+ if (of_property_read_u32(dn, "elastic_limit",
+ (u32 *)&phy_config->elastic_limit))
+ dev_warn(dev, "Missing property \"elastic_limit\"\n");
+
+ if (of_property_read_u32(dn, "idle_wait_delay",
+ (u32 *)&phy_config->idle_wait_delay))
+ dev_warn(dev, "Missing property \"idle_wait_delay\"\n");
+
+ if (of_property_read_u32(dn, "term_range_adj",
+ (u32 *)&phy_config->term_range_adj))
+ dev_warn(dev, "Missing property \"term_range_adj\"\n");
+
+ if (of_property_read_u32(dn, "xcvr_setup",
+ (u32 *)&phy_config->xcvr_setup))
+ dev_warn(dev, "Missing property \"xcvr_setup\"\n");
+
+ if (of_property_read_u32(dn, "xcvr_lsfslew",
+ (u32 *)&phy_config->xcvr_lsfslew))
+ dev_warn(dev, "Missing property \"xcvr_lsfslew\"\n");
+
+ if (of_property_read_u32(dn, "xcvr_lsrslew",
+ (u32 *)&phy_config->xcvr_lsrslew))
+ dev_warn(dev, "Missing property \"xcvr_lsrslew\"\n");
+
+ pdata->phy_config = phy_config;
+
+ return 0;
+}
+
+static int tegra_ehci_parse_dt_node_ulpi(struct device_node *dn,
+ struct platform_device *pdev)
+{
+ struct device *dev = &pdev->dev;
+ struct tegra_ehci_platform_data *pdata = pdev->dev.platform_data;
+ struct tegra_ulpi_config *phy_config;
+
+ phy_config = devm_kzalloc(dev, sizeof(struct tegra_ulpi_config),
+ GFP_KERNEL);
+ if (!phy_config)
+ return -ENOMEM;
+
+ if (of_property_read_u32(dn, "reset_gpio", &phy_config->reset_gpio))
+ dev_warn(dev, "Missing property \"reset_gpio\"\n");
+
+ if (of_property_read_string(dn, "clk", &phy_config->clk))
+ dev_warn(dev, "Missing property \"clk\"\n");
+
+ pdata->phy_config = phy_config;
+
+ return 0;
+}
+
+static int tegra_ehci_parse_dt_node(struct device_node *dn,
+ struct platform_device *pdev)
+{
+ static u64 tegra_ehci_dmamask = DMA_BIT_MASK(TEGRA_USB_DMA_ALIGN);
+ struct device *dev = &pdev->dev;
+ struct tegra_ehci_platform_data *pdata;
+ char *type;
+ int retval;
+
+ pdata = devm_kzalloc(dev, sizeof(struct tegra_ehci_platform_data),
+ GFP_KERNEL);
+ if (!pdata)
+ return -ENOMEM;
+
+ pdev->dev.platform_data = pdata;
+
+ if (of_property_read_u32(dn, "mode", &pdata->operating_mode))
+ dev_warn(dev, "Missing property \"mode\"\n");
+
+ if (of_find_property(dn, "power_down_on_bus_suspend", NULL))
+ pdata->power_down_on_bus_suspend = 1;
+
+ if (of_property_read_string(dn, "type", &type))
+ dev_warn(dev, "Missing property \"type\"\n");
+
+ if (strcmp(type, "utmi") == 0) {
+ retval = tegra_ehci_parse_dt_node_utmi(dn, pdev);
+ if (retval)
+ goto fail;
+ } else if (strcmp(type, "ulpi") == 0) {
+ retval = tegra_ehci_parse_dt_node_ulpi(dn, pdev);
+ if (retval)
+ goto fail;
+ }
+
+ pdev->dev.dma_mask = &tegra_ehci_dmamask;
+ pdev->dev.coherent_dma_mask = tegra_ehci_dmamask;
+
+ return 0;
+
+fail:
+ devm_kfree(dev, pdata);
+ pdev->dev.platform_data = NULL;
+
+ return retval;
+}
+#endif
+
static int tegra_ehci_probe(struct platform_device *pdev)
{
struct resource *res;
+#if defined(CONFIG_OF)
+ struct device_node *dn = pdev->dev.of_node;
+ struct resource of_res;
+#endif
struct usb_hcd *hcd;
struct tegra_ehci_hcd *tegra;
struct tegra_ehci_platform_data *pdata;
@@ -584,16 +713,31 @@ static int tegra_ehci_probe(struct platform_device *pdev)
int irq;
int instance = pdev->id;
- pdata = pdev->dev.platform_data;
- if (!pdata) {
- dev_err(&pdev->dev, "Platform data missing\n");
- return -EINVAL;
- }
-
tegra = kzalloc(sizeof(struct tegra_ehci_hcd), GFP_KERNEL);
if (!tegra)
return -ENOMEM;
+ /*
+ * See if there's any platform data passed via board files.
+ * If there isn't, then allocate one and fill it by parsing
+ * device tree node.
+ */
+ if (!pdev->dev.platform_data) {
+#if defined(CONFIG_OF)
+ if (tegra_ehci_parse_dt_node(dn, pdev)) {
+ dev_err(&pdev->dev, "Unable to parse dt node\n");
+ err = -EINVAL;
+ goto fail_hcd;
+ }
+#else
+ dev_err(&pdev->dev, "Platform data missing\n");
+ err = -EINVAL;
+ goto fail_hcd;
+#endif
+ }
+
+ pdata = pdev->dev.platform_data;
+
hcd = usb_create_hcd(&tegra_ehci_hc_driver, &pdev->dev,
dev_name(&pdev->dev));
if (!hcd) {
@@ -625,12 +769,28 @@ static int tegra_ehci_probe(struct platform_device *pdev)
clk_enable(tegra->emc_clk);
clk_set_rate(tegra->emc_clk, 400000000);
+ /*
+ * If there isn't an IORESOURCE_MEM defined in the board file,
+ * then try to get that information from the device tree node.
+ */
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res) {
+#if defined(CONFIG_OF)
+ err = of_address_to_resource(dn, 0, &of_res);
+ if (err) {
+ dev_err(&pdev->dev, "Failed to get I/O memory\n");
+ err = -ENXIO;
+ goto fail_io;
+ }
+
+ res = &of_res;
+#else
dev_err(&pdev->dev, "Failed to get I/O memory\n");
err = -ENXIO;
goto fail_io;
+#endif
}
+
hcd->rsrc_start = res->start;
hcd->rsrc_len = resource_size(res);
hcd->regs = ioremap(res->start, resource_size(res));
@@ -658,12 +818,26 @@ static int tegra_ehci_probe(struct platform_device *pdev)
tegra->power_down_on_bus_suspend = pdata->power_down_on_bus_suspend;
tegra->ehci = hcd_to_ehci(hcd);
+ /*
+ * If there isn't an irq defined in the board file, then try to get
+ * that information from the device tree node.
+ */
irq = platform_get_irq(pdev, 0);
if (!irq) {
+#if defined(CONFIG_OF)
+ irq = irq_of_parse_and_map(dn, 0);
+ if (irq == NO_IRQ) {
+ dev_err(&pdev->dev, "Failed to get IRQ\n");
+ err = -ENODEV;
+ goto fail;
+ }
+#else
dev_err(&pdev->dev, "Failed to get IRQ\n");
err = -ENODEV;
goto fail;
+#endif
}
+
set_irq_flags(irq, IRQF_VALID);
#ifdef CONFIG_USB_OTG_UTILS
@@ -761,6 +935,7 @@ static int tegra_ehci_remove(struct platform_device *pdev)
clk_put(tegra->emc_clk);
kfree(tegra);
+
return 0;
}
@@ -773,6 +948,14 @@ static void tegra_ehci_hcd_shutdown(struct platform_device *pdev)
hcd->driver->shutdown(hcd);
}
+static const struct of_device_id tegra_ehci_of_match[] = {
+ {
+ .compatible = "nvidia,tegra20-ehci",
+ },
+ {},
+};
+MODULE_DEVICE_TABLE(of, tegra_ehci_of_match);
+
static struct platform_driver tegra_ehci_driver = {
.probe = tegra_ehci_probe,
.remove = tegra_ehci_remove,
@@ -783,5 +966,7 @@ static struct platform_driver tegra_ehci_driver = {
.shutdown = tegra_ehci_hcd_shutdown,
.driver = {
.name = "tegra-ehci",
+ .owner = THIS_MODULE,
+ .of_match_table = tegra_ehci_of_match,
}
};
--
1.7.6
^ permalink raw reply related [flat|nested] 13+ messages in thread* [PATCH 2/3] dt: tegra20: Add ehci host controller nodes.
2011-07-19 22:46 [PATCH 1/3] usb: tegra20-ehci: Add devicetree support achew
@ 2011-07-19 22:46 ` achew
[not found] ` <1311115617-9697-2-git-send-email-achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-07-19 23:58 ` Olof Johansson
[not found] ` <1311115617-9697-1-git-send-email-achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
1 sibling, 2 replies; 13+ messages in thread
From: achew @ 2011-07-19 22:46 UTC (permalink / raw)
To: grant.likely, olof, swarren, dwillemsen, rklein, mogantyv
Cc: devicetree-discuss, linux-tegra, linux-arm-kernel, linux-usb,
linux-kernel, Andrew Chew
From: Andrew Chew <achew@nvidia.com>
These values were derived from various headers in arch/arm/mach-tegra.
Signed-off-by: Andrew Chew <achew@nvidia.com>
---
arch/arm/boot/dts/tegra20.dtsi | 52 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 52 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi
index 83fedf3..a0353bb 100644
--- a/arch/arm/boot/dts/tegra20.dtsi
+++ b/arch/arm/boot/dts/tegra20.dtsi
@@ -160,5 +160,57 @@
interrupts = < 63 >;
status = "disabled";
};
+
+ ehci@c5000000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "nvidia,tegra20-ehci";
+ reg = <0xc5000000 0x4000>;
+ interrupts = < 52 >;
+ mode = < 1 >;
+ power_down_on_bus_suspend;
+ type = "utmi";
+ hssync_start_delay = < 0 >;
+ idle_wait_delay = < 17 >;
+ elastic_limit = < 16 >;
+ term_range_adj = < 6 >;
+ xcvr_setup = < 15 >;
+ xcvr_lsfslew = < 2 >;
+ xcvr_lsrslew = < 2 >;
+ status = "disabled";
+ };
+
+ ehci@c5004000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "nvidia,tegra20-ehci";
+ reg = <0xc5004000 0x4000>;
+ interrupts = < 53 >;
+ mode = < 1 >;
+ power_down_on_bus_suspend;
+ type = "ulpi";
+ reset_gpio = < 169 >;
+ clk = "cdev2";
+ status = "disabled";
+ };
+
+ ehci@c5008000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "nvidia,tegra20-ehci";
+ reg = <0xc5008000 0x4000>;
+ interrupts = < 129 >;
+ mode = < 1 >;
+ power_down_on_bus_suspend;
+ type = "utmi";
+ hssync_start_delay = < 0 >;
+ idle_wait_delay = < 17 >;
+ elastic_limit = < 16 >;
+ term_range_adj = < 6 >;
+ xcvr_setup = < 8 >;
+ xcvr_lsfslew = < 2 >;
+ xcvr_lsrslew = < 2 >;
+ status = "disabled";
+ };
};
--
1.7.6
^ permalink raw reply related [flat|nested] 13+ messages in thread[parent not found: <1311115617-9697-2-git-send-email-achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>]
* RE: [PATCH 2/3] dt: tegra20: Add ehci host controller nodes.
[not found] ` <1311115617-9697-2-git-send-email-achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
@ 2011-07-19 23:00 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF049EBDED27-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
0 siblings, 1 reply; 13+ messages in thread
From: Stephen Warren @ 2011-07-19 23:00 UTC (permalink / raw)
To: grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org,
olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org, Dan Willemsen,
Rhyland Klein <rkle>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Andrew Chew
achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org wrote at Tuesday, July 19, 2011 4:47 PM:
> From: Andrew Chew <achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>
> These values were derived from various headers in arch/arm/mach-tegra.
>
> Signed-off-by: Andrew Chew <achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> ---
> arch/arm/boot/dts/tegra20.dtsi | 52 ++++++++++++++++++++++++++++++++++++++++
> 1 files changed, 52 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi
> index 83fedf3..a0353bb 100644
> --- a/arch/arm/boot/dts/tegra20.dtsi
> +++ b/arch/arm/boot/dts/tegra20.dtsi
> @@ -160,5 +160,57 @@
> interrupts = < 63 >;
> status = "disabled";
> };
> +
> + ehci@c5000000 {
> + #address-cells = <1>;
> + #size-cells = <0>;
I don't think those two properties are needed for an EHCI node; children
of the EHCI controller are probed rather than specified in device tree.
> + compatible = "nvidia,tegra20-ehci";
> + reg = <0xc5000000 0x4000>;
> + interrupts = < 52 >;
> + mode = < 1 >;
Should we make mode a string; device, host, or otg?
> + power_down_on_bus_suspend;
> + type = "utmi";
> + hssync_start_delay = < 0 >;
> + idle_wait_delay = < 17 >;
> + elastic_limit = < 16 >;
> + term_range_adj = < 6 >;
> + xcvr_setup = < 15 >;
> + xcvr_lsfslew = < 2 >;
> + xcvr_lsrslew = < 2 >;
> + status = "disabled";
In the latest devicetree/test, tegra20.dtsi doesn't specify status for
any nodes, but leaves everything enabled. Instead, board-specific files
disable any unused devices.
> + };
> +
> + ehci@c5004000 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + compatible = "nvidia,tegra20-ehci";
> + reg = <0xc5004000 0x4000>;
> + interrupts = < 53 >;
> + mode = < 1 >;
> + power_down_on_bus_suspend;
> + type = "ulpi";
> + reset_gpio = < 169 >;
> + clk = "cdev2";
> + status = "disabled";
> + };
> +
> + ehci@c5008000 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + compatible = "nvidia,tegra20-ehci";
> + reg = <0xc5008000 0x4000>;
> + interrupts = < 129 >;
> + mode = < 1 >;
> + power_down_on_bus_suspend;
> + type = "utmi";
> + hssync_start_delay = < 0 >;
> + idle_wait_delay = < 17 >;
> + elastic_limit = < 16 >;
> + term_range_adj = < 6 >;
> + xcvr_setup = < 8 >;
> + xcvr_lsfslew = < 2 >;
> + xcvr_lsrslew = < 2 >;
> + status = "disabled";
> + };
> };
>
> --
> 1.7.6
--
nvpublic
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 2/3] dt: tegra20: Add ehci host controller nodes.
2011-07-19 22:46 ` [PATCH 2/3] dt: tegra20: Add ehci host controller nodes achew
[not found] ` <1311115617-9697-2-git-send-email-achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
@ 2011-07-19 23:58 ` Olof Johansson
1 sibling, 0 replies; 13+ messages in thread
From: Olof Johansson @ 2011-07-19 23:58 UTC (permalink / raw)
To: achew
Cc: grant.likely, swarren, dwillemsen, rklein, mogantyv,
devicetree-discuss, linux-tegra, linux-arm-kernel, linux-usb,
linux-kernel
Hi,
On Tue, Jul 19, 2011 at 3:46 PM, <achew@nvidia.com> wrote:
> From: Andrew Chew <achew@nvidia.com>
>
> These values were derived from various headers in arch/arm/mach-tegra.
>
> Signed-off-by: Andrew Chew <achew@nvidia.com>
> ---
> arch/arm/boot/dts/tegra20.dtsi | 52 ++++++++++++++++++++++++++++++++++++++++
> 1 files changed, 52 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi
> index 83fedf3..a0353bb 100644
> --- a/arch/arm/boot/dts/tegra20.dtsi
> +++ b/arch/arm/boot/dts/tegra20.dtsi
> @@ -160,5 +160,57 @@
> interrupts = < 63 >;
> status = "disabled";
> };
> +
> + ehci@c5000000 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + compatible = "nvidia,tegra20-ehci";
> + reg = <0xc5000000 0x4000>;
> + interrupts = < 52 >;
> + mode = < 1 >;
> + power_down_on_bus_suspend;
> + type = "utmi";
> + hssync_start_delay = < 0 >;
> + idle_wait_delay = < 17 >;
> + elastic_limit = < 16 >;
> + term_range_adj = < 6 >;
> + xcvr_setup = < 15 >;
> + xcvr_lsfslew = < 2 >;
> + xcvr_lsrslew = < 2 >;
> + status = "disabled";
These are mostly phy related settings, maybe do a phy subnode with
them? That way the usb_phy code can probe on that.
-Olof
^ permalink raw reply [flat|nested] 13+ messages in thread
[parent not found: <1311115617-9697-1-git-send-email-achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>]
* [PATCH 3/3] dt: tegra20: Add ehci nodes to Seaboard.
[not found] ` <1311115617-9697-1-git-send-email-achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
@ 2011-07-19 22:46 ` achew-DDmLM1+adcrQT0dZR+AlfA
[not found] ` <1311115617-9697-3-git-send-email-achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-07-19 22:56 ` [PATCH 1/3] usb: tegra20-ehci: Add devicetree support Stephen Warren
1 sibling, 1 reply; 13+ messages in thread
From: achew-DDmLM1+adcrQT0dZR+AlfA @ 2011-07-19 22:46 UTC (permalink / raw)
To: grant.likely-s3s/WqlpOiPyB63q8FvJNQ, olof-nZhT3qVonbNeoWH0uzbU5w,
swarren-DDmLM1+adcrQT0dZR+AlfA, dwillemsen-DDmLM1+adcrQT0dZR+AlfA,
rklein-DDmLM1+adcrQT0dZR+AlfA, mogantyv-DDmLM1+adcrQT0dZR+AlfA
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
linux-tegra-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-usb-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Andrew Chew
From: Andrew Chew <achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Signed-off-by: Andrew Chew <achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
arch/arm/boot/dts/tegra-seaboard.dts | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/tegra-seaboard.dts b/arch/arm/boot/dts/tegra-seaboard.dts
index 5a99b4c..c5a1b71 100644
--- a/arch/arm/boot/dts/tegra-seaboard.dts
+++ b/arch/arm/boot/dts/tegra-seaboard.dts
@@ -31,4 +31,16 @@
sdhci@c8000600 {
status = "ok";
};
+
+ ehci@c5000000 {
+ status = "ok";
+ };
+
+ ehci@c5004000 {
+ status = "ok";
+ };
+
+ ehci@c5008000 {
+ status = "ok";
+ };
};
--
1.7.6
--
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 related [flat|nested] 13+ messages in thread* RE: [PATCH 1/3] usb: tegra20-ehci: Add devicetree support.
[not found] ` <1311115617-9697-1-git-send-email-achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-07-19 22:46 ` [PATCH 3/3] dt: tegra20: Add ehci nodes to Seaboard achew-DDmLM1+adcrQT0dZR+AlfA
@ 2011-07-19 22:56 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF049EBDED24-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
1 sibling, 1 reply; 13+ messages in thread
From: Stephen Warren @ 2011-07-19 22:56 UTC (permalink / raw)
To: Andrew Chew, grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org,
olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org, Dan Willemsen,
Rhyland Klein <rklein>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org wrote at Tuesday, July 19, 2011 4:47 PM:
> From: Andrew Chew <achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>
> 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-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> ---
> .../devicetree/bindings/usb/tegra20-ehci.txt | 27 +++
> arch/arm/mach-tegra/include/mach/usb_phy.h | 2 +-
> drivers/usb/host/ehci-tegra.c | 197 +++++++++++++++++++-
> 3 files changed, 219 insertions(+), 7 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/usb/tegra20-ehci.txt
I sent a variety of comments on this patch internally to Andrew, but the
email crossed paths with the posting to the public mailing lists. I won't
bother repeating those comments here, but I assume they'll be addressed
in a new version of this patch.
--
nvpublic
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2011-07-20 0:14 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-19 22:46 [PATCH 1/3] usb: tegra20-ehci: Add devicetree support achew
2011-07-19 22:46 ` [PATCH 2/3] dt: tegra20: Add ehci host controller nodes achew
[not found] ` <1311115617-9697-2-git-send-email-achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-07-19 23:00 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF049EBDED27-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-07-19 23:15 ` Stephen Warren
2011-07-19 23:58 ` Olof Johansson
[not found] ` <1311115617-9697-1-git-send-email-achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-07-19 22:46 ` [PATCH 3/3] dt: tegra20: Add ehci nodes to Seaboard achew-DDmLM1+adcrQT0dZR+AlfA
[not found] ` <1311115617-9697-3-git-send-email-achew-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-07-19 23:04 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF049EBDED2A-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-07-19 23:50 ` Andrew Chew
[not found] ` <643E69AA4436674C8F39DCC2C05F76383CF0DD2271-lR+7xdUAJVNDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-07-19 23:53 ` Olof Johansson
[not found] ` <CAOesGMj247ekXj1FPmb-ZXqxTV4PsmAiCme005TGKm7cnBdOPQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-07-20 0:07 ` Andrew Chew
[not found] ` <643E69AA4436674C8F39DCC2C05F76383CF0DD2272-lR+7xdUAJVNDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-07-20 0:14 ` Olof Johansson
2011-07-19 22:56 ` [PATCH 1/3] usb: tegra20-ehci: Add devicetree support Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF049EBDED24-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-07-19 22:59 ` Grant Likely
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).