• Home
  • Raw
  • Download

Lines Matching +full:spi +full:- +full:cpol

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
17 into a single chip solution with an SPI interface.
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]$":
75 adi,ch-func:
80 0 - CH_FUNC_HIGH_IMPEDANCE
81 1 - CH_FUNC_VOLTAGE_OUTPUT
82 2 - CH_FUNC_CURRENT_OUTPUT
83 3 - CH_FUNC_VOLTAGE_INPUT
84 4 - CH_FUNC_CURRENT_INPUT_EXT_POWER
85 5 - CH_FUNC_CURRENT_INPUT_LOOP_POWER
86 6 - CH_FUNC_RESISTANCE_INPUT
87 7 - CH_FUNC_DIGITAL_INPUT_LOGIC
88 8 - CH_FUNC_DIGITAL_INPUT_LOOP_POWER
89 9 - CH_FUNC_CURRENT_INPUT_EXT_POWER_HART
90 10 - CH_FUNC_CURRENT_INPUT_LOOP_POWER_HART
95 adi,gpo-comparator:
100 output-only GPIO.
103 - reg
106 - |
107 #include <dt-bindings/gpio/gpio.h>
108 #include <dt-bindings/interrupt-controller/irq.h>
109 #include <dt-bindings/iio/addac/adi,ad74413r.h>
111 spi {
112 #address-cells = <1>;
113 #size-cells = <0>;
115 cs-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
121 spi-max-frequency = <1000000>;
122 spi-cpol;
124 #address-cells = <1>;
125 #size-cells = <0>;
127 interrupt-parent = <&gpio>;
130 refin-supply = <&ad74413r_refin>;
135 adi,ch-func = <CH_FUNC_VOLTAGE_OUTPUT>;
141 adi,ch-func = <CH_FUNC_CURRENT_OUTPUT>;
147 adi,ch-func = <CH_FUNC_DIGITAL_INPUT_LOGIC>;
148 adi,gpo-comparator;
154 adi,ch-func = <CH_FUNC_CURRENT_INPUT_EXT_POWER>;