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: ad7768-1: add new supported parts

Add compatibles for supported parts in the ad7768-1 family:
ADAQ7767-1, ADAQ7768-1 and ADAQ7769-1

Add property and checks for AFF gain, supported by ADAQ7767-1
and ADAQ7769-1, and for PGA gain, supported by ADAQ7768-1
and ADAQ7769-1:
adi,aaf-gain-bp
pga-gpios

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Jonathan Santos <Jonathan.Santos@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Jonathan Santos and committed by
Jonathan Cameron
2f55ae3a 8284a498

+60 -4
+60 -4
Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml
··· 4 4 $id: http://devicetree.org/schemas/iio/adc/adi,ad7768-1.yaml# 5 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 - title: Analog Devices AD7768-1 ADC device driver 7 + title: Analog Devices AD7768-1 ADC family 8 8 9 9 maintainers: 10 10 - Michael Hennerich <michael.hennerich@analog.com> 11 11 12 12 description: | 13 - Datasheet at: 14 - https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf 13 + Analog Devices AD7768-1 24-Bit Single Channel Low Power sigma-delta ADC family 14 + 15 + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf 16 + https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7767-1.pdf 17 + https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7768-1.pdf 18 + https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7769-1.pdf 15 19 16 20 properties: 17 21 compatible: 18 - const: adi,ad7768-1 22 + enum: 23 + - adi,ad7768-1 24 + - adi,adaq7767-1 25 + - adi,adaq7768-1 26 + - adi,adaq7769-1 19 27 20 28 reg: 21 29 maxItems: 1 ··· 65 57 vref-supply: 66 58 description: 67 59 ADC reference voltage supply 60 + 61 + adi,aaf-gain-bp: 62 + description: | 63 + Specifies the gain applied by the Analog Anti-Aliasing Filter (AAF) 64 + to the ADC input in basis points (one hundredth of a percent). 65 + The hardware gain is determined by which input pin(s) the signal goes 66 + through into the AAF. The possible connections are: 67 + * For the ADAQ7767-1: Input connected to IN1±, IN2± or IN3±. 68 + * For the ADAQ7769-1: OUT_PGA pin connected to IN1_AAF+, IN2_AAF+, 69 + or IN3_AAF+. 70 + enum: [1430, 3640, 10000] 71 + default: 10000 72 + 73 + pga-gpios: 74 + description: 75 + GAIN 0, GAIN1 and GAIN2 pins for gain selection. For devices that have 76 + PGA configuration input pins, pga-gpios must be defined. 77 + minItems: 3 78 + maxItems: 3 68 79 69 80 adi,sync-in-gpios: 70 81 maxItems: 1 ··· 173 146 174 147 allOf: 175 148 - $ref: /schemas/spi/spi-peripheral-props.yaml# 149 + 150 + # AAF Gain property only applies to ADAQ7767-1 and ADAQ7769-1 devices 151 + - if: 152 + properties: 153 + compatible: 154 + contains: 155 + enum: 156 + - adi,adaq7767-1 157 + - adi,adaq7769-1 158 + then: 159 + required: 160 + - adi,aaf-gain-bp 161 + else: 162 + properties: 163 + adi,aaf-gain-bp: false 164 + 165 + - if: 166 + properties: 167 + compatible: 168 + contains: 169 + enum: 170 + - adi,adaq7768-1 171 + - adi,adaq7769-1 172 + then: 173 + required: 174 + - pga-gpios 175 + else: 176 + properties: 177 + pga-gpios: false 176 178 177 179 unevaluatedProperties: false 178 180