Skip to contentSkip to conversation

dt-bindings: iio: accel: add binding documentation for ADIS16203

PATCH Superseded Saalim Quadri 2 participants 2 messages Mar 3, 2025 – Mar 4, 2025

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: iio: accel: add binding documentation for ADIS16203

This patch add device tree binding documentation for ADIS16203.

---
 .../bindings/iio/accel/adi,adis16203.yaml     | 52 +++++++++++++++++++
 1 file changed, 52 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml
Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml new file +52 -0
new file mode 100644
index 000000000000..e67e856266f5
@@ -0,0 +1,52 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/accel/adi,adis16203.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Analog Devices ADIS16203 Programmable 360 Degrees Inclinometer
+
+maintainers:
+  - Barry Song <[email protected]>
+
+description: |
+  https://www.analog.com/media/en/technical-documentation/data-sheets/adis16203.pdf
+
+properties:
+  compatible:
+    enum:
+      - adi,adis16203
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  vdd-supply: true
+
+required:
+  - compatible
+  - reg
+
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+    spi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        accelerometer@0 {
+            compatible = "adi,adis16203";
+            reg = <0>;
+            spi-max-frequency = <2500000>;
+            interrupt-parent = <&gpio0>;
+            interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
+        };
+    };
+...
Signature · 1 line
2.34.1
#1 lore raw
Quoted 14 lines · Saalim Quadri

This patch add device tree binding documentation for ADIS16203.

---
 .../bindings/iio/accel/adi,adis16203.yaml     | 52 +++++++++++++++++++
 1 file changed, 52 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml
Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml new file +0 -0
new file mode 100644
index 000000000000..e67e856266f5

Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml line 4

Quoted 4 lines
Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml new file +4 -0
@@ -0,0 +1,52 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/accel/adi,adis16203.yaml#

That's identical to adi,adis16201 which already covers more than one device. Don't create unnecessary bindings, so this goes to existing binding.

Best regards,
Krzysztof