xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/samsung,battery.yaml (revision 8ddb146abcdf061be9f2c0db7e391697dafad85c)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/power/supply/samsung,battery.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Samsung SDI Batteries
8
9maintainers:
10  - Linus Walleij <linus.walleij@linaro.org>
11
12description: |
13  Samsung SDI (Samsung Digital Interface) batteries are all different versions
14  of lithium ion chemistry devices used for mobile phones, laptops and other
15  portable electronics. The batteries are adapted to a specific product and
16  the physical restrictions make it impossible to use another battery with the
17  product, so product device trees can specify these batteries. Operating
18  systems should determine hardware characteristics of the batteries from the
19  compatible string.
20
21properties:
22  compatible:
23    oneOf:
24      - const: samsung,eb-l1m7flu
25        description: 3.8V 1500 mAh battery used in Samsung GT-I8190
26      - const: samsung,eb425161la
27        description: 3.8V 1500 mAh battery used in Samsung SGH-T599 and SGH-I407
28      - const: samsung,eb425161lu
29        description: 3.8V 1500 mAh battery used in Samsung GT-I8160
30      - const: samsung,eb485159lu
31        description: 3.8V 1700 mAh battery used in Samsung GT-S7710
32      - const: samsung,eb535151vu
33        description: 3.8V 1500 mAh battery used in Samsung GT-I9070
34      - const: samsung,eb585157lu
35        description: 3.8V 2000 mAh battery used in Samsung GT-I8530
36
37required:
38  - compatible
39
40additionalProperties: false
41
42examples:
43  - |
44    power {
45      #address-cells = <1>;
46      #size-cells = <0>;
47
48      battery: battery {
49        compatible = "samsung,eb425161la";
50      };
51
52      charger@11 {
53        reg = <0x11>;
54        monitored-battery = <&battery>;
55      };
56    };
57