Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11521149rwl; Mon, 2 Jan 2023 23:59:01 -0800 (PST) X-Google-Smtp-Source: AMrXdXuikkav8TvwNh5/R3R0VdZKyDzV1dI2bbxYjj8OByuMQndSWaLz/lAcvD2tVpU56RRJLWxR X-Received: by 2002:a17:907:d68e:b0:7c1:37:421c with SMTP id wf14-20020a170907d68e00b007c10037421cmr38315609ejc.32.1672732741471; Mon, 02 Jan 2023 23:59:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672732741; cv=none; d=google.com; s=arc-20160816; b=FT3LzbRVNOpduKmZa4M3afDf/69ya+4El8j4RdphKLNEggJ35TG7F60ves3OrP+h3W 6IQFJMGxRoazb0T6haKAH08Q9C2AKILe8KB5o2br0awsnTEAojww+O4C4/3u2KfLACUh NR4c4j2SUC3KZYjPePCZiDh1Vkj8Nk9AbzbZkaAS2rBoC7/q4BSMUowdy/mcKLrTHRh0 XrWnkz8VAkbOJ1MHdnDnkFtGwFmF/hYjk38FvlRXdGrlbCp3um5pWiaUzrj0Zn/gM6Sq TH85Rru7sx+e/lN/Gnk5dx0hMiOTtCV8VkCj6xuR7TcSKGXiJs8/VU5N14IduzpUJHt5 izmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MgJSdtU2k5DHs16MCkmtC7fasexNDJAPB3/Jh9qcLJg=; b=cLPQ4VUSnQ0zUjMR2mSmZ0ccK3LGaXr4QeeaVt12UTRW+1Jvf2t1GrXSSgx1xxLiea ySdK6SNLAO2dwi159pOrROQg85wfdiFfCRJoI94pDGqYwthahCMKrgTM7WeJkhQc2EVZ 87QWJ8sQ+O6WQ4KZRY/bQZHxujZpA+Z4nh2g6Fm6UE/tN+JF4YHiNkjeaT7bXAlyjI/g fYe+13Bc63WZOYoRD9YVffCVn+50ITiuuuLHv1/QO1haU6+Ol9BkPkgQWiH9OP6CMYb4 NUKc4KKULvO6jCUc9WPHbZOUxpYR7ei1GBuk4czE1DfU1e97lqY8/R0AOAU+utpBEZ3D /mjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SdwB+zDX; 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 wu8-20020a170906eec800b0078d2a99972fsi27524205ejb.316.2023.01.02.23.58.47; Mon, 02 Jan 2023 23:59:01 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SdwB+zDX; 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 S236923AbjACHan (ORCPT + 61 others); Tue, 3 Jan 2023 02:30:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236920AbjACHa1 (ORCPT ); Tue, 3 Jan 2023 02:30:27 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39A4ADEF6; Mon, 2 Jan 2023 23:30:25 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id fz16-20020a17090b025000b002269d6c2d83so532842pjb.0; Mon, 02 Jan 2023 23:30:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MgJSdtU2k5DHs16MCkmtC7fasexNDJAPB3/Jh9qcLJg=; b=SdwB+zDXEaHU4oZBTmY3m+dKSnLVICNSo4jmK0Sm24mrrb221JNuCBqCCuiMucr0xs rTq5xyPdch4Bb7MwXhY8jg3U8MnxIUQhZKdk2MyCXQJMSTxwg3A6C6JknW5BZJC5ocrL eMep2xFGfKWN1G+v49tZjvM17vX7lnhw9roGcsmJxC0wUNSW3ZhLnbaptQC1ZGk6fQ+p AGBUb8EgZMjJ6sKwTecymAD2bInIbhWF94NzQNB56qRBBTCWH5q2mt+9rM/D1GxtOU1D Cya0XlIbbj7JsZsHLEkxh/Nnc+QWkL1MVKHHmrHJjYwalKcfCcojchmmu6nyun02AMBi zQWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MgJSdtU2k5DHs16MCkmtC7fasexNDJAPB3/Jh9qcLJg=; b=tLTk9G2QBp3HiO6qEoWZA1VeNEUpGfysxT5GFw3MnTWSng72Y1UTFHsDliAsYba1f0 L+3NVu6qQ/NMSSbPn5yycYZYubou9/BND0T0tpqhSXjC9ucjn+j1vqHTYQFegiKh6FZx M1yAW5+/50hzpaoPLujSuiDrgmN4iL2zXiFakxzUftkqQZyXfRryUvumKLHEn2mVlI6A 2sFgUotnxLYaYPQbYguaFbQLfb7xZ9ilWvNbExctIQoA1cn+aRXXD8QlMs0D4mYaxGWV zwqVML/EFj5sjkLdBw1A1uF0H87gNXLaDvXZiYw9nOSQsTGEtvEALN8H6rrFn8atxLPM 5n7A== X-Gm-Message-State: AFqh2kqcURzshbTFJeApu4T0JGi3Qv1rKMrGriBJkZN6Qs0FtnRZg0qA 5iKro7euCBdx8Z6/2BfoI7s= X-Received: by 2002:a17:903:181:b0:191:1b93:e391 with SMTP id z1-20020a170903018100b001911b93e391mr59557428plg.63.1672731024733; Mon, 02 Jan 2023 23:30:24 -0800 (PST) Received: from RD-3580-24288.rt.l (42-73-255-34.emome-ip.hinet.net. [42.73.255.34]) by smtp.gmail.com with ESMTPSA id f4-20020a170902684400b00189f69c1aa0sm21449839pln.270.2023.01.02.23.30.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Jan 2023 23:30:24 -0800 (PST) From: ChiaEn Wu To: sre@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: chiaen_wu@richtek.com, cy_huang@richtek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH v3 RESEND 3/3] Documentation: power: rt9467: Document exported sysfs entries Date: Tue, 3 Jan 2023 15:29:58 +0800 Message-Id: <9dfc9e50a96cac7f0ef9e3d40cee3ef42b2f9034.1672730839.git.chiaen_wu@richtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: ChiaEn Wu Document the settings exported by rt9467 charger driver through sysfs entries: - sysoff_enable Signed-off-by: ChiaEn Wu --- .../ABI/testing/sysfs-class-power-rt9467 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-class-power-rt9467 diff --git a/Documentation/ABI/testing/sysfs-class-power-rt9467 b/Documentation/ABI/testing/sysfs-class-power-rt9467 new file mode 100644 index 000000000000..dd0b962f6fd4 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-class-power-rt9467 @@ -0,0 +1,19 @@ +What: /sys/class/power_supply/rt9467-*/sysoff_enable +Date: Oct 2022 +KernelVersion: 6.0 +Contact: ChiaEn Wu +Description: + This entry allows enabling the sysoff mode of rt9467 charger + devices. + If enabled and the input is removed, the internal battery FET + is turned off to reduce the leakage from the BAT pin. See + device datasheet for details. It's commonly used when the + product enter shipping stage. After entering shipping mode, + only 'VBUS' or 'Power key" pressed can make it leave this mode. + 'Disable' also can help to leave it, but it's more like to + abort the action before the device really enter shipping mode. + + Access: Read, Write + Valid values: + - 1: enabled + - 0: disabled -- 2.25.1