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

ARM: dts: sun8i: a83t: Enable USB OTG controller on some boards

The Bananapi M3 and Cubietruck Plus both have USB OTG ports wired to the
SoC and PMIC in the same way, with the N_VBUSEN pin on the PMIC
controlling VBUS output, the PMIC's VBUS input for sensing VBUS, and
PH11 on the SoC for sensing the ID pin.

Enable OTG on both boards.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>

authored by

Chen-Yu Tsai and committed by
Maxime Ripard
6e0c67e3 6cb6cfd6

+24
+12
arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
··· 389 389 }; 390 390 }; 391 391 392 + &usb_otg { 393 + dr_mode = "otg"; 394 + status = "okay"; 395 + }; 396 + 397 + &usb_power_supply { 398 + status = "okay"; 399 + }; 400 + 392 401 &usbphy { 402 + usb0_id_det-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */ 403 + usb0_vbus_power-supply = <&usb_power_supply>; 404 + usb0_vbus-supply = <&reg_drivevbus>; 393 405 usb1_vbus-supply = <&reg_usb1_vbus>; 394 406 status = "okay"; 395 407 };
+12
arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts
··· 420 420 }; 421 421 }; 422 422 423 + &usb_otg { 424 + dr_mode = "otg"; 425 + status = "okay"; 426 + }; 427 + 428 + &usb_power_supply { 429 + status = "okay"; 430 + }; 431 + 423 432 &usbphy { 433 + usb0_id_det-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */ 434 + usb0_vbus_power-supply = <&usb_power_supply>; 435 + usb0_vbus-supply = <&reg_drivevbus>; 424 436 usb1_vbus-supply = <&reg_usb1_vbus>; 425 437 usb2_vbus-supply = <&reg_usb2_vbus>; 426 438 status = "okay";