1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 # Copyright (C) 2021 Sebastian Reichel 2 # Copyright (C) 2021 Sebastian Reichel 3 %YAML 1.2 3 %YAML 1.2 4 --- 4 --- 5 $id: http://devicetree.org/schemas/power/suppl !! 5 $id: "http://devicetree.org/schemas/power/supply/bq2415x.yaml#" 6 $schema: http://devicetree.org/meta-schemas/co !! 6 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 7 7 8 title: TI bq2415x Li-Ion Charger !! 8 title: Binding for TI bq2415x Li-Ion Charger 9 9 10 maintainers: 10 maintainers: 11 - Sebastian Reichel <sre@kernel.org> 11 - Sebastian Reichel <sre@kernel.org> 12 12 13 allOf: 13 allOf: 14 - $ref: power-supply.yaml# 14 - $ref: power-supply.yaml# 15 15 16 properties: 16 properties: 17 compatible: 17 compatible: 18 enum: 18 enum: 19 - ti,bq24150 19 - ti,bq24150 >> 20 - ti,bq24150 20 - ti,bq24150a 21 - ti,bq24150a 21 - ti,bq24151 22 - ti,bq24151 22 - ti,bq24151a 23 - ti,bq24151a 23 - ti,bq24152 24 - ti,bq24152 24 - ti,bq24153 25 - ti,bq24153 25 - ti,bq24153a 26 - ti,bq24153a 26 - ti,bq24155 27 - ti,bq24155 27 - ti,bq24156 28 - ti,bq24156 28 - ti,bq24156a 29 - ti,bq24156a 29 - ti,bq24158 30 - ti,bq24158 30 31 31 reg: 32 reg: 32 maxItems: 1 33 maxItems: 1 33 34 34 ti,current-limit: 35 ti,current-limit: 35 $ref: /schemas/types.yaml#/definitions/uin 36 $ref: /schemas/types.yaml#/definitions/uint32 36 description: initial maximum current charg 37 description: initial maximum current charger can pull from power supply in mA. 37 38 38 ti,weak-battery-voltage: 39 ti,weak-battery-voltage: 39 $ref: /schemas/types.yaml#/definitions/uin 40 $ref: /schemas/types.yaml#/definitions/uint32 40 description: | 41 description: | 41 weak battery voltage threshold in mV. 42 weak battery voltage threshold in mV. 42 The chip will use slow precharge if batt 43 The chip will use slow precharge if battery voltage is below this value. 43 44 44 ti,battery-regulation-voltage: 45 ti,battery-regulation-voltage: 45 $ref: /schemas/types.yaml#/definitions/uin 46 $ref: /schemas/types.yaml#/definitions/uint32 46 description: maximum charging voltage in m 47 description: maximum charging voltage in mV. 47 48 48 ti,charge-current: 49 ti,charge-current: 49 $ref: /schemas/types.yaml#/definitions/uin 50 $ref: /schemas/types.yaml#/definitions/uint32 50 description: maximum charging current in m 51 description: maximum charging current in mA. 51 52 52 ti,termination-current: 53 ti,termination-current: 53 $ref: /schemas/types.yaml#/definitions/uin 54 $ref: /schemas/types.yaml#/definitions/uint32 54 description: | 55 description: | 55 charge will be terminated when current i 56 charge will be terminated when current in constant-voltage phase drops 56 below this value (in mA). 57 below this value (in mA). 57 58 58 ti,resistor-sense: 59 ti,resistor-sense: 59 $ref: /schemas/types.yaml#/definitions/uin 60 $ref: /schemas/types.yaml#/definitions/uint32 60 description: value of sensing resistor in 61 description: value of sensing resistor in milliohm. 61 62 62 ti,usb-charger-detection: 63 ti,usb-charger-detection: 63 $ref: /schemas/types.yaml#/definitions/pha 64 $ref: /schemas/types.yaml#/definitions/phandle 64 description: phandle to usb charger detect 65 description: phandle to usb charger detection device (required for auto mode) 65 66 66 required: 67 required: 67 - compatible 68 - compatible 68 - reg 69 - reg 69 - ti,current-limit 70 - ti,current-limit 70 - ti,weak-battery-voltage 71 - ti,weak-battery-voltage 71 - ti,battery-regulation-voltage 72 - ti,battery-regulation-voltage 72 - ti,charge-current 73 - ti,charge-current 73 - ti,termination-current 74 - ti,termination-current 74 - ti,resistor-sense 75 - ti,resistor-sense 75 76 76 additionalProperties: false 77 additionalProperties: false 77 78 78 examples: 79 examples: 79 - | 80 - | 80 i2c { !! 81 i2c0 { 81 #address-cells = <1>; 82 #address-cells = <1>; 82 #size-cells = <0>; 83 #size-cells = <0>; 83 84 84 charger@6b { 85 charger@6b { 85 compatible = "ti,bq24150a"; 86 compatible = "ti,bq24150a"; 86 reg = <0x6b>; 87 reg = <0x6b>; 87 88 88 ti,current-limit = <100>; 89 ti,current-limit = <100>; 89 ti,weak-battery-voltage = <3400>; 90 ti,weak-battery-voltage = <3400>; 90 ti,battery-regulation-voltage = <4200> 91 ti,battery-regulation-voltage = <4200>; 91 ti,charge-current = <650>; 92 ti,charge-current = <650>; 92 ti,termination-current = <100>; 93 ti,termination-current = <100>; 93 ti,resistor-sense = <68>; 94 ti,resistor-sense = <68>; 94 95 95 ti,usb-charger-detection = <&isp1704>; 96 ti,usb-charger-detection = <&isp1704>; 96 }; 97 }; 97 }; 98 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.