xref: /openbmc/linux/Documentation/ABI/testing/sysfs-class-power-wilco (revision 002a9c2f99c77677635d2ab2e906fc6ba3f7ab67)
13f57fe28SNick CrewsWhat:		/sys/class/power_supply/wilco-charger/charge_type
23f57fe28SNick CrewsDate:		April 2019
33f57fe28SNick CrewsKernelVersion:	5.2
43f57fe28SNick CrewsDescription:
53f57fe28SNick Crews		What charging algorithm to use:
63f57fe28SNick Crews
7*002a9c2fSMauro Carvalho Chehab		Standard:
8*002a9c2fSMauro Carvalho Chehab			Fully charges battery at a standard rate.
9*002a9c2fSMauro Carvalho Chehab		Adaptive:
10*002a9c2fSMauro Carvalho Chehab			Battery settings adaptively optimized based on
113f57fe28SNick Crews			typical battery usage pattern.
12*002a9c2fSMauro Carvalho Chehab		Fast:
13*002a9c2fSMauro Carvalho Chehab			Battery charges over a shorter period.
14*002a9c2fSMauro Carvalho Chehab		Trickle:
15*002a9c2fSMauro Carvalho Chehab			Extends battery lifespan, intended for users who
163f57fe28SNick Crews			primarily use their Chromebook while connected to AC.
17*002a9c2fSMauro Carvalho Chehab		Custom:
18*002a9c2fSMauro Carvalho Chehab			A low and high threshold percentage is specified.
193f57fe28SNick Crews			Charging begins when level drops below
203f57fe28SNick Crews			charge_control_start_threshold, and ceases when
213f57fe28SNick Crews			level is above charge_control_end_threshold.
22*002a9c2fSMauro Carvalho Chehab		Long Life:
23*002a9c2fSMauro Carvalho Chehab			Customized charge rate for last longer battery life.
2446cbd0b0SCrag Wang			On Wilco device this mode is pre-configured in the factory
2546cbd0b0SCrag Wang			through EC's private PID. Swiching to a different mode will
2646cbd0b0SCrag Wang			be denied by Wilco EC when Long Life mode is enabled.
273f57fe28SNick Crews
283f57fe28SNick CrewsWhat:		/sys/class/power_supply/wilco-charger/charge_control_start_threshold
293f57fe28SNick CrewsDate:		April 2019
303f57fe28SNick CrewsKernelVersion:	5.2
313f57fe28SNick CrewsDescription:
323f57fe28SNick Crews		Used when charge_type="Custom", as described above. Measured in
333f57fe28SNick Crews		percentages. The valid range is [50, 95].
343f57fe28SNick Crews
353f57fe28SNick CrewsWhat:		/sys/class/power_supply/wilco-charger/charge_control_end_threshold
363f57fe28SNick CrewsDate:		April 2019
373f57fe28SNick CrewsKernelVersion:	5.2
383f57fe28SNick CrewsDescription:
393f57fe28SNick Crews		Used when charge_type="Custom", as described above. Measured in
403f57fe28SNick Crews		percentages. The valid range is [55, 100].
41