xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/ene-kb930.yaml (revision 2a58b312b62f908ec92311d1bd8536dbaeb8e55b)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mfd/ene-kb930.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: ENE KB930 Embedded Controller bindings
8
9description: |
10  This binding describes the ENE KB930 Embedded Controller attached to an
11  I2C bus.
12
13maintainers:
14  - Dmitry Osipenko <digetx@gmail.com>
15
16properties:
17  compatible:
18    items:
19      - enum:
20          - acer,a500-iconia-ec # Acer A500 Iconia tablet device
21      - const: ene,kb930
22  reg:
23    maxItems: 1
24
25  monitored-battery: true
26  power-supplies: true
27  system-power-controller: true
28
29required:
30  - compatible
31  - reg
32
33additionalProperties: false
34
35examples:
36  - |
37    battery: battery-cell {
38      compatible = "simple-battery";
39      charge-full-design-microamp-hours = <3260000>;
40      energy-full-design-microwatt-hours = <24000000>;
41      operating-range-celsius = <0 40>;
42    };
43
44    mains: ac-adapter {
45      compatible = "gpio-charger";
46      charger-type = "mains";
47      gpios = <&gpio 125 0>;
48    };
49
50    i2c {
51      #address-cells = <1>;
52      #size-cells = <0>;
53
54      embedded-controller@58 {
55        compatible = "acer,a500-iconia-ec", "ene,kb930";
56        reg = <0x58>;
57
58        system-power-controller;
59
60        monitored-battery = <&battery>;
61        power-supplies = <&mains>;
62      };
63    };
64
65...
66