ARM: dts: omap4-droid4: Allow 350mA current for USB peripherals
diff mbox series

Message ID 20190828151706.32643-1-tony@atomide.com
State New
Headers show
Series
  • ARM: dts: omap4-droid4: Allow 350mA current for USB peripherals
Related show

Commit Message

Tony Lindgren Aug. 28, 2019, 3:17 p.m. UTC
Looks like we can use some USB Ethernet dongles for example if we increase
the allowed power limit.

A similar PMIC MC13783 documents maximum current limit as 350 mA in in
"Table 10-3. VUSB Regulator Main Characteristics". Since we have no
other documentation, let's use that value as the limit.

Cc: Jacopo Mondi <jacopo@jmondi.org>
Cc: Marcel Partap <mpartap@gmx.net>
Cc: Merlijn Wajer <merlijn@wizzup.org>
Cc: Michael Scott <hashcode0f@gmail.com>
Cc: NeKit <nekit1000@gmail.com>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/boot/dts/omap4-droid4-xt894.dts | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Comments

Tony Lindgren Aug. 28, 2019, 3:34 p.m. UTC | #1
* Tony Lindgren <tony@atomide.com> [190828 08:17]:
> Looks like we can use some USB Ethernet dongles for example if we increase
> the allowed power limit.
> 
> A similar PMIC MC13783 documents maximum current limit as 350 mA in in
> "Table 10-3. VUSB Regulator Main Characteristics". Since we have no
> other documentation, let's use that value as the limit.

Oops, that's too much, it's not VUSB regulator but VBUS regulator
that lists 300 mA max instead of 350 mA for VUSB regulator.

Updated patch below.

Regards,

Tony

8< ------------------------
From tony Mon Sep 17 00:00:00 2001
From: Tony Lindgren <tony@atomide.com>
Date: Wed, 28 Aug 2019 08:11:26 -0700
Subject: [PATCH] ARM: dts: omap4-droid4: Allow 300mA current for USB
 peripherals

Looks like we can use some USB Ethernet dongles for example if we increase
the allowed power limit.

A similar PMIC MC13783 documents maximum current limit as 300 mA in in
"Table 10-4. VBUS Regulator Main Characteristics". Since we have no
other documentation, let's use that value as the limit.

Cc: Jacopo Mondi <jacopo@jmondi.org>
Cc: Marcel Partap <mpartap@gmx.net>
Cc: Merlijn Wajer <merlijn@wizzup.org>
Cc: Michael Scott <hashcode0f@gmail.com>
Cc: NeKit <nekit1000@gmail.com>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/boot/dts/omap4-droid4-xt894.dts | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts
--- a/arch/arm/boot/dts/omap4-droid4-xt894.dts
+++ b/arch/arm/boot/dts/omap4-droid4-xt894.dts
@@ -781,7 +781,12 @@
 &usb_otg_hs {
 	interface-type = <1>;
 	mode = <3>;
-	power = <50>;
+
+	/*
+	 * Max 300 mA steps based on similar PMIC MC13783UG.pdf "Table 10-4.
+	 * VBUS Regulator Main Characteristics". Binding uses 2 mA units.
+	 */
+	power = <150>;
 };
 
 &i2c4 {

Patch
diff mbox series

diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts
--- a/arch/arm/boot/dts/omap4-droid4-xt894.dts
+++ b/arch/arm/boot/dts/omap4-droid4-xt894.dts
@@ -781,7 +781,12 @@ 
 &usb_otg_hs {
 	interface-type = <1>;
 	mode = <3>;
-	power = <50>;
+
+	/*
+	 * Max 350 mA steps based on similar PMIC MC13783UG.pdf "Table 10-3.
+	 * VUSB Regulator Main Characteristics". Binding uses 2 mA units.
+	 */
+	power = <175>;
 };
 
 &i2c4 {