From patchwork Mon Jul 3 08:00:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChiYuan Huang X-Patchwork-Id: 115220 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp364552vqx; Mon, 3 Jul 2023 01:21:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7W810PMmKNlfoJbT/4anqa75lPU1q0B6h7dirYnyX/Yf6df5WZxhStc37EIDOiMCwMciYQ X-Received: by 2002:a05:6a20:1456:b0:111:77cf:96dd with SMTP id a22-20020a056a20145600b0011177cf96ddmr15283170pzi.5.1688372476066; Mon, 03 Jul 2023 01:21:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688372476; cv=none; d=google.com; s=arc-20160816; b=ovePhIVxiDTug4htf7JmGaT1c2KBZICShvOp5BVfhOmnwyWNoFY+liJ4C6oPzJvxZG TZL9+T46bJ1wv7aul18NjIvS7+poXwxITLjyIvcUMBuTTeXVmm7GPs3KVpeq8st5vfx/ QRd94/DL3XIjavT5rTPB9qrcKZdUxdherD02g2Sm/OY20xZCEUd5T/tYd4Uo7PpsFIls 0WCs2yutLNQUrfspG7UHWAC1cjwnr1riXNY0Dj9GCt4AvOBZjOhw0U4BFXsuYqzhb2X5 pi8e3mdI7ovAYfNEl0WahD6hP+932L6SC1+MrmE7Aa+xcW+57FAXvtDds0IyfxXXejVY 5g9A== 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=wd5HL301Nul+BgrHRoCU7J+CRCMPlr436y3OmzIHo+g=; fh=SV43oIMou6dSD499BvlWhNfGCVbQ6M1veycSQgez/OI=; b=uHRE6LSsNqWgSPUp3wjVS+EKIiN02E6UlQZg63gTmy85KLkPbXvib+6HIVCp6l+Lsz L7KS3N22awwFxyXxnX81gq8eZKXtGq0vy9zU/aUCOG5J9cNIHDMLqY4/X6NJ6mdCGt82 HHUvt0xXb1RvArDKzgw25VrGZEY3giXxwU98FpqihXTJ9REA5aX+ZQnPcm8LIFduvWfS gQCT2/UpVTiPLo353iFroYtmgDPOjBdaAsF1OSP9vLdiUEIiK2fUJZkXEUgx5GCP9W7O g49eih2Rq7DwMCwcGJAo0it/H02SCtKc0cXWK7xw6OIlJ3xH6TdEWbzqmVbFigUX33qx rc8g== 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 s18-20020a170902a51200b001b7dde4801dsi16848666plq.530.2023.07.03.01.21.00; Mon, 03 Jul 2023 01:21:15 -0700 (PDT) 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 S230426AbjGCIBP (ORCPT + 99 others); Mon, 3 Jul 2023 04:01:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229944AbjGCIBD (ORCPT ); Mon, 3 Jul 2023 04:01:03 -0400 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2A4B2E4E; Mon, 3 Jul 2023 01:00:51 -0700 (PDT) X-MailGates: (SIP:2,PASS,NONE)(compute_score:DELIVER,40,3) Received: from 192.168.10.47 by mg.richtek.com with MailGates ESMTP Server V6.0(3453516:0:AUTH_RELAY) (envelope-from ); Mon, 03 Jul 2023 16:00:35 +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, 3 Jul 2023 16:00:35 +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, 3 Jul 2023 16:00:35 +0800 From: To: Sebastian Reichel , Krzysztof Kozlowski , Conor Dooley CC: Rob Herring , ChiYuan Huang , Allen Chiang , "open list:POWER SUPPLY CLASS/SUBSYSTEM and DRIVERS" , open list , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Subject: [PATCH RESEND v4 3/3] Documentation: power: rt9759: Document exported sysfs entries Date: Mon, 3 Jul 2023 16:00:29 +0800 Message-ID: <1688371229-1089-4-git-send-email-cy_huang@richtek.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1688371229-1089-1-git-send-email-cy_huang@richtek.com> References: <1688371229-1089-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,T_SCC_BODY_TEXT_LINE 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?1770386857329543916?= X-GMAIL-MSGID: =?utf-8?q?1770386857329543916?= 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 --- .../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 000000000000..a7a9e06f51b0 --- /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