devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] ARM: dts: nxp: imx6qdl-sabresd: add dr_mode to usbotg
@ 2024-12-16  4:07 Hui Wang
  2024-12-30  7:49 ` Shawn Guo
  0 siblings, 1 reply; 2+ messages in thread
From: Hui Wang @ 2024-12-16  4:07 UTC (permalink / raw)
  To: linux-arm-kernel, imx, devicetree
  Cc: shawnguo, xu.yang_2, s.hauer, festevam, 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.

Signed-off-by: Hui Wang <hui.wang@canonical.com>
---
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(+)

diff --git a/arch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi b/arch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi
index dc8298f6db34..914c129b09a5 100644
--- a/arch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi
+++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi
@@ -804,6 +804,7 @@ &usbotg {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usbotg>;
 	disable-over-current;
+	dr_mode = "otg";
 	status = "okay";
 };
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] ARM: dts: nxp: imx6qdl-sabresd: add dr_mode to usbotg
  2024-12-16  4:07 [PATCH v2] ARM: dts: nxp: imx6qdl-sabresd: add dr_mode to usbotg Hui Wang
@ 2024-12-30  7:49 ` Shawn Guo
  0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2024-12-30  7:49 UTC (permalink / raw)
  To: Hui Wang
  Cc: linux-arm-kernel, imx, devicetree, shawnguo, xu.yang_2, s.hauer,
	festevam

On Mon, Dec 16, 2024 at 12:07:22PM +0800, Hui Wang wrote:
> 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.
> 
> Signed-off-by: Hui Wang <hui.wang@canonical.com>

Applied, thanks!


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-30  7:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-16  4:07 [PATCH v2] ARM: dts: nxp: imx6qdl-sabresd: add dr_mode to usbotg Hui Wang
2024-12-30  7:49 ` Shawn Guo

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).