Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp937778imm; Sun, 2 Sep 2018 04:27:45 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZlK0eCByqpE6auyt5kT3f67OxK0Ti4408yZx18zERAnB0MPgKtmgu15IU+pmonCA/46Hzp X-Received: by 2002:a62:4494:: with SMTP id m20-v6mr24578770pfi.205.1535887665146; Sun, 02 Sep 2018 04:27:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535887665; cv=none; d=google.com; s=arc-20160816; b=D1XPfUs9KxyvZHMZrWAmdNu/tj82QLYaElzP0XUspg5qBXEtVOq6QEDKyq3XlKZE1M H0ixsyAVY0ahtVQMbFJlMd+LrQmcLFkqhk3Kia72i8GLNbKFuY+l9wE4U92Gi2YKvW9F RN5xQZ4qq+vJMS8mUcy6R+I+MnSC/FvoYSpYUS57Q7jXgtM/3s2etDQ5I3QGdSxodVh6 XTDdr+9U8z9+fYFoJ9y/BOV5wxo18RsLSFetoULJZM5aVx9I6CGOJWVI+3ZoM7wAx4g/ qtl5UtK2VXXBVf2bER3E0+O/864fvEM/5CpZ+IsfvrZSP9SrWFUxcE+N637ujiaN+X+R Xt0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=rOhjFHy42ObToTj/I8wvzzyyq03sFCxRte8vTaAYWNw=; b=d56dI+sBBsOV1/O8+Hgit3kZBe5yHCEAd9aDCLuv2FF5LIxTHGwd9EAJgVyPtInNtE QoWIS5Sbuh+9uFuBIFnVoOAr/hwjQ8p6ucaHiflrtmop3lkqO38oyyO2b+ZzvqVMDz/f 9dxIRscR0sAd4hxNN6jbhV4DhyUKTnAm+QjlM7dXbRZanU+lK6UzP42UQsVX+N8IYLB4 k/EnhToBWQLImNT2qLpjW3mew6Dv4XqclQbBFdZA23e5Ablt+3XVfvc2Qo3/7Sg+DVh+ WlrZT7+dAwDnsqDatbwe84S9d2Lj+y958ApZ0Nm7uiCzbF2usSPpUJv8odzVtY3H9duD 6o4g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g12-v6si15102509pgl.635.2018.09.02.04.27.30; Sun, 02 Sep 2018 04:27:45 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726957AbeIBPiW (ORCPT + 99 others); Sun, 2 Sep 2018 11:38:22 -0400 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 Received: from localhost.localdomain ([37.4.249.97]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MTQ5X-1gN3Zv1b3X-00SPxa; Sun, 02 Sep 2018 13:22:08 +0200 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> X-Mailer: git-send-email 2.7.4 X-Provags-ID: V03:K1:TpjAAA3/EXvRpMTq2O4xqR89lOWOYoXF/FOZeK0Esf5GpLpisIV xAzqg8sIRgXCocI/sEVzpcBm3YYs5hM+kmKBC0nvTcQXe8mjZ/YKqwRwxG0dmOj/zxYJEMw DDVVvJ6Rg0+GFfVWolJ9dZ9/cIF9pMn2xYQPkPzPpY+VPEkSuGROLv9nM6f7PB/3tVEnj5m N8WdXBZNpot2uhHqwYEsA== X-UI-Out-Filterresults: notjunk:1;V01:K0:qNQLwyNTlus=:pGArnJ1m6H6CmYPP10XP8E l83iJmuSJtZLei7irhqs/UPR3AIiyJWwy/pxJ4B/iFpAomgDnwevlZBpK+Wslwh8RFyxpb3oA PiC8qH5f4/2Vzct1vb57fzC6JI93bv3qIHFQ6jwVuhwA3xcwgjw9FDUhyAc26fnOy/CV8JmqJ /JX/ERZKrqEL7YvnalVGC8VgxoUNlUE9wDDcuftbrImlXrZgPTvPhY5p/08RbkH7KFrkueSBM 2XXhj01asvH17YOKbYuAHxp+xbaZBiOTr/+Did55tDQpMq3za2Dh4nAxNgDyu1W/02gRH3bWo vOHL64XChnBVvek2+IMOYnM/zcThP6OQBw3Jhp9Ww9Ep9F/K/p9/OBCHjO7Pcdatc71NeeqeG psI9lJ/R6tamke3jUOkFsYL6LgzEGb/+2VyzpoHmqB3IY1QAPMEIsNN/TUj5JkVsN0KVD7U2e tWcNCJXlaYMRg1HjZpf/29TfirZi96zuO26UB3NzEr1HmxVf9U4DAX1fAnkVO34utbyHAg3Tr PZzeyptSsQsxR+JQwsk9B/F6vOjgOeZJRjO/ml1pvIyLqjMnmV6rJecXHmSguGJiCv4ReiE0i XVpHsq+G2YkISO2pB5ndVkCZEfG0ckN7CwU6a51pXrQMj9ETT71gS3Dkoi3Cc0/mDjgAF0yjv 3G3eGQtfO+EIxwarsesZD+j5R/DgX8+++yZpbdooQjTF8kDAm4cziEzUmw37GiK5OVuw= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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