Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

power: add documentation for ACT8945A's charger DT bindings

This patch adds documentation for the DT bindings of the charger
subdevice of ACT8945A MFD.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>

authored by

Wenyou Yang and committed by
Sebastian Reichel
c54e9a2a b950762c

+35
+35
Documentation/devicetree/bindings/power/act8945a-charger.txt
··· 1 + Device-Tree bindings for charger of Active-semi ACT8945A Multi-Function Device 2 + 3 + Required properties: 4 + - compatible: "active-semi,act8945a", please refer to ../mfd/act8945a.txt. 5 + - active-semi,chglev-gpios: charge current level phandle with args 6 + as described in ../gpio/gpio.txt. 7 + 8 + Optional properties: 9 + - active-semi,check-battery-temperature: boolean to check the battery 10 + temperature or not. 11 + - active-semi,input-voltage-threshold-microvolt: unit: mV; 12 + Specifies the charger's input over-voltage threshold value; 13 + The value can be: 6600, 7000, 7500, 8000; default: 6600 14 + - active-semi,precondition-timeout: unit: minutes; 15 + Specifies the charger's PRECONDITION safety timer setting value; 16 + The value can be: 40, 60, 80, 0; If 0, it means to disable this timer; 17 + default: 40. 18 + - active-semi,total-timeout: unit: hours; 19 + Specifies the charger's total safety timer setting value; 20 + The value can be: 3, 4, 5, 0; If 0, it means to disable this timer; 21 + default: 3. 22 + 23 + Example: 24 + pmic@5b { 25 + compatible = "active-semi,act8945a"; 26 + reg = <0x5b>; 27 + status = "okay"; 28 + 29 + pinctrl-names = "default"; 30 + pinctrl-0 = <&pinctrl_charger_chglev>; 31 + active-semi,chglev-gpios = <&pioA 12 GPIO_ACTIVE_HIGH>; 32 + active-semi,input-voltage-threshold-microvolt = <6600>; 33 + active-semi,precondition-timeout = <40>; 34 + active-semi,total-timeout = <3>; 35 + };