dt-bindings: iio: adc: Add AD7816 binding
Subsystems (3)
PATCH 1/1 dt-bindings: iio: adc: Add AD7816 binding
Add a DeviceTree binding schema for the Analog Devices AD7816 digital temperature sensor. The same schema also covers the compatible AD7817 and AD7818 variants.
The driver currently lives under drivers/staging/iio/adc/ad7816.c.
--- .../bindings/iio/adc/adi,ad7816.yaml | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7816.yaml
Documentation/devicetree/bindings/iio/adc/adi,ad7816.yaml new file +82 -0
@@ -0,0 +1,82 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/adi,ad7816.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices ADC AD7816 + +maintainers: + - Omer PALA <[email protected]> + +description: | + This schema defines devicetree rules for + Analog Devices ADC AD7816 + +properties: + compatible: + enum: + - adi,ad7816 + - adi,ad7817 + - adi,ad7818 + + reg: + maxItems: 1 + + spi-max-frequency: true + + interrupts: + maxItems: 1 + description: Base interrupt pin for AD7816 + + rdwr-gpios: + maxItems: 1 + description: I/O control pin + + convert-gpios: + maxItems: 1 + description: Conversion start pin + + busy-gpios: + maxItems: 1 + description: Busy pin + +required: + - compatible + - reg + - rdwr-gpios + - convert-gpios + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + + - if: + properties: + compatible: + contains: + enum: + - adi,ad7816 + - adi,ad7817 + + then: + required: + - busy-gpios + +unevaluatedProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "adi,ad7816"; + reg = <0>; + spi-max-frequency = <1000000>; + + rdwr-gpios = <&gpio0 1 0>; + convert-gpios = <&gpio0 2 0>; + busy-gpios = <&gpio0 3 0>; + }; + };
Signature · 1 line
2.55.0
Quoted 5 lines · Omer PALA
Add a DeviceTree binding schema for the Analog Devices AD7816 digital temperature sensor. The same schema also covers the compatible AD7817 and AD7818 variants.
The driver currently lives under
drivers/staging/iio/adc/ad7816.c.
Then why are you posting this? Did you read discussions I linked before? If so, why repeating the same?
Best regards,
Krzysztof
Quoted 5 lines · Krzysztof Kozlowski
Then why are you posting this? Did you read discussions I linked before? If so, why repeating the same?
Best regards,
Krzysztof
Hi Krzysztof,
You are completely right, and I apologize for missing this. I will drop this patch since the driver is still under staging.
Thank you for your guidance and patience.
Sorry for wasting your time.
Best regards,
Omer PALA