From patchwork Fri Jan 13 06:34:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChiYuan Huang X-Patchwork-Id: 42997 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp120763wrt; Thu, 12 Jan 2023 22:53:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXuoih3KZ1x/tsXW1NbFwWJqzd+rRHRYTAgf3KQ7GribTQkqsRpvzW/xGuD+jd5GisC1AR0r X-Received: by 2002:a50:ec85:0:b0:492:8c77:7da9 with SMTP id e5-20020a50ec85000000b004928c777da9mr26441999edr.9.1673592802960; Thu, 12 Jan 2023 22:53:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673592802; cv=none; d=google.com; s=arc-20160816; b=fUYFqjQZfzhzqXTuQwBJLYdvxbXj2C4tNYRgncOXqYcAsNE6aJqdDLNCuL+g0fabkW TMZvvsi29+PBrrX12u/QNbgoeV30IVXRob/s1BqnKwwWL1gWvGDQtArJ3a6XUNhaMLWv aRiS0Fh0FmOMwsOFtcrrPLUl/zrhRVWPc/4bmz7KJWesfzJ5dJWANifBA4YV/Hc08ECR 1dBWnFqe9tXE4I9eNMndzmuaOikEM2lZpClGCQAii2wzPtubp8pPmHm/z9v0bPGO+MKZ mg4qq+YHHV73l4DqvEXmHsMduUUC8IuNqDxD76/2NjpzYIoTbEc76A3R8ToSzk2Fk3Eo D47g== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b5-20020a056402084500b0048bfc2985basi23885572edz.304.2023.01.12.22.52.59; Thu, 12 Jan 2023 22:53: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 + 99 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 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?1754889247333255520?= X-GMAIL-MSGID: =?utf-8?q?1754889247333255520?= 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