diff mbox

usb: musb: Add support for optional VBUS irq to dsps glue layer

Message ID 20170105191544.GR4310@atomide.com (mailing list archive)
State New, archived
Headers show

Commit Message

Tony Lindgren Jan. 5, 2017, 7:15 p.m. UTC
* Tony Lindgren <tony@atomide.com> [170105 11:14]:
> We can now configure the PMIC interrupt to provide us VBUS
> events. In that case we don't need to constantly poll the
> status and can make it optional. This is only wired up
> for the mini-B interface on beaglebone.
> 
> Note that eventually we should get also the connect status
> for the host interface when the am335x internal PM coprocessor
> provides us with an IRQ chip. For now, we still need to poll
> for the host mode status.

And here's a related patch I can queue separately to configure it.

Regards,

Tony

8< ---------------------------------
From: Tony Lindgren <tony@atomide.com>
Date: Tue, 27 Dec 2016 08:03:41 -0800
Subject: [PATCH] ARM: dts: Configure BeagleBone peripheral USB VBUS irq

This prevents having to poll peripheral USB port cable status.

Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/boot/dts/am335x-bone-common.dtsi | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi
--- a/arch/arm/boot/dts/am335x-bone-common.dtsi
+++ b/arch/arm/boot/dts/am335x-bone-common.dtsi
@@ -207,6 +207,8 @@ 
 &usb0 {
 	status = "okay";
 	dr_mode = "peripheral";
+	interrupts-extended = <&intc 18 &tps 0>;
+	interrupt-names = "mc", "vbus";
 };
 
 &usb1 {