Lines Matching +full:gpio0 +full:- +full:adc +full:- +full:pin
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices AD5592R/AD5593R DAC/ADC
10 - Michael Hennerich <michael.hennerich@analog.com>
15 - adi,ad5592r
16 - adi,ad5593r
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]$":
86 <dt-bindings/iio/adi,ad5592r.h>.
89 * CH_MODE_UNUSED (the pin is unused)
90 * CH_MODE_ADC (the pin is ADC input)
91 * CH_MODE_DAC (the pin is DAC output)
92 * CH_MODE_DAC_AND_ADC (the pin is DAC output but can be monitored
93 by an ADC, since there is no disadvantage this should be
95 * CH_MODE_GPIO (the pin is registered with GPIOLIB)
97 adi,off-state:
103 <dt-bindings/iio/adi,ad5592r.h>.
104 * CH_OFFSTATE_PULLDOWN (the pin is pulled down)
105 * CH_OFFSTATE_OUT_LOW (the pin is output low)
106 * CH_OFFSTATE_OUT_HIGH (the pin is output high)
107 * CH_OFFSTATE_OUT_TRISTATE (the pin is tristated output)
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>;
129 spi-max-frequency = <1000000>;
130 spi-cpol;
132 vref-supply = <&vref>;
133 reset-gpios = <&gpio0 86 0>;
134 gpio-controller;
151 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
156 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
161 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
166 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
171 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
176 #size-cells = <0>;
177 #address-cells = <1>;
178 #gpio-cells = <2>;
180 gpio-controller;
185 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
190 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
195 adi,off-state = <CH_OFFSTATE_PULLDOWN>;
200 adi,off-state = <CH_OFFSTATE_PULLDOWN>;