57 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/power/supply/samsung,battery.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Samsung SDI Batteries8 9maintainers:10 - Linus Walleij <linus.walleij@linaro.org>11 12description: |13 Samsung SDI (Samsung Digital Interface) batteries are all different versions14 of lithium ion chemistry devices used for mobile phones, laptops and other15 portable electronics. The batteries are adapted to a specific product and16 the physical restrictions make it impossible to use another battery with the17 product, so product device trees can specify these batteries. Operating18 systems should determine hardware characteristics of the batteries from the19 compatible string.20 21properties:22 compatible:23 oneOf:24 - const: samsung,eb-l1m7flu25 description: 3.8V 1500 mAh battery used in Samsung GT-I819026 - const: samsung,eb425161la27 description: 3.8V 1500 mAh battery used in Samsung SGH-T599 and SGH-I40728 - const: samsung,eb425161lu29 description: 3.8V 1500 mAh battery used in Samsung GT-I816030 - const: samsung,eb485159lu31 description: 3.8V 1700 mAh battery used in Samsung GT-S771032 - const: samsung,eb535151vu33 description: 3.8V 1500 mAh battery used in Samsung GT-I907034 - const: samsung,eb585157lu35 description: 3.8V 2000 mAh battery used in Samsung GT-I853036 37required:38 - compatible39 40additionalProperties: false41 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