* [PATCH] dt-bindings: iio: adc: Add AD7816 binding
@ 2026-09-17 21:27 Omer PALA
2026-09-18 11:28 ` Krzysztof Kozlowski
0 siblings, 1 reply; 3+ messages in thread
From: Omer PALA @ 2026-09-17 21:27 UTC (permalink / raw)
To: nuno.sa, Michael.Hennerich, jic23, dlechner, andy, robh, krzk+dt,
conor+dt
Cc: linux, linux-iio, devicetree, linux-kernel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: iio: adc: Add AD7816 binding
2026-09-17 21:27 [PATCH] dt-bindings: iio: adc: Add AD7816 binding Omer PALA
@ 2026-09-18 11:28 ` Krzysztof Kozlowski
2026-09-18 12:01 ` Ömer PALA
0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Kozlowski @ 2026-09-18 11:28 UTC (permalink / raw)
To: Omer PALA, nuno.sa, Michael.Hennerich, jic23, dlechner, andy,
robh, krzk+dt, conor+dt
Cc: linux, linux-iio, devicetree, linux-kernel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: iio: adc: Add AD7816 binding
2026-09-18 11:28 ` Krzysztof Kozlowski
@ 2026-09-18 12:01 ` Ömer PALA
0 siblings, 0 replies; 3+ messages in thread
From: Ömer PALA @ 2026-09-18 12:01 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: nuno.sa, Michael.Hennerich, jic23, dlechner, andy, robh, krzk+dt,
conor+dt, linux, linux-iio, devicetree, linux-kernel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-09-18 12:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-17 21:27 [PATCH] dt-bindings: iio: adc: Add AD7816 binding Omer PALA
2026-09-18 11:28 ` Krzysztof Kozlowski
2026-09-18 12:01 ` Ömer PALA
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®