Skip to contentSkip to conversation

ARM: dts: nxp: imx6qdl-sabresd: add dr_mode to usbotg

PATCH Applied Hui Wang 2 participants 2 messages Dec 16, 2024 – Dec 30, 2024

Subsystems (2)
lore
Share & tools
lore

Hui Wang

author
#0 lore raw

PATCH v2 1/1 ARM: dts: nxp: imx6qdl-sabresd: add dr_mode to usbotg

Currently there are 3 type of boards (imx6q|imx6qp|imx6dl-sabresd) based on imx6qdl-sabresd.dtsi, they all do not set the dr_mode for usbotg device node. The chipidea usb driver will configure it to otg mode by default if the dr_mode is not set, but some testcases need to parse the dr_mode from DT and decide the follow-up test strategy, here set the dr_mode to otg explicitly for these 3 imx6qdl-sabresd based boards.

---
in the v2:
adding the dr_mode in imx6qdl-sabresd.dtsi rather than imx6qdl.dtsi

 arch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi +1 -0
index dc8298f6db34..914c129b09a5 100644
@@ -804,6 +804,7 @@ &usbotg {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usbotg>;
 	disable-over-current;
+	dr_mode = "otg";
 	status = "okay";
 };
 
Signature · 1 line
2.34.1
Applied
#1 lore raw
Quoted 9 lines · Hui Wang

Currently there are 3 type of boards (imx6q|imx6qp|imx6dl-sabresd) based on imx6qdl-sabresd.dtsi, they all do not set the dr_mode for usbotg device node. The chipidea usb driver will configure it to otg mode by default if the dr_mode is not set, but some testcases need to parse the dr_mode from DT and decide the follow-up test strategy, here set the dr_mode to otg explicitly for these 3 imx6qdl-sabresd based boards.

Applied, thanks!