Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3076918imm; Tue, 29 May 2018 00:04:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrh8+x9/V1rySGS1qcljs4ef0eysunxDI0PXZNRylgnSblcbkCq4ue2OmoWjNmOOgMUyxB4 X-Received: by 2002:a17:902:600a:: with SMTP id r10-v6mr16143128plj.70.1527577468364; Tue, 29 May 2018 00:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527577468; cv=none; d=google.com; s=arc-20160816; b=zgCLHehMC8geL73A2cZT+9gUL8q05NnraipT1ogwN2y7Euv7jk4Xc46qIGYFIW5Csg r1S23W2QO9NIDbWXQBKBmOCBpS6diQbmKwTEuFLdDtEZ0W7eX19K7qpaB3YB01CpGJ2o EnJN3AKv/6KPAuKqu2q1aiZHu9z4q070qQ4T4C5P/kXIDmucqv/NnDqdCGxEZe7xSo6a Q4MuqNKdhRitar7QuM91QGvQuQMdy/ovZiNCSmDxqjXBtjhIQFR7l0URW+Z2iwuV1YpC 5ceE3UqVAaABpw7JWYlaCEJqp1M/U+yMKog0zhSzqmYVDZRtmMCXgLK7eATqDETe82jA 1c5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=UlRuFFBbhxbkr81OxyTeJmv3aQczJeKnntdjY0q3pLE=; b=MB5AV5WG9HzSdibeQm65wODWwDlk89jBrr0JetvQUyfjnMNjukaRC3oVRHl/tDA0oP KEwS/1NaO/p9cWQDdXDGxslv/IZ++cBCWitKTjRzaSwFq6FajZ3evOWluuyWHCx4QqUe obcLhZWJtS3r/hnKElx52EMn31T4NMrg0iU9orVXtGUcnDlNLTMM/1edsmPSXZ9RKQha zUHvr+ZJ686h2kQ22opYPThTYNH+ffWPOKCxymV5ZAMch+TrlKGgeAq4ZqGxPfYovw4s oR5MNMmH3eoIOjkdc/WrVvoyTKx/Am2DKEKWW4JVSWtOAPwfe4u//DPD4JEaAZbuKO1B odpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t12-v6si3532277pgp.565.2018.05.29.00.04.14; Tue, 29 May 2018 00:04:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754839AbeE2HDb (ORCPT + 99 others); Tue, 29 May 2018 03:03:31 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:35840 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754780AbeE2HDY (ORCPT ); Tue, 29 May 2018 03:03:24 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from vadimp@mellanox.com) with ESMTPS (AES256-SHA encrypted); 29 May 2018 10:05:25 +0300 Received: from r-mgtswh-226.mtr.labs.mlnx. (r-mgtswh-226.mtr.labs.mlnx [10.209.1.51]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id w4T73ITS006221; Tue, 29 May 2018 10:03:20 +0300 From: Vadim Pasternak To: dvhart@infradead.org, andy.shevchenko@gmail.com, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, jiri@resnulli.us, michaelsh@mellanox.com, ivecera@redhat.com, Vadim Pasternak Subject: [PATCH v4 8/8] Documentation/ABI: Add documentation mlxreg-io sysfs interfaces Date: Tue, 29 May 2018 08:59:07 +0000 Message-Id: <1527584347-167548-3-git-send-email-vadimp@mellanox.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1527584347-167548-1-git-send-email-vadimp@mellanox.com> References: <1527584347-167548-1-git-send-email-vadimp@mellanox.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add documentation for mlxreg-io driver sysfs interfaces for user space access to system's power resets control, reset causes monitoring, programmable devices version reading and devices selection control. Signed-off-by: Vadim Pasternak --- v4: Comments pointed out by Greg: Add Documentation/ABI/ entries for the new sysfs files. --- Documentation/ABI/stable/sysfs-driver-mlxreg-io | 51 +++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/ABI/stable/sysfs-driver-mlxreg-io diff --git a/Documentation/ABI/stable/sysfs-driver-mlxreg-io b/Documentation/ABI/stable/sysfs-driver-mlxreg-io new file mode 100644 index 0000000..fcd659e --- /dev/null +++ b/Documentation/ABI/stable/sysfs-driver-mlxreg-io @@ -0,0 +1,51 @@ +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/ + cause_aux_pwr_or_ref + cause_asic_thermal + cause_hotswap_or_wd + cause_fw_reset + cause_long_pb + cause_main_pwr_fail + cause_short_pb + cause_sw_reset +Date: May 2018 +KernelVersion: 4.18 +Contact: Vadim Pasternak +Description: These files show the system reset cause, as following: power + auxiliary outage or power refresh, ASIC thermal shutdown, + hotswap or watchdog, firmware reset, long press power button, + short press power button, software reset. Value 1 in file means + this is reset cause, 0 - otherwise. Only one of the above + causes could be 1 at the same time, representing only last + reset cause. + + The files are read only. + +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/ + cpld1_version + cpld2_version +Date: May 2018 +KernelVersion: 4.18 +Contact: Vadim Pasternak +Description: These files show with which CPLD versions have been burned + on carrier and switch boards. + + The files are read only. + +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/select_iio +Date: May 2018 +KernelVersion: 4.18 +Contact: Vadim Pasternak +Description: This file allows iio devices selection. + + The file is read/write. + +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu1_on + /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu2_on + /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pwr_cycle +Date: May 2018 +KernelVersion: 4.18 +Contact: Vadim Pasternak +Description: These files allow assert system's power cycling and PS units + on/off switching. + + The files are write only. -- 2.1.4