blob: b2582e32900ac625d2611173ba56b36df07c710e [file] [log] [blame]
Jan Kundrát5502fe32019-11-04 13:16:39 +01001#include <dt-bindings/iio/adi,ad5592r.h>
2
3&i2c1 {
4 eeprom@54 {
5 compatible = "atmel,24c128";
6 reg = <0x54>;
7 pagesize = <64>;
8 };
9
10 ad5593r@11 {
11 #size-cells = <0>;
12 #address-cells = <1>;
13 #gpio-cells = <2>;
14 compatible = "adi,ad5593r";
15 reg = <0x11>;
16 gpio-controller;
17
18 gpio-line-names =
19 "VOA0_DAC",
20 "VOA1_DAC",
21 "SWITCH1_ON",
22 "SWITCH2_ON",
23 "ST1_34",
24 "ST1_78",
25 "ST2_34",
26 "ST2_78"
27 ;
28
29 channel@0 {
30 reg = <0>;
31 adi,mode = <CH_MODE_DAC_AND_ADC>;
32 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
33 };
34
35 channel@1 {
36 reg = <1>;
37 adi,mode = <CH_MODE_DAC_AND_ADC>;
38 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
39 };
40
41 channel@2 {
42 reg = <2>;
43 adi,mode = <CH_MODE_GPIO>;
44 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
45 };
46
47 channel@3 {
48 reg = <3>;
49 adi,mode = <CH_MODE_GPIO>;
50 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
51 };
52
53 channel@4 {
54 reg = <4>;
55 adi,mode = <CH_MODE_GPIO>;
56 adi,off-state = <CH_OFFSTATE_OUT_TRISTATE>;
57 };
58
59 channel@5 {
60 reg = <5>;
61 adi,mode = <CH_MODE_GPIO>;
62 adi,off-state = <CH_OFFSTATE_OUT_TRISTATE>;
63 };
64
65 channel@6 {
66 reg = <6>;
67 adi,mode = <CH_MODE_GPIO>;
68 adi,off-state = <CH_OFFSTATE_OUT_TRISTATE>;
69 };
70
71 channel@7 {
72 reg = <7>;
73 adi,mode = <CH_MODE_GPIO>;
74 adi,off-state = <CH_OFFSTATE_OUT_TRISTATE>;
75 };
76 };
77};