3832246ddd
Allow both device tree (preferred) and platform data-based driver instantiation. Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
18 lines
427 B
Text
18 lines
427 B
Text
max17042_battery
|
|
~~~~~~~~~~~~~~~~
|
|
|
|
Required properties :
|
|
- compatible : "maxim,max17042"
|
|
|
|
Optional properties :
|
|
- maxim,rsns-microohm : Resistance of rsns resistor in micro Ohms
|
|
(datasheet-recommended value is 10000).
|
|
Defining this property enables current-sense functionality.
|
|
|
|
Example:
|
|
|
|
battery-charger@36 {
|
|
compatible = "maxim,max17042";
|
|
reg = <0x36>;
|
|
maxim,rsns-microohm = <10000>;
|
|
};
|