Skip to content

Commit

Permalink
Documentation: dt-bindings: trickle charger dt binding document for d…
Browse files Browse the repository at this point in the history
…s1339

Some DS13XX devices have "trickle chargers".  Introduce a device tree
binding for the resistor and diode configuration for enabling trickle
charger.

Signed-off-by: Matti Vaittinen <[email protected]>
Acked-by: Jason Cooper <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Pawel Moll <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Pavel Machek <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Matti Vaittinen authored and torvalds committed Oct 14, 2014
1 parent 038b892 commit 2ac848c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
1 change: 0 additions & 1 deletion Documentation/devicetree/bindings/i2c/trivial-devices.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ catalyst,24c32 i2c serial eeprom
cirrus,cs42l51 Cirrus Logic CS42L51 audio codec
dallas,ds1307 64 x 8, Serial, I2C Real-Time Clock
dallas,ds1338 I2C RTC with 56-Byte NV RAM
dallas,ds1339 I2C Serial Real-Time Clock
dallas,ds1340 I2C RTC with Trickle Charger
dallas,ds1374 I2C, 32-Bit Binary Counter Watchdog RTC with Trickle Charger and Reset Input/Output
dallas,ds1631 High-Precision Digital Thermometer
Expand Down
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/rtc/dallas,ds1339.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
* Dallas DS1339 I2C Serial Real-Time Clock

Required properties:
- compatible: Should contain "dallas,ds1339".
- reg: I2C address for chip

Optional properties:
- trickle-resistor-ohms : Selected resistor for trickle charger
Values usable for ds1339 are 250, 2000, 4000
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:
ds1339: rtc@68 {
compatible = "dallas,ds1339";
trickle-resistor-ohms = <250>;
reg = <0x68>;
};

0 comments on commit 2ac848c

Please sign in to comment.