[PATCH 3/3] arm: dts: licheepi-nano: enable usb device mode

Andre Przywara andre.przywara at arm.com
Sat Jun 10 02:43:34 CEST 2023


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

Hi,

> 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

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



More information about the U-Boot mailing list