* [PATCH] arm64: dts: qcom: qrb2210-rb1: use USB host mode
@ 2023-10-25 11:58 Caleb Connolly
2023-10-26 18:56 ` Konrad Dybcio
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Caleb Connolly @ 2023-10-25 11:58 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, Caleb Connolly
The default for the QCM2290 platform that this board is based on is OTG
mode, however the role detection logic is not hooked up for this board
and the dwc3 driver is configured to not allow role switching from
userspace.
Force this board to host mode as this is the preferred usecase until we
get role switching hooked up.
Fixes: e18771961336 ("arm64: dts: qcom: Add initial QTI RB1 device tree")
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
---
base-commit: 05d3ef8bba77c1b5f98d941d8b2d4aeab8118ef1
// Caleb (they/them)
---
arch/arm64/boot/dts/qcom/qrb2210-rb1.dts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts
index eadba066972e..f1961a07c9a3 100644
--- a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts
+++ b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts
@@ -366,6 +366,10 @@ &usb {
status = "okay";
};
+&usb_dwc3 {
+ dr_mode = "host";
+};
+
&usb_hsphy {
vdd-supply = <&pm2250_l12>;
vdda-pll-supply = <&pm2250_l13>;
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] arm64: dts: qcom: qrb2210-rb1: use USB host mode
2023-10-25 11:58 [PATCH] arm64: dts: qcom: qrb2210-rb1: use USB host mode Caleb Connolly
@ 2023-10-26 18:56 ` Konrad Dybcio
2023-10-26 19:04 ` Caleb Connolly
2023-10-30 15:58 ` Dmitry Baryshkov
2023-12-08 2:57 ` Bjorn Andersson
2 siblings, 1 reply; 6+ messages in thread
From: Konrad Dybcio @ 2023-10-26 18:56 UTC (permalink / raw)
To: Caleb Connolly, Andy Gross, Bjorn Andersson, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree
On 10/25/23 13:58, Caleb Connolly wrote:
> The default for the QCM2290 platform that this board is based on is OTG
> mode, however the role detection logic is not hooked up for this board
> and the dwc3 driver is configured to not allow role switching from
> userspace.
>
> Force this board to host mode as this is the preferred usecase until we
> get role switching hooked up.
Does that not kill usb internet and similar?
Konrad
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] arm64: dts: qcom: qrb2210-rb1: use USB host mode
2023-10-26 18:56 ` Konrad Dybcio
@ 2023-10-26 19:04 ` Caleb Connolly
2023-10-26 19:05 ` Konrad Dybcio
0 siblings, 1 reply; 6+ messages in thread
From: Caleb Connolly @ 2023-10-26 19:04 UTC (permalink / raw)
To: Konrad Dybcio, Andy Gross, Bjorn Andersson, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree
On 26/10/2023 19:56, Konrad Dybcio wrote:
>
>
> On 10/25/23 13:58, Caleb Connolly wrote:
>> The default for the QCM2290 platform that this board is based on is OTG
>> mode, however the role detection logic is not hooked up for this board
>> and the dwc3 driver is configured to not allow role switching from
>> userspace.
>>
>> Force this board to host mode as this is the preferred usecase until we
>> get role switching hooked up.
> Does that not kill usb internet and similar?
like rndis gadget? yes, it does kill that. But in return you get real
ethernet ;P
This is the preferred default configuration for these boards (I sent a
similar patch for rb2 before). The usb_role framework does have support
for letting userspace change the role via sysfs, but it's disabled for
dwc3. The plan is to enable role switching properly by reading the DIP
switch state in the future.
>
> Konrad
--
// Caleb (they/them)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] arm64: dts: qcom: qrb2210-rb1: use USB host mode
2023-10-26 19:04 ` Caleb Connolly
@ 2023-10-26 19:05 ` Konrad Dybcio
0 siblings, 0 replies; 6+ messages in thread
From: Konrad Dybcio @ 2023-10-26 19:05 UTC (permalink / raw)
To: Caleb Connolly, Andy Gross, Bjorn Andersson, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree
On 10/26/23 21:04, Caleb Connolly wrote:
>
>
> On 26/10/2023 19:56, Konrad Dybcio wrote:
>>
>>
>> On 10/25/23 13:58, Caleb Connolly wrote:
>>> The default for the QCM2290 platform that this board is based on is OTG
>>> mode, however the role detection logic is not hooked up for this board
>>> and the dwc3 driver is configured to not allow role switching from
>>> userspace.
>>>
>>> Force this board to host mode as this is the preferred usecase until we
>>> get role switching hooked up.
>> Does that not kill usb internet and similar?
>
> like rndis gadget? yes, it does kill that. But in return you get real
> ethernet ;P
>
> This is the preferred default configuration for these boards (I sent a
> similar patch for rb2 before). The usb_role framework does have support
> for letting userspace change the role via sysfs, but it's disabled for
> dwc3. The plan is to enable role switching properly by reading the DIP
> switch state in the future.
Ok all that sounds reasonable
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Konrad
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] arm64: dts: qcom: qrb2210-rb1: use USB host mode
2023-10-25 11:58 [PATCH] arm64: dts: qcom: qrb2210-rb1: use USB host mode Caleb Connolly
2023-10-26 18:56 ` Konrad Dybcio
@ 2023-10-30 15:58 ` Dmitry Baryshkov
2023-12-08 2:57 ` Bjorn Andersson
2 siblings, 0 replies; 6+ messages in thread
From: Dmitry Baryshkov @ 2023-10-30 15:58 UTC (permalink / raw)
To: Caleb Connolly
Cc: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree
On Wed, 25 Oct 2023 at 14:58, Caleb Connolly <caleb.connolly@linaro.org> wrote:
>
> The default for the QCM2290 platform that this board is based on is OTG
> mode, however the role detection logic is not hooked up for this board
> and the dwc3 driver is configured to not allow role switching from
> userspace.
>
> Force this board to host mode as this is the preferred usecase until we
> get role switching hooked up.
>
> Fixes: e18771961336 ("arm64: dts: qcom: Add initial QTI RB1 device tree")
> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
As a side note, I think we should drop maximum-speed and dr_mode from
qcm2290's usb_dwc3 device node.
> ---
> base-commit: 05d3ef8bba77c1b5f98d941d8b2d4aeab8118ef1
>
> // Caleb (they/them)
> ---
> arch/arm64/boot/dts/qcom/qrb2210-rb1.dts | 4 ++++
> 1 file changed, 4 insertions(+)
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] arm64: dts: qcom: qrb2210-rb1: use USB host mode
2023-10-25 11:58 [PATCH] arm64: dts: qcom: qrb2210-rb1: use USB host mode Caleb Connolly
2023-10-26 18:56 ` Konrad Dybcio
2023-10-30 15:58 ` Dmitry Baryshkov
@ 2023-12-08 2:57 ` Bjorn Andersson
2 siblings, 0 replies; 6+ messages in thread
From: Bjorn Andersson @ 2023-12-08 2:57 UTC (permalink / raw)
To: Andy Gross, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Caleb Connolly
Cc: linux-arm-msm, devicetree
On Wed, 25 Oct 2023 12:58:00 +0100, Caleb Connolly wrote:
> The default for the QCM2290 platform that this board is based on is OTG
> mode, however the role detection logic is not hooked up for this board
> and the dwc3 driver is configured to not allow role switching from
> userspace.
>
> Force this board to host mode as this is the preferred usecase until we
> get role switching hooked up.
>
> [...]
Applied, thanks!
[1/1] arm64: dts: qcom: qrb2210-rb1: use USB host mode
commit: e0cee8dc6757f9f18718eec553be9fffa503e103
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-12-08 2:53 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-25 11:58 [PATCH] arm64: dts: qcom: qrb2210-rb1: use USB host mode Caleb Connolly
2023-10-26 18:56 ` Konrad Dybcio
2023-10-26 19:04 ` Caleb Connolly
2023-10-26 19:05 ` Konrad Dybcio
2023-10-30 15:58 ` Dmitry Baryshkov
2023-12-08 2:57 ` Bjorn Andersson
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).