public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 3/3] arm: dts: licheepi-nano: enable usb device mode
@ 2023-06-09 14:12 路辉
  2023-06-10  0:43 ` Andre Przywara
  0 siblings, 1 reply; 2+ messages in thread
From: 路辉 @ 2023-06-09 14:12 UTC (permalink / raw)
  To: u-boot

From fff53ba354c8eca33cb9901888778420db637073 Mon Sep 17 00:00:00 2001
From: Lu Hui <luhux76@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

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

* Re: [PATCH 3/3] arm: dts: licheepi-nano: enable usb device mode
  2023-06-09 14:12 [PATCH 3/3] arm: dts: licheepi-nano: enable usb device mode 路辉
@ 2023-06-10  0:43 ` Andre Przywara
  0 siblings, 0 replies; 2+ messages in thread
From: Andre Przywara @ 2023-06-10  0:43 UTC (permalink / raw)
  To: 路辉; +Cc: u-boot

On Fri, 9 Jun 2023 14:12:31 +0000
路辉 <luhux76@gmail.com> wrote:

Hi,

> From fff53ba354c8eca33cb9901888778420db637073 Mon Sep 17 00:00:00 2001
> From: Lu Hui <luhux76@gmail.com>
> Date: Fri, 9 Jun 2023 22:05:53 +0800
> Subject: [PATCH 3/3] arm: dts: licheepi-nano: enable usb device mode

thanks for sending this, but this snippet was merged into the
U-Boot tree just a few days ago:
https://source.denx.de/u-boot/u-boot/-/commit/57285737cbae4638112a96e4b3ee78eda6182b6e

Cheers,
Andre

> ---
>  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";
> +};


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

end of thread, other threads:[~2023-06-10  0:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-09 14:12 [PATCH 3/3] arm: dts: licheepi-nano: enable usb device mode 路辉
2023-06-10  0:43 ` Andre Przywara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox