diff mbox series

[1/3] arm: dts: imx93-phyboard-segin: Add USB support.

Message ID 20240318171637.12664-2-othacehe@gnu.org
State Changes Requested
Delegated to: Fabio Estevam
Headers show
Series imx93-phyboard-segin: Add USB support. | expand

Commit Message

Mathieu Othacehe March 18, 2024, 5:16 p.m. UTC
Enable both usbotg1 and usbotg2 ports.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
 arch/arm/dts/imx93-phyboard-segin.dts | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Marek Vasut March 18, 2024, 9:48 p.m. UTC | #1
On 3/18/24 6:16 PM, Mathieu Othacehe wrote:
> Enable both usbotg1 and usbotg2 ports.

Drop fullstop from $subject end.

> Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
> ---
>   arch/arm/dts/imx93-phyboard-segin.dts | 13 +++++++++++++
>   1 file changed, 13 insertions(+)
> 
> diff --git a/arch/arm/dts/imx93-phyboard-segin.dts b/arch/arm/dts/imx93-phyboard-segin.dts
> index 85fb188b057..acf307a3192 100644
> --- a/arch/arm/dts/imx93-phyboard-segin.dts
> +++ b/arch/arm/dts/imx93-phyboard-segin.dts
> @@ -40,6 +40,19 @@
>   	status = "okay";
>   };
>   
> +/* USB  */
> +&usbotg1 {
> +	disable-over-current;

Why is this needed ?
Primoz Fiser March 19, 2024, 8:26 a.m. UTC | #2
Hi Marek,

On 18. 03. 24 22:48, Marek Vasut wrote:
> On 3/18/24 6:16 PM, Mathieu Othacehe wrote:
>> Enable both usbotg1 and usbotg2 ports.
> 
> Drop fullstop from $subject end.
> 
>> Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
>> ---
>>   arch/arm/dts/imx93-phyboard-segin.dts | 13 +++++++++++++
>>   1 file changed, 13 insertions(+)
>>
>> diff --git a/arch/arm/dts/imx93-phyboard-segin.dts
>> b/arch/arm/dts/imx93-phyboard-segin.dts
>> index 85fb188b057..acf307a3192 100644
>> --- a/arch/arm/dts/imx93-phyboard-segin.dts
>> +++ b/arch/arm/dts/imx93-phyboard-segin.dts
>> @@ -40,6 +40,19 @@
>>       status = "okay";
>>   };
>>   +/* USB  */
>> +&usbotg1 {
>> +    disable-over-current;
> 
> Why is this needed ?

OC pins are not connected to the SoC thus disable OC to avoid warnings
(c/p from kernel dts).

BR,
Primoz
Marek Vasut March 19, 2024, 1:57 p.m. UTC | #3
On 3/19/24 9:26 AM, Primoz Fiser wrote:
> Hi Marek,
> 
> On 18. 03. 24 22:48, Marek Vasut wrote:
>> On 3/18/24 6:16 PM, Mathieu Othacehe wrote:
>>> Enable both usbotg1 and usbotg2 ports.
>>
>> Drop fullstop from $subject end.
>>
>>> Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
>>> ---
>>>    arch/arm/dts/imx93-phyboard-segin.dts | 13 +++++++++++++
>>>    1 file changed, 13 insertions(+)
>>>
>>> diff --git a/arch/arm/dts/imx93-phyboard-segin.dts
>>> b/arch/arm/dts/imx93-phyboard-segin.dts
>>> index 85fb188b057..acf307a3192 100644
>>> --- a/arch/arm/dts/imx93-phyboard-segin.dts
>>> +++ b/arch/arm/dts/imx93-phyboard-segin.dts
>>> @@ -40,6 +40,19 @@
>>>        status = "okay";
>>>    };
>>>    +/* USB  */
>>> +&usbotg1 {
>>> +    disable-over-current;
>>
>> Why is this needed ?
> 
> OC pins are not connected to the SoC thus disable OC to avoid warnings
> (c/p from kernel dts).

Please add it to the commit message for posterity, thanks.
diff mbox series

Patch

diff --git a/arch/arm/dts/imx93-phyboard-segin.dts b/arch/arm/dts/imx93-phyboard-segin.dts
index 85fb188b057..acf307a3192 100644
--- a/arch/arm/dts/imx93-phyboard-segin.dts
+++ b/arch/arm/dts/imx93-phyboard-segin.dts
@@ -40,6 +40,19 @@ 
 	status = "okay";
 };
 
+/* USB  */
+&usbotg1 {
+	disable-over-current;
+	dr_mode = "otg";
+	status = "okay";
+};
+
+&usbotg2 {
+	disable-over-current;
+	dr_mode = "host";
+	status = "okay";
+};
+
 /* eMMC */
 &usdhc1 {
 	no-1-8-v;