[PATCH 1/3] mfd: cros-ec: Add functions to read mapped memory

2017-04-07 Thread Moritz Fischer
From: Moritz Fischer The ChromeOS EC has mapped memory regions where things like temperature sensors and fan speed are stored. Provide access to those from the cros-ec mfd device. Signed-off-by: Moritz Fischer --- drivers/platform/chrome/cros_ec_proto.c | 55 +

[PATCH 3/3] hwmon: cros-ec-hwmon: Add Chromium-EC HWMON driver

2017-04-07 Thread Moritz Fischer
From: Moritz Fischer This adds a hwmon driver for the Chromium EC's fans and temperature sensors. Signed-off-by: Moritz Fischer --- This one still needs some work, but I figured some early feedback might not hurt. Specifically I was wondering if using the devm_hwmon_register_with_info() is pr

[PATCH 2/3] dt-bindings: hwmon: Add bindings for Google Chromium EC HWMON

2017-04-07 Thread Moritz Fischer
From: Moritz Fischer Add bindings for the Chromium EC HWMON. The Chromium EC HWMON allows monitoring of temperature sensors and fans attached to the EC. Signed-off-by: Moritz Fischer --- .../devicetree/bindings/hwmon/cros-ec-hwmon.txt| 25 ++ 1 file changed, 25 insertio