* [PATCH] dt-bindings: iio: accel: add binding documentation for ADIS16203
@ 2025-03-03 23:49 Saalim Quadri
2025-03-04 7:53 ` Krzysztof Kozlowski
0 siblings, 1 reply; 2+ messages in thread
From: Saalim Quadri @ 2025-03-03 23:49 UTC (permalink / raw)
To: jic23
Cc: lars, Michael.Hennerich, gregkh, linux-iio, linux-kernel,
linux-staging, 21cnbao, robh, krzk+dt, conor+dt, devicetree,
Saalim Quadri
This patch add device tree binding documentation for ADIS16203.
Signed-off-by: Saalim Quadri <danascape@gmail.com>
---
.../bindings/iio/accel/adi,adis16203.yaml | 52 +++++++++++++++++++
1 file changed, 52 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml
diff --git a/Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml b/Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml
new file mode 100644
index 000000000000..e67e856266f5
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml
@@ -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 <21cnbao@gmail.com>
+
+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>;
+ };
+ };
+...
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dt-bindings: iio: accel: add binding documentation for ADIS16203
2025-03-03 23:49 [PATCH] dt-bindings: iio: accel: add binding documentation for ADIS16203 Saalim Quadri
@ 2025-03-04 7:53 ` Krzysztof Kozlowski
0 siblings, 0 replies; 2+ messages in thread
From: Krzysztof Kozlowski @ 2025-03-04 7:53 UTC (permalink / raw)
To: Saalim Quadri, jic23
Cc: lars, Michael.Hennerich, gregkh, linux-iio, linux-kernel,
linux-staging, 21cnbao, robh, krzk+dt, conor+dt, devicetree
On 04/03/2025 00:49, Saalim Quadri wrote:
> This patch add device tree binding documentation for ADIS16203.
>
> Signed-off-by: Saalim Quadri <danascape@gmail.com>
> ---
> .../bindings/iio/accel/adi,adis16203.yaml | 52 +++++++++++++++++++
> 1 file changed, 52 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml b/Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml
> new file mode 100644
> index 000000000000..e67e856266f5
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/accel/adi,adis16203.yaml
> @@ -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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-04 7:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-03 23:49 [PATCH] dt-bindings: iio: accel: add binding documentation for ADIS16203 Saalim Quadri
2025-03-04 7:53 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox