From patchwork Mon Mar 6 01:12:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChiYuan Huang X-Patchwork-Id: 64383 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1604482wrd; Sun, 5 Mar 2023 17:27:32 -0800 (PST) X-Google-Smtp-Source: AK7set9MIs26ijrhnjBaK6WyzhTraDsUXi8GIS8MiArHSSwk+wGD2BBkkii404tl/A/De6Eoq8jY X-Received: by 2002:a17:906:560d:b0:8b1:4516:238 with SMTP id f13-20020a170906560d00b008b145160238mr12758187ejq.26.1678066052318; Sun, 05 Mar 2023 17:27:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678066052; cv=none; d=google.com; s=arc-20160816; b=KoAqi5a2Udk622PqVoK6H7HylPEUl98QqxmhE1KNxoIVtPhw3mdMxx+wj8303oPv55 jX1ZLmZk5u65NlaDIm/Qar9t2ZDttWV9wVBXrtV4yUFGtgwPiwLSx9qx1r/4wbHRv6bB ze9BUVWc/WwdcqiFPj3pAC+Tc8uCL7EtAJD5CMtSUDTpBjxWmJYxl0PJMttaJWlyTLfs 4f+e6jU8oLF7yNblmbcy1n7aDabZl74n5JKRjtRlg4IKnxPofAZ/37t8VwIssMxZ4mmy HZ8SsY9Mkdo5F+bfQkYC0pYM5QhNmK4CsnJCegPzE4PWTs1Y4ruDcYJs+tBy9l1dgc+G ssjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=O/KunTPpIAXIQE9VbOhjqlvmYdniiSF+K44wQnEftuY=; b=JjmZ5/teevAO9g8OAPTK6+3jQDZw36uHmCL5hu4AJqFl3pUyvRrVI9v5tX1KBLL4B7 X5UuGc5B1Iy+dHlrmfiFYZa0t2SgOOz4enX3+2u+sjWDCH8BOuZotLJG8706oti2SB99 84jWv9XW5S0hd7Z23m6oyTPArQb0sozgYYNz4+RYY810DaZ8elV8tDiioDEM6vlxJmSj AN5Ycfue8zJkofkEk5P4nviJLg8RUctyLB90rwy78Ks9p8gmTKB351wriQr6eEw3okek JNZCe+TKTjx/o6iSDRcD2Hwvf2w79ZSQrgMaGyHKPHtAbXm4fV7fVUohYT7ziDGBS2PO mKVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020aa7cf15000000b004acb9fd1a19si9705552edy.72.2023.03.05.17.27.09; Sun, 05 Mar 2023 17:27:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229696AbjCFBNJ (ORCPT + 99 others); Sun, 5 Mar 2023 20:13:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbjCFBNH (ORCPT ); Sun, 5 Mar 2023 20:13:07 -0500 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 95CFB30E3; Sun, 5 Mar 2023 17:13:04 -0800 (PST) X-MailGates: (flag:4,DYNAMIC,BADHELO,RELAY,NOHOST:PASS)(compute_score:DE LIVER,40,3) Received: from 192.168.10.47 by mg.richtek.com with MailGates ESMTP Server V5.0(16300:0:AUTH_RELAY) (envelope-from ); Mon, 06 Mar 2023 09:12:55 +0800 (CST) Received: from ex4.rt.l (192.168.10.47) by ex4.rt.l (192.168.10.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Mon, 6 Mar 2023 09:12:55 +0800 Received: from linuxcarl2.richtek.com (192.168.10.154) by ex4.rt.l (192.168.10.45) with Microsoft SMTP Server id 15.2.1118.25 via Frontend Transport; Mon, 6 Mar 2023 09:12:55 +0800 From: To: , , CC: , , , , , Subject: [PATCH RESEND v4 3/3] Documentation: power: rt9759: Document exported sysfs entries Date: Mon, 6 Mar 2023 09:12:52 +0800 Message-ID: <1678065172-20085-3-git-send-email-cy_huang@richtek.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1678065172-20085-1-git-send-email-cy_huang@richtek.com> References: <1678065172-20085-1-git-send-email-cy_huang@richtek.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759579788648953821?= X-GMAIL-MSGID: =?utf-8?q?1759579788648953821?= From: ChiYuan Huang Document the settings exported by rt9759 charger driver through sysfs entries: - watchdog_timer - battery_voltage - battery_current Signed-off-by: ChiYuan Huang --- 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 +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 +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 +Description: + Reports the current BAT current. + + Access: Read-Only + + Valid values: Represented in microamps