Skip to content

Commit 7ebc26e

Browse files
committed
dt-bindings: mfd: add adi,max42500
Add documentation and devicetree bindings for MAX42500 Signed-off-by: Kent Libetario <Kent.Libetario@analog.com>
1 parent c59577d commit 7ebc26e

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/hwmon/adi,max42500.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Analog Devices MAX42500 Industrial Power System Monitor
8+
9+
maintainers:
10+
- Kent Libetario <Kent.Libetario@analog.com>
11+
12+
description: |
13+
Analog Devices MAX42500 Industrial Power System Monitor Family
14+
https://www.analog.com/media/en/technical-documentation/data-sheets/max42500.pdf
15+
16+
properties:
17+
compatible:
18+
enum:
19+
- adi,max42500
20+
reg:
21+
maxItems: 1
22+
23+
poweroff-gpios:
24+
description:
25+
This property sets the GPIO as output. Then used to control the power and
26+
mode state of the device. This can be enabled optionally to control the
27+
state of comparators in the voltage monitoring and/or trigger timestamp
28+
recording in the flexible power sequence recording functions. Check the
29+
state transition conditions in datasheet for more information.
30+
maxItems: 1
31+
32+
sleepoff-gpios:
33+
description:
34+
This property sets the GPIO as output. Then used to control the power and
35+
mode state of the device. This can be enabled and masked optionally to
36+
control the state of comparators in the voltage monitoring and/or trigger
37+
timestamp recording in the flexible power sequence recording functions.
38+
Check the state transition conditions in datasheet for more information.
39+
maxItems: 1
40+
41+
required:
42+
- compatible
43+
- reg
44+
45+
additionalProperties: false
46+
47+
examples:
48+
- |
49+
#include <dt-bindings/gpio/gpio.h>
50+
i2c {
51+
#address-cells = <1>;
52+
#size-cells = <0>;
53+
54+
max42500@28 {
55+
compatible = "adi,max42500";
56+
reg = <0x28>;
57+
};
58+
};

0 commit comments

Comments
 (0)