Lines Matching +full:sbs +full:- +full:battery
1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/sbs,sbs-battery.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: SBS compliant battery
10 - Sebastian Reichel <sre@kernel.org>
13 Battery compatible with the smart battery system specifications
19 - items:
20 - enum:
21 - ti,bq20z65
22 - ti,bq20z75
23 - enum:
24 - sbs,sbs-battery
25 - items:
26 - const: sbs,sbs-battery
31 sbs,i2c-retry-count:
37 sbs,poll-retry-count:
44 sbs,battery-detect-gpios:
46 GPIO which signals battery detection. If this is not supplied, the bus
47 needs to be polled to detect the battery.
50 sbs,disable-charger-broadcasts:
52 SBS batteries by default send broadcast messages to SBS compliant chargers to
53 configure max. charge current/voltage. If your hardware does not have an SBS
55 the bus. Also some SBS battery fuel gauges are known to have a buggy multi-
60 - compatible
61 - reg
66 - |
67 #include <dt-bindings/gpio/gpio.h>
70 #address-cells = <1>;
71 #size-cells = <0>;
73 battery@b {
74 compatible = "ti,bq20z75", "sbs,sbs-battery";
76 sbs,i2c-retry-count = <2>;
77 sbs,poll-retry-count = <10>;
78 sbs,battery-detect-gpios = <&gpio 122 GPIO_ACTIVE_HIGH>;
79 sbs,disable-charger-broadcasts;