xref: /linux/Documentation/ABI/testing/sysfs-class-power-rt9471 (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
1*ab8174bbSChiYuan HuangWhat:		/sys/class/power_supply/rt9471-*/sysoff_enable
2*ab8174bbSChiYuan HuangDate:		Feb 2023
3*ab8174bbSChiYuan HuangKernelVersion:	6.3
4*ab8174bbSChiYuan HuangContact:	ChiYuan Huang <cy_huang@richtek.com>
5*ab8174bbSChiYuan HuangDescription:
6*ab8174bbSChiYuan Huang		This entry allows enabling the sysoff mode of rt9471 charger devices.
7*ab8174bbSChiYuan Huang		If enabled and the input is removed, the internal battery FET is turned
8*ab8174bbSChiYuan Huang		off to reduce the leakage from the BAT pin. See device datasheet for details.
9*ab8174bbSChiYuan Huang		It's commonly used when the product enter shipping stage. After entering
10*ab8174bbSChiYuan Huang		shipping mode, only 'VBUS' or 'Power key" pressed can make it leave this
11*ab8174bbSChiYuan Huang		mode. 'Disable' also can help to leave it, but it's more like to abort
12*ab8174bbSChiYuan Huang		the action before the device really enter shipping mode.
13*ab8174bbSChiYuan Huang
14*ab8174bbSChiYuan Huang		Access: Read, Write
15*ab8174bbSChiYuan Huang		Valid values:
16*ab8174bbSChiYuan Huang		- 1: enabled
17*ab8174bbSChiYuan Huang		- 0: disabled
18*ab8174bbSChiYuan Huang
19*ab8174bbSChiYuan HuangWhat:		/sys/class/power_supply/rt9471-*/port_detect_enable
20*ab8174bbSChiYuan HuangDate:		Feb 2023
21*ab8174bbSChiYuan HuangKernelVersion:	6.3
22*ab8174bbSChiYuan HuangContact:	ChiYuan Huang <cy_huang@richtek.com>
23*ab8174bbSChiYuan HuangDescription:
24*ab8174bbSChiYuan Huang		This entry allows enabling the USB BC12 port detect function of rt9471 charger
25*ab8174bbSChiYuan Huang		devices. If enabled and VBUS is inserted, device will start to do the BC12
26*ab8174bbSChiYuan Huang		port detect and report the usb port type when port detect is done. See
27*ab8174bbSChiYuan Huang		datasheet for details. Normally controlled when TypeC/USBPD port integrated.
28*ab8174bbSChiYuan Huang
29*ab8174bbSChiYuan Huang		Access: Read, Write
30*ab8174bbSChiYuan Huang		Valid values:
31*ab8174bbSChiYuan Huang		- 1: enabled
32*ab8174bbSChiYuan Huang		- 0: disabled
33