Skip to contentSkip to conversation

OMAP3EVM: ehci: Fix EHCI support

PATCH Superseded Bryan DE FARIA 2 participants 6 messages Aug 24, 2011

Subsystems (3)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 OMAP3EVM: ehci: Fix EHCI support

Set the VAUX2 regulator supply to 1.8V for the HSUSB host interface. Gpio 2 of the TPS65950 has to be set to zero in order to enable the HSUBS2 clock.

---
 arch/arm/mach-omap2/board-omap3evm.c |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/board-omap3evm.c +25 -0
index c452b3f..13a2b71 100644
@@ -377,6 +377,10 @@ static int omap3evm_twl_gpio_setup(struct device *dev,
 	if (r)
 		printk(KERN_ERR "failed to get/set lcd_bkl gpio\n");
 
+	/* gpio + 2 == HSUSB2 Clock Enable */
+	if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2)
+		gpio_request_one(gpio + 2, GPIOF_OUT_INIT_LOW, "EN_HSUSB2_CLK");
+
 	/* gpio + 7 == DVI Enable */
 	gpio_request_one(gpio + 7, GPIOF_OUT_INIT_LOW, "EN_DVI");
 
@@ -450,6 +454,25 @@ static struct regulator_init_data omap3evm_vio = {
 	.consumer_supplies	= omap3evm_vio_supply,
 };
 
+/* VAUX2 for EHCI */
+static struct regulator_consumer_supply omap3evm_vaux2_supplies[] = {
+	REGULATOR_SUPPLY("hsusb1", "ehci-omap.0"),
+};
+
+static struct regulator_init_data omap3evm_vaux2 = {
+	.constraints = {
+		.min_uV      		= 1800000,
+		.max_uV      		= 1800000,
+		.apply_uV    		= true,
+		.valid_modes_mask  	= REGULATOR_MODE_NORMAL
+					| REGULATOR_MODE_STANDBY,
+		.valid_ops_mask  	= REGULATOR_CHANGE_MODE
+					| REGULATOR_CHANGE_STATUS,
+	},
+	.num_consumer_supplies  = ARRAY_SIZE(omap3evm_vaux2_supplies),
+	.consumer_supplies   	= omap3evm_vaux2_supplies,
+};
+
 #ifdef CONFIG_WL12XX_PLATFORM_DATA
 
 #define OMAP3EVM_WLAN_PMENA_GPIO	(150)
@@ -510,6 +533,8 @@ static int __init omap3_evm_i2c_init(void)
 
 	omap3evm_twldata.vdac->constraints.apply_uV = true;
 	omap3evm_twldata.vpll2->constraints.apply_uV = true;
+	if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2)
+		omap3evm_twldata.vaux2 = &omap3evm_vaux2;
 
 	omap3_pmic_init("twl4030", &omap3evm_twldata);
 	omap_register_i2c_bus(2, 400, NULL, 0);
Signature · 1 line
1.7.4.1
#1 lore raw

PATCH v2 1/1 OMAP3EVM: ehci: Fix EHCI support

Hi,

Quoted 3 lines

Set the VAUX2 regulator supply to 1.8V for the HSUSB host interface. Gpio 2 of the TPS65950 has to be set to zero in order to enable the HSUBS2 clock.

TPS65950 GPIO2 is not to enable HSUSB2 clock but to enable chip u131 On omap3evm (rev-G) which latches USB, camera and audio lines.

Quoted 12 lines
---
 arch/arm/mach-omap2/board-omap3evm.c |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)
arch/arm/mach- renamed from arch/arm/mach-omap2/board-omap3evm.c +0 -0

omap2/board-omap3evm.c
index c452b3f..13a2b71 100644

arch/arm/mach-omap2/board-omap3evm.c static int omap3evm_twl_gpio_setup(struct device · line 385

Quoted 9 lines
arch/arm/mach-omap2/board-omap3evm.c +4 -0
@@ -377,6 +377,10 @@ static int omap3evm_twl_gpio_setup(struct device
 *dev,
 	if (r)
 		printk(KERN_ERR "failed to get/set lcd_bkl gpio\n");
 
+	/* gpio + 2 == HSUSB2 Clock Enable */
+	if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2)
+		gpio_request_one(gpio + 2, GPIOF_OUT_INIT_LOW,
 "EN_HSUSB2_CLK");
+

Did you test EHCI port with this change ?

Ajay

Quoted 2 lines
arch/arm/mach-omap2/board-omap3evm.c +0 -0
 	/* gpio + 7 == DVI Enable */

gpio_request_one(gpio + 7, GPIOF_OUT_INIT_LOW, "EN_DVI");

[...]
rm-kernel

#2 lore raw

PATCH v2 1/1 OMAP3EVM: ehci: Fix EHCI support

Hi Ajay,

TPS65950 GPIO2 is to choose through u131 if we drive the lines to the evm mother board or to the expansion connector p18. Should not it be default to the mother board?
The EHCI port on the mother board works with this patch.

Bryan

Quoted 37 lines

Hi,

Quoted 3 lines

Set the VAUX2 regulator supply to 1.8V for the HSUSB host interface. Gpio 2 of the TPS65950 has to be set to zero in order to enable the HSUBS2 clock.

TPS65950 GPIO2 is not to enable HSUSB2 clock but to enable chip u131 On omap3evm (rev-G) which latches USB, camera and audio lines.

Quoted 12 lines
---
 arch/arm/mach-omap2/board-omap3evm.c |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)
arch/arm/mach- renamed from arch/arm/mach-omap2/board-omap3evm.c +0 -0

omap2/board-omap3evm.c
index c452b3f..13a2b71 100644

arch/arm/mach-omap2/board-omap3evm.c static int omap3evm_twl_gpio_setup(struct device · line 385

Quoted 9 lines
arch/arm/mach-omap2/board-omap3evm.c +4 -0
@@ -377,6 +377,10 @@ static int omap3evm_twl_gpio_setup(struct device
 *dev,
 	if (r)
 		printk(KERN_ERR "failed to get/set lcd_bkl gpio\n");
 
+	/* gpio + 2 == HSUSB2 Clock Enable */
+	if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2)
+		gpio_request_one(gpio + 2, GPIOF_OUT_INIT_LOW,
 "EN_HSUSB2_CLK");
+

Did you test EHCI port with this change ?

Ajay

Quoted 2 lines
arch/arm/mach-omap2/board-omap3evm.c +0 -0
 	/* gpio + 7 == DVI Enable */

gpio_request_one(gpio + 7, GPIOF_OUT_INIT_LOW, "EN_DVI");

[...]
rm-kernel

#3 lore raw

PATCH v2 1/1 OMAP3EVM: ehci: Fix EHCI support

Hi,

Quoted 3 lines

TPS65950 GPIO2 is to choose through u131 if we drive the lines to the evm mother board or to the expansion connector p18. Should not it be default to the mother board?

It's not enabled by default and that?s why we need to enable it through Tps65950 GPIO2.

Your patch looks fine but the comment and name needs to be changed as There is no clock which gets enabled using gpio2. All the HSUSB clocks Are handled inside driver at drivers/usb/host/ehci-omap.c

Ajay

Quoted 44 lines

The EHCI port on the mother board works with this patch.

Bryan

Quoted 2 lines

Hi,

Quoted 1 line

Set the VAUX2 regulator supply to 1.8V for the HSUSB host

interface.

Quoted 10 lines
Quoted 2 lines

Gpio 2 of the TPS65950 has to be set to zero in order to enable the HSUBS2 clock.

TPS65950 GPIO2 is not to enable HSUSB2 clock but to enable chip u131 On omap3evm (rev-G) which latches USB, camera and audio lines.

Quoted 4 lines
---
 arch/arm/mach-omap2/board-omap3evm.c |   25

+++++++++++++++++++++++++

Quoted 8 lines

arch/arm/mach-omap2/board-omap3evm.c static int omap3evm_twl_gpio_setup(struct

Quoted 8 lines
 1 files changed, 25 insertions(+), 0 deletions(-)
arch/arm/mach- renamed from arch/arm/mach-omap2/board-omap3evm.c +0 -0

omap2/board-omap3evm.c
index c452b3f..13a2b71 100644

arch/arm/mach-omap2/board-omap3evm.c +0 -0
@@ -377,6 +377,10 @@ static int omap3evm_twl_gpio_setup(struct

device

Quoted 17 lines

arch/arm/mach-omap2/board-omap3evm.c static int omap3evm_twl_gpio_setup(struct device *dev, · line 383

Quoted 9 lines
arch/arm/mach-omap2/board-omap3evm.c +4 -0
 *dev,
 	if (r)
 		printk(KERN_ERR "failed to get/set lcd_bkl gpio\n");
 
+	/* gpio + 2 == HSUSB2 Clock Enable */
+	if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2)
+		gpio_request_one(gpio + 2, GPIOF_OUT_INIT_LOW,
 "EN_HSUSB2_CLK");
+

Did you test EHCI port with this change ?

Ajay

Quoted 2 lines
arch/arm/mach-omap2/board-omap3evm.c +0 -0
 	/* gpio + 7 == DVI Enable */

gpio_request_one(gpio + 7, GPIOF_OUT_INIT_LOW, "EN_DVI");

[...]
rm-kernel

#4 lore raw

PATCH v2 1/1 OMAP3EVM: ehci: Fix EHCI support

Hi,

For the comment what about:
Set the VAUX2 regulator supply to 1.8V for the HSUSB host interface. Tps65950 GPIO2 has to be set to zero in order to enable the EHCI select line.

I see this patch as a fix for the EHCI support, what would you suggest for the patch name?

Bryan

Quoted 58 lines

Hi,

Quoted 3 lines

TPS65950 GPIO2 is to choose through u131 if we drive the lines to the evm mother board or to the expansion connector p18. Should not it be default to the mother board?

It's not enabled by default and that?s why we need to enable it through Tps65950 GPIO2.

Your patch looks fine but the comment and name needs to be changed as There is no clock which gets enabled using gpio2. All the HSUSB clocks Are handled inside driver at drivers/usb/host/ehci-omap.c

Ajay

Quoted 44 lines

The EHCI port on the mother board works with this patch.

Bryan

Quoted 2 lines

Hi,

Quoted 1 line

Set the VAUX2 regulator supply to 1.8V for the HSUSB host

interface.

Quoted 10 lines
Quoted 2 lines

Gpio 2 of the TPS65950 has to be set to zero in order to enable the HSUBS2 clock.

TPS65950 GPIO2 is not to enable HSUSB2 clock but to enable chip u131 On omap3evm (rev-G) which latches USB, camera and audio lines.

Quoted 4 lines
---
 arch/arm/mach-omap2/board-omap3evm.c |   25

+++++++++++++++++++++++++

Quoted 8 lines

arch/arm/mach-omap2/board-omap3evm.c static int omap3evm_twl_gpio_setup(struct

Quoted 8 lines
 1 files changed, 25 insertions(+), 0 deletions(-)
arch/arm/mach- renamed from arch/arm/mach-omap2/board-omap3evm.c +0 -0

omap2/board-omap3evm.c
index c452b3f..13a2b71 100644

arch/arm/mach-omap2/board-omap3evm.c +0 -0
@@ -377,6 +377,10 @@ static int omap3evm_twl_gpio_setup(struct

device

Quoted 17 lines

arch/arm/mach-omap2/board-omap3evm.c static int omap3evm_twl_gpio_setup(struct device *dev, · line 383

Quoted 9 lines
arch/arm/mach-omap2/board-omap3evm.c +4 -0
 *dev,
 	if (r)
 		printk(KERN_ERR "failed to get/set lcd_bkl gpio\n");
 
+	/* gpio + 2 == HSUSB2 Clock Enable */
+	if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2)
+		gpio_request_one(gpio + 2, GPIOF_OUT_INIT_LOW,
 "EN_HSUSB2_CLK");
+

Did you test EHCI port with this change ?

Ajay

Quoted 2 lines
arch/arm/mach-omap2/board-omap3evm.c +0 -0
 	/* gpio + 7 == DVI Enable */

gpio_request_one(gpio + 7, GPIOF_OUT_INIT_LOW, "EN_DVI");

[...]
rm-kernel

#5 lore raw

PATCH v2 1/1 OMAP3EVM: ehci: Fix EHCI support

Hi,

Quoted 4 lines

For the comment what about:
Set the VAUX2 regulator supply to 1.8V for the HSUSB host interface. Tps65950 GPIO2 has to be set to zero in order to enable the EHCI select line.

Looks fine.

Quoted 3 lines

I see this patch as a fix for the EHCI support, what would you suggest for the patch name?

This is also fine.

Ajay

Quoted 67 lines

Bryan

Quoted 2 lines

Hi,

Quoted 1 line

TPS65950 GPIO2 is to choose through u131 if we drive the lines to

the

Quoted 1 line
Quoted 1 line

evm mother board or to the expansion connector p18. Should not it

be

Quoted 2 lines
Quoted 1 line

default to the mother board?

It's not enabled by default and that?s why we need to enable it

through

Quoted 4 lines

Tps65950 GPIO2.

Your patch looks fine but the comment and name needs to be changed as There is no clock which gets enabled using gpio2. All the HSUSB

clocks

Quoted 12 lines

Are handled inside driver at drivers/usb/host/ehci-omap.c

Ajay

Quoted 8 lines

The EHCI port on the mother board works with this patch.

Bryan

Quoted 2 lines

Hi,

Quoted 1 line

Set the VAUX2 regulator supply to 1.8V for the HSUSB host

interface.

Quoted 1 line
Quoted 1 line

Gpio 2 of the TPS65950 has to be set to zero in order to enable

the

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line

HSUBS2 clock.

TPS65950 GPIO2 is not to enable HSUSB2 clock but to enable chip

u131

Quoted 10 lines
Quoted 10 lines
Quoted 6 lines

On omap3evm (rev-G) which latches USB, camera and audio lines.

Quoted 4 lines
---
 arch/arm/mach-omap2/board-omap3evm.c |   25

+++++++++++++++++++++++++

Quoted 3 lines

Review

Quoted 3 lines
 1 files changed, 25 insertions(+), 0 deletions(-)
(quoted diff) +0 -0

b/arch/arm/mach-

Quoted 24 lines
Quoted 23 lines
Quoted 5 lines

arch/arm/mach-omap2/board-omap3evm.c static int omap3evm_twl_gpio_setup(struct

Quoted 5 lines

omap2/board-omap3evm.c
index c452b3f..13a2b71 100644

arch/arm/mach-omap2/board-omap3evm.c +0 -0
@@ -377,6 +377,10 @@ static int omap3evm_twl_gpio_setup(struct

device

Quoted 17 lines

arch/arm/mach-omap2/board-omap3evm.c static int omap3evm_twl_gpio_setup(struct device *dev, · line 383

Quoted 9 lines
arch/arm/mach-omap2/board-omap3evm.c +4 -0
 *dev,
 	if (r)
 		printk(KERN_ERR "failed to get/set lcd_bkl gpio\n");
 
+	/* gpio + 2 == HSUSB2 Clock Enable */
+	if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2)
+		gpio_request_one(gpio + 2, GPIOF_OUT_INIT_LOW,
 "EN_HSUSB2_CLK");
+

Did you test EHCI port with this change ?

Ajay

Quoted 2 lines
arch/arm/mach-omap2/board-omap3evm.c +0 -0
 	/* gpio + 7 == DVI Enable */

gpio_request_one(gpio + 7, GPIOF_OUT_INIT_LOW, "EN_DVI");

[...]
rm-kernel