From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de ([212.227.17.24]:56433 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726020AbeIBPiW (ORCPT ); Sun, 2 Sep 2018 11:38:22 -0400 From: Stefan Wahren To: Jean Delvare , Guenter Roeck , Rob Herring , Mark Rutland Cc: Eric Anholt , Florian Fainelli , Phil Elwell , bcm-kernel-feedback-list@broadcom.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Wahren Subject: [PATCH RFC 0/2] hwmon: Add RPi PoE HAT fan driver Date: Sun, 2 Sep 2018 13:20:49 +0200 Message-Id: <1535887251-29515-1-git-send-email-stefan.wahren@i2se.com> Sender: linux-hwmon-owner@vger.kernel.org List-Id: linux-hwmon@vger.kernel.org This series is an early stage of the hwmon driver for the fan on the Raspberry Pi Power over Ethernet HAT [1]. At the end this should use a Device Tree Overlay. Changes by Stefan based on [2]: - reformat the downstream patches for submission - drop reboot notification - fix remaining checkpatch issues - add COMPILE_TEST to Kconfig The driver is mostly copy & paste from pwm-fan, which isn't good. Personally i see two options: 1) integrate the driver function into the pwm-fan driver (new compatible) 2) implement the core function as a PWM driver and use the pwm-fan driver on top [1] - https://www.raspberrypi.org/products/poe-hat/ [2] - https://github.com/raspberrypi/linux/commit/0f937c8dc3201ebffa6c617c616fd7c65db65959 Serge Schneider (2): dt-bindings: hwmon: Add RPi PoE HAT documentation hwmon: Add RPi PoE HAT fan driver .../devicetree/bindings/hwmon/rpi-poe-fan.txt | 55 +++ Documentation/hwmon/rpi-poe-fan | 15 + drivers/hwmon/Kconfig | 11 + drivers/hwmon/Makefile | 1 + drivers/hwmon/rpi-poe-fan.c | 414 +++++++++++++++++++++ include/soc/bcm2835/raspberrypi-firmware.h | 2 + 6 files changed, 498 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/rpi-poe-fan.txt create mode 100644 Documentation/hwmon/rpi-poe-fan create mode 100644 drivers/hwmon/rpi-poe-fan.c -- 2.7.4 From mboxrd@z Thu Jan 1 00:00:00 1970 From: stefan.wahren@i2se.com (Stefan Wahren) Date: Sun, 2 Sep 2018 13:20:49 +0200 Subject: [PATCH RFC 0/2] hwmon: Add RPi PoE HAT fan driver Message-ID: <1535887251-29515-1-git-send-email-stefan.wahren@i2se.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org This series is an early stage of the hwmon driver for the fan on the Raspberry Pi Power over Ethernet HAT [1]. At the end this should use a Device Tree Overlay. Changes by Stefan based on [2]: - reformat the downstream patches for submission - drop reboot notification - fix remaining checkpatch issues - add COMPILE_TEST to Kconfig The driver is mostly copy & paste from pwm-fan, which isn't good. Personally i see two options: 1) integrate the driver function into the pwm-fan driver (new compatible) 2) implement the core function as a PWM driver and use the pwm-fan driver on top [1] - https://www.raspberrypi.org/products/poe-hat/ [2] - https://github.com/raspberrypi/linux/commit/0f937c8dc3201ebffa6c617c616fd7c65db65959 Serge Schneider (2): dt-bindings: hwmon: Add RPi PoE HAT documentation hwmon: Add RPi PoE HAT fan driver .../devicetree/bindings/hwmon/rpi-poe-fan.txt | 55 +++ Documentation/hwmon/rpi-poe-fan | 15 + drivers/hwmon/Kconfig | 11 + drivers/hwmon/Makefile | 1 + drivers/hwmon/rpi-poe-fan.c | 414 +++++++++++++++++++++ include/soc/bcm2835/raspberrypi-firmware.h | 2 + 6 files changed, 498 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/rpi-poe-fan.txt create mode 100644 Documentation/hwmon/rpi-poe-fan create mode 100644 drivers/hwmon/rpi-poe-fan.c -- 2.7.4