diff mbox

[1/3] ARM: dts: omap3-igep0020: Add USB OTG support

Message ID 1380931479-16142-2-git-send-email-javier.martinez@collabora.co.uk (mailing list archive)
State New, archived
Headers show

Commit Message

Javier Martinez Canillas Oct. 5, 2013, 12:04 a.m. UTC
Commit ad871c10b ("ARM: dts: OMAP: Add usb_otg and glue data to OMAP3+ boards")
added USB OTG support for most OMAP boards but some OMAP3 boards
such as the IGEPv2 were not updated. This patch adds an USB OTG
device node to this board.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
---
 arch/arm/boot/dts/omap3-igep0020.dts | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Enric Balletbo Serra Oct. 6, 2013, 10:26 a.m. UTC | #1
Hi,

2013/10/5 Javier Martinez Canillas <javier.martinez@collabora.co.uk>:
> Commit ad871c10b ("ARM: dts: OMAP: Add usb_otg and glue data to OMAP3+ boards")
> added USB OTG support for most OMAP boards but some OMAP3 boards
> such as the IGEPv2 were not updated. This patch adds an USB OTG
> device node to this board.
>
> Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
> ---
>  arch/arm/boot/dts/omap3-igep0020.dts | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm/boot/dts/omap3-igep0020.dts b/arch/arm/boot/dts/omap3-igep0020.dts
> index eedf0d8..903e944 100644
> --- a/arch/arm/boot/dts/omap3-igep0020.dts
> +++ b/arch/arm/boot/dts/omap3-igep0020.dts
> @@ -166,3 +166,10 @@
>                 smsc,save-mac-address;
>         };
>  };
> +
> +&usb_otg_hs {
> +       interface-type = <0>;
> +       usb-phy = <&usb2_phy>;
> +       mode = <3>;
> +       power = <50>;
> +};
> --
> 1.8.4.rc3
>

Tested-by: Enric Balletbo i Serra <eballetbo@gmail.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Roger Quadros Oct. 7, 2013, 10:43 a.m. UTC | #2
Javier,

On 10/05/2013 03:04 AM, Javier Martinez Canillas wrote:
> Commit ad871c10b ("ARM: dts: OMAP: Add usb_otg and glue data to OMAP3+ boards")
> added USB OTG support for most OMAP boards but some OMAP3 boards
> such as the IGEPv2 were not updated. This patch adds an USB OTG
> device node to this board.
> 
> Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
> ---
>  arch/arm/boot/dts/omap3-igep0020.dts | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/omap3-igep0020.dts b/arch/arm/boot/dts/omap3-igep0020.dts
> index eedf0d8..903e944 100644
> --- a/arch/arm/boot/dts/omap3-igep0020.dts
> +++ b/arch/arm/boot/dts/omap3-igep0020.dts
> @@ -166,3 +166,10 @@
>  		smsc,save-mac-address;
>  	};
>  };
> +
> +&usb_otg_hs {
> +	interface-type = <0>;
> +	usb-phy = <&usb2_phy>;

With the PHY generic framework in Greg's usb-next branch [1], you will also need to add

+       phys = <&usb2_phy>;
+       phy-names = "usb2-phy";

> +	mode = <3>;
> +	power = <50>;
> +};
> 

So it would be good to test with the usb-next branch.

cheers,
-roger

[1] - git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Javier Martinez Canillas Oct. 7, 2013, 11:54 a.m. UTC | #3
On 10/07/2013 12:43 PM, Roger Quadros wrote:
> Javier,
> 
> On 10/05/2013 03:04 AM, Javier Martinez Canillas wrote:
>> Commit ad871c10b ("ARM: dts: OMAP: Add usb_otg and glue data to OMAP3+ boards")
>> added USB OTG support for most OMAP boards but some OMAP3 boards
>> such as the IGEPv2 were not updated. This patch adds an USB OTG
>> device node to this board.
>> 
>> Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
>> ---
>>  arch/arm/boot/dts/omap3-igep0020.dts | 7 +++++++
>>  1 file changed, 7 insertions(+)
>> 
>> diff --git a/arch/arm/boot/dts/omap3-igep0020.dts b/arch/arm/boot/dts/omap3-igep0020.dts
>> index eedf0d8..903e944 100644
>> --- a/arch/arm/boot/dts/omap3-igep0020.dts
>> +++ b/arch/arm/boot/dts/omap3-igep0020.dts
>> @@ -166,3 +166,10 @@
>>  		smsc,save-mac-address;
>>  	};
>>  };
>> +
>> +&usb_otg_hs {
>> +	interface-type = <0>;
>> +	usb-phy = <&usb2_phy>;
> 
> With the PHY generic framework in Greg's usb-next branch [1], you will also need to add
> 
> +       phys = <&usb2_phy>;
> +       phy-names = "usb2-phy";
> 
>> +	mode = <3>;
>> +	power = <50>;
>> +};
>> 
> 
> So it would be good to test with the usb-next branch.
> 
> cheers,
> -roger
> 
> [1] - git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
> 

Hi Roger,

Thanks for the pointer, I'll add those properties and test using the PHY generic
framework.

Thanks a lot and best regards,
Javier

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Benoit Cousson Oct. 7, 2013, 11:58 a.m. UTC | #4
Hi Javier,

On 07/10/2013 13:54, Javier Martinez Canillas wrote:
> On 10/07/2013 12:43 PM, Roger Quadros wrote:
>> Javier,
>>
>> On 10/05/2013 03:04 AM, Javier Martinez Canillas wrote:
>>> Commit ad871c10b ("ARM: dts: OMAP: Add usb_otg and glue data to OMAP3+ boards")
>>> added USB OTG support for most OMAP boards but some OMAP3 boards
>>> such as the IGEPv2 were not updated. This patch adds an USB OTG
>>> device node to this board.
>>>
>>> Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
>>> ---
>>>   arch/arm/boot/dts/omap3-igep0020.dts | 7 +++++++
>>>   1 file changed, 7 insertions(+)
>>>
>>> diff --git a/arch/arm/boot/dts/omap3-igep0020.dts b/arch/arm/boot/dts/omap3-igep0020.dts
>>> index eedf0d8..903e944 100644
>>> --- a/arch/arm/boot/dts/omap3-igep0020.dts
>>> +++ b/arch/arm/boot/dts/omap3-igep0020.dts
>>> @@ -166,3 +166,10 @@
>>>   		smsc,save-mac-address;
>>>   	};
>>>   };
>>> +
>>> +&usb_otg_hs {
>>> +	interface-type = <0>;
>>> +	usb-phy = <&usb2_phy>;
>>
>> With the PHY generic framework in Greg's usb-next branch [1], you will also need to add
>>
>> +       phys = <&usb2_phy>;
>> +       phy-names = "usb2-phy";
>>
>>> +	mode = <3>;
>>> +	power = <50>;
>>> +};
>>>
>>
>> So it would be good to test with the usb-next branch.
>>
>> cheers,
>> -roger
>>
>> [1] - git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
>>
>
> Hi Roger,
>
> Thanks for the pointer, I'll add those properties and test using the PHY generic
> framework.

Should I expect a v3 then?

Benoit



--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Javier Martinez Canillas Oct. 7, 2013, 12:02 p.m. UTC | #5
On 10/07/2013 01:58 PM, Benoit Cousson wrote:
> Hi Javier,
> 
> On 07/10/2013 13:54, Javier Martinez Canillas wrote:
>> On 10/07/2013 12:43 PM, Roger Quadros wrote:
>>> Javier,
>>>
>>> On 10/05/2013 03:04 AM, Javier Martinez Canillas wrote:
>>>> Commit ad871c10b ("ARM: dts: OMAP: Add usb_otg and glue data to OMAP3+ boards")
>>>> added USB OTG support for most OMAP boards but some OMAP3 boards
>>>> such as the IGEPv2 were not updated. This patch adds an USB OTG
>>>> device node to this board.
>>>>
>>>> Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
>>>> ---
>>>>   arch/arm/boot/dts/omap3-igep0020.dts | 7 +++++++
>>>>   1 file changed, 7 insertions(+)
>>>>
>>>> diff --git a/arch/arm/boot/dts/omap3-igep0020.dts b/arch/arm/boot/dts/omap3-igep0020.dts
>>>> index eedf0d8..903e944 100644
>>>> --- a/arch/arm/boot/dts/omap3-igep0020.dts
>>>> +++ b/arch/arm/boot/dts/omap3-igep0020.dts
>>>> @@ -166,3 +166,10 @@
>>>>   		smsc,save-mac-address;
>>>>   	};
>>>>   };
>>>> +
>>>> +&usb_otg_hs {
>>>> +	interface-type = <0>;
>>>> +	usb-phy = <&usb2_phy>;
>>>
>>> With the PHY generic framework in Greg's usb-next branch [1], you will also need to add
>>>
>>> +       phys = <&usb2_phy>;
>>> +       phy-names = "usb2-phy";
>>>
>>>> +	mode = <3>;
>>>> +	power = <50>;
>>>> +};
>>>>
>>>
>>> So it would be good to test with the usb-next branch.
>>>
>>> cheers,
>>> -roger
>>>
>>> [1] - git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
>>>
>>
>> Hi Roger,
>>
>> Thanks for the pointer, I'll add those properties and test using the PHY generic
>> framework.
> 
> Should I expect a v3 then?
> 

Hi Benoit,

Yes, I'll test it and send a v3 in the next few hours, sorry for not being clear
about that.

> Benoit
> 
> 
> 

Best regards,
Javier

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Benoit Cousson Oct. 7, 2013, 12:09 p.m. UTC | #6
On 07/10/2013 14:02, Javier Martinez Canillas wrote:
> On 10/07/2013 01:58 PM, Benoit Cousson wrote:
>> Hi Javier,
>>
>> On 07/10/2013 13:54, Javier Martinez Canillas wrote:
>>> On 10/07/2013 12:43 PM, Roger Quadros wrote:
>>>> Javier,
>>>>
>>>> On 10/05/2013 03:04 AM, Javier Martinez Canillas wrote:
>>>>> Commit ad871c10b ("ARM: dts: OMAP: Add usb_otg and glue data to OMAP3+ boards")
>>>>> added USB OTG support for most OMAP boards but some OMAP3 boards
>>>>> such as the IGEPv2 were not updated. This patch adds an USB OTG
>>>>> device node to this board.
>>>>>
>>>>> Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
>>>>> ---
>>>>>    arch/arm/boot/dts/omap3-igep0020.dts | 7 +++++++
>>>>>    1 file changed, 7 insertions(+)
>>>>>
>>>>> diff --git a/arch/arm/boot/dts/omap3-igep0020.dts b/arch/arm/boot/dts/omap3-igep0020.dts
>>>>> index eedf0d8..903e944 100644
>>>>> --- a/arch/arm/boot/dts/omap3-igep0020.dts
>>>>> +++ b/arch/arm/boot/dts/omap3-igep0020.dts
>>>>> @@ -166,3 +166,10 @@
>>>>>    		smsc,save-mac-address;
>>>>>    	};
>>>>>    };
>>>>> +
>>>>> +&usb_otg_hs {
>>>>> +	interface-type = <0>;
>>>>> +	usb-phy = <&usb2_phy>;
>>>>
>>>> With the PHY generic framework in Greg's usb-next branch [1], you will also need to add
>>>>
>>>> +       phys = <&usb2_phy>;
>>>> +       phy-names = "usb2-phy";
>>>>
>>>>> +	mode = <3>;
>>>>> +	power = <50>;
>>>>> +};
>>>>>
>>>>
>>>> So it would be good to test with the usb-next branch.
>>>>
>>>> cheers,
>>>> -roger
>>>>
>>>> [1] - git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
>>>>
>>>
>>> Hi Roger,
>>>
>>> Thanks for the pointer, I'll add those properties and test using the PHY generic
>>> framework.
>>
>> Should I expect a v3 then?
>>
>
> Hi Benoit,
>
> Yes, I'll test it and send a v3 in the next few hours, sorry for not being clear
> about that.


That's OK, I was applying your series when I saw your email ;-)

I'm waiting for the next one.

Thanks,
Benoit

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Javier Martinez Canillas Oct. 7, 2013, 4:05 p.m. UTC | #7
On Mon, Oct 7, 2013 at 2:09 PM, Benoit Cousson <bcousson@baylibre.com> wrote:
> On 07/10/2013 14:02, Javier Martinez Canillas wrote:
>>
>> On 10/07/2013 01:58 PM, Benoit Cousson wrote:
>>>
>>> Hi Javier,
>>>
>>> On 07/10/2013 13:54, Javier Martinez Canillas wrote:
>>>>
>>>> On 10/07/2013 12:43 PM, Roger Quadros wrote:
>>>>>
>>>>> Javier,
>>>>>
>>>>> On 10/05/2013 03:04 AM, Javier Martinez Canillas wrote:
>>>>>>
>>>>>> Commit ad871c10b ("ARM: dts: OMAP: Add usb_otg and glue data to OMAP3+
>>>>>> boards")
>>>>>> added USB OTG support for most OMAP boards but some OMAP3 boards
>>>>>> such as the IGEPv2 were not updated. This patch adds an USB OTG
>>>>>> device node to this board.
>>>>>>
>>>>>> Signed-off-by: Javier Martinez Canillas
>>>>>> <javier.martinez@collabora.co.uk>
>>>>>> ---
>>>>>>    arch/arm/boot/dts/omap3-igep0020.dts | 7 +++++++
>>>>>>    1 file changed, 7 insertions(+)
>>>>>>
>>>>>> diff --git a/arch/arm/boot/dts/omap3-igep0020.dts
>>>>>> b/arch/arm/boot/dts/omap3-igep0020.dts
>>>>>> index eedf0d8..903e944 100644
>>>>>> --- a/arch/arm/boot/dts/omap3-igep0020.dts
>>>>>> +++ b/arch/arm/boot/dts/omap3-igep0020.dts
>>>>>> @@ -166,3 +166,10 @@
>>>>>>                 smsc,save-mac-address;
>>>>>>         };
>>>>>>    };
>>>>>> +
>>>>>> +&usb_otg_hs {
>>>>>> +       interface-type = <0>;
>>>>>> +       usb-phy = <&usb2_phy>;
>>>>>
>>>>>
>>>>> With the PHY generic framework in Greg's usb-next branch [1], you will
>>>>> also need to add
>>>>>
>>>>> +       phys = <&usb2_phy>;
>>>>> +       phy-names = "usb2-phy";
>>>>>
>>>>>> +       mode = <3>;
>>>>>> +       power = <50>;
>>>>>> +};
>>>>>>
>>>>>
>>>>> So it would be good to test with the usb-next branch.
>>>>>
>>>>> cheers,
>>>>> -roger
>>>>>
>>>>> [1] - git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
>>>>>
>>>>
>>>> Hi Roger,
>>>>
>>>> Thanks for the pointer, I'll add those properties and test using the PHY
>>>> generic
>>>> framework.
>>>
>>>
>>> Should I expect a v3 then?
>>>
>>
>> Hi Benoit,
>>
>> Yes, I'll test it and send a v3 in the next few hours, sorry for not being
>> clear
>> about that.
>
>
>
> That's OK, I was applying your series when I saw your email ;-)
>

Yes, fortunately Roger pointed out that OMAP otg device node required additional
properties to work with the new generic PHY framework that will land on v3.13.
Otherwise it would only work until Greg send his pull request to Linus :)

> I'm waiting for the next one.
>

Great, I had already sent the v3 [1] that has the necessary changes for the PHY
framework and tested it using usb-next

> Thanks,
> Benoit
>

Thanks a lot and best regards,
Javier

[1]: http://www.mail-archive.com/linux-omap@vger.kernel.org/msg96583.html
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/boot/dts/omap3-igep0020.dts b/arch/arm/boot/dts/omap3-igep0020.dts
index eedf0d8..903e944 100644
--- a/arch/arm/boot/dts/omap3-igep0020.dts
+++ b/arch/arm/boot/dts/omap3-igep0020.dts
@@ -166,3 +166,10 @@ 
 		smsc,save-mac-address;
 	};
 };
+
+&usb_otg_hs {
+	interface-type = <0>;
+	usb-phy = <&usb2_phy>;
+	mode = <3>;
+	power = <50>;
+};