29 Jun, 2016

1 commit


14 Jan, 2016

1 commit


11 Aug, 2015

1 commit


26 Nov, 2014

1 commit


26 Sep, 2014

1 commit


24 Sep, 2014

2 commits

  • 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 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
     

03 Jun, 2014

4 commits


23 Apr, 2014

5 commits

  • Add support for MAX77836 chipset to the max14577 extcon driver. The
    MAX77836 MUIC has additional interrupts (VIDRM, ADC1K) so IRQ handling
    is split up into two functions: max14577_parse_irq() and
    max77836_parse_irq().

    Signed-off-by: Krzysztof Kozlowski
    Acked-by: Chanwoo Choi
    Tested-by: Chanwoo Choi
    Signed-off-by: Lee Jones

    Krzysztof Kozlowski
     
  • Add Maxim 77836 support to max14577 driver. The chipsets have same MUIC
    component so the extcon, charger and regulators are almost the same. The
    MAX77836 however has also PMIC and Fuel Gauge.

    The MAX77836 uses three I2C slave addresses and has additional interrupts
    (related to PMIC and Fuel Gauge). It has also Interrupt Source register,
    just like MAX77686 and MAX77693.

    The MAX77836 PMIC's TOPSYS and INTSRC interrupts are reported in the
    PMIC block. The PMIC block has different I2C slave address and uses own
    regmap so another regmap_irq_chip is needed.

    Since we have two regmap_irq_chip, use shared interrupts on MAX77836.

    This patch adds additional defines and functions to the max14577 MFD core
    driver so the driver will handle both chipsets. Also this patch replaces
    "0x1 << N" with BIT(N) in defines for register masks.

    Signed-off-by: Krzysztof Kozlowski
    Acked-by: Chanwoo Choi
    Signed-off-by: Lee Jones

    Krzysztof Kozlowski
     
  • This patch prepares for adding support for MAX77836 device to existing
    max14577 driver by adding MAX14577 prefix to defines of interrupts.

    This is only a rename-like patch, new code is not added.

    Signed-off-by: Krzysztof Kozlowski
    Signed-off-by: Lee Jones

    Krzysztof Kozlowski
     
  • This patch continues the preparation for adding support for MAX77836
    device to existing max14577 driver.

    Add enum for types of devices supported by this driver. The device type
    will be detected by matching of_device_id, or i2c_device_id as a
    fallback.

    The patch also moves to separate function the code related to displaying
    DeviceID register values.

    Signed-off-by: Krzysztof Kozlowski
    Signed-off-by: Lee Jones

    Krzysztof Kozlowski
     
  • Add muic prefix to regmap config to differentiate between another regmap
    config for MAX77836 PMIC node. Additionally remove unused
    symbols: MAX14577_REG_INVALID and max14577_irq_source.

    Signed-off-by: Krzysztof Kozlowski
    Signed-off-by: Lee Jones

    Krzysztof Kozlowski
     

19 Mar, 2014

2 commits


19 Feb, 2014

1 commit


21 Jan, 2014

4 commits

  • 'max14577_dt_match' is always compiled in. Hence the helper macro
    is not needed.

    Signed-off-by: Sachin Kamat
    Signed-off-by: Lee Jones

    Sachin Kamat
     
  • "pdata" is a NULL not an ERR_PTR so there is no use printing it.

    Signed-off-by: Dan Carpenter
    Signed-off-by: Lee Jones

    Dan Carpenter
     
  • Match max14577 regulator driver by of_compatible specified in mfd_cell.

    Signed-off-by: Krzysztof Kozlowski
    Signed-off-by: Lee Jones

    Krzysztof Kozlowski
     
  • This patch adds max14577 core/irq driver to support MUIC(Micro USB IC)
    device and charger device and support irq domain method to control
    internal interrupt of max14577 device. Also, this patch supports DT
    binding with max14577_i2c_parse_dt().

    The MAXIM 14577 chip contains Micro-USB Interface Circuit and Li+ Battery
    Charger. It contains accessory and USB charger detection logic. It supports
    USB 2.0 Hi-Speed, UART and stereo audio signals over Micro-USB connector.

    The battery charger is compliant with the USB Battery Charging Specification
    Revision 1.1. It has also SFOUT LDO output for powering USB devices.

    Reviewed-by: Mark Brown
    Signed-off-by: Chanwoo Choi
    Signed-off-by: Krzysztof Kozlowski
    Signed-off-by: Kyungmin Park
    Signed-off-by: Lee Jones

    Chanwoo Choi