Lines Matching +full:mode +full:- +full:gpios
1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Michael Hennerich <michael.hennerich@analog.com>
14 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7605-4.pdf
15 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606_7606-6_7606-4.pdf
16 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7606B.pdf
17 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7616.pdf
22 - adi,ad7605-4
23 - adi,ad7606-4
24 - adi,ad7606-6
25 - adi,ad7606-8 # Referred to as AD7606 (without -8) in the datasheet
26 - adi,ad7606b
27 - adi,ad7616
32 spi-cpha: true
34 spi-cpol: true
36 avcc-supply: true
38 vdrive-supply:
43 refin-supply:
53 adi,conversion-start-gpios:
61 reset-gpios:
69 standby-gpios:
72 place the AD7606 into one of two power-down modes, Standby mode or
73 Shutdown mode. As the line is active low, it should be marked
77 adi,first-data-gpios:
85 adi,range-gpios:
93 tied to a logic high, software mode is enabled, otherwise one of the 3
98 adi,oversampling-ratio-gpios:
100 Must be the device tree identifier of the over-sampling mode pins. As the
103 mode is enabled.
106 adi,sw-mode:
108 Software mode of operation, so far available only for AD7616 and AD7606B.
109 It is enabled when all three oversampling mode pins are connected to high
112 registers. If the adi,oversampling-ratio-gpios property is defined, then
113 the driver will set the oversampling gpios to high. Otherwise, it is
118 - compatible
119 - reg
120 - spi-cpha
121 - avcc-supply
122 - vdrive-supply
123 - interrupts
124 - adi,conversion-start-gpios
127 - $ref: /schemas/spi/spi-peripheral-props.yaml#
129 - if:
136 adi,first-data-gpios: false
137 standby-gpios: false
138 adi,range-gpios:
142 adi,range-gpios:
145 - if:
150 - adi,ad7605-4
151 - adi,ad7616
154 adi,oversampling-ratio-gpios: false
156 - if:
161 - adi,ad7605-4
162 - adi,ad7606-4
163 - adi,ad7606-6
164 - adi,ad7606-8
167 adi,sw-mode: false
170 adi,conversion-start-gpios:
176 - |
177 #include <dt-bindings/gpio/gpio.h>
178 #include <dt-bindings/interrupt-controller/irq.h>
180 #address-cells = <1>;
181 #size-cells = <0>;
184 compatible = "adi,ad7606-8";
186 spi-max-frequency = <1000000>;
187 spi-cpol;
188 spi-cpha;
190 avcc-supply = <&adc_vref>;
191 vdrive-supply = <&vdd_supply>;
194 interrupt-parent = <&gpio>;
196 adi,conversion-start-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
197 reset-gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
198 adi,first-data-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
199 adi,oversampling-ratio-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>,
202 standby-gpios = <&gpio 24 GPIO_ACTIVE_LOW>;