| 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 |
|
| 7 |
title: Maxim MAX14656 |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Sebastian Reichel <[email protected]> |
| 11 |
|
| 12 |
allOf: |
| 13 |
- $ref: power-supply.yaml# |
| 14 |
|
| 15 |
properties: |
| 16 |
compatible: |
| 17 |
const: maxim,max14656 |
| 18 |
|
| 19 |
reg: |
| 20 |
maxItems: 1 |
| 21 |
|
| 22 |
interrupts: |
| 23 |
maxItems: 1 |
| 24 |
|
| 25 |
required: |
| 26 |
- compatible |
| 27 |
- reg |
| 28 |
- interrupts |
| 29 |
|
| 30 |
additionalProperties: false |
| 31 |
|
| 32 |
examples: |
| 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 |
}; |