Hi Fabio,

On 7/22/26 3:36 AM, Fabio Estevam via U-Boot wrote:
From: Fabio Estevam <[email protected]>

Describe the USB3 OTG controller as a USB role switch and make
peripheral mode the default when no external role provider has selected
host mode. This retains OTG operation and both PHYs inherited from the
SoC devicetree.

Enable the ums command so the onboard eMMC can be exposed as USB mass
storage to a host.

Signed-off-by: Fabio Estevam <[email protected]>
---
Changes since v1:
- Add the same OTG description as submitted upstream:
https://lore.kernel.org/linux-arm-kernel/[email protected]/


Thank you for sending this to the Linux kernel ML!

  arch/arm/dts/rk3399-roc-pc-plus-u-boot.dtsi | 6 ++++++
  configs/roc-pc-rk3399_defconfig             | 1 +
  2 files changed, 7 insertions(+)

diff --git a/arch/arm/dts/rk3399-roc-pc-plus-u-boot.dtsi 
b/arch/arm/dts/rk3399-roc-pc-plus-u-boot.dtsi
index c80529a62b97..73027335446e 100644
--- a/arch/arm/dts/rk3399-roc-pc-plus-u-boot.dtsi
+++ b/arch/arm/dts/rk3399-roc-pc-plus-u-boot.dtsi
@@ -1,3 +1,9 @@
  // SPDX-License-Identifier: GPL-2.0+
#include "rk3399-roc-pc-u-boot.dtsi"
+
+&usbdrd_dwc3_0 {
+       dr_mode = "otg";
+       role-switch-default-mode = "peripheral";
+       usb-role-switch;
+};

Since this is not an important bug fix, I would prefer we wait it appears in devicetree-rebasing and cherry-pick then.

If there's a v3 (please note this series here is actually v3, you forgot to bump the version :) ), please drop it.

Cheers,
Quentin

Reply via email to