Lines Matching +full:mode +full:- +full:reg
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Michael Hennerich <michael.hennerich@analog.com>
15 - adi,ad5592r
16 - adi,ad5593r
18 reg:
21 spi-max-frequency:
24 spi-cpol: true
26 "#address-cells":
29 "#size-cells":
32 "#io-channel-cells":
35 vref-supply:
38 reset-gpios:
41 gpio-controller:
44 "#gpio-cells":
48 GPIO flags, as defined in <dt-bindings/gpio/gpio.h>.
51 - compatible
52 - reg
53 - "#address-cells"
54 - "#size-cells"
57 - if:
64 - spi-cpol
67 spi-cpol: false
72 "^(channel@)[0-7]$":
76 reg:
80 adi,mode:
84 Mode or function of this channel.
86 <dt-bindings/iio/adi,ad5592r.h>.
94 considered as the preferred DAC mode)
97 adi,off-state:
103 <dt-bindings/iio/adi,ad5592r.h>.
110 - reg
111 - adi,mode
116 - |
117 #include <dt-bindings/iio/adi,ad5592r.h>
119 #address-cells = <1>;
120 #size-cells = <0>;
124 #size-cells = <0>;
125 #address-cells = <1>;
126 #gpio-cells = <2>;
127 reg = <0>;
129 spi-max-frequency = <1000000>;
130 spi-cpol;
132 vref-supply = <&vref>;
133 reset-gpios = <&gpio0 86 0>;
134 gpio-controller;
137 reg = <0>;
138 adi,mode = <CH_MODE_DAC>;
141 reg = <1>;
142 adi,mode = <CH_MODE_ADC>;
145 reg = <2>;
146 adi,mode = <CH_MODE_DAC_AND_ADC>;
149 reg = <3>;
150 adi,mode = <CH_MODE_DAC_AND_ADC>;
151 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
154 reg = <4>;
155 adi,mode = <CH_MODE_UNUSED>;
156 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
159 reg = <5>;
160 adi,mode = <CH_MODE_GPIO>;
161 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
164 reg = <6>;
165 adi,mode = <CH_MODE_GPIO>;
166 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
169 reg = <7>;
170 adi,mode = <CH_MODE_GPIO>;
171 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
176 #size-cells = <0>;
177 #address-cells = <1>;
178 #gpio-cells = <2>;
179 reg = <0x10>;
180 gpio-controller;
183 reg = <0>;
184 adi,mode = <CH_MODE_DAC>;
185 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
188 reg = <1>;
189 adi,mode = <CH_MODE_ADC>;
190 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
193 reg = <2>;
194 adi,mode = <CH_MODE_DAC_AND_ADC>;
195 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
198 reg = <6>;
199 adi,mode = <CH_MODE_GPIO>;
200 adi,off-state = <CH_OFFSTATE_PULLDOWN>;