From patchwork Mon Feb 6 01:45:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChiYuan Huang X-Patchwork-Id: 52968 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2002848wrn; Sun, 5 Feb 2023 17:46:33 -0800 (PST) X-Google-Smtp-Source: AK7set9IfJJRyxVi83mZ66u0iWj+PRckQSc+yOmU9RzGpAV5+5NFaQmCYreZ4B+DcOQz4ZN4eVYo X-Received: by 2002:a17:902:da8e:b0:198:adc4:22a1 with SMTP id j14-20020a170902da8e00b00198adc422a1mr9651780plx.28.1675647992836; Sun, 05 Feb 2023 17:46:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675647992; cv=none; d=google.com; s=arc-20160816; b=CvEyGDd5WqODaN8NuqT994p7zaQBZTQ9BWwnK/TxZWSQImiKdbSXF+bGkx/12oxjLc PCjWaTIYwxpKI+jh9hlWrN0ZlAF8ndcNtBTnOz9xmT3FwOeVQG4dMEZrzj3Ax3HxLBos +t2atWeCJwdVvFbnhwYUZAr8k/O525vV78tCqThJab9yB47WcRi59oh+cAfYkwjaFx9q FcSN3Q4Yx0QDcuulaJrmd9bwa0k0MS+FKmYkTNZt4k390RVdpYP6QHeFGid8DZ8n6Jby 1WSDmCQLydVTbev0NDXalBkjYeLzUhWbmYK4Fpo94lFSU7smvzI0oN5qVNZrphTFpoe5 lmWQ== 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=kLOt7epuykbtU+bgvIge95FFIir9TNGczmGQa2yi9w4=; b=EsIgI6XKqg3Q5Rg2/Aru+eZMPxFXUPfpHPE61bVfm0vdUBC+bE9dy18rUtKFpq6hUn Eo4XpwRVPPWbSuZp+7zHn7TvSCVKBiGZvMs2pKAHjxF3QgcujPjxEQvyoMyCh1Om3ucP lzJ7SJpuq3TL/KZ2ZtXqP1xDv2jVXvrG6CdQ6uk2hVu5unPKgG72uENl2Y/zsTqW6gmO XBRHtAU1J7NTzIWkhinmSJMstS0oIMNRcomOV4SJeQm9FwJrMxMfKOdrTt9F072+gvXR ywRiqnSMAu472wi9B/3meIhGJ6ii5SyAG6sKgtv9+KXHozQ15gjudtqQTv6KUd8cY7R4 9xIA== 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 c13-20020a170902b68d00b00194acceb287si8790704pls.529.2023.02.05.17.46.21; Sun, 05 Feb 2023 17:46: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 S229619AbjBFBps (ORCPT + 99 others); Sun, 5 Feb 2023 20:45:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjBFBpp (ORCPT ); Sun, 5 Feb 2023 20:45:45 -0500 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 02C531ABDD; Sun, 5 Feb 2023 17:45:41 -0800 (PST) X-MailGates: (flag:4,DYNAMIC,BADHELO,RELAY,NOHOST:PASS)(compute_score:DE LIVER,40,3) Received: from 192.168.10.46 by mg.richtek.com with MailGates ESMTP Server V5.0(20368:0:AUTH_RELAY) (envelope-from ); Mon, 06 Feb 2023 09:45:24 +0800 (CST) Received: from ex4.rt.l (192.168.10.47) by ex3.rt.l (192.168.10.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.20; Mon, 6 Feb 2023 09:45:24 +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; Mon, 6 Feb 2023 09:45:24 +0800 From: To: , , CC: , , , , , Subject: [PATCH v4 3/3] Documentation: power: rt9759: Document exported sysfs entries Date: Mon, 6 Feb 2023 09:45:19 +0800 Message-ID: <1675647919-11151-4-git-send-email-cy_huang@richtek.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1675647919-11151-1-git-send-email-cy_huang@richtek.com> References: <1675647919-11151-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?1757044269491048700?= X-GMAIL-MSGID: =?utf-8?q?1757044269491048700?= 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