Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp348809ybt; Wed, 24 Jun 2020 00:24:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydXzXgyqtMEOMNKvahzr6ZoaYyyxJ9WbZy6D+WEO8p4ZR40OF/Ladt9XNPLEspzp8Aa0tT X-Received: by 2002:a17:906:4942:: with SMTP id f2mr3031585ejt.125.1592983467735; Wed, 24 Jun 2020 00:24:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592983467; cv=none; d=google.com; s=arc-20160816; b=o+/Jjt9utLHQ+Z5aoInjCZoWmvJ/OKLGdRnt4JjKsdSGv+yiuk6terAkWHEnqQIwQu 0LEY+N7Wtss5lunOtezY+SGhOQXvGdf3PjjCup32Dz2me9oEA5jYKseTsYkorXPtxn5B w1BEmkI85lCxpBM8K1il8hYmrp2VqTba/El01HGmasOjETTlrm0bGA0MNAbjILh2IwWN C0ST3T++OqByTpHvSqrVZ5Ls+MhxQSOb5x30DhHozriWgwqQXXATlSOh9VaSfSFfJm/n X6lbn5S46896A6/x1PXxRYA81JojEp2BJot3vmW6WbgOEmF1HL0kulqOSZCOURUPVqqy XsCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=0LzmDwPgNZtsqzOgz8SVzdE+FwEHnNaYtHCDEfaebCg=; b=RxlsbpxZyj64R3AAstNcTM9j1Ve87Jy04cvHczxFtHU0NTeFC6uOpO+iQB8Z7uFM6G W++nMimNTOy/ao5x5OPwRXjvs3Hhesdmj60yvHhrVmf6SKDTQcN3kBBhiqxjrjiAGYQL tXkXOPPom585BVaaHOuzpswojW1LJx9Kciy1hdbXMUBvr04qBgXtMDxJbrOTdKXwnwlZ ZYhf3NfmPRem/xF+tbhThrnt1+5SppB+djaNyrgRPmuVRgNNh9rznoccNlug0mRdQSsu YZvXAO5w8nYVLF8u1nlfo0UoLgQ19PcU4uCtNU5Wm9MmLY/0jHW6P52OuLipANRtFozq lmMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f26si3246274ejj.345.2020.06.24.00.24.04; Wed, 24 Jun 2020 00:24:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389733AbgFXHXC (ORCPT + 99 others); Wed, 24 Jun 2020 03:23:02 -0400 Received: from ms-10.1blu.de ([178.254.4.101]:60700 "EHLO ms-10.1blu.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389684AbgFXHWr (ORCPT ); Wed, 24 Jun 2020 03:22:47 -0400 Received: from [78.43.71.214] (helo=marius.fritz.box) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jnzjy-0000VK-4y; Wed, 24 Jun 2020 09:22:38 +0200 From: Marius Zachmann To: Guenter Roeck , Jean Delvare , Jiri Kosina , Benjamin Tissoires Cc: Marius Zachmann , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH v4 2/3] hwmon: add Documentation Date: Wed, 24 Jun 2020 09:21:53 +0200 Message-Id: <20200624072154.22486-3-mail@mariuszachmann.de> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200624072154.22486-1-mail@mariuszachmann.de> References: <20200624072154.22486-1-mail@mariuszachmann.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Con-Id: 241080 X-Con-U: 0-mail X-Originating-IP: 78.43.71.214 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Marius Zachmann --- Documentation/hwmon/corsair-cpro.rst | 40 ++++++++++++++++++++++++++++ Documentation/hwmon/index.rst | 1 + 2 files changed, 41 insertions(+) create mode 100644 Documentation/hwmon/corsair-cpro.rst diff --git a/Documentation/hwmon/corsair-cpro.rst b/Documentation/hwmon/corsair-cpro.rst new file mode 100644 index 000000000000..2383c6f72115 --- /dev/null +++ b/Documentation/hwmon/corsair-cpro.rst @@ -0,0 +1,40 @@ +.. SPDX-License-Identifier: GPL-2.0-or-later + +Kernel driver corsair-cpro +========================== + +Supported devices: + + * Corsair Commander Pro + * Corsair Commander Pro (1000D) + +Author: Marius Zachmann + +Description +----------- + +This driver implements the sysfs interface for the Corsair Commander Pro. +The Corsair Commander Pro is a USB device with 6 fan connectors, +4 temperature sensor connectors and 2 Corsair LED connectors. +It can read the voltage levels on the SATA power connector. + +Usage Notes +----------- + +Since it is a USB device, hotswapping is possible. The device is autodetected. + +Sysfs entries +------------- + +======================= ===================================================================== +in0_input Voltage on SATA 12v +in1_input Voltage on SATA 5v +in2_input Voltage on SATA 3.3v +temp[1-4]_input Temperature on connected temperature sensors +temp[1-4] label Shows "nc" after name, when not connected +fan[1-6]_input Connected fan rpm. +fan[1-6]_label Shows connection status of the fan as detected by the device. +pwm[1-6] Sets the fan speed. Values from 0-255. + When reading, it reports the last value if it was set by the driver. + Otherwise returns 0. +======================= ===================================================================== diff --git a/Documentation/hwmon/index.rst b/Documentation/hwmon/index.rst index 55ff4b7c5349..750d3a975d82 100644 --- a/Documentation/hwmon/index.rst +++ b/Documentation/hwmon/index.rst @@ -47,6 +47,7 @@ Hardware Monitoring Kernel Drivers bel-pfe bt1-pvt coretemp + corsair-cpro da9052 da9055 dell-smm-hwmon -- 2.27.0