0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mfd/ene-kb930.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: ENE KB930 Embedded Controller bindings
0008
0009 description: |
0010 This binding describes the ENE KB930 Embedded Controller attached to an
0011 I2C bus.
0012
0013 maintainers:
0014 - Dmitry Osipenko <digetx@gmail.com>
0015
0016 properties:
0017 compatible:
0018 items:
0019 - enum:
0020 - acer,a500-iconia-ec # Acer A500 Iconia tablet device
0021 - const: ene,kb930
0022 reg:
0023 maxItems: 1
0024
0025 monitored-battery: true
0026 power-supplies: true
0027 system-power-controller: true
0028
0029 required:
0030 - compatible
0031 - reg
0032
0033 additionalProperties: false
0034
0035 examples:
0036 - |
0037 battery: battery-cell {
0038 compatible = "simple-battery";
0039 charge-full-design-microamp-hours = <3260000>;
0040 energy-full-design-microwatt-hours = <24000000>;
0041 operating-range-celsius = <0 40>;
0042 };
0043
0044 mains: ac-adapter {
0045 compatible = "gpio-charger";
0046 charger-type = "mains";
0047 gpios = <&gpio 125 0>;
0048 };
0049
0050 i2c {
0051 #address-cells = <1>;
0052 #size-cells = <0>;
0053
0054 embedded-controller@58 {
0055 compatible = "acer,a500-iconia-ec", "ene,kb930";
0056 reg = <0x58>;
0057
0058 system-power-controller;
0059
0060 monitored-battery = <&battery>;
0061 power-supplies = <&mains>;
0062 };
0063 };
0064
0065 ...