Based on kernel version 4.8. Page generated on 2016-10-06 23:13 EST.
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 };