Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2331740ybv; Fri, 21 Feb 2020 13:28:19 -0800 (PST) X-Google-Smtp-Source: APXvYqzR8cdVcJ6SbK0fWMu3K1f1JbeNvuCfUg5q5dmPtm+neWY5RQnmtA2N78SxE8Kplp83qKQX X-Received: by 2002:a05:6830:16d0:: with SMTP id l16mr30843846otr.83.1582320499811; Fri, 21 Feb 2020 13:28:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582320499; cv=none; d=google.com; s=arc-20160816; b=GzlqKvkE42lLU6v7DYscpCWS5qMpwYmEbvoovwKvWhcjh/bBlgKG0RfGJl2hi48saA ZGtJMbFm0/UFA9/IscsLHjyPUi7qf9HppI50L5iUwJm1DLJSmr70GtEdTeU4RPZC6bxg mzbeLfMkfAS/1NYPd4WUEDOSjRoXgCGlAkWMDgCnd2lAXGePdzLMPH/pfHUAlw1HyDhb 6nG2Rk4OoAy2mP1Yz480Nl18Gy5c37Tz9IYiB8Eod2ltVa1ke43pAhp6uktecAVpAzkI /ygoGKMfSl8Loo0t7FNdmocHl+6IZw27HCkJpe+WIP8vxCdfVYglfe1+OoKTB5vrGtje rVLg== 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; bh=BcO8Cf+BrJwbherZsIwhyc/1NTghOPYzlGvfH4NGGMw=; b=uFNbp+l1E239jkpyUi/mtpWzShpy0qwDRe+0yW56JoU0iuSIhF51KEn2uzWbrC40Pg 93cdPHVCvfEmluUcQ8pnWF2RX5SV2Wbz4BU231wzBF/M8dFKt38OBPgOZdUuSVv+g5gE 9PhHFuATphYvacf9TLT71s9C3a5NsPuoVr5uxe9AQzug9cksERLWcEQ8/5+GOZmoRQeM /wVxUiQxueUD4HKTIgiTJvE93Txh+FnNHZ++VdTv2ha/jeYc+9WmHKIuSX/l/0fg3x6l vCYQzoJ1bhb6FOK2Wngas1Czq+MvU0S5wW0u2b23I0cObdU9uVdkuHsQ1jHccUvR3+8v 1i3A== 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 u1si2092949otg.113.2020.02.21.13.28.08; Fri, 21 Feb 2020 13:28:19 -0800 (PST) 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 S1728117AbgBUV2F (ORCPT + 99 others); Fri, 21 Feb 2020 16:28:05 -0500 Received: from lists.gateworks.com ([108.161.130.12]:52666 "EHLO lists.gateworks.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726707AbgBUV2E (ORCPT ); Fri, 21 Feb 2020 16:28:04 -0500 Received: from 68-189-91-139.static.snlo.ca.charter.com ([68.189.91.139] helo=tharvey.pdc.gateworks.com) by lists.gateworks.com with esmtp (Exim 4.82) (envelope-from ) id 1j5Fqy-00018b-Eo; Fri, 21 Feb 2020 21:28:56 +0000 From: Tim Harvey To: Lee Jones , Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, Rob Herring , Frank Rowand , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Robert Jones Cc: Tim Harvey Subject: [PATCH v4 0/3] Add support for the Gateworks System Controller Date: Fri, 21 Feb 2020 13:27:53 -0800 Message-Id: <1582320476-1098-1-git-send-email-tharvey@gateworks.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds support for the Gateworks System Controller used on Gateworks Laguna, Ventana, and Newport product families. The GSC is an MSP430 I2C slave controller whose firmware embeds the following features: - I/O expander (16 GPIO's emulating a PCA955x) - EEPROM (enumating AT24) - RTC (enumating DS1672) - HWMON - Interrupt controller with tamper detect, user pushbotton - Watchdog controller capable of full board power-cycle - Power Control capable of full board power-cycle see http://trac.gateworks.com/wiki/gsc for more details --- v4: - hwmon: move to using pwm_auto_point_{pwm,temp} for FAN PWM - hwmon: remove unncessary resolution/scaling properties for ADCs - bindings: update to yaml Documentation - removed watchdog driver v3: - removed unnecessary input driver - added wdt driver - bindings: encorporated feedback from mailng list - hwmon: - encoroprated feedback from mailng list - added support for raw ADC voltage input used in newer GSC firmware v2: - change license comment block style - remove COMPILE_TEST - fixed whitespace issues - replaced a printk with dev_err - remove DEBUG - simplify regmap_bulk_read err check - remove break after returns in switch statement - fix fan setpoint buffer address - remove unnecessary parens - consistently use struct device *dev pointer - add validation for hwmon child node props - move parsing of of to own function - use strlcpy to ensure null termination - fix static array sizes and removed unnecessary initializers - dynamically allocate channels - fix fan input label - support platform data Tim Harvey (3): dt-bindings: mfd: Add Gateworks System Controller bindings mfd: add Gateworks System Controller core driver hwmon: add Gateworks System Controller support .../devicetree/bindings/mfd/gateworks-gsc.yaml | 156 +++++++++ Documentation/hwmon/gsc-hwmon.rst | 51 +++ Documentation/hwmon/index.rst | 1 + MAINTAINERS | 11 + drivers/hwmon/Kconfig | 9 + drivers/hwmon/Makefile | 1 + drivers/hwmon/gsc-hwmon.c | 387 +++++++++++++++++++++ drivers/mfd/Kconfig | 10 + drivers/mfd/Makefile | 1 + drivers/mfd/gateworks-gsc.c | 294 ++++++++++++++++ include/linux/mfd/gsc.h | 72 ++++ include/linux/platform_data/gsc_hwmon.h | 45 +++ 12 files changed, 1038 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/gateworks-gsc.yaml create mode 100644 Documentation/hwmon/gsc-hwmon.rst create mode 100644 drivers/hwmon/gsc-hwmon.c create mode 100644 drivers/mfd/gateworks-gsc.c create mode 100644 include/linux/mfd/gsc.h create mode 100644 include/linux/platform_data/gsc_hwmon.h -- 2.7.4