On 06/15/2018 12:37 PM, Adam Ford wrote: > I have a DM3730 with a bq27000 on the w1 bus > > During boot it displays: > > power_supply bq27000-battery: power_supply_get_battery_info currently > only supports devicetree > w1_slave_driver 01-000000000000: battery is not calibrated! ignoring > capacity values > > I tried to add a device tree node for battery under the &hdqw1w node: > > bat: battery { > compatible = "simple-battery"; > voltage-min-design-microvolt = <2750000>; /*2.75V */ > energy-full-design-microwatt-hours = <4255000>; /* 3.7V * 1.15AHr = 4.255W-hr */ > charge-full-design-microamp-hours = <1150000>; /*1150 mAhr */ > precharge-current-microamp = <115000>; /* 0.115A */ > constant-charge-current-max-microamp = <1150000>; /* 1.15 A */ > constant-charge-voltage-max-microvolt = <4200000>; /* 4.2 V */ > }; > > bq27000: fuel-gauge@1 { > compatible = "bq27000-battery"; > reg = <0x01>; > monitored-battery = <&bat>; > }; > > Does the bq27000 driver support adding a simple battery? I do not think the original BQ27000 does. A lot of the battery_info stuff was added by +Liam, he may know more. Andrew > > adam > -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html