Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp25809061rwd; Mon, 3 Jul 2023 01:02:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlFMYlS27fa6+J5DWXhigBcU7APZuLnZYDFwf3CvussDQN/ypcaCxrkoLYumx/qUkXhMyTH9 X-Received: by 2002:a92:d2d2:0:b0:345:a319:ba83 with SMTP id w18-20020a92d2d2000000b00345a319ba83mr9340903ilg.29.1688371366610; Mon, 03 Jul 2023 01:02:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688371366; cv=none; d=google.com; s=arc-20160816; b=whOYeO9GwHrKOAN99aBRLYerTx/9PUrGBRCSfmFUOfjXKgszSPxFa3ub3jK+sOMPtZ fIlO3DUa4Nx682JX0UQq5Qu1aukBlZxfG4J7R4yxsCQKSIjIQBCRlTWRILJiE3CIh48v bv5E2NDdkYdnM+jqicOhRW/tL8e8ZDjmJQCptjQ4ZocvHq/C3PhNfRvwpYa5WBI1dOZJ 9/PzEtbwSJ1b1g8LpekutWXQ8tTiBY1mUgUQdV/JQPM6DSGguW+DVttX2sP4foCk+BIr X5ujK3fIqUmE2NZWejRmtmssLN19wO2ZVRy7+wx8tYS+k0gUKPz5M1I1a1R114CV77Ym RXPg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bk13-20020a056a02028d00b005539d3ab914si19109906pgb.694.2023.07.03.01.02.28; Mon, 03 Jul 2023 01:02:46 -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 S230412AbjGCIBO (ORCPT + 99 others); Mon, 3 Jul 2023 04:01:14 -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 Content-Type: text/plain 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 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 -- 2.40.1