Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <uwu@icenowy.me>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Link: https://lore.kernel.org/r/20230319212936.26649-3-andre.przywara@arm.com
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>

authored by

Icenowy Zheng and committed by
Jernej Skrabec
bedc7c54 f23ba46e

+16
+16
arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts
··· 6 6 /dts-v1/; 7 7 #include "suniv-f1c100s.dtsi" 8 8 9 + #include <dt-bindings/gpio/gpio.h> 10 + 9 11 / { 10 12 model = "Lichee Pi Nano"; 11 13 compatible = "licheepi,licheepi-nano", "allwinner,suniv-f1c100s"; ··· 52 50 }; 53 51 }; 54 52 53 + &otg_sram { 54 + status = "okay"; 55 + }; 56 + 55 57 &uart0 { 56 58 pinctrl-names = "default"; 57 59 pinctrl-0 = <&uart0_pe_pins>; 60 + status = "okay"; 61 + }; 62 + 63 + &usb_otg { 64 + dr_mode = "otg"; 65 + status = "okay"; 66 + }; 67 + 68 + &usbphy { 69 + usb0_id_det-gpios = <&pio 4 2 GPIO_ACTIVE_HIGH>; /* PE2 */ 58 70 status = "okay"; 59 71 };