Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82f2e188 authored by Chen-Yu Tsai's avatar Chen-Yu Tsai Committed by Maxime Ripard
Browse files

ARM: dts: sun7i: bananapi-m1-plus: Enable USB OTG



The Bananapi M1+ supports USB OTG, with the PMIC doing VBUS sensing.
Enable the USB OTG related functions.

Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent e57904eb
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -194,6 +194,10 @@
	status = "okay";
};

&otg_sram {
	status = "okay";
};

&pio {
	gmac_power_pin_bpi_m1p: gmac_power_pin@0 {
		allwinner,pins = "PH23";
@@ -249,13 +253,29 @@
	regulator-name = "avcc";
};

&reg_usb0_vbus {
	status = "okay";
};

&uart0 {
	pinctrl-names = "default";
	pinctrl-0 = <&uart0_pins_a>;
	status = "okay";
};

&usb_otg {
	dr_mode = "otg";
	status = "okay";
};

&usb_power_supply {
	status = "okay";
};

&usbphy {
	usb0_id_det-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
	usb0_vbus_power-supply = <&usb_power_supply>;
	usb0_vbus-supply = <&reg_usb0_vbus>;
	/* VBUS on usb host ports are tied to DC5V and therefore always on */
	status = "okay";
};