Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp463291rwb; Thu, 12 Jan 2023 23:21:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXtTXys2KAqZHqwPPtUCGIiaAzn4CWETlRpiPeT4+lme+cN997Q/wxrRRukgh1QWCuFeGs64 X-Received: by 2002:a17:903:12d0:b0:194:3f27:6fa8 with SMTP id io16-20020a17090312d000b001943f276fa8mr12766067plb.11.1673594482434; Thu, 12 Jan 2023 23:21:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673594482; cv=none; d=google.com; s=arc-20160816; b=q3YUJkM0u7WBpKwF2fqsiwVE1bmc5nuQG0ROGqT3wDUNPmPLpB9sa7oFQ3Ky7XwcgY l2c76h9ACXw52ZFFM3OjE507gNaHGIVr3zEeS6mvnPceyvFg5dqwyITMjM8zZKMgJrvl z43HKCBmwOwBwGXAudL2tuKM2ZGeEqP6KfKiyyu+3IzpmIrz7ofoQsSwdW2WPNx9nbG4 6xbOnvLCeIbEu4teAZJvxkNS65svNGCDCieDhHtow4Al3e+VNDLu3Ws3sKoktuy8XNol mDKoD4Scp1okXkUsmiy7tJifiA7EoimTrhg0SoyoN2vJcGzq7Y3LxvbpWCxrclHJLRyV o0sA== 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=WDpwxLGYQHucsjbGGxsVmJprs34jMYlaaLdB2Tw2WYk=; b=s51U9VVJW/yc8kivH7RQ8bjLC3bgVOGg6E/P74I8qzlEuu9j5dPRdPeYwVTNhGUCXh FT7PAH8vE++v75FU94Kaf4/RYsSZx1wpwnxuii+2aqh4Dnu3Z+rtOu3GOBBisS7895db Jy1d9QcC3tXgi3xzk4udGOJr1zg4WtJWvu2j/08THVAILzRLGkfI3KIEDF19g3cbTafO X8glJrbI3PVO0aN9bEb/cqsviJ8yxb/bkoFbGxY+uuedtxFoDbTwD4hEFFfQwFETpR6y VDCwpfgKe8/565bIaF4PlDMYuyMXTXqx96ZaFMSdMJqhyHe3btRq0/MWsh2sgezyHPYD Huzg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j5-20020a170903024500b0018862b7f8bbsi21352120plh.198.2023.01.12.23.21.15; Thu, 12 Jan 2023 23:21:22 -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 S238106AbjAMGwO (ORCPT + 52 others); Fri, 13 Jan 2023 01:52:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234084AbjAMGv1 (ORCPT ); Fri, 13 Jan 2023 01:51:27 -0500 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 51DE87F458; Thu, 12 Jan 2023 22:35:22 -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(16475:0:AUTH_RELAY) (envelope-from ); Fri, 13 Jan 2023 14:34:44 +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.20; Fri, 13 Jan 2023 14:34:43 +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.20 via Frontend Transport; Fri, 13 Jan 2023 14:34:43 +0800 From: To: , , CC: , , , , , Subject: [PATCH RESEND v3 3/3] Documentation: power: rt9759: Document exported sysfs entries Date: Fri, 13 Jan 2023 14:34:42 +0800 Message-ID: <1673591682-25789-4-git-send-email-cy_huang@richtek.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1673591682-25789-1-git-send-email-cy_huang@richtek.com> References: <1673591682-25789-1-git-send-email-cy_huang@richtek.com> MIME-Version: 1.0 Content-Type: text/plain 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 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 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..8a7258f --- /dev/null +++ b/Documentation/ABI/testing/sysfs-class-power-rt9759 @@ -0,0 +1,37 @@ +What: /sys/class/power_supply/rt9759-*/watchdog_timer +Date: Nov 2022 +KernelVersion: 6.2 +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: Nov 2022 +KernelVersion: 6.2 +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: Nov 2022 +KernelVersion: 6.2 +Contact: ChiYuan Huang +Description: + Reports the current BAT current. + + Access: Read-Only + + Valid values: Represented in microamps -- 2.7.4