* [U-Boot] [PATCH] ARM: tegra: enable USB device mode port on Dalmore
@ 2016-02-11 16:19 Stephen Warren
2016-02-15 1:18 ` Simon Glass
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Warren @ 2016-02-11 16:19 UTC (permalink / raw)
To: u-boot
From: Stephen Warren <swarren@nvidia.com>
This allows U-Boot to expose UMS and DFU protocols on this port in device
mode, or to act as a USB host on the port, using an "OTG" (micro-B to
female A host) cable.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
arch/arm/dts/tegra114-dalmore.dts | 9 ++++++++-
include/configs/dalmore.h | 2 ++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/arch/arm/dts/tegra114-dalmore.dts b/arch/arm/dts/tegra114-dalmore.dts
index 51ff266d760a..49195c35964a 100644
--- a/arch/arm/dts/tegra114-dalmore.dts
+++ b/arch/arm/dts/tegra114-dalmore.dts
@@ -18,7 +18,8 @@
i2c4 = "/i2c at 7000c700";
sdhci0 = "/sdhci at 78000600";
sdhci1 = "/sdhci at 78000400";
- usb0 = "/usb at 7d008000";
+ usb0 = "/usb at 7d000000";
+ usb1 = "/usb at 7d008000";
};
memory {
@@ -67,6 +68,12 @@
status = "okay";
};
+ usb at 7d000000 {
+ status = "okay";
+ dr_mode = "otg";
+ nvidia,vbus-gpio = <&gpio TEGRA_GPIO(N, 4) GPIO_ACTIVE_HIGH>;
+ };
+
usb at 7d008000 {
nvidia,vbus-gpio = <&gpio TEGRA_GPIO(K, 6) GPIO_ACTIVE_HIGH>;
status = "okay";
diff --git a/include/configs/dalmore.h b/include/configs/dalmore.h
index fdfda6b90348..917573da4368 100644
--- a/include/configs/dalmore.h
+++ b/include/configs/dalmore.h
@@ -48,6 +48,7 @@
/* USB Host support */
#define CONFIG_USB_EHCI
#define CONFIG_USB_EHCI_TEGRA
+#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
#define CONFIG_USB_STORAGE
#define CONFIG_CMD_USB
@@ -58,6 +59,7 @@
/* General networking support */
#define CONFIG_CMD_DHCP
+#include "tegra-common-usb-gadget.h"
#include "tegra-common-post.h"
#endif /* __CONFIG_H */
--
2.7.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* [U-Boot] [PATCH] ARM: tegra: enable USB device mode port on Dalmore
2016-02-11 16:19 [U-Boot] [PATCH] ARM: tegra: enable USB device mode port on Dalmore Stephen Warren
@ 2016-02-15 1:18 ` Simon Glass
2016-02-15 2:29 ` Stephen Warren
0 siblings, 1 reply; 3+ messages in thread
From: Simon Glass @ 2016-02-15 1:18 UTC (permalink / raw)
To: u-boot
Hi Stephen,
On 11 February 2016 at 09:19, Stephen Warren <swarren@wwwdotorg.org> wrote:
> From: Stephen Warren <swarren@nvidia.com>
>
> This allows U-Boot to expose UMS and DFU protocols on this port in device
> mode, or to act as a USB host on the port, using an "OTG" (micro-B to
> female A host) cable.
>
> Signed-off-by: Stephen Warren <swarren@nvidia.com>
> ---
> arch/arm/dts/tegra114-dalmore.dts | 9 ++++++++-
> include/configs/dalmore.h | 2 ++
> 2 files changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/dts/tegra114-dalmore.dts b/arch/arm/dts/tegra114-dalmore.dts
> index 51ff266d760a..49195c35964a 100644
> --- a/arch/arm/dts/tegra114-dalmore.dts
> +++ b/arch/arm/dts/tegra114-dalmore.dts
> @@ -18,7 +18,8 @@
> i2c4 = "/i2c at 7000c700";
> sdhci0 = "/sdhci at 78000600";
> sdhci1 = "/sdhci at 78000400";
> - usb0 = "/usb at 7d008000";
> + usb0 = "/usb at 7d000000";
> + usb1 = "/usb at 7d008000";
> };
>
> memory {
> @@ -67,6 +68,12 @@
> status = "okay";
> };
>
> + usb at 7d000000 {
> + status = "okay";
> + dr_mode = "otg";
> + nvidia,vbus-gpio = <&gpio TEGRA_GPIO(N, 4) GPIO_ACTIVE_HIGH>;
> + };
> +
> usb at 7d008000 {
> nvidia,vbus-gpio = <&gpio TEGRA_GPIO(K, 6) GPIO_ACTIVE_HIGH>;
> status = "okay";
> diff --git a/include/configs/dalmore.h b/include/configs/dalmore.h
> index fdfda6b90348..917573da4368 100644
> --- a/include/configs/dalmore.h
> +++ b/include/configs/dalmore.h
> @@ -48,6 +48,7 @@
> /* USB Host support */
> #define CONFIG_USB_EHCI
> #define CONFIG_USB_EHCI_TEGRA
> +#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
This shouldn't be needed with driver model (CONFIG_DM_USB). What
effect does it have?
> #define CONFIG_USB_STORAGE
> #define CONFIG_CMD_USB
>
> @@ -58,6 +59,7 @@
> /* General networking support */
> #define CONFIG_CMD_DHCP
>
> +#include "tegra-common-usb-gadget.h"
> #include "tegra-common-post.h"
>
> #endif /* __CONFIG_H */
> --
> 2.7.0
>
Regards,
Simon
^ permalink raw reply [flat|nested] 3+ messages in thread* [U-Boot] [PATCH] ARM: tegra: enable USB device mode port on Dalmore
2016-02-15 1:18 ` Simon Glass
@ 2016-02-15 2:29 ` Stephen Warren
0 siblings, 0 replies; 3+ messages in thread
From: Stephen Warren @ 2016-02-15 2:29 UTC (permalink / raw)
To: u-boot
On 02/14/2016 06:18 PM, Simon Glass wrote:
> Hi Stephen,
>
> On 11 February 2016 at 09:19, Stephen Warren <swarren@wwwdotorg.org> wrote:
>> From: Stephen Warren <swarren@nvidia.com>
>>
>> This allows U-Boot to expose UMS and DFU protocols on this port in device
>> mode, or to act as a USB host on the port, using an "OTG" (micro-B to
>> female A host) cable.
>> diff --git a/include/configs/dalmore.h b/include/configs/dalmore.h
>> +#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
>
> This shouldn't be needed with driver model (CONFIG_DM_USB). What
> effect does it have?
It might have no effect. However, I added it to keep the content of all
Tegra config headers identical (at least those that enable USB device
mode w.r.t. this line). Perhaps this line should be removed from all the
other headers too?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-02-15 2:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-11 16:19 [U-Boot] [PATCH] ARM: tegra: enable USB device mode port on Dalmore Stephen Warren
2016-02-15 1:18 ` Simon Glass
2016-02-15 2:29 ` Stephen Warren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox