Skip to contentSkip to conversation

rtc: bq32000: add trickle charger device tree binding

PATCH Pavel Machek 2 participants 2 messages Sep 11, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

BQ32000 have "trickle chargers". Introduce a device tree binding for specifying the trickle charger configuration for that.

Documentation/devicetree/bindings/i2c/ti,bq32k.txt new file +18 -0
new file mode 100644
index 0000000..e204906
@@ -0,0 +1,18 @@
+* TI BQ32000                I2C Serial Real-Time Clock
+
+Required properties:
+- compatible: Should contain "ti,bq32000".
+- reg: I2C address for chip
+
+Optional properties:
+- trickle-resistor-ohms : Selected resistor for trickle charger
+       Values usable are 1120 and 20180
+       Should be given if trickle charger should be enabled
+- trickle-diode-disable : Do not use internal trickle charger diode
+       Should be given if internal trickle charger diode should be disabled
+Example:
+       bq32000: rtc@68 {
+               compatible = "ti,bq32000";
+               trickle-resistor-ohms = <1120>;
+               reg = <0x68>;
+       };
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html