1 # SPDX-License-Identifier: GPL-2.0 2 # Copyright (C) 2021 Sebastian Reichel 3 %YAML 1.2 4 --- 5 $id: http://devicetree.org/schemas/power/suppl 6 $schema: http://devicetree.org/meta-schemas/co 7 8 title: Bq25890, bq25892, bq25895 and bq25896 L 9 10 maintainers: 11 - Sebastian Reichel <sre@kernel.org> 12 13 allOf: 14 - $ref: power-supply.yaml# 15 16 properties: 17 compatible: 18 oneOf: 19 - enum: 20 - ti,bq25890 21 - items: 22 - enum: 23 - ti,bq25892 24 - ti,bq25895 25 - ti,bq25896 26 - const: ti,bq25890 27 28 reg: 29 maxItems: 1 30 31 interrupts: 32 maxItems: 1 33 34 ti,battery-regulation-voltage: 35 $ref: /schemas/types.yaml#/definitions/uin 36 description: maximum charging voltage (in 37 38 ti,charge-current: 39 $ref: /schemas/types.yaml#/definitions/uin 40 description: maximum charging current (in 41 42 ti,termination-current: 43 $ref: /schemas/types.yaml#/definitions/uin 44 description: | 45 charge will be terminated when current i 46 drops below this value (in uA) 47 48 ti,precharge-current: 49 $ref: /schemas/types.yaml#/definitions/uin 50 description: maximum charge current during 51 52 ti,minimum-sys-voltage: 53 $ref: /schemas/types.yaml#/definitions/uin 54 description: | 55 when battery is charging and it is below 56 the system will be regulated above minim 57 58 ti,boost-voltage: 59 $ref: /schemas/types.yaml#/definitions/uin 60 description: VBUS voltage level in boost m 61 62 ti,boost-max-current: 63 $ref: /schemas/types.yaml#/definitions/uin 64 description: maximum allowed current draw 65 66 ti,boost-low-freq: 67 description: boost mode frequency will be 68 type: boolean 69 70 ti,use-ilim-pin: 71 description: | 72 ILIM resistor will be used and the input 73 between the resistor setting and the IIN 74 type: boolean 75 76 ti,thermal-regulation-threshold: 77 $ref: /schemas/types.yaml#/definitions/uin 78 description: | 79 temperature above which the charge curre 80 (in degrees Celsius). If omitted, the de 81 82 ti,ibatcomp-micro-ohms: 83 description: value of a resistor in series 84 85 ti,ibatcomp-clamp-microvolt: 86 description: max. charging voltage adjustm 87 88 required: 89 - compatible 90 - reg 91 - interrupts 92 - ti,battery-regulation-voltage 93 - ti,charge-current 94 - ti,termination-current 95 - ti,precharge-current 96 - ti,minimum-sys-voltage 97 - ti,boost-voltage 98 - ti,boost-max-current 99 100 unevaluatedProperties: false 101 102 examples: 103 - | 104 #include <dt-bindings/interrupt-controller 105 i2c { 106 #address-cells = <1>; 107 #size-cells = <0>; 108 109 charger@6a { 110 compatible = "ti,bq25890"; 111 reg = <0x6a>; 112 113 interrupt-parent = <&gpio1>; 114 interrupts = <16 IRQ_TYPE_EDGE_FALLING 115 116 ti,battery-regulation-voltage = <42000 117 ti,charge-current = <1000000>; 118 ti,termination-current = <50000>; 119 ti,precharge-current = <128000>; 120 ti,minimum-sys-voltage = <3600000>; 121 ti,boost-voltage = <5000000>; 122 ti,boost-max-current = <1000000>; 123 124 ti,use-ilim-pin; 125 ti,thermal-regulation-threshold = <120 126 }; 127 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.