Skip to content

Commit f2b1c53

Browse files
committed
dt-bindings: iio: dac: Add adi,ad3530r.yaml
Add documentation for ad3530r. Signed-off-by: Kim Seer Paller <[email protected]>
1 parent c7fe871 commit f2b1c53

File tree

2 files changed

+95
-0
lines changed

2 files changed

+95
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/iio/dac/adi,ad3530r.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Analog Devices AD3530R DAC
8+
9+
maintainers:
10+
- Kim Seer Paller <[email protected]>
11+
12+
description: |
13+
The AD3530R/AD3530 are low power, 8-channel, 16-bit, buffered voltage output,
14+
DACs that include a 2.5 V internal reference (disabled by default), and a
15+
gain bit field, resulting in a full-scale output span of 2.5 V (gain
16+
= 1) or 5 V (gain = 2) for a reference voltage of 2.5 V.
17+
18+
properties:
19+
compatible:
20+
enum:
21+
- adi,ad3530r
22+
23+
reg:
24+
maxItems: 1
25+
26+
spi-max-frequency:
27+
maximum: 50000000
28+
29+
vcc-supply:
30+
description: Analog Supply Voltage Input.
31+
32+
ref-supply:
33+
description:
34+
Reference Input/Output. The voltage at the REF pin sets the full-scale
35+
range of all channels. If not provided the internal reference is used and
36+
also provided on the VREF pin.
37+
38+
reset-gpios:
39+
description:
40+
Active low signal that is falling edge sensitive. When it is deasserted,
41+
the digital core initialization is performed and all DAC registers except
42+
the Interface Configuration A register are reset to their default values.
43+
maxItems: 1
44+
45+
ldac-gpios:
46+
description:
47+
LDAC pin to be used as a hardware trigger to update the DAC channels. If
48+
not present, the DAC channels are updated by Software LDAC.
49+
maxItems: 1
50+
51+
adi,double-output-range:
52+
description:
53+
Configure the output range for all channels. If the property is present,
54+
the output will range from 0V to 2Vref. If the property is not
55+
present, the output will range from 0V to Vref.
56+
type: boolean
57+
58+
'#address-cells':
59+
const: 1
60+
61+
'#size-cells':
62+
const: 0
63+
64+
required:
65+
- compatible
66+
- reg
67+
- spi-max-frequency
68+
69+
allOf:
70+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
71+
72+
additionalProperties: false
73+
74+
examples:
75+
- |
76+
spi {
77+
#address-cells = <1>;
78+
#size-cells = <0>;
79+
dac@0 {
80+
compatible = "adi,ad3530r";
81+
reg = <0>;
82+
spi-max-frequency = <1000000>;
83+
84+
vcc-supply = <&vcc>;
85+
ldac-gpios = <&gpio 17 0>;
86+
};
87+
};
88+
...

MAINTAINERS

+7
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,13 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git
11681168
T: git git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git
11691169
F: drivers/net/amt.c
11701170

1171+
ANALOG DEVICES INC AD3530R DRIVER
1172+
M: Kim Seer Paller <[email protected]>
1173+
1174+
S: Supported
1175+
W: https://ez.analog.com/linux-software-drivers
1176+
F: Documentation/devicetree/bindings/iio/dac/adi,ad3530r.yaml
1177+
11711178
ANALOG DEVICES INC AD3552R DRIVER
11721179
M: Nuno Sá <[email protected]>
11731180

0 commit comments

Comments
 (0)