Skip to content

Commit 24275c2

Browse files
committed
dt-bindings: iio: dac: Add max22007
Devicetree bindings for MAX22007 4-channel 12-bit DAC that drives a voltage or current output on each channel Signed-off-by: Janani Sunil <janani.sunil@analog.com>
1 parent 36dbe4c commit 24275c2

File tree

1 file changed

+121
-0
lines changed

1 file changed

+121
-0
lines changed
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/iio/dac/adi,max22007.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Analog Devices MAX22007 DAC device driver
8+
9+
maintainers:
10+
- Janani Sunil <janani.sunil@analog.com>
11+
12+
description:
13+
The MAX22007 is a quad-channel, 12-bit digital-to-analog converter (DAC)
14+
with integrated precision output amplifiers and current output capability.
15+
Each channel can be independently configured for voltage or current output.
16+
Datasheet available at https://www.analog.com/en/products/max22007.html
17+
18+
$ref: /schemas/spi/spi-peripheral-props.yaml#
19+
20+
properties:
21+
compatible:
22+
const: adi,max22007
23+
24+
reg:
25+
maxItems: 1
26+
27+
spi-max-frequency:
28+
maximum: 500000
29+
30+
'#address-cells':
31+
const: 1
32+
33+
'#size-cells':
34+
const: 0
35+
36+
vdd-supply:
37+
description: Low-Voltage Power Supply from +2.7V to +5.5V.
38+
39+
hvdd-supply:
40+
description:
41+
Positive High-Voltage Power Supply from +8V to (HVSS +24V) for
42+
the Output Channels.
43+
44+
hvss-supply:
45+
description:
46+
Negative High-Voltage Power Supply from -2V to 0V for the Output Channels.
47+
48+
adi,crc-disable:
49+
type: boolean
50+
description:
51+
Disable CRC8 error checking for SPI communications. By default, CRC8 is
52+
enabled for data integrity verification. Set this property to disable it.
53+
54+
reset-gpios:
55+
maxItems: 1
56+
description:
57+
GPIO used for hardware reset of the device.
58+
59+
patternProperties:
60+
"^channel@[0-3]$":
61+
allOf:
62+
- $ref: /schemas/iio/dac/dac.yaml#
63+
- type: object
64+
description:
65+
Represents the external channels which are connected to the DAC.
66+
Channels not specified in the device tree will be powered off.
67+
68+
properties:
69+
reg:
70+
description: Channel number
71+
maxItems: 1
72+
73+
output-range-microamp:
74+
type: array
75+
items:
76+
type: integer
77+
minItems: 2
78+
maxItems: 2
79+
description: "Min and max output range in microamps."
80+
81+
unevaluatedProperties: false
82+
83+
required:
84+
- compatible
85+
- reg
86+
87+
anyOf:
88+
- required: [channel@0]
89+
- required: [channel@1]
90+
- required: [channel@2]
91+
- required: [channel@3]
92+
93+
94+
unevaluatedProperties: false
95+
96+
examples:
97+
- |
98+
#include <dt-bindings/gpio/gpio.h>
99+
spi {
100+
#address-cells = <1>;
101+
#size-cells = <0>;
102+
103+
dac@0 {
104+
compatible = "adi,max22007";
105+
reg = <0>;
106+
spi-max-frequency = <500000>;
107+
reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
108+
#address-cells = <1>;
109+
#size-cells = <0>;
110+
111+
channel@0 {
112+
reg = <0>;
113+
};
114+
115+
channel@1 {
116+
reg = <1>;
117+
output-range-microamp = <0 25000>;
118+
};
119+
};
120+
};
121+
...

0 commit comments

Comments
 (0)