Lines Matching +full:gpo +full:- +full:comparator
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Cosmin Tanislav <cosmin.tanislav@analog.com>
13 The AD74412R and AD74413R are quad-channel software configurable input/output
18 The devices feature a 16-bit ADC and four configurable 13-bit DACs to provide
20 The AD74413R differentiates itself from the AD74412R by being HART-compatible.
27 - adi,ad74412r
28 - adi,ad74413r
33 '#address-cells':
36 '#size-cells':
39 spi-max-frequency:
42 spi-cpol: true
47 refin-supply: true
49 shunt-resistor-micro-ohms:
51 Shunt (sense) resistor value in micro-Ohms.
55 - compatible
56 - reg
57 - spi-max-frequency
58 - spi-cpol
59 - refin-supply
64 "^channel@[0-3]$":
76 adi,ch-func:
81 0 - CH_FUNC_HIGH_IMPEDANCE
82 1 - CH_FUNC_VOLTAGE_OUTPUT
83 2 - CH_FUNC_CURRENT_OUTPUT
84 3 - CH_FUNC_VOLTAGE_INPUT
85 4 - CH_FUNC_CURRENT_INPUT_EXT_POWER
86 5 - CH_FUNC_CURRENT_INPUT_LOOP_POWER
87 6 - CH_FUNC_RESISTANCE_INPUT
88 7 - CH_FUNC_DIGITAL_INPUT_LOGIC
89 8 - CH_FUNC_DIGITAL_INPUT_LOOP_POWER
90 9 - CH_FUNC_CURRENT_INPUT_EXT_POWER_HART
91 10 - CH_FUNC_CURRENT_INPUT_LOOP_POWER_HART
96 adi,gpo-comparator:
99 Whether to configure GPO as a comparator or not.
100 When not configured as a comparator, the GPO will be treated as an
101 output-only GPIO.
104 - reg
107 - |
108 #include <dt-bindings/gpio/gpio.h>
109 #include <dt-bindings/interrupt-controller/irq.h>
110 #include <dt-bindings/iio/addac/adi,ad74413r.h>
113 #address-cells = <1>;
114 #size-cells = <0>;
116 cs-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
122 spi-max-frequency = <1000000>;
123 spi-cpol;
125 #address-cells = <1>;
126 #size-cells = <0>;
128 interrupt-parent = <&gpio>;
131 refin-supply = <&ad74413r_refin>;
136 adi,ch-func = <CH_FUNC_VOLTAGE_OUTPUT>;
142 adi,ch-func = <CH_FUNC_CURRENT_OUTPUT>;
148 adi,ch-func = <CH_FUNC_DIGITAL_INPUT_LOGIC>;
149 adi,gpo-comparator;
155 adi,ch-func = <CH_FUNC_CURRENT_INPUT_EXT_POWER>;