From: ChiYuan Huang <[email protected]>
Document the settings exported by rt9759 charger driver through sysfs
entries:
- watchdog_timer
- battery_voltage
- battery_current
Signed-off-by: ChiYuan Huang <[email protected]>
---
Since v4:
- Modify date to 'Mar 2023' and kernelversion to next '6.3'.
Since v3:
No change
Since v2:
- Change ABI document date from Oct 2022 to Nov 2022 and KernelVersion
from 6.1 to 6.2
---
Documentation/ABI/testing/sysfs-class-power-rt9759 | 37 ++++++++++++++++++++++
1 file changed, 37 insertions(+)
create mode 100644 Documentation/ABI/testing/sysfs-class-power-rt9759
diff --git a/Documentation/ABI/testing/sysfs-class-power-rt9759 b/Documentation/ABI/testing/sysfs-class-power-rt9759
new file mode 100644
index 00000000..a7a9e06
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-power-rt9759
@@ -0,0 +1,37 @@
+What: /sys/class/power_supply/rt9759-*/watchdog_timer
+Date: Mar 2023
+KernelVersion: 6.3
+Contact: ChiYuan Huang <[email protected]>
+Description:
+ This entry shows and sets the watchdog timer when rt9759 charger
+ operates in charging mode. When the timer expires, the device
+ will disable the charging. To prevent the timer expires, any
+ host communication can make the timer restarted.
+
+ Access: Read, Write
+
+ Valid values:
+ - 500, 1000, 5000 or 30000 (milliseconds),
+ - 0: disabled
+
+What: /sys/class/power_supply/rt9759-*/battery_voltage
+Date: Mar 2023
+KernelVersion: 6.3
+Contact: ChiYuan Huang <[email protected]>
+Description:
+ Reports the current BAT voltage.
+
+ Access: Read-Only
+
+ Valid values: Represented in microvolts
+
+What: /sys/class/power_supply/rt9759-*/battery_current
+Date: Mar 2023
+KernelVersion: 6.3
+Contact: ChiYuan Huang <[email protected]>
+Description:
+ Reports the current BAT current.
+
+ Access: Read-Only
+
+ Valid values: Represented in microamps
--
2.7.4