xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/maxim,max14656.yaml (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/power/supply/maxim,max14656.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Maxim MAX14656
8
9maintainers:
10  - Sebastian Reichel <sre@kernel.org>
11
12allOf:
13  - $ref: power-supply.yaml#
14
15properties:
16  compatible:
17    const: maxim,max14656
18
19  reg:
20    maxItems: 1
21
22  interrupts:
23    maxItems: 1
24
25required:
26  - compatible
27  - reg
28  - interrupts
29
30additionalProperties: false
31
32examples:
33  - |
34    #include <dt-bindings/interrupt-controller/irq.h>
35    i2c {
36      #address-cells = <1>;
37      #size-cells = <0>;
38
39      charger-detector@35 {
40        compatible = "maxim,max14656";
41        reg = <0x35>;
42        interrupt-parent = <&gpio6>;
43        interrupts = <26 IRQ_TYPE_LEVEL_HIGH>;
44      };
45    };
46