From patchwork Mon Oct 29 14:35:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marco Felsch X-Patchwork-Id: 10659371 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D2F6714BD for ; Mon, 29 Oct 2018 14:35:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBC9428923 for ; Mon, 29 Oct 2018 14:35:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AFEB128B25; Mon, 29 Oct 2018 14:35:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2251928CDE for ; Mon, 29 Oct 2018 14:35:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726476AbeJ2XY1 (ORCPT ); Mon, 29 Oct 2018 19:24:27 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:56441 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725989AbeJ2XY1 (ORCPT ); Mon, 29 Oct 2018 19:24:27 -0400 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gH8da-0004S6-KM; Mon, 29 Oct 2018 15:35:26 +0100 Received: from mfe by dude.hi.pengutronix.de with local (Exim 4.91) (envelope-from ) id 1gH8dY-0007PQ-NU; Mon, 29 Oct 2018 15:35:24 +0100 From: Marco Felsch To: jdelvare@suse.com, linux@roeck-us.net Cc: linux-hwmon@vger.kernel.org, tpiepho@impinj.com, dmitry.torokhov@gmail.com, kernel@pengutronix.de Subject: [PATCH v2 0/2] Add GPIO brownout detection support Date: Mon, 29 Oct 2018 15:35:19 +0100 Message-Id: <20181029143521.22122-1-m.felsch@pengutronix.de> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-hwmon@vger.kernel.org Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, this is my v2 of my v1 [1]. I converted the driver from the input to the hwmon framework, as proposed by Trent [2]. Futhermore I droped the OF dependency for the core functionality (sensing the gpio) and moved the addtional feature (unbinding devices) to a additional config. So the dependencies are much cleaner. The spi patches are already applied by Mark so I dropped them in my v2. You have to apply the patche from Marks Git: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-find-by-node to get the patch stack compiled. I rebased the series on top of Guenter's hwmon-next branch and checked it by checkpatch. Unfortunately it complains about a missing help paragraph for SENSORS_GPIO_BROWNOUT_UNBIND, but the help exists. Regards, Marco [1] https://patchwork.kernel.org/cover/10613821/ [2] https://patchwork.kernel.org/patch/10613825/ Marco Felsch (2): dt-binding: hwmon: add gpio-brownout bindings hwmon: add generic GPIO brownout support .../bindings/hwmon/gpio-brownout.txt | 32 +++ Documentation/hwmon/gpio-brownout | 14 ++ drivers/hwmon/Kconfig | 23 +++ drivers/hwmon/Makefile | 1 + drivers/hwmon/gpio-brownout.c | 195 ++++++++++++++++++ 5 files changed, 265 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/gpio-brownout.txt create mode 100644 Documentation/hwmon/gpio-brownout create mode 100644 drivers/hwmon/gpio-brownout.c