Hello Maxime, On 04/02/2016 12:36 PM, Maxime Ripard wrote: > Hi, > > On Fri, Mar 25, 2016 at 08:04:06PM +0100, Michael Haas wrote: >> The A20-OLinuXino-LIME2 uses the AXP209 PMIC. This patch adds the >> corresponding usb-power-supply node to the DTS. >> If CONFIG_AXP20X_POWER is set, this patch enables the >> /sys/class/power_supply/ >> diirectory. >> >> Signed-off-by: Michael Haas <h...@computerlinguist.org> > Is there *any* reason to not use the AXP209 dtsi where it's already > defined? > > Thanks, > Maxime > are you asking why usb-power-supply is not enabled by default?
It is entirely possible that there will never be USB power supply connected to a particular board. There is also the possibility of using just the ACIN part, for which I will be submitting a driver soon (courtesy of Bruno Prémont). On the other hand, the USB supply is probably so common that we could just enable it. A board may choose to disable it or simply ignore the issue. After all, the driver will correctly report on POWER_SUPPLY_PROP_PRESENT and POWER_SUPPLY_PROP_ONLINE. Michael -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.