Lines Matching +full:battery +full:- +full:detect +full:- +full:gpios
1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/sbs,sbs-manager.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
13 - $ref: power-supply.yaml#
18 - items:
19 - enum:
20 - lltc,ltc1760
21 - enum:
22 - sbs,sbs-manager
23 - items:
24 - const: sbs,sbs-manager
29 "#address-cells":
32 "#size-cells":
35 gpio-controller: true
37 "#gpio-cells":
41 - compatible
42 - reg
47 "^i2c@[1-4]$":
49 $ref: /schemas/i2c/i2c-controller.yaml#
58 - |
59 #include <dt-bindings/interrupt-controller/irq.h>
60 #include <dt-bindings/gpio/gpio.h>
63 #address-cells = <1>;
64 #size-cells = <0>;
66 batman: battery-manager@a {
67 compatible = "lltc,ltc1760", "sbs,sbs-manager";
69 #address-cells = <1>;
70 #size-cells = <0>;
72 gpio-controller;
73 #gpio-cells = <2>;
76 #address-cells = <1>;
77 #size-cells = <0>;
80 battery@b {
81 compatible = "ti,bq20z65", "sbs,sbs-battery";
83 sbs,battery-detect-gpios = <&batman 1 1>;
88 #address-cells = <1>;
89 #size-cells = <0>;
92 battery@b {
93 compatible = "ti,bq20z65", "sbs,sbs-battery";
95 sbs,battery-detect-gpios = <&batman 2 1>;
100 #address-cells = <1>;
101 #size-cells = <0>;
104 battery@b {
105 compatible = "ti,bq20z65", "sbs,sbs-battery";
107 sbs,battery-detect-gpios = <&batman 3 1>;