11 Aug, 2016

1 commit


25 Feb, 2016

1 commit

  • This patch adds new driver for Active-semi ACT8945A ActivePath
    charger (part of ACT8945A MFD driver) providing power supply class
    information to userspace.

    The driver can be configured through DT (such as, total timer,
    precondition timer and input over-voltage threshold).

    Signed-off-by: Wenyou Yang
    Reviewed-by: Krzysztof Kozlowski
    [ add "|| COMPILE_TEST" to MFD_ACT8945A dependency ]
    Signed-off-by: Sebastian Reichel

    Wenyou Yang
     

05 Dec, 2015

1 commit


07 Nov, 2015

1 commit

  • Pull MFD updates from Lee Jones:
    "New Device Support:
    - Add support for 88pm860; 88pm80x
    - Add support for 24c08 EEPROM; at24
    - Add support for Broxton Whiskey Cove; intel*
    - Add support for RTS522A; rts5227
    - Add support for I2C devices; intel_quark_i2c_gpio

    New Functionality:
    - Add microphone support; arizona
    - Add general purpose switch support; arizona
    - Add fuel-gauge support; da9150-core
    - Add shutdown support; sec-core
    - Add charger support; tps65217
    - Add flexible serial communication unit support; atmel-flexcom
    - Add power button support; axp20x
    - Add led-flash support; rt5033

    Core Frameworks:
    - Supply a generic macro for defining Regmap IRQs
    - Rework ACPI child device matching

    Fix-ups:
    - Use Regmap to access registers; tps6105x
    - Use DEFINE_RES_IRQ_NAMED() macro; da9150
    - Re-arrange device registration order; intel_quark_i2c_gpio
    - Allow OF matching; cros_ec_i2c, atmel-hlcdc, hi6421-pmic, max8997, sm501
    - Handle deferred probe; twl6040
    - Improve accuracy of headphone detect; arizona
    - Unnecessary MODULE_ALIAS() removal; bcm590xx, rt5033
    - Remove unused code; htc-i2cpld, arizona, pcf50633-irq, sec-core
    - Simplify code; kempld, rts5209, da903x, lm3533, da9052, arizona
    - Remove #iffery; arizona
    - DT binding adaptions; many

    Bug Fixes:
    - Fix possible NULL pointer dereference; wm831x, tps6105x
    - Fix 64bit bug; intel_soc_pmic_bxtwc
    - Fix signedness issue; arizona"

    * tag 'mfd-for-linus-4.4' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd: (73 commits)
    bindings: mfd: s2mps11: Add documentation for s2mps15 PMIC
    mfd: sec-core: Remove unused s2mpu02-rtc and s2mpu02-clk children
    extcon: arizona: Add extcon specific device tree binding document
    MAINTAINERS: Add binding docs for Cirrus Logic/Wolfson Arizona devices
    mfd: arizona: Remove bindings covered in new subsystem specific docs
    mfd: rt5033: Add RT5033 Flash led sub device
    mfd: lpss: Add Intel Broxton PCI IDs
    mfd: lpss: Add Broxton ACPI IDs
    mfd: arizona: Signedness bug in arizona_runtime_suspend()
    mfd: axp20x: Add a cell for the power button part of the, axp288 PMICs
    mfd: dt-bindings: Document pulled down WRSTBI pin on S2MPS1X
    mfd: sec-core: Disable buck voltage reset on watchdog falling edge
    mfd: sec-core: Dump PMIC revision to find out the HW
    mfd: arizona: Use correct type ID for device tree config
    mfd: arizona: Remove use of codec build config #ifdefs
    mfd: arizona: Simplify adding subdevices
    mfd: arizona: Downgrade type mismatch messages to dev_warn
    mfd: arizona: Factor out checking of jack detection state
    mfd: arizona: Factor out DCVDD isolation control
    mfd: Make TPS6105X select REGMAP_I2C
    ...

    Linus Torvalds
     

13 Oct, 2015

1 commit


25 Sep, 2015

1 commit

  • This patch adds support for the tps65217 charger driver. This driver is
    responsible for controlling the charger aspect of the tps65217 mfd.
    Currently, this mainly consists of turning on and off the charger, but
    some other features of the charger can be supported through this driver.

    Signed-off-by: Enric Balletbo i Serra
    Signed-off-by: Sebastian Reichel

    Enric Balletbo i Serra
     

23 Sep, 2015

1 commit

  • Rename functions that are used by multiple devices. New devices
    have been added and the function names and driver name are no longer
    general enough for the functionality they provide.

    Signed-off-by: Andrew F. Davis
    Acked-by: Tony Lindgren
    Acked-by: GUAN Xuetao
    Signed-off-by: Sebastian Reichel

    Andrew F. Davis
     

22 Sep, 2015

2 commits

  • Add the Qualcomm Switch-Mode Battery Charger and Boost driver, found in
    pm8941.

    Signed-off-by: Courtney Cavin
    Signed-off-by: Bjorn Andersson
    Signed-off-by: Sebastian Reichel

    Courtney Cavin
     
  • This adds a driver for the usb power_supply bits of the axp20x PMICs.

    I initially started writing my own driver, before coming aware of
    Bruno Prémont's excellent earlier RFC with a driver for this.

    My driver was lacking CURRENT_MAX and VOLTAGE_MIN support Bruno's
    drvier has, so I've copied the code for those from his driver.

    Note that the AC-power-supply and battery charger bits will need separate
    drivers. Each one needs its own devictree child-node so that other
    devicetree nodes can reference the right power-supply, and thus each one
    will get its own mfd-cell / platform_device and platform-driver.

    Cc: Bruno Prémont
    Acked-by: Lee Jones
    Signed-off-by: Bruno Prémont
    Signed-off-by: Hans de Goede
    Signed-off-by: Sebastian Reichel

    Hans de Goede
     

30 May, 2015

1 commit


24 May, 2015

3 commits


08 Mar, 2015

1 commit

  • New power_supply driver at driver/power which interfaces with the
    axp20x mfd driver as a cell. Provides battery info, monitors for
    changes, and generates alerts on temperature and capacity issues

    Signed-off-by: Todd Brandt
    Acked-by: Jacob Pan
    Signed-off-by: Sebastian Reichel

    Todd Brandt
     

26 Feb, 2015

2 commits


22 Jan, 2015

1 commit

  • Both the LTC2941 and LTC2943 measure battery capacity.
    The LTC2943 is compatible with the LTC2941, it adds voltage and
    temperature monitoring, and uses a slightly different conversion
    formula for the charge counter.

    To avoid confusion with e.g. the LTC2945, the driver is called
    LTC2941 instead of LTC294X.

    v2: Fix units of measurement: uV, uA and centidegrees.
    v3: Correctly set configuration register. Allow negative values
    for the sense resistor.
    v4: Run checkpatch.pl and fix all errors and warnings.
    v5: Prefix "lltc," to devicetree properties.

    Signed-off-by: Mike Looijmans
    [ removed .owner field ]
    Signed-off-by: Sebastian Reichel

    Mike Looijmans
     

20 Jan, 2015

2 commits

  • Add new driver for Maxim 77693 switch-mode charger (part of max77693
    MFD driver) providing power supply class information to userspace.

    The charger has +20V tolerant input. Current input can be set from 0 to
    2.58 A. The charger can deliver up to 2.1 A to the battery or 3.5 A to
    the system (when supplying additional current from battery to system).

    The driver is configured through DTS (battery and system related
    settings) and sysfs entries (timers and top-off charging threshold).

    Signed-off-by: Krzysztof Kozlowski
    Signed-off-by: Sebastian Reichel

    Krzysztof Kozlowski
     
  • This patch adds device driver of Richtek PMIC.
    The driver support battery fuel gauge. Fuel gauge calculates and determines the
    battery state of charge (SOC) according to battery open circuit voltage (OCV).
    Also, this driver provides battery average voltage, voltage and battery present
    property.

    Cc: Sebastian Reichel
    Cc: Dmitry Eremin-Solenikov
    Cc: David Woodhouse
    Signed-off-by: Beomho Seo
    Acked-by: Chanwoo Choi
    Signed-off-by: Sebastian Reichel

    Beomho Seo
     

24 Jul, 2014

1 commit

  • This adds a driver for reading the battery status of the
    battery connected to the Atmel microcontroller on the
    iPAQ h3xxx series.

    Based on a driver from handhelds.org 2.6.21 kernel, written
    by Alessandro GARDICH.

    Signed-off-by: Dmitry Artamonow
    Signed-off-by: Linus Walleij
    Signed-off-by: Sebastian Reichel

    Dmitry Artamonow
     

24 Dec, 2013

1 commit

  • MAX14577 chip is a multi-function device which includes MUIC, charger and
    voltage regulator. The driver is located in drivers/mfd.

    This patch supports battery charging control of MAX14577 chip and provides
    power supply class information to userspace.

    Signed-off-by: Krzysztof Kozlowski
    Signed-off-by: Kyungmin Park
    Signed-off-by: Anton Vorontsov

    Krzysztof Kozlowski
     

26 Oct, 2013

1 commit

  • Adds support for the bq24735 charger chipset. The bq24735 is a
    high-efficiency, synchronous battery charger.

    It allows control of the charging current, input current, and the charger
    voltage DAC's through SMBus.

    Signed-off-by: Darbha Sriharsha
    Signed-off-by: Rhyland Klein
    Thanks-to: Stephen Warren
    Thanks-to: Thierry Reding
    Thanks-to: Manish Badarkhe
    Signed-off-by: Anton Vorontsov

    Darbha Sriharsha
     

31 Aug, 2013

1 commit

  • This driver is used and tested on gta04 phone. It's using twl4030_madc
    (similar to rx51 existing driver). Driver also implement charging and
    discharging calibration data so user can define ranges and level.

    Signed-off-by: Marek Belisko
    Signed-off-by: Lukas Märdian
    Signed-off-by: Anton Vorontsov

    Marek BElisko
     

28 Aug, 2013

1 commit

  • Add driver support for the Texas Instruments BQ24190 battery charger.
    Some of the information provided by the device is about the charger and
    other information is about the battery so create two power_supply objects
    (one for each) and provide the appropriate information for each one.

    The device has many fields that go beyond what is reasonable to report or
    modify using the existing 'POWER_SUPPLY_PROP_*' properties so the driver
    exports the register fields via sysfs. They are prefixed by 'f_' (for
    'field') to make it easier to distinguish between a register field and a
    "normal" sysfs file exported by the power_supply infrastructure.

    Signed-off-by: Mark A. Greer
    Signed-off-by: Anton Vorontsov

    Mark A. Greer
     

19 Mar, 2013

1 commit

  • This patch adds support for the tps65090 charger driver. This driver is
    responsible for controlling the charger aspect of the tps65090 mfd.
    Currently, this mainly consists of turning on and off the charger, but
    some features of the charger can be supported through this driver
    including:

    - Enable Auto Recharge based on Battery voltage
    - Fast Charge Safety Timer
    - Maximum battery discharge current
    - Maximum battery adapter current
    - Enable External Charge
    - Disable charging termination based on low charger current (supported)

    Once the driver is accepted, later patches can add support for the
    features above which are not yet supported.

    Based on work by:

    Syed Rafiuddin
    Laxman Dewangan

    Signed-off-by: Rhyland Klein
    Signed-off-by: Anton Vorontsov

    Rhyland Klein
     

07 Mar, 2013

1 commit


03 Feb, 2013

2 commits

  • Pull a huge ab8500/pm2301 pile of changes from Lee Jones. Lee did an
    awesome job cleaning this stuff up and thus brought ab8500 Stericsson's
    development tree much closer to the mainline. Even more changes to come,
    though.

    Conflicts:
    drivers/power/Kconfig

    Anton Vorontsov
     
  • Add the emulated power driver for the Goldfish platform.

    This folds together the code from the Google tree, Jun Nakajima's cleanups
    and x86 porting work, and then a tidy up to pass checkpatch.

    Signed-off-by: Mike A. Chan
    [cleanup and x86 support]
    Signed-off-by: Sheng Yang
    Signed-off-by: Yunhong Jiang
    Signed-off-by: Xiaohui Xin
    Signed-off-by: Jun Nakajima
    Signed-off-by: Bruce Beare
    [ported to 3.4]
    Signed-off-by: Tom Keel
    [ported to 3.7 and final tidy]
    Signed-off-by: Alan Cox
    Signed-off-by: Anton Vorontsov

    Mike Lockwood
     

23 Jan, 2013

1 commit


06 Jan, 2013

1 commit


14 Dec, 2012

1 commit

  • Pull battery subsystem updates from Anton Vorontsov:
    "Highlights:

    - Two new drivers from Pali Rohár and N900 hackers: rx51_battery and
    bq2415x_charger. The drivers are a part of a solution to replace
    the proprietary Nokia BME stack

    - Power supply core now registers devices with a thermal cooling
    subsystem, so we can now automatically throttle charging. Thanks
    to Ramakrishna Pallala!

    - Device tree support for ab8500 and max8925_power drivers

    - Random fixups and enhancements for a bunch of drivers."

    * tag 'for-v3.8-merged' of git://git.infradead.org/battery-2.6: (22 commits)
    max8925_power: Add support for device-tree initialization
    ab8500: Add devicetree support for chargalg
    ab8500: Add devicetree support for charger
    ab8500: Add devicetree support for btemp
    ab8500: Add devicetree support for fuelgauge
    twl4030_charger: Change TWL4030_MODULE_* ids to TWL_MODULE_*
    jz4740-battery: Use devm_request_and_ioremap
    jz4740-battery: Use devm_kzalloc
    bq27x00_battery: Fixup nominal available capacity reporting
    bq2415x_charger: Fix style issues
    bq2415x_charger: Add Kconfig/Makefile entries
    power_supply: Add bq2415x charger driver
    power_supply: Add new Nokia RX-51 (N900) power supply battery driver
    max17042_battery: Fix missing verify_model_lock() return value check
    ds2782_battery: Fix signedness bug in ds278x_read_reg16()
    lp8788-charger: Fix ADC channel names
    lp8788-charger: Fix wrong ADC conversion
    lp8788-charger: Use consumer device name on setting IIO channels
    power_supply: Register power supply for thermal cooling device
    power_supply: Add support for CHARGE_CONTROL_* attributes
    ...

    Linus Torvalds
     

11 Dec, 2012

1 commit

  • property, battery-type shall be one of supported technology type
    instead blank
    - refer: Documentation/devicetree/bindings/power_supply/ab8500/fg.txt
    for the list supported types
    - this patch appends to ab8500 bm devs DT binding patch set
    ref: commit-id e0f1abeba5c2d8a2183566717d99294fd1a29c2e
    git://git.infradead.org/battery-2.6.git
    - promote ab8500_fg probe to happen before ab8500_btemp probe as
    btemp driver depends on fuelgauge list,
    ref: ab8500_fg_get(...)

    Signed-off-by: Rajanikanth H.V

    Rajanikanth H.V
     

24 Nov, 2012

1 commit

  • Given appropriate devicetree bindings, this driver registers a
    pm_power_off function to set a GPIO line high/low to power down
    your board.

    Signed-off-by: Jamie Lentin
    Signed-off-by: Andrew Lunn
    Tested-by:Simon Baatz
    Signed-off-by: Jason Cooper

    Jamie Lentin
     

19 Nov, 2012

3 commits


07 Oct, 2012

1 commit

  • Pull battery updates from Anton Vorontsov:
    "1. New drivers:
    - Marvell 88pm860x charger and battery drivers;
    - Texas Instruments LP8788 charger driver;
    2. Two new power supply properties: whether a battery is authentic,
    and chargers' maximal currents and voltages;
    3. A lot of TI LP8727 Charger cleanups;
    4. New features for Charger Manager, mainly now we can disable
    specific regulators;
    5. Random fixes and cleanups for other drivers."

    Fix up trivial conflicts in

    * tag 'for-v3.7' of git://git.infradead.org/battery-2.6: (52 commits)
    pda_power: Remove ac_draw_failed goto and label
    charger-manager: Add support sysfs entry for charger
    charger-manager: Support limit of maximum possible
    charger-manager: Check fully charged state of battery periodically
    lp8727_charger: More pure cosmetic improvements
    lp8727_charger: Fix checkpatch warning
    lp8727_charger: Add description in the private data
    lp8727_charger: Fix a typo - chg_parm to chg_param
    lp8727_charger: Make some cosmetic changes in lp8727_delayed_func()
    lp8727_charger: Clean up lp8727_charger_changed()
    lp8727_charger: Return if the battery is discharging
    lp8727_charger: Make lp8727_charger_get_propery() simpler
    lp8727_charger: Make lp8727_ctrl_switch() inline
    lp8727_charger: Make lp8727_init_device() shorter
    lp8727_charger: Clean up lp8727_is_charger_attached()
    lp8727_charger: Use specific definition
    lp8727_charger: Clean up lp8727 definitions
    lp8727_charger: Use the definition rather than enum
    lp8727_charger: Fix code for getting battery temp
    lp8727_charger: Clear interrrupts at inital time
    ...

    Linus Torvalds
     

22 Sep, 2012

1 commit

  • Driver to allow use of the ADC drivers supported by the IIO
    subsystem for battery status monitoring. Connecting this
    driver to the relevant IIO device requires registration of
    the appropriate iio_map structure array by the IIO device
    driver (usually from platform data). If specified the driver
    will also make use of a gpio to provide interrupt driven
    notification that the battery is fully charged.

    In last version:
    Addressed concerns raised by lars:
    a. made the adc_bat per device.
    b. get the IIO channel using hardcoded channel names.
    c. Minor issues related to gpio_is_valid and some code
    refactoring.

    In V1:
    Addressed concerns raised by Anton:
    a. changed the struct name to gab(generic adc battery).
    b. Added some functions to neaten the code.
    c. Some minor coding guidelines changes.
    d. Used the latest function introduce by lars:
    iio_read_channel_processed to streamline the code.

    In V2:
    Addressed concerns by lars:
    a. No need of allocating memory for channels.Make it array.
    b. Code restructring, coding style and following kernel guidelines changes
    suggested by him.

    In V3:
    Addressed conerns by Anton:
    a. Added the copyright.
    b. Coding guidelines changes suggested by him.
    c. Added Makefile and Kconfig

    Signed-off-by: anish kumar
    Acked-by: Anton Vorontsov
    Signed-off-by: Jonathan Cameron

    anish kumar
     

21 Sep, 2012

2 commits

  • There are charger and battery measurement feature for 88pm860x PMIC.

    For charger, it can support pre-charge with small current when battery is
    nearly exausted and then changed into fast-charge with CC&CV mode.

    For battery monitor, it can support battery measurement such as
    vbat,vsys,vchg and ibat etc,it can aslo accumulating the Coulomb value
    charged or discharged from battery based on Conlomb Counter, we use it
    to estimate battery capacity.

    Signed-off-by: Jett.Zhou
    Signed-off-by: Anton Vorontsov

    Jett.Zhou
     
  • TI LP8788 PMU supports regulators, battery charger, RTC, ADC, backlight
    driver and current sinks.

    This patch supports the charger operations including the charger
    interrupt handling.

    The LP8788 charger driver provides configurable platform data. The
    charger platform data includes ADC input ID, maximum battery voltage,
    charging parameters and etc.

    The ADC input is used for getting the battery voltage and temperature.
    Charging parameters are used for updating the charger operations such
    like setting charging current and setting End-of-charge conditions.

    When the charging interrupt occurs, power supply uevents are generated
    in order to update the user-space information. For platform specific
    charger action, the charger_event() function can be used in the
    platform side.

    Signed-off-by: Milo(Woogyom) Kim
    Signed-off-by: Anton Vorontsov

    Kim, Milo