diff options
author | Icenowy Zheng <[email protected]> | 2023-03-19 21:29:32 +0000 |
---|---|---|
committer | Jernej Skrabec <[email protected]> | 2023-03-23 21:57:33 +0100 |
commit | bedc7c5490fce4e57b55e025b4adfbd31f25623d (patch) | |
tree | b596e6a3bd4cfb0f72a852392b466e0395a4da33 | |
parent | f23ba46e0799fc701bcd429d22767932401e9ae8 (diff) |
ARM: dts: suniv: licheepi-nano: enable USB
Lichee Pi Nano has a Micro-USB connector, with its D+, D- pins connected
to the USB pins of the SoC and ID pin connected to PE2 GPIO.
Enable the USB functionality.
Signed-off-by: Icenowy Zheng <[email protected]>
Acked-by: Jernej Skrabec <[email protected]>
Signed-off-by: Andre Przywara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jernej Skrabec <[email protected]>
-rw-r--r-- | arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts b/arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts index 04e59b8381cb..43896723a994 100644 --- a/arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts +++ b/arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts @@ -6,6 +6,8 @@ /dts-v1/; #include "suniv-f1c100s.dtsi" +#include <dt-bindings/gpio/gpio.h> + / { model = "Lichee Pi Nano"; compatible = "licheepi,licheepi-nano", "allwinner,suniv-f1c100s"; @@ -50,8 +52,22 @@ }; }; +&otg_sram { + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pe_pins>; status = "okay"; }; + +&usb_otg { + dr_mode = "otg"; + status = "okay"; +}; + +&usbphy { + usb0_id_det-gpios = <&pio 4 2 GPIO_ACTIVE_HIGH>; /* PE2 */ + status = "okay"; +}; |