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:dac:microchip,mcp4725: fix properties for mcp4726

The vdd-supply property is optional if vref-supply is provided for
mcp4726.

Also the microchip,vref-buffered makes sense only if vref-supply is
specified.

Spotted by Jonathan during conversion to yaml.

Reported-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Tomas Novotny <tomas@novotny.cz>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20201216101316.1403-1-tomas@novotny.cz
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Tomas Novotny and committed by
Jonathan Cameron
a363bfb9 28e37a92

+25 -6
+25 -6
Documentation/devicetree/bindings/iio/dac/microchip,mcp4725.yaml
··· 39 39 40 40 allOf: 41 41 - if: 42 - not: 43 - properties: 44 - compatible: 45 - contains: 46 - const: microchip,mcp4726 42 + properties: 43 + compatible: 44 + contains: 45 + const: microchip,mcp4725 47 46 then: 48 47 properties: 49 48 vref-supply: false 49 + required: 50 + - vdd-supply 51 + 52 + - if: 53 + properties: 54 + compatible: 55 + contains: 56 + const: microchip,mcp4726 57 + then: 58 + anyOf: 59 + - required: 60 + - vdd-supply 61 + - required: 62 + - vref-supply 63 + 64 + - if: 65 + not: 66 + required: 67 + - vref-supply 68 + then: 69 + properties: 50 70 microchip,vref-buffered: false 51 71 52 72 required: 53 73 - compatible 54 74 - reg 55 - - vdd-supply 56 75 57 76 additionalProperties: false 58 77