Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rockpro64: u-boot: patch u-boot's dtsi to enable otg port for UMS/Gadget capabilities #7231

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ricardo Pardini <ricardo@pardini.net>
Date: Sun, 8 Sep 2024 15:08:48 +0200
Subject: rockchip: dts: rk3399: rockpro64: otg usbdrd_dwc3_0 for working
gadget mode

---
arch/arm/dts/rk3399-rockpro64-u-boot.dtsi | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/arch/arm/dts/rk3399-rockpro64-u-boot.dtsi b/arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
index 43b67991fe5..2af0611c3b7 100644
--- a/arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
+++ b/arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
@@ -53,10 +53,16 @@
};

&vdd_center {
regulator-min-microvolt = <950000>;
regulator-max-microvolt = <950000>;
};

&vdd_log {
regulator-init-microvolt = <950000>;
};
+
+// both usbdrd_dwc3_0 usbdrd_dwc3_1 seem to be OTG-capable; use usbdrd_dwc3_0 for the type-c port
+&usbdrd_dwc3_0 {
+ status = "okay";
+ dr_mode = "otg";
+};
--
Armbian