From: cy_huang <u0084500@gmail.com>
To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, sre@kernel.org
Cc: cy_huang@richtek.com, allen_chiang@richtek.com,
linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 3/3] Documentation: power: rt9759: Document exported sysfs entries
Date: Mon, 3 Oct 2022 17:48:13 +0800 [thread overview]
Message-ID: <1664790493-16386-4-git-send-email-u0084500@gmail.com> (raw)
In-Reply-To: <1664790493-16386-1-git-send-email-u0084500@gmail.com>
From: ChiYuan Huang <cy_huang@richtek.com>
Document the settings exported by rt9759 charger driver through sysfs
entries:
- watchdog_timer
- battery_voltage
- battery_current
Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
---
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..7657419
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-power-rt9759
@@ -0,0 +1,37 @@
+What: /sys/class/power_supply/rt9759-*/watchdog_timer
+Date: Oct 2022
+KernelVersion: 6.1
+Contact: ChiYuan Huang <cy_huang@richtek.com>
+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: Oct 2022
+KernelVersion: 6.1
+Contact: ChiYuan Huang <cy_huang@richtek.com>
+Description:
+ Reports the current BAT voltage.
+
+ Access: Read-Only
+
+ Valid values: Represented in microvolts
+
+What: /sys/class/power_supply/rt9759-*/battery_current
+Date: Oct 2022
+KernelVersion: 6.1
+Contact: ChiYuan Huang <cy_huang@richtek.com>
+Description:
+ Reports the current BAT current.
+
+ Access: Read-Only
+
+ Valid values: Represented in microamps
--
2.7.4
prev parent reply other threads:[~2022-10-03 9:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-03 9:48 [PATCH 0/3] Add Richtek RT9759 smart cap divider charger support cy_huang
2022-10-03 9:48 ` [PATCH 1/3] dt-bindings: power: supply: Add Richtek RT9759 smart cap divider charger cy_huang
2022-10-03 18:01 ` Rob Herring
2022-10-03 9:48 ` [PATCH 2/3] power: supply: rt9471: " cy_huang
2022-10-03 9:48 ` cy_huang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1664790493-16386-4-git-send-email-u0084500@gmail.com \
--to=u0084500@gmail.com \
--cc=allen_chiang@richtek.com \
--cc=cy_huang@richtek.com \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=sre@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).