From patchwork Sat Feb 10 08:57:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aishwarya Pant X-Patchwork-Id: 10210383 X-Patchwork-Delegate: rjw@sisk.pl 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 3EECB602D8 for ; Sat, 10 Feb 2018 08:57:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2736C28D2D for ; Sat, 10 Feb 2018 08:57:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 192AE28D49; Sat, 10 Feb 2018 08:57:29 +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 A58B328D2D for ; Sat, 10 Feb 2018 08:57:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751090AbeBJI51 (ORCPT ); Sat, 10 Feb 2018 03:57:27 -0500 Received: from mail-it0-f65.google.com ([209.85.214.65]:34314 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750909AbeBJI50 (ORCPT ); Sat, 10 Feb 2018 03:57:26 -0500 Received: by mail-it0-f65.google.com with SMTP id j21so1412188ita.1; Sat, 10 Feb 2018 00:57:26 -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=xOd0vXHluEH3t9rKbMSYHcsXxLp6umKRNiQ8yWwvN34=; b=phulab9zSkAruzHGTm0wbGQpodZBzsDVP9ya8MGksSQFK456otQxVYITNnCZA+vdwe prYQGmeFfqBkZhfj3bZVptpmol2GCSyjTx10FzWWOC12if0rGaeSt3+1oZGnEPK9tMqP abtnkN9vHGY/YKrVTNpIR32NvO+tssG/VfeHOzvetkCq9VlIHkT85br64o9WNqCio0oA ej8p0M6Z/K99wMJo8Amu1yY0Y7XWQL0rTIb8/55dHV89K1BNyTUzE60GDC/4PTBGg/wh XQwYPF2kpIjE6G/gf4bnG5TbUuEgRWYPcjjYUARy2Btamv5pFSSUxKltqJ7DJRzklJrc bwzw== 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=xOd0vXHluEH3t9rKbMSYHcsXxLp6umKRNiQ8yWwvN34=; b=dZZ1AGU0JuzFSGBcCnTQApkrwwdEyqkIJRL7nroy6Oq7udq7LrIymyVseDGlcPUo8K LpwxvZjT27js2te6J7CKe8sGtrErOVVOC/FEH+3hWB25mRM61rKs3TVGZfQeoJoxJJbX CcWmIVOG1tPzE3yjIvbzhtUf5lEAOgtE2wiQ3d0X7fZwCz1wt2qPpnrWynsdadCbmVcq sm4rBDJLaBcM5rXutTBx01FgVyUlAAPmf2e76wYWW4FhKm9zsA2PueT5wLsLe9Ohh35B jhVGzTLqUNwRuV9QhftfItDNQ2VcP3RJenCHO9r4l+ik3VqrGWGyoURyI+V8dXET8z2Y LXTw== X-Gm-Message-State: APf1xPC7OWn4hailSuRWQEaNoOc899W/sJtTp6HSKRvQIB49FLdqVrQi ObAkbjv5OlSn9MT9t4HeAxGV4w== X-Google-Smtp-Source: AH8x225PyhPY+udfnptlqtYIHV/iVrWggSG4v3lSB1DZnahp5xgKYaE1LNd6jpog4bZkDmSjRa/t3A== X-Received: by 10.36.101.137 with SMTP id u131mr7031681itb.9.1518253045980; Sat, 10 Feb 2018 00:57:25 -0800 (PST) Received: from mordor.localdomain ([49.205.217.191]) by smtp.gmail.com with ESMTPSA id l11sm5029899iog.67.2018.02.10.00.57.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 10 Feb 2018 00:57:25 -0800 (PST) Date: Sat, 10 Feb 2018 14:27:19 +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 v2 1/2] acpi/dptf: document sysfs atttributes Message-ID: <1ed759fffa55e45a92a69867e8cb35ff3d3978ed.1518252138.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 --- Changes in v2: - Split up attribute definitions Documentation/ABI/testing/sysfs-platform-dptf | 40 +++++++++++++++++++++++++++ 1 file changed, 40 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..325dc0667dbb --- /dev/null +++ b/Documentation/ABI/testing/sysfs-platform-dptf @@ -0,0 +1,40 @@ +What: /sys/bus/platform/devices/INT3407:00/dptf_power/charger_type +Date: Jul, 2016 +KernelVersion: v4.10 +Contact: linux-acpi@vger.kernel.org +Description: + (RO) The charger type - Traditional, Hybrid or NVDC. + +What: /sys/bus/platform/devices/INT3407:00/dptf_power/adapter_rating_mw +Date: Jul, 2016 +KernelVersion: v4.10 +Contact: linux-acpi@vger.kernel.org +Description: + (RO) Adapter rating in milliwatts (the maximum Adapter power). + Must be 0 if no AC Adaptor is plugged in. + +What: /sys/bus/platform/devices/INT3407:00/dptf_power/max_platform_power_mw +Date: Jul, 2016 +KernelVersion: v4.10 +Contact: linux-acpi@vger.kernel.org +Description: + (RO) Maximum platform power that can be supported by the battery + in milliwatts. + +What: /sys/bus/platform/devices/INT3407:00/dptf_power/platform_power_source +Date: Jul, 2016 +KernelVersion: v4.10 +Contact: linux-acpi@vger.kernel.org +Description: + (RO) Display the platform power source + 0x00 = DC + 0x01 = AC + 0x02 = USB + 0x03 = Wireless Charger + +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: + (RO) The maximum sustained power for battery in milliwatts.