Re: [PATCH v6 1/2] dt-bindings: adc: add AD7173

From: Ceclan Dumitru
Date: Mon Nov 27 2023 - 11:11:07 EST




On 11/23/23 20:02, Conor Dooley wrote:
> On Thu, Nov 23, 2023 at 05:23:21PM +0200, mitrutzceclan wrote:
>> +allOf:
>> + - $ref: /schemas/spi/spi-peripheral-props.yaml#
>> +
>> + - if:
>> + properties:
>> + compatible:
>> + not:
>> + contains:
>> + const: adi,ad7173-8
>> + then:
>> + properties:
>> + refin2-supply: false
>> + patternProperties:
>> + "^channel@[0-9a-f]$":
>> + properties:
>> + adi,reference-select:
>> + enum:
>> + - refin
>> + - refout-avss
>> + - avdd
>
> I assume you tested that this restriction works as intended?
>

Yes, for both reference and reference-select