Changes from v1: * add documentation for mWh and mAh property units * change devicetree entries to match new property units Changes from v2: * split i2c changes into respective patches * add documentation for battery information for fuel gauge * rebased documentation patches on change on the list * abstracted the battery configuration for the state machine to an generic struct and platform data access function Changes from v3: * add "fixed-battery" compatible field to be be more consistant with devicetree Matt Ranostay (8): devicetree: property-units: add mWh and mAh units devicetree: power: add battery state machine documentation power: power_supply: add battery information struct power: power_supply: add battery info platform data retrieval power: bq27xxx_battery: add BQ27425 chip id power: bq27xxx_battery: add i2c bulk read/write functions devicetree: power: bq27xxx: add monitored battery documentation power: bq27xxx_battery: add initial state machine support .../devicetree/bindings/power/supply/battery.txt | 24 ++ .../devicetree/bindings/power/supply/bq27xxx.txt | 8 + .../devicetree/bindings/property-units.txt | 2 + drivers/power/supply/bq27xxx_battery.c | 253 ++++++++++++++++++++- drivers/power/supply/bq27xxx_battery_i2c.c | 64 +++++- drivers/power/supply/power_supply_core.c | 41 ++++ include/linux/power/bq27xxx_battery.h | 7 +- include/linux/power_supply.h | 16 ++ 8 files changed, 411 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree/bindings/power/supply/battery.txt -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html