[PATCH linux] HWMON: Add OCC hwmon driver v5

OpenBMC Patches openbmc-patches at stwcx.xyz
Mon Jan 11 17:10:38 AEDT 2016


This patch add a hwmon driver for BMC to monitor POWER CPU sensors
via OCC (On-Chip-Controller).

Changes for this version:
1. Fixed checkpatch.pl warnings and errors.
2. Fixed issue from Joel Stanley's review
3. Add a new sysfs interface: '/sys/class/i2c-adaptor/i2c-x/x-yyyy/online',
to notify the driver OCC is active.
4. Use device table to instantiate the occ-i2c device.
5. Add a new hwmon sysfs interface: '/sys/class/hwmon/hwmonX/user_powercap',
to send "Set User Power Cap" command to OCC.

Signed-off-by: Yi Li <adamliyi at msn.com>

https://github.com/openbmc/linux/pull/37

Yi Li (1):
  HWMON: Add OCC hwmon driver

 .../devicetree/bindings/i2c/i2c-ibm-occ.txt        |   13 +
 arch/arm/boot/dts/aspeed-bmc-opp-barreleye.dts     |   10 +
 arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts      |    7 +
 drivers/hwmon/Kconfig                              |   10 +
 drivers/hwmon/Makefile                             |    1 +
 drivers/hwmon/occ_i2c.c                            | 1420 ++++++++++++++++++++
 6 files changed, 1461 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/i2c/i2c-ibm-occ.txt
 create mode 100644 drivers/hwmon/occ_i2c.c

-- 
2.6.4




More information about the openbmc mailing list