26 Sep, 2014

29 commits


24 Sep, 2014

11 commits

  • Added driver to support the 14F021P00 BMC Hardware Monitoring.
    The BMC is a Board Management Controller including monitoring of the
    board voltages.

    Signed-off-by: Andreas Werner
    Reviewed-by: Guenter Roeck
    Signed-off-by: Lee Jones

    Andreas Werner
     
  • Added driver to support the 14F021P00 BMC LEDs.
    The BMC is a Board Management Controller including four LEDs which
    can be switched on and off.

    Signed-off-by: Andreas Werner
    Acked-by: Bryan Wu
    Signed-off-by: Lee Jones

    Andreas Werner
     
  • Added driver to support the 14F021P00 BMC Watchdog.
    The BMC is a Board Management Controller including watchdog functionality.

    Signed-off-by: Andreas Werner
    Reviewed-by: Guenter Roeck
    Signed-off-by: Lee Jones

    Andreas Werner
     
  • Document the 'fast charge timer' setting exported by max14577 driver
    through sysfs entry.

    Signed-off-by: Krzysztof Kozlowski
    Acked-by: Andrew Morton
    Signed-off-by: Lee Jones

    Krzysztof Kozlowski
     
  • Add document describing device tree bindings for MAX14577 MFD
    drivers: MFD core, extcon, regulator and charger.

    Both MAX14577 and MAX77836 chipsets are documented.

    Signed-off-by: Krzysztof Kozlowski
    Reviewed-by: Tomasz Figa
    Acked-by: Andrew Morton
    Signed-off-by: Lee Jones

    Krzysztof Kozlowski
     
  • MAX77836 has the same Fuel Gauge as MAX17040/17048. The max17040 driver
    can be safely re-used. The patch adds MAX77836 device to the array of
    i2c_device_id. Additionally it removes the id associated with MAX17040
    device as the value is not used.

    Signed-off-by: Krzysztof Kozlowski
    Acked-by: Andrew Morton
    Signed-off-by: Lee Jones

    Krzysztof Kozlowski
     
  • Remove hard-coded values for:
    - Fast Charge current,
    - End Of Charge current,
    - Fast Charge timer,
    - Overvoltage Protection Threshold,
    - Battery Constant Voltage,
    and use DTS or sysfs to configure them. This allows using the max14577 charger
    driver with different batteries.

    Now the charger driver requires valid configuration data from DTS. In
    case of wrong configuration data it fails during probe.

    The fast charge timer is configured through sysfs entry.

    Signed-off-by: Krzysztof Kozlowski
    Acked-by: Andrew Morton
    Signed-off-by: Lee Jones

    Krzysztof Kozlowski
     
  • This patch prepares for changing the max14577 charger driver to allow
    configuring battery-dependent settings from DTS.

    The patch moves from regulator driver to MFD core driver and exports:
    - function for calculating register value for charger's current;
    - table of limits for chargers (MAX14577, MAX77836).

    Previously they were used only by the max14577 regulator driver. In next
    patch the charger driver will use them as well. Exporting them will
    reduce unnecessary code duplication.

    Signed-off-by: Krzysztof Kozlowski
    Acked-by: Mark Brown
    Acked-by: Andrew Morton
    Signed-off-by: Lee Jones

    Krzysztof Kozlowski
     
  • Add support for MAX77836 charger to the max14577 driver. The MAX77836
    charger is almost the same as 14577 model except:
    - No dead-battery detection;
    - Support for special charger (like in MAX77693);
    - Support for DX over-voltage protection (like in MAX77693);
    - Lower values of charging current (two times lower current for
    slow/fast charge, much lower EOC current);
    - Slightly different values in ChgTyp field of STATUS2 register. On
    MAX14577 0x6 is reserved and 0x7 dead battery. On the MAX77836 the
    0x6 means special charger and 0x7 is reserved. Regardless of these
    differences the driver maps them to one enum max14577_muic_charger_type.

    Signed-off-by: Krzysztof Kozlowski
    Acked-by: Andrew Morton
    Signed-off-by: Lee Jones

    Krzysztof Kozlowski
     
  • Add a "maxim,max14577-charger" of_compatible to the mfd_cell so the
    MFD child device (the charger) will have its own of_node set. This will
    be used by the max14577 charger driver in next patches to obtain battery
    configuration from DTS.

    Signed-off-by: Krzysztof Kozlowski
    Acked-by: Andrew Morton
    Signed-off-by: Lee Jones

    Krzysztof Kozlowski
     
  • Prepare for adding support for MAX77836 charger to the max14577 charger
    driver by adding necessary new defines and prefixes to existing ones.

    The MAX77836 uses slightly different values for ChgTyp field of STATUS2
    register. On the MAX14577 value of 0x6 is reserved and 0x7 dead battery.
    On the MAX77836 the opposite:
    - 0x6 means special charger,
    - 0x7 is reserved.
    Regardless of these differences use one common enum
    max14577_muic_charger_type.

    Signed-off-by: Krzysztof Kozlowski
    Cc: Kyungmin Park
    Acked-by: Lee Jones
    Acked-by: Andrew Morton

    Krzysztof Kozlowski