]> asedeno.scripts.mit.edu Git - linux.git/commit
ARM: dts: omap4-droid4: Enable hdq for droid4 ds250x 1-wire battery nvmem
authorTony Lindgren <tony@atomide.com>
Sun, 19 Jan 2020 19:56:59 +0000 (11:56 -0800)
committerTony Lindgren <tony@atomide.com>
Thu, 23 Jan 2020 18:00:01 +0000 (10:00 -0800)
commit2256e6f68c9e02524182640ba9584d978d490145
tree8c64a17807fe64ca38c321d30e651ee1e25d4994
parent36f808f2f1e9edb6fb129002a5ae71551b925225
ARM: dts: omap4-droid4: Enable hdq for droid4 ds250x 1-wire battery nvmem

With "[PATCHv3] w1: omap-hdq: Simplify driver with PM runtime autosuspend"
we can read the droid4 battery information over 1-wire with this patch
with something like:

# modprobe omap_hdq
# hd /sys/bus/w1/devices/89-*/89-*/nvmem
...

Unfortunately the format of the battery data seems to be Motorola specific
and is currently unusable for battery charger unless somebody figures out
what it means.

Note that currently keeping omap_hdq module loaded will cause extra power
consumption as it seems to scan devices periodically.

Cc: Merlijn Wajer <merlijn@wizzup.org>
Cc: Pavel Machek <pavel@ucw.cz>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/motorola-mapphone-common.dtsi