Skip to content

Add support for the Gateworks System Controller

Tim Harvey linux-arm-kernel linux-devicetree linux-hwmon linux-input linux-watchdog lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 20 repliesIn review
  2. v24 patches 7 repliesSuperseded
  3. v1 RFC4 patches 12 repliesSuperseded

Changes in v3 from the cover letter

- 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

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4dt-bindings: mfd: Add Gateworks System Controller bindingsDocumentation/devicetree/bindings/mfd/gateworks-gsc.txt+135 -05 replies
2/4mfd: add Gateworks System Controller core driverdrivers/mfd/Kconfig drivers/mfd/Makefile drivers/mfd/gateworks-gsc.c +1 more+374 -05 replies
3/4hwmon: add Gateworks System Controller supportdrivers/hwmon/Kconfig drivers/hwmon/Makefile drivers/hwmon/gsc-hwmon.c +1 more+421 -03 replies
4/4watchdog: add Gateworks System Controller supportdrivers/watchdog/Kconfig drivers/watchdog/Makefile drivers/watchdog/gsc_wdt.c+157 -07 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/4] Add support for the Gateworks System Controller

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
---
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 (4):
dt-bindings: mfd: Add Gateworks System Controller bindings
mfd: add Gateworks System Controller core driver
hwmon: add Gateworks System Controller support
watchdog: add Gateworks System Controller support

 .../devicetree/bindings/mfd/gateworks-gsc.txt      | 135 ++++++++
 drivers/hwmon/Kconfig                              |   9 +
 drivers/hwmon/Makefile                             |   1 +
 drivers/hwmon/gsc-hwmon.c                          | 368 +++++++++++++++++++++
 drivers/mfd/Kconfig                                |  13 +
 drivers/mfd/Makefile                               |   1 +
 drivers/mfd/gateworks-gsc.c                        | 285 ++++++++++++++++
 drivers/watchdog/Kconfig                           |  10 +
 drivers/watchdog/Makefile                          |   1 +
 drivers/watchdog/gsc_wdt.c                         | 146 ++++++++
 include/linux/mfd/gsc.h                            |  75 +++++
 include/linux/platform_data/gsc_hwmon.h            |  43 +++
 12 files changed, 1087 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mfd/gateworks-gsc.txt
 create mode 100644 drivers/hwmon/gsc-hwmon.c
 create mode 100644 drivers/mfd/gateworks-gsc.c
 create mode 100644 drivers/watchdog/gsc_wdt.c
 create mode 100644 include/linux/mfd/gsc.h
 create mode 100644 include/linux/platform_data/gsc_hwmon.h
Signature · 1 line
2.7.4