blob: 049a1091343d81b02f27d9ef7b1b999622c5734a [file] [log] [blame]
Jan Kundrát5502fe32019-11-04 13:16:39 +01001#include <dt-bindings/iio/adi,ad5592r.h>
2
3&i2c1 {
Jan Kundrát6406d512020-11-18 18:24:36 +01004#ifdef CLEARFOG_REV1
Jan Kundrát5502fe32019-11-04 13:16:39 +01005 eeprom@54 {
6 compatible = "atmel,24c128";
7 reg = <0x54>;
8 pagesize = <64>;
9 };
Jan Kundrát6406d512020-11-18 18:24:36 +010010#else
11 // 24CSxx is treated as two separate devices
12 eeprom@52 {
13 compatible = "atmel,24c64";
14 reg = <0x52>;
15 };
16 eeprom@5a {
17 compatible = "atmel,24cs64";
18 reg = <0x5a>;
19 };
20#endif
Jan Kundrát5502fe32019-11-04 13:16:39 +010021
22 ad5593r@11 {
23 #size-cells = <0>;
24 #address-cells = <1>;
25 #gpio-cells = <2>;
26 compatible = "adi,ad5593r";
27 reg = <0x11>;
28 gpio-controller;
29
30 gpio-line-names =
31 "VOA0_DAC",
32 "VOA1_DAC",
33 "SWITCH1_ON",
34 "SWITCH2_ON",
35 "ST1_34",
36 "ST1_78",
37 "ST2_34",
38 "ST2_78"
39 ;
40
41 channel@0 {
42 reg = <0>;
43 adi,mode = <CH_MODE_DAC_AND_ADC>;
44 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
45 };
46
47 channel@1 {
48 reg = <1>;
49 adi,mode = <CH_MODE_DAC_AND_ADC>;
50 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
51 };
52
53 channel@2 {
54 reg = <2>;
55 adi,mode = <CH_MODE_GPIO>;
56 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
57 };
58
59 channel@3 {
60 reg = <3>;
61 adi,mode = <CH_MODE_GPIO>;
62 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
63 };
64
65 channel@4 {
66 reg = <4>;
67 adi,mode = <CH_MODE_GPIO>;
68 adi,off-state = <CH_OFFSTATE_OUT_TRISTATE>;
69 };
70
71 channel@5 {
72 reg = <5>;
73 adi,mode = <CH_MODE_GPIO>;
74 adi,off-state = <CH_OFFSTATE_OUT_TRISTATE>;
75 };
76
77 channel@6 {
78 reg = <6>;
79 adi,mode = <CH_MODE_GPIO>;
80 adi,off-state = <CH_OFFSTATE_OUT_TRISTATE>;
81 };
82
83 channel@7 {
84 reg = <7>;
85 adi,mode = <CH_MODE_GPIO>;
86 adi,off-state = <CH_OFFSTATE_OUT_TRISTATE>;
87 };
88 };
89};