From patchwork Wed Feb 7 13:18:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aishwarya Pant X-Patchwork-Id: 10205167 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 087496020F for ; Wed, 7 Feb 2018 13:18:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF5B828F1C for ; Wed, 7 Feb 2018 13:18:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D415928F27; Wed, 7 Feb 2018 13:18:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B91528F1C for ; Wed, 7 Feb 2018 13:18:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753675AbeBGNSJ (ORCPT ); Wed, 7 Feb 2018 08:18:09 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:37340 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753643AbeBGNSI (ORCPT ); Wed, 7 Feb 2018 08:18:08 -0500 Received: by mail-it0-f66.google.com with SMTP id h129so2197398ita.2; Wed, 07 Feb 2018 05:18:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=91wWZipCTzk6iYvou9uJ9ZRjhQIhVXvTC3eT0tKNxeA=; b=IBmGbDV6NuVQJ6xd2NfsLFChnpJZeil7gHiAHKg86Wk/0yRvywuWQHjng7CBh0XRFv +F4FwbY5JQykaaS9vTAyxUWVXPWPUFPdRRAZcMeDMv9ZSE9iQB5xIkDASilpg2KF+4NQ nCQpmldFylv0VAOm6vzhtz+jti9opjetPpLLhZRH2sW1GsaDfPEt5LqXu4ufWHB+wDa/ FePjA8zbjjIZ8vJIHVa/xBTn0q1aR5n4MRh+ClwxtD8z6/HQfT+CCCy8L1obLWFPKtCm Qc8lYNY9qJjnIGfxuDJxJm0clzHWx5xj86DR2Q6CKS9Jo+cY9U4VltXaONJcSx8wj5N5 OlJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=91wWZipCTzk6iYvou9uJ9ZRjhQIhVXvTC3eT0tKNxeA=; b=lMm0Od3DQ9fdb+OuFxVXX1ZuwJU57fof42gPUmNU5sNFisGgjD+gFw6me+QIqZFk17 2/06+MWGbPzSYqbdZlqwts4/uGomyw6NQ360v98te1nQHRCDuTVRUmDnpcZ0IhQJU6iH ++rcoa1yX8VgQw9DHrkOjhFqZk0o7499GsThsTaMuW6C/aZl0xeiu0zmtNKfXdImTdqk c1xjgzoz3uNbjFoa80ybcHA55tfZ2FinMErsgjAHyhrN6yXh/ZsUH4Muu8+T0/+91CN5 X2I3JsoJE3As/sbhMQEral8GdmNIL9NtcUWHs7iqV+QDdyxmmb7IzHeMSoefV8P4dApy g4kQ== X-Gm-Message-State: APf1xPBfNvyyXzg4q+Pi4Ql6TRoJZjXwr93zFKdDAdX9ZuNmZdlrOSKz SA+WKdSypu/RIYMcp22i/EpcqvbuqIc= X-Google-Smtp-Source: AH8x224tv62soerLXFJI1zCcLBWj2nMYYSLaR4BIsnzaOu5INVtsGGK0h7pMZPCKCohXRvXe+CedAg== X-Received: by 10.36.250.195 with SMTP id v186mr8029327ith.151.1518009487977; Wed, 07 Feb 2018 05:18:07 -0800 (PST) Received: from mordor.localdomain ([106.216.161.135]) by smtp.gmail.com with ESMTPSA id h63sm2181660ith.40.2018.02.07.05.18.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Feb 2018 05:18:07 -0800 (PST) Date: Wed, 7 Feb 2018 18:48:00 +0530 From: Aishwarya Pant To: "Rafael J. Wysocki" , Len Brown , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet , Greg KH Cc: Julia Lawall Subject: [PATCH 1/2] acpi/dptf: document sysfs atttributes Message-ID: <01eb929d8dbfa3e2041d33619a7d30a6b0f4748c.1518009225.git.aishpant@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The descriptions have been collected from git commit logs and reading through code. Signed-off-by: Aishwarya Pant --- Documentation/ABI/testing/sysfs-platform-dptf | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-platform-dptf diff --git a/Documentation/ABI/testing/sysfs-platform-dptf b/Documentation/ABI/testing/sysfs-platform-dptf new file mode 100644 index 000000000000..e8168e5198d7 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-platform-dptf @@ -0,0 +1,30 @@ +sysfs interface for ACPI DPTF platform power driver +--------------------------------------------------- + +What: /sys/bus/platform/devices/INT3407:00/dptf_power/charger_type +What: /sys/bus/platform/devices/INT3407:00/dptf_power/adapter_rating_mw +What: /sys/bus/platform/devices/INT3407:00/dptf_power/max_platform_power_mw +What: /sys/bus/platform/devices/INT3407:00/dptf_power/platform_power_source +What: /sys/bus/platform/devices/INT3407:00/dptf_power/battery_steady_power +Date: Jul, 2016 +KernelVersion: v4.10 +Contact: linux-acpi@vger.kernel.org +Description: + charger_type: (RO) The charger type- Traditional, + Hybrid or NVDC. + + adapter_rating_mw: (RO) Adapter rating in milliwatts (the + maximum Adapter power). Must be 0 if no + AC Adaptor is plugged in. + + max_platform_power_mw: (RO) Maximum platform power that can be + supported by the battery in milliwatts. + + platform_power_source: (RO) Display the platform power source + 0x00 = DC + 0x01 = AC + 0x02 = USB + 0x03 = Wireless Charger + + battery_steady_power_mw:(RO) The maximum sustained power for + battery in milliwatts.