[Letux-kernel] dt-bindings: power: supply: bq27xxx: Add monitored-battery documentation

Pavel Machek pavel at ucw.cz
Sun Sep 10 22:50:26 CEST 2017


Hi!

> > Values match the 6000mAh specified by DT:
> >
> >         bat: battery {
> >                 compatible = "simple-battery", "pyra-battery";
> >                 voltage-min-design-microvolt = <3200000>;
> >                 energy-full-design-microwatt-hours = <22200000>;
> >                 charge-full-design-microamp-hours = <6000000>;
> >         };
> >
> > root at letux:~# cat /sys/class/power_supply/bq27421-0/uevent
> > POWER_SUPPLY_NAME=bq27421-0
> > POWER_SUPPLY_STATUS=Discharging
> > POWER_SUPPLY_PRESENT=1
> > POWER_SUPPLY_VOLTAGE_NOW=3943000
> > POWER_SUPPLY_CURRENT_NOW=-634000
> > POWER_SUPPLY_CAPACITY=82
> > POWER_SUPPLY_CAPACITY_LEVEL=Normal
> > POWER_SUPPLY_TEMP=319
> > POWER_SUPPLY_TECHNOLOGY=Li-ion
> > POWER_SUPPLY_CHARGE_FULL=5467000
> > POWER_SUPPLY_CHARGE_NOW=4611000
> > POWER_SUPPLY_CHARGE_FULL_DESIGN=6000000
> > POWER_SUPPLY_MANUFACTURER=Texas Instruments
> > root at letux:~#
> >
> > Anything else I should test?
> 
> Could you also test voltage-min-design-microvolt at 3177 to make sure
> that's configurable too?

That should be 3177000 microvolts, no?
									Pavel


More information about the Letux-kernel mailing list