Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: iio: adc: adi,ad4030: Add ADAQ4216 and ADAQ4224

ADAQ4216 and ADAQ4224 are similar to AD4030 except that ADAQ devices have a
PGA (programmable gain amplifier) that scales the input signal prior to it
reaching the ADC inputs. The PGA is controlled through a couple of pins (A0
and A1) that set one of four possible signal gain configurations.

Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Marcelo Schmitt and committed by
Jonathan Cameron
addb98c4 a98edf7d

+58
+58
Documentation/devicetree/bindings/iio/adc/adi,ad4030.yaml
··· 19 19 * https://www.analog.com/media/en/technical-documentation/data-sheets/ad4030-24-4032-24.pdf 20 20 * https://www.analog.com/media/en/technical-documentation/data-sheets/ad4630-24_ad4632-24.pdf 21 21 * https://www.analog.com/media/en/technical-documentation/data-sheets/ad4630-16-4632-16.pdf 22 + * https://www.analog.com/media/en/technical-documentation/data-sheets/adaq4216.pdf 23 + * https://www.analog.com/media/en/technical-documentation/data-sheets/adaq4224.pdf 22 24 23 25 $ref: /schemas/spi/spi-peripheral-props.yaml# 24 26 ··· 33 31 - adi,ad4630-24 34 32 - adi,ad4632-16 35 33 - adi,ad4632-24 34 + - adi,adaq4216 35 + - adi,adaq4224 36 36 37 37 reg: 38 38 maxItems: 1 ··· 66 62 description: 67 63 Internal buffered Reference. Used when ref-supply is not connected. 68 64 65 + vddh-supply: 66 + description: 67 + PGIA Positive Power Supply. 68 + 69 + vdd-fda-supply: 70 + description: 71 + FDA Positive Power Supply. 72 + 69 73 cnv-gpios: 70 74 description: 71 75 The Convert Input (CNV). It initiates the sampling conversions. ··· 83 71 description: 84 72 The Reset Input (/RST). Used for asynchronous device reset. 85 73 maxItems: 1 74 + 75 + pga-gpios: 76 + description: 77 + A0 and A1 pins for gain selection. For devices that have PGA configuration 78 + input pins, pga-gpios should be defined. 79 + minItems: 2 80 + maxItems: 2 86 81 87 82 pwms: 88 83 description: PWM signal connected to the CNV pin. ··· 132 113 properties: 133 114 spi-rx-bus-width: 134 115 maxItems: 1 116 + # ADAQ devices require a gain property to indicate how hardware PGA is set 117 + - if: 118 + properties: 119 + compatible: 120 + contains: 121 + pattern: ^adi,adaq 122 + then: 123 + required: 124 + - vddh-supply 125 + - vdd-fda-supply 126 + - pga-gpios 127 + properties: 128 + ref-supply: false 129 + else: 130 + properties: 131 + pga-gpios: false 135 132 136 133 examples: 137 134 - | ··· 187 152 ref-supply = <&supply_5V>; 188 153 cnv-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; 189 154 reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; 155 + }; 156 + }; 157 + - | 158 + #include <dt-bindings/gpio/gpio.h> 159 + 160 + spi { 161 + #address-cells = <1>; 162 + #size-cells = <0>; 163 + 164 + adc@0 { 165 + compatible = "adi,adaq4216"; 166 + reg = <0>; 167 + spi-max-frequency = <80000000>; 168 + vdd-5v-supply = <&supply_5V>; 169 + vdd-1v8-supply = <&supply_1_8V>; 170 + vio-supply = <&supply_1_8V>; 171 + refin-supply = <&refin_sup>; 172 + vddh-supply = <&vddh>; 173 + vdd-fda-supply = <&vdd_fda>; 174 + cnv-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; 175 + reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; 176 + pga-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>, 177 + <&gpio0 3 GPIO_ACTIVE_HIGH>; 190 178 }; 191 179 };