File tree Expand file tree Collapse file tree 5 files changed +825
-1
lines changed
Documentation/devicetree/bindings/iio/dac Expand file tree Collapse file tree 5 files changed +825
-1
lines changed Original file line number Diff line number Diff line change 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,ad5413.yaml#
5+ $schema : http://devicetree.org/meta-schemas/core.yaml#
6+
7+ title : Analog Devices AD5413 DAC
8+
9+ maintainers :
10+ 11+
12+ properties :
13+ compatible :
14+ const : adi,ad5413
15+
16+ reg :
17+ maxItems : 1
18+
19+ spi-max-frequency :
20+ maximum : 50000000
21+
22+ reset-gpios : true
23+
24+ avdd-supply :
25+ description : Analog positive supply (AVDD)
26+
27+ dvdd-supply :
28+ description : Digital positive supply (DVDD)
29+
30+ avss-supply :
31+ description : Analog negative supply (AVSS)
32+
33+ adi,range-microvolt :
34+ description : Voltage output range <min, max> in microvolts
35+ oneOf :
36+ - items :
37+ - const : -10500000
38+ - const : 10500000
39+ - items :
40+ - const : -12600000
41+ - const : 12600000
42+
43+ adi,range-microamp :
44+ description : Current output range <min, max> in microamps
45+ items :
46+ - const : 0
47+ - const : 24000
48+
49+ adi,slew-time-us :
50+ description : Output digital slew control time in microseconds
51+ minimum : 0
52+ maximum : 1000000
53+ default : 0
54+
55+ required :
56+ - compatible
57+ - reg
58+ - spi-max-frequency
59+ - avdd-supply
60+ - dvdd-supply
61+ - avss-supply
62+
63+ allOf :
64+ - $ref : /schemas/spi/spi-peripheral-props.yaml#
65+ - oneOf :
66+ - required : [adi,range-microamp]
67+ - required : [adi,range-microvolt]
68+
69+ unevaluatedProperties : false
70+
71+ examples :
72+ - |
73+ spi {
74+ #address-cells = <1>;
75+ #size-cells = <0>;
76+
77+ dac@0 {
78+ compatible = "adi,ad5413";
79+ reg = <0>;
80+ spi-max-frequency = <1000000>;
81+ reset-gpios = <&gpio 0 1>; /* 1 = active low */
82+ avdd-supply = <&avdd>;
83+ dvdd-supply = <&dvdd>;
84+ avss-supply = <&avss>;
85+ adi,range-microvolt = <(-10500000) 10500000>;
86+ adi,slew-time-us = <125>;
87+ };
88+ };
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ config IIO_ALL_ADI_DRIVERS
9696 imply AD5360
9797 imply AD5380
9898 imply AD5421
99+ imply AD5413
99100 imply AD5624R_SPI if SPI
100101 imply AD3552R
101102 imply AD3552R_HS
Original file line number Diff line number Diff line change @@ -96,6 +96,16 @@ config AD5380
9696 To compile this driver as module choose M here: the module will be called
9797 ad5380.
9898
99+ config AD5413
100+ tristate "Analog Devices AD5413 DAC driver"
101+ depends on SPI_MASTER
102+ help
103+ Say yes here to build support for Analog Devices AD5413 single channel
104+ Digital to Analog Converter.
105+
106+ To compile this driver as a module, choose M here: the
107+ module will be called ad5413.
108+
99109config AD5421
100110 tristate "Analog Devices AD5421 DAC driver"
101111 depends on SPI
@@ -597,5 +607,4 @@ config VF610_DAC
597607
598608 This driver can also be built as a module. If so, the module will
599609 be called vf610_dac.
600-
601610endmenu
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ obj-$(CONFIG_AD3552R) += ad3552r.o
1111obj-$(CONFIG_AD5270) += ad5270.o
1212obj-$(CONFIG_AD5360) += ad5360.o
1313obj-$(CONFIG_AD5380) += ad5380.o
14+ obj-$(CONFIG_AD5413) += ad5413.o
1415obj-$(CONFIG_AD5421) += ad5421.o
1516obj-$(CONFIG_AD5624R_SPI) += ad5624r_spi.o
1617obj-$(CONFIG_AD5064) += ad5064.o
You can’t perform that action at this time.
0 commit comments