Skip to content

Introduce cros_ec power monitoring

Daniel Balint chrome-platform linux-hwmon linux-iio lkml mfd 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3platform/chrome: cros_ec: fix alignment of ec_params_pwrmoninclude/linux/platform_data/cros_ec_commands.h+2 -01 reply
2/3iio: adc: add cros_ec_pwrmon driverDocumentation/ABI/testing/sysfs-bus-iio-cros-ec MAINTAINERS drivers/iio/adc/Kconfig +2 more+365 -01 reply
3/3mfd: cros_ec: load cros_ec_pwrmon on supported ECsdrivers/mfd/cros_ec_dev.c+9 -01 reply

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchBenson Leung
1/3R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/3] Introduce cros_ec power monitoring

This series adds the ChromeOS EC On-Device Power Monitoring (cros_ec_pwrmon) driver to read onboard power-monitoring ADCs, such as PAC194x, wired through the embedded controller (EC).

Several ChromeOS platforms are equipped with onboard ADCs that are connected to the EC via I2C bus. The driver interfaces with the EC via the existing EC_CMD_PWRMON host command API (and EC_MKBP_EVENT_PWRMON events) to manage ADC accumulation and expose accumulated per-rail energy through an IIO sysfs attribute.

The driver is only loaded when the underlying hardware feature is present. The series also fixes alignment padding in EC_CMD_PWRMON definitions.

Daniel Balint (3):
platform/chrome: cros_ec: fix alignment of ec_params_pwrmon
iio: adc: add cros_ec_pwrmon driver
mfd: cros_ec: load cros_ec_pwrmon on supported ECs

 .../ABI/testing/sysfs-bus-iio-cros-ec         |  13 +
 MAINTAINERS                                   |   7 +
 drivers/iio/adc/Kconfig                       |  11 +
 drivers/iio/adc/Makefile                      |   1 +
 drivers/iio/adc/cros_ec_pwrmon.c              | 333 ++++++++++++++++++
 drivers/mfd/cros_ec_dev.c                     |   9 +
 .../linux/platform_data/cros_ec_commands.h    |   2 +
 7 files changed, 376 insertions(+)
 create mode 100644 drivers/iio/adc/cros_ec_pwrmon.c

base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4

Signature · 1 line
2.56.0.455.g6c5a503b38-goog