26 Jan, 2015

3 commits

  • Add support for "ina231" as compatible string, and update
    Documentation and Kconfig accordingly.

    Tested with the Exynos5422-based odroid-xu3 board which has on-board
    INA231 sensors.

    Signed-off-by: Kevin Hilman
    Signed-off-by: Guenter Roeck

    Kevin Hilman
     
  • This attribute allows to configure the update interval of ina226. Although
    the bus and shunt voltage conversion times remain hardcoded to 1.1 ms, we can
    now modify said interval by changing the averaging rate.

    While we're at it - add an additional variable to ina2xx_data, which holds
    the current configuration settings - this way we'll be able to restore the
    configuration in case of an unexpected chip reset.

    Signed-off-by: Bartosz Golaszewski
    Signed-off-by: Guenter Roeck

    Bartosz Golaszewski
     
  • The shunt resistance can only be set via platform_data or device tree. This
    isn't suitable for devices in which the shunt resistance can change/isn't
    known at boot-time.

    Add a sysfs attribute that allows to read and set the shunt resistance.

    Signed-off-by: Bartosz Golaszewski
    Signed-off-by: Guenter Roeck

    Bartosz Golaszewski
     

28 Jun, 2013

1 commit


24 Sep, 2012

1 commit


22 May, 2012

1 commit

  • Add support for the Texas Instruments INA219 and INA226 power monitors.

    Signed-off-by: Lothar Felten
    [guenter.roeck@ericsson.com: formatting cleanup; check for smbus word data;
    select PGA=8 for INA219]
    Signed-off-by: Guenter Roeck

    Felten, Lothar