On Mon, Feb 18, 2019 at 8:07 PM Mark Zhang <markz@xxxxxxxxxx> wrote: > > On 2/19/2019 2:06 AM, Rob Herring wrote: > > On Tue, Feb 12, 2019 at 12:44 AM Mark Zhang <markz@xxxxxxxxxx> wrote: > >> > >> Adding documentation for 3 new backup battery charging dts > >> properties: > >> - maxim,charging-current-microamp > >> - maxim,charging-voltage-microvolt > >> - maxim,output-resister-ohms > > > > What's the difference between the 77620 and 77650 as there's patches > > on the list for the 77650 too. The properties are similar, but seems > > to be main vs. backup battery charger. We should have common > > properties for this. > > Rob, it's different. The RTC in max77620 is supplied from a backup > battery and consumes 2.0uA (IBBATT) when no other power sources are > available. So unlike max77620 battery charging, which provides features > like: > > static enum power_supply_property max77650_charger_properties[] = { > POWER_SUPPLY_PROP_STATUS, > POWER_SUPPLY_PROP_ONLINE, > POWER_SUPPLY_PROP_CHARGE_TYPE > }; > > For backup battery charging in max77620, what we can do is just setting > those 3 parameters. We don't know whether it's charging, whether the > backup battery is online, the percentage of the charging progress, and > etc. That's why I mentioned before that it's not appropriate to create > it as a power supply driver. Maybe so, but that's all outside the scope of the binding. Both bindings define charging current and voltage. And other vendor's chargers likely need the same parameters, too. So there's no reason to have different properties. Rob