From patchwork Mon Dec 6 23:01:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zev Weiss X-Patchwork-Id: 1564404 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=bewilderbeest.net header.i=@bewilderbeest.net header.a=rsa-sha256 header.s=thorn header.b=VRaN+AHA; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4J7Jpp6wTsz9s3q for ; Tue, 7 Dec 2021 10:02:10 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4J7Jpp2kvrz2yZh for ; Tue, 7 Dec 2021 10:02:10 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=bewilderbeest.net header.i=@bewilderbeest.net header.a=rsa-sha256 header.s=thorn header.b=VRaN+AHA; dkim-atps=neutral X-Original-To: openbmc@lists.ozlabs.org Delivered-To: openbmc@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=bewilderbeest.net (client-ip=2605:2700:0:5::4713:9cab; helo=thorn.bewilderbeest.net; envelope-from=zev@bewilderbeest.net; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=bewilderbeest.net header.i=@bewilderbeest.net header.a=rsa-sha256 header.s=thorn header.b=VRaN+AHA; dkim-atps=neutral Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [IPv6:2605:2700:0:5::4713:9cab]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4J7Jpf11Blz2x9K for ; Tue, 7 Dec 2021 10:02:01 +1100 (AEDT) Received: from hatter.bewilderbeest.net (174-21-184-96.tukw.qwest.net [174.21.184.96]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id 1052D5B1; Mon, 6 Dec 2021 15:02:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1638831720; bh=4dR9lnkIOeqXCHslk6FCmGQHLEGScu+LVOdAQOP7gjk=; h=From:To:Cc:Subject:Date:From; b=VRaN+AHAEKHneN0mOl2+mKZXNUeUjBBkahSZESWdvXV0SZb/wValXYiZnvsXJNfWP Q0PffsXQqbosY5L3EtgrwcycCGW4K5AyroiEZONp0qZevCAFoFj0qd+vYwU9pRPQy7 HLm9g4d5D1zXnOUW9pGZBZHrDPghtFmga7JW3Ac8= From: Zev Weiss To: linux-hwmon@vger.kernel.org Subject: [PATCH v2 0/2] hwmon: Add driver for Delta AHE-50DC fan control module Date: Mon, 6 Dec 2021 15:01:51 -0800 Message-Id: <20211206230153.16891-1-zev@bewilderbeest.net> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: openbmc@lists.ozlabs.org, Jean Delvare , linux-kernel@vger.kernel.org, Guenter Roeck , Zev Weiss Errors-To: openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "openbmc" Hello, These patches add a hwmon driver for the integrated fan control module in the Delta AHE-50DC Open19 power shelf. I don't know of a datasheet any proper documentation for it; the register layout information came from an existing GPL driver [0] in a code release from LinkedIn. (Re-sending a v2 after noticing an embarrassing oversight I missed before sending v1.) Thanks, Zev Weiss Changes since v1 [1]: - fixed invalid name warning from __hwmon_device_register() [0] https://github.com/linkedin/o19-bmc-firmware/blob/master/meta-openbmc/meta-linkedin/meta-deltapower/recipes-kernel/fancontrol-mod/files/fancontrol.c Zev Weiss (2): hwmon: add Delta AHE-50DC fan control module driver dt-bindings: add Delta AHE-50DC fan control module .../devicetree/bindings/trivial-devices.yaml | 2 + MAINTAINERS | 6 + drivers/hwmon/Kconfig | 11 + drivers/hwmon/Makefile | 1 + drivers/hwmon/delta-ahe50dc-fan.c | 265 ++++++++++++++++++ 5 files changed, 285 insertions(+) create mode 100644 drivers/hwmon/delta-ahe50dc-fan.c