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,ad7124: Use the new adc.yaml channel binding

This both ensures this binding is compliant with the generic properties
and reduces the amount we need to specify in this separate binding.

Whilst here mark the child node as additionalProperties: false

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Cc: Michael Hennerich <Michael.Hennerich@analog.com>
Link: https://lore.kernel.org/r/20201031182423.742798-3-jic23@kernel.org

+5 -9
+5 -9
Documentation/devicetree/bindings/iio/adc/adi,ad7124.yaml
··· 63 63 64 64 patternProperties: 65 65 "^channel@([0-9]|1[0-5])$": 66 + $ref: "adc.yaml" 66 67 type: object 67 68 description: | 68 69 Represents the external channels which are connected to the ADC. 69 - See Documentation/devicetree/bindings/iio/adc/adc.txt. 70 70 71 71 properties: 72 72 reg: ··· 88 88 $ref: /schemas/types.yaml#/definitions/uint32 89 89 enum: [0, 1, 3] 90 90 91 - diff-channels: 92 - description: see Documentation/devicetree/bindings/iio/adc/adc.txt 93 - items: 94 - minimum: 0 95 - maximum: 15 91 + diff-channels: true 96 92 97 - bipolar: 98 - description: see Documentation/devicetree/bindings/iio/adc/adc.txt 99 - type: boolean 93 + bipolar: true 100 94 101 95 adi,buffered-positive: 102 96 description: Enable buffered mode for positive input. ··· 103 109 required: 104 110 - reg 105 111 - diff-channels 112 + 113 + additionalProperties: false 106 114 107 115 additionalProperties: false 108 116