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: adc: ad7173: add support for additional models

Add support for: AD7172-2, AD7175-8, AD7177-2.
AD7172-4 does not feature an internal reference, check for external
reference presence.

Signed-off-by: Dumitru Ceclan <mitrutzceclan@gmail.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240306110956.13167-2-mitrutzceclan@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Dumitru Ceclan and committed by
Jonathan Cameron
88a1ffc6 620d1e6c

+36 -3
+36 -3
Documentation/devicetree/bindings/iio/adc/adi,ad7173.yaml
··· 21 21 22 22 Datasheets for supported chips: 23 23 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7172-2.pdf 24 + https://www.analog.com/media/en/technical-documentation/data-sheets/AD7172-4.pdf 24 25 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7173-8.pdf 25 26 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7175-2.pdf 27 + https://www.analog.com/media/en/technical-documentation/data-sheets/AD7175-8.pdf 26 28 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7176-2.pdf 29 + https://www.analog.com/media/en/technical-documentation/data-sheets/AD7177-2.pdf 27 30 28 31 properties: 29 32 compatible: 30 33 enum: 31 34 - adi,ad7172-2 35 + - adi,ad7172-4 32 36 - adi,ad7173-8 33 37 - adi,ad7175-2 38 + - adi,ad7175-8 34 39 - adi,ad7176-2 40 + - adi,ad7177-2 35 41 36 42 reg: 37 43 maxItems: 1 ··· 142 136 refout-avss: REFOUT/AVSS (Internal reference) 143 137 avdd : AVDD /AVSS 144 138 145 - External reference ref2 only available on ad7173-8. 146 - If not specified, internal reference used. 139 + External reference ref2 only available on ad7173-8 and ad7172-4. 140 + Internal reference refout-avss not available on ad7172-4. 141 + 142 + If not specified, internal reference used (if available). 147 143 $ref: /schemas/types.yaml#/definitions/string 148 144 enum: 149 145 - vref ··· 165 157 allOf: 166 158 - $ref: /schemas/spi/spi-peripheral-props.yaml# 167 159 160 + # Only ad7172-4, ad7173-8 and ad7175-8 support vref2 161 + # Other models have [0-3] channel registers 168 162 - if: 169 163 properties: 170 164 compatible: 171 165 not: 172 166 contains: 173 - const: adi,ad7173-8 167 + enum: 168 + - adi,ad7172-4 169 + - adi,ad7173-8 170 + - adi,ad7175-8 174 171 then: 175 172 properties: 176 173 vref2-supply: false ··· 189 176 - avdd 190 177 reg: 191 178 maximum: 3 179 + 180 + # Model ad7172-4 does not support internal reference 181 + - if: 182 + properties: 183 + compatible: 184 + contains: 185 + const: adi,ad7172-4 186 + then: 187 + patternProperties: 188 + "^channel@[0-9a-f]$": 189 + properties: 190 + reg: 191 + maximum: 7 192 + adi,reference-select: 193 + enum: 194 + - vref 195 + - vref2 196 + - avdd 197 + required: 198 + - adi,reference-select 192 199 193 200 - if: 194 201 anyOf: