.../bindings/iio/adc/adi,ad7816.yaml | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7816.yaml
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.
Signed-off-by: Omer PALA <palaomer100@gmail.com>
---
.../bindings/iio/adc/adi,ad7816.yaml | 82 +++++++++++++++++++
1 file changed, 82 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7816.yaml
diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7816.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7816.yaml
new file mode 100644
index 000000000..1ffaa4a68
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7816.yaml
@@ -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 <palaomer100@gmail.com>
+
+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>;
+ };
+ };
--
2.55.0
On 17/09/2026 23:27, Omer PALA wrote: > 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
Krzysztof Kozlowski <krzk@kernel.org> wrote: > 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
© 2016 - 2026 Red Hat, Inc.