Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2574365rwb; Mon, 3 Oct 2022 02:51:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6nL24lV3hK/h5QeNy+/OF9ntjEwnVjmoEx7JHRaWuH9Eyq2bWpgpwjWlExo5XCwzBua73Y X-Received: by 2002:a05:6402:51d1:b0:451:ea13:1583 with SMTP id r17-20020a05640251d100b00451ea131583mr17688345edd.322.1664790700658; Mon, 03 Oct 2022 02:51:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664790700; cv=none; d=google.com; s=arc-20160816; b=ukD5xkPGzKrUg0xU3VAUrcYTP7c4/LO7/Dmfe7+KlP07yVEe52IPWhfQR5vMZkLJM6 8xOpYjs2trPYBeyHOYhX2fGMlXhdYZkUedyCChEQKgWn6gnnJ0xrkTEjEnteC4g8pcxC NDmQm6loovuDQH8EnlNie8U+YBihKwHzuYHNfKn6QafbQVz+jNvb9UrkbfYIfZb3E88q bNUm2Tqj/B0Cp5c+6Iaq1SGLp7bUs5hv11y9m9eunuEqYRDABAWQJnA762Emdp+nVZXX C47dWm3g2NCpswu5TZM/r03HHeRpYbnGH2XtH7achM/vXWEUmSX8rSoxiMoMvPhU7aPH pIvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=+mvi2JTs0dvAwwc0ZcikqL3pBiRVFH5ocOGLIEQjniw=; b=XPtQPVWbI5p5Ok+qMp9jrzKgesswkcPuO2FFGq7ylKi8MeOMLFdewxGjYcqZVi5HVZ dIk9WIptG3yL1Ei1TyTsn6ry3tjDljuhO5+gLnrdDymoJBo8LO0HERb4PrLmDwdNeVwj ERCOsPyUFr0idlPdB9m9joeqHm3VY/GePMvnvVSHxU+1F5T961YGSOxMtkO8I51nOG3k Mu8E/m3xJTD/PyL+6WTbIZIX28U3P05tgF2bF31t7rB5joA7O82k1nu+WobIhXbKyu4N l68Qil3totGxR6lEJwGHn4lHXyLzSfJjP56Rp+d8H8O/ulXWF4JLtSMbUaSjALvaxK4j OHdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="qypILY/y"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ez8-20020a056402450800b004592890379bsi449928edb.78.2022.10.03.02.51.14; Mon, 03 Oct 2022 02:51:40 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b="qypILY/y"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231283AbiJCJte (ORCPT + 99 others); Mon, 3 Oct 2022 05:49:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230504AbiJCJtI (ORCPT ); Mon, 3 Oct 2022 05:49:08 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B570F24099; Mon, 3 Oct 2022 02:48:29 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id y136so9754081pfb.3; Mon, 03 Oct 2022 02:48:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date; bh=+mvi2JTs0dvAwwc0ZcikqL3pBiRVFH5ocOGLIEQjniw=; b=qypILY/yq24wXIwO+qr1bJrABvOfG8SNkstwBQ2TdbVn/oHdvwuZEO3neJknyq3pWM 9+HO9wrE2/WtljZH7vjx1T0lJq7OswV+TFOB7fiUeIDHgk1so+et+sqV+lhAVyYSJbQx LPoIGclcKU7ejThadKP4KDrpoz05qoqvi3iwfBlLCxOTlbr0PvEz0dS32XmrWIBVaD4L dQFE0R75HeZ+SbRD0FrHx48cjtvNbhfaFzvh072KY07GiS+/OIrNuARa9zUJqYKVdJh8 /y3HIwf2d0QxvZqDg7b8zCwWxD0i6fkH2NPnbV5Da/h84zg2LxkOoTv217IBl/RtdezP 26xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date; bh=+mvi2JTs0dvAwwc0ZcikqL3pBiRVFH5ocOGLIEQjniw=; b=QFKgsoJsaV7n761NdxrWHnh1SaYzAiNNy4YsVviJCMIQCahNm/b3zICy+7Zcz2288o hKbMvxUzJOc4xoKteUARz5jYMmA50cKt1TxL1FIiG2ZkX85Wt4+ZK63pYpm2BscBQJQt p6ga/uroS+FeQlnboTTh/7W3R4PSLA7BQ69+v+tNIAbvhwDJkJbo7rHqfgeaphGYcehG USrwCsOESDBHaC/YbggDQm8u4VbwB7RussDgUCsfldqxM0PWhGmwVlDDCbWKHhEc5Y+R PJcaa+cK4CTqTlbSuG/sjCv9OMoLcRNTf/2VrmMiQgbCYqQC879PYznniKusngePhA45 5v5w== X-Gm-Message-State: ACrzQf2uq4hvUSM6vb+WRq8PIz+9rHSXrjXqFDcBch4NQDqAEXKNYfVt k25XHWH89n7Jysyp1eR/n5rMiXqOC9U= X-Received: by 2002:a05:6a00:2446:b0:528:5f22:5b6f with SMTP id d6-20020a056a00244600b005285f225b6fmr22136033pfj.73.1664790508859; Mon, 03 Oct 2022 02:48:28 -0700 (PDT) Received: from localhost.localdomain ([2402:7500:587:da00:1dbc:8208:4596:9e9c]) by smtp.gmail.com with ESMTPSA id t23-20020a6564d7000000b0043014f9a4c9sm6142230pgv.93.2022.10.03.02.48.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Oct 2022 02:48:28 -0700 (PDT) From: cy_huang To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, sre@kernel.org Cc: cy_huang@richtek.com, allen_chiang@richtek.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] Documentation: power: rt9759: Document exported sysfs entries Date: Mon, 3 Oct 2022 17:48:13 +0800 Message-Id: <1664790493-16386-4-git-send-email-u0084500@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1664790493-16386-1-git-send-email-u0084500@gmail.com> References: <1664790493-16386-1-git-send-email-u0084500@gmail.com> X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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 --- 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..7657419 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-class-power-rt9759 @@ -0,0 +1,37 @@ +What: /sys/class/power_supply/rt9759-*/watchdog_timer +Date: Oct 2022 +KernelVersion: 6.1 +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: Oct 2022 +KernelVersion: 6.1 +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: Oct 2022 +KernelVersion: 6.1 +Contact: ChiYuan Huang +Description: + Reports the current BAT current. + + Access: Read-Only + + Valid values: Represented in microamps -- 2.7.4