Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6630559rwi; Mon, 24 Oct 2022 04:14:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6GxBltA36h3GAFGaE/2UO1QLvx8Y14aQlbKvsbQx2NVZyOelVHRYx+88BHoYjN4iDJ8+Iv X-Received: by 2002:a17:90b:3a88:b0:209:f35d:ad53 with SMTP id om8-20020a17090b3a8800b00209f35dad53mr72941165pjb.102.1666610037121; Mon, 24 Oct 2022 04:13:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666610037; cv=none; d=google.com; s=arc-20160816; b=cCx8AIMa/QiMR8i+abgNFxAaR3F5Ld2q5wZI5Sf8189PBmqV6XZmIS/NvfXUf4GWt0 apC6DETZvMtcufDU5zPXY7trKkil8JeZtPtz31kM/nmNp311ngGlfFvZB2IFR04zCt5V 719qi2nVXpyOu0Xf7ko6iQDTMDsFr05Xg8M+Ej46KxFKNiOHOPw7700SVdnGOj5OfIa9 ve8CsxGqucAn3IGh/021+vYOZCLJdwzDmtseAmOB3uK4DoV/lDVu3PlnjfvOU1VeuZNS Rxq78G5hPm5HtnUVLDjYOpdfpj/KuRcg6qsrPQ7/AetN3qs76+lsfmdlUs6cgZyJCpSX dhiw== 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=JailJRGGT+MU7QQfQRg334ru/W+CJ+3fnThCLH1Q1Is=; b=vOIJ2+pUDCawaFGsu5Nn0MhXt5BQl9G9V8Bro+H910DpNxj2oCEYbAjPie9Tqpx8lp mVjL1wGkl4m8PnBra6LKB5IKIwAfhEnjA9MA+oWg+q/coZSnT5VRosY0GzCe3ZLWDdmy Dp2XAlcnTgcjmNP24j3Kw6pWX+golcG8rkxx22mwPZypYKtDQ8rmt1KP0xhrL+Plt07x qTKRulis+PestmH2XFlBGqC0WLpQg695U1SBiIuGhUIl7N3G5P4Qi3GfsM1T+5t7u+4h kCsiI6wz+sspg0yi1Y/Cw+U/vCqOvBPg13LumsFHffL6Ikj1gN7+SkRIcwjjDHsnRWGm Uo0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PgpRBRAV; 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 x14-20020a63170e000000b004393f62586csi37721461pgl.238.2022.10.24.04.13.45; Mon, 24 Oct 2022 04:13:57 -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=PgpRBRAV; 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 S229536AbiJXK6N (ORCPT + 99 others); Mon, 24 Oct 2022 06:58:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229909AbiJXK5b (ORCPT ); Mon, 24 Oct 2022 06:57:31 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70E0D53A4D; Mon, 24 Oct 2022 03:57:22 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id 4so2229110pli.0; Mon, 24 Oct 2022 03:57:21 -0700 (PDT) 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=JailJRGGT+MU7QQfQRg334ru/W+CJ+3fnThCLH1Q1Is=; b=PgpRBRAV0VQnb3CsMbkFilLmdJ93zWOEdIjNmUQ+izERRYl7Fm/SF5f61YzXPDYZzP u8GGg0HxNzrwDdLYslNmy3wjqXnEt7aAxcuJ1ekzpBIR96KyqwzY6A2KoqgkqnBETRwV W1ilOny8va381kPdMXBrs05mZaHvufZnK4NLnzn+l0tnM2tUsfBuTFCBo+r8U0fuhsVZ ASZS3dNvaYLwGtMQzB/uQ/f8wZT+RKZBxhMakHC7cbE0l2gNjJl7RY+33rEzxT42r5Fy 6zjKY9NKgQ5R04H5KE1kZLYNEh8GZEphgPxgiXkTN/BRYHvJoCLwddokfUbxNHa0hhZk Dkkw== 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=JailJRGGT+MU7QQfQRg334ru/W+CJ+3fnThCLH1Q1Is=; b=xhLP8FVQNyNh5qtXD93sM5icnYEic3ZRmN6STtouZzXnBszDjDFvaLqD7Tua8XeeOA WIpzV2H0b8XmLWJ5yFF3z/F7pSVxLp66EleLnKRmTLQzgHW+RQaJ/yHQSU614f5TQOo9 wYhi61DaLZd+VWX5ZVAquAbWIl5NON/b049JvS4kXZm0gJEfhW2aN6HxX157i/xXsS9k vkUHpBF/DhKN1WUglEIQ567t0DnCV8y51VO1Pgv4oPtNPZ8bvGBiG4iwtvkHQbosiBXH pwa+zTUlitPGz+qGExNVy3wlP1y6ol+6HHT/HaKETLZm/xnbSUeZYpdskXECLFP1FX7T WEjw== X-Gm-Message-State: ACrzQf0VGAoWh52ZezD9mSEqcWm+slULS/Gv4XKd5KcKBS1Pb/ghCQI4 XniU5dYU8gKyQVUSskKOeBc= X-Received: by 2002:a17:903:2286:b0:185:3948:be93 with SMTP id b6-20020a170903228600b001853948be93mr33287486plh.121.1666609032732; Mon, 24 Oct 2022 03:57:12 -0700 (PDT) Received: from RD-3580-24288.rt.l (111-82-141-7.emome-ip.hinet.net. [111.82.141.7]) by smtp.gmail.com with ESMTPSA id a15-20020a631a4f000000b0045751ef6423sm1366696pgm.87.2022.10.24.03.57.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 03:57:12 -0700 (PDT) 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 3/3] Documentation: power: rt9467: Document exported sysfs entries Date: Mon, 24 Oct 2022 18:55:48 +0800 Message-Id: <77bc3eb3e8ecc6035bd492b801c0bff8fe4212a7.1666633143.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 --- Documentation/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 0000000..dd0b962 --- /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.7.4