[PATCH 3/3] arm: dts: licheepi-nano: enable usb device mode
路辉
luhux76 at gmail.com
Fri Jun 9 16:12:31 CEST 2023
>From fff53ba354c8eca33cb9901888778420db637073 Mon Sep 17 00:00:00 2001
From: Lu Hui <luhux76 at gmail.com>
Date: Fri, 9 Jun 2023 22:05:53 +0800
Subject: [PATCH 3/3] arm: dts: licheepi-nano: enable usb device mode
---
arch/arm/dts/suniv-f1c100s-licheepi-nano.dts | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/arch/arm/dts/suniv-f1c100s-licheepi-nano.dts
b/arch/arm/dts/suniv-f1c100s-licheepi-nano.dts
index 43896723a9..0ab6353727 100644
--- a/arch/arm/dts/suniv-f1c100s-licheepi-nano.dts
+++ b/arch/arm/dts/suniv-f1c100s-licheepi-nano.dts
@@ -5,6 +5,7 @@
/dts-v1/;
#include "suniv-f1c100s.dtsi"
+#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/gpio/gpio.h>
@@ -71,3 +72,17 @@
usb0_id_det-gpios = <&pio 4 2 GPIO_ACTIVE_HIGH>; /* PE2 */
status = "okay";
};
+
+&otg_sram {
+ status = "okay";
+};
+
+&usb_otg {
+ dr_mode = "peripheral";
+ status = "okay";
+};
+
+&usbphy {
+ usb0_id_det-gpio = <&pio 4 2 GPIO_ACTIVE_HIGH>; /* PE2 */
+ status = "okay";
+};
--
2.40.1
More information about the U-Boot
mailing list