diff mbox series

[v4,5/8] power: supply: mp2629: Add USB fast charge settings

Message ID 20221024132757.3345400-6-sravanhome@gmail.com
State Superseded
Headers show
Series Add support for mp2733 battery charger | expand

Commit Message

Saravanan Sekar Oct. 24, 2022, 1:27 p.m. UTC
Allows the user to change the USB device fast charge setting to advertise
host on enumeration helps to accelerate the charging cycle. Altering this
value resets USB existing connection.

Signed-off-by: Saravanan Sekar <sravanhome@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
---
 .../ABI/testing/sysfs-class-power-mp2629         | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

Comments

Sebastian Reichel Oct. 28, 2022, 2:07 p.m. UTC | #1
Hi,

On Mon, Oct 24, 2022 at 03:27:54PM +0200, Saravanan Sekar wrote:
> Allows the user to change the USB device fast charge setting to advertise
> host on enumeration helps to accelerate the charging cycle. Altering this
> value resets USB existing connection.
> 
> Signed-off-by: Saravanan Sekar <sravanhome@gmail.com>
> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
> ---

Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com>

-- Sebastian

>  .../ABI/testing/sysfs-class-power-mp2629         | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
> 
> diff --git a/Documentation/ABI/testing/sysfs-class-power-mp2629 b/Documentation/ABI/testing/sysfs-class-power-mp2629
> index 914d67caac0d..b386d02cb010 100644
> --- a/Documentation/ABI/testing/sysfs-class-power-mp2629
> +++ b/Documentation/ABI/testing/sysfs-class-power-mp2629
> @@ -1,3 +1,19 @@
> +What:		/sys/class/power_supply/mp2629_battery/usb_fast_charge
> +Date:		June 2022
> +KernelVersion:	5.20
> +Description:
> +		Represents a USB device fast charge settings.Altering this
> +		value resets USB existing connection
> +		USB DP:DM[0:0] 0.6V : Hi-Z
> +		USB DP:DM[0:1] 3.3V : 0.6V
> +		USB DP:DM[1:0] 0.6V : 0.6V
> +		USB DP:DM[1:1] 0.6V : 3.3V
> +
> +                Access: Read, Write
> +
> +                Valid values: Represented in bit DP & DM setting. Valid
> +			      range is [0, 3].
> +
>  What:		/sys/class/power_supply/mp2629_battery/batt_impedance_compen
>  Date:		April 2020
>  KernelVersion:	5.7
> -- 
> 2.32.0
>
diff mbox series

Patch

diff --git a/Documentation/ABI/testing/sysfs-class-power-mp2629 b/Documentation/ABI/testing/sysfs-class-power-mp2629
index 914d67caac0d..b386d02cb010 100644
--- a/Documentation/ABI/testing/sysfs-class-power-mp2629
+++ b/Documentation/ABI/testing/sysfs-class-power-mp2629
@@ -1,3 +1,19 @@ 
+What:		/sys/class/power_supply/mp2629_battery/usb_fast_charge
+Date:		June 2022
+KernelVersion:	5.20
+Description:
+		Represents a USB device fast charge settings.Altering this
+		value resets USB existing connection
+		USB DP:DM[0:0] 0.6V : Hi-Z
+		USB DP:DM[0:1] 3.3V : 0.6V
+		USB DP:DM[1:0] 0.6V : 0.6V
+		USB DP:DM[1:1] 0.6V : 3.3V
+
+                Access: Read, Write
+
+                Valid values: Represented in bit DP & DM setting. Valid
+			      range is [0, 3].
+
 What:		/sys/class/power_supply/mp2629_battery/batt_impedance_compen
 Date:		April 2020
 KernelVersion:	5.7