Skip to content

Commit 2256e6f

Browse files
committed
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 <[email protected]> Cc: Pavel Machek <[email protected]> Acked-by: Pavel Machek <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent 36f808f commit 2256e6f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

arch/arm/boot/dts/motorola-mapphone-common.dtsi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,13 @@
249249
};
250250
};
251251

252+
/* Battery NVRAM on 1-wire handled by w1_ds250x driver */
253+
&hdqw1w {
254+
pinctrl-0 = <&hdq_pins>;
255+
pinctrl-names = "default";
256+
ti,mode = "1w";
257+
};
258+
252259
&i2c1 {
253260
tmp105@48 {
254261
compatible = "ti,tmp105";
@@ -440,6 +447,13 @@
440447
>;
441448
};
442449

450+
hdq_pins: pinmux_hdq_pins {
451+
pinctrl-single,pins = <
452+
/* 0x4a100120 hdq_sio.hdq_sio aa27 */
453+
OMAP4_IOPAD(0x120, PIN_INPUT | MUX_MODE0)
454+
>;
455+
};
456+
443457
/* hdmi_cec.hdmi_cec, hdmi_scl.hdmi_scl, hdmi_sda.hdmi_sda */
444458
dss_hdmi_pins: pinmux_dss_hdmi_pins {
445459
pinctrl-single,pins = <

0 commit comments

Comments
 (0)