xref: /linux/Documentation/devicetree/bindings/mfd/ene-kb3930.yaml (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
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-kb3930.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: ENE KB3930 Embedded Controller
8
9description: |
10  This binding describes the ENE KB3930 Embedded Controller attached to an
11  I2C bus.
12
13maintainers:
14  - Lubomir Rintel <lkundrak@v3.sk>
15
16properties:
17  compatible:
18    items:
19      - enum:
20          - dell,wyse-ariel-ec  # Dell Wyse Ariel board (3020)
21      - const: ene,kb3930
22  reg:
23    maxItems: 1
24
25  off-gpios:
26    description: GPIO used with the shutdown protocol on Ariel
27    maxItems: 2
28
29  system-power-controller: true
30
31required:
32  - compatible
33  - reg
34
35additionalProperties: false
36
37examples:
38  - |
39    #include <dt-bindings/gpio/gpio.h>
40
41    i2c {
42      #address-cells = <1>;
43      #size-cells = <0>;
44
45      embedded-controller@58 {
46        compatible = "dell,wyse-ariel-ec", "ene,kb3930";
47        reg = <0x58>;
48        system-power-controller;
49
50        off-gpios = <&gpio 126 GPIO_ACTIVE_HIGH>,
51                    <&gpio 127 GPIO_ACTIVE_HIGH>;
52      };
53    };
54
55...
56