summaryrefslogtreecommitdiffstats
path: root/dts/Bindings/mfd/ene-kb930.yaml
blob: 06ed9ec8f4bbce472cc0a7d52253f9e371ca031f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/mfd/ene-kb930.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: ENE KB930 Embedded Controller bindings

description: |
  This binding describes the ENE KB930 Embedded Controller attached to an
  I2C bus.

maintainers:
  - Dmitry Osipenko <digetx@gmail.com>

properties:
  compatible:
    items:
      - enum:
          - acer,a500-iconia-ec # Acer A500 Iconia tablet device
      - const: ene,kb930
  reg:
    maxItems: 1

  monitored-battery: true
  power-supplies: true
  system-power-controller: true

required:
  - compatible
  - reg

additionalProperties: false

examples:
  - |
    battery: battery-cell {
      compatible = "simple-battery";
      charge-full-design-microamp-hours = <3260000>;
      energy-full-design-microwatt-hours = <24000000>;
      operating-range-celsius = <0 40>;
    };

    mains: ac-adapter {
      compatible = "gpio-charger";
      charger-type = "mains";
      gpios = <&gpio 125 0>;
    };

    i2c {
      #address-cells = <1>;
      #size-cells = <0>;

      embedded-controller@58 {
        compatible = "acer,a500-iconia-ec", "ene,kb930";
        reg = <0x58>;

        system-power-controller;

        monitored-battery = <&battery>;
        power-supplies = <&mains>;
      };
    };

...