From: Jonathan Cameron <jic23@kernel.org>
To: Robert Budai <robert.budai@analog.com>
Cc: Nuno Sa <nuno.sa@analog.com>,
Ramona Gradinariu <ramona.gradinariu@analog.com>,
Antoniu Miclaus <antoniu.miclaus@analog.com>,
Lars-Peter Clausen <lars@metafoo.de>,
Michael Hennerich <Michael.Hennerich@analog.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jonathan Corbet <corbet@lwn.net>,
Alex Lanzano <lanzano.alex@gmail.com>,
<linux-iio@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <linux-doc@vger.kernel.org>
Subject: Re: [PATCH v4 4/6] dt-bindings: iio: Add adis16550 bindings
Date: Sun, 12 Jan 2025 15:48:36 +0000 [thread overview]
Message-ID: <20250112154836.47feeea8@jic23-huawei> (raw)
In-Reply-To: <20250110074254.38966-5-robert.budai@analog.com>
On Fri, 10 Jan 2025 09:42:52 +0200
Robert Budai <robert.budai@analog.com> wrote:
> Document the ADIS16550 device devicetree bindings.
>
> Co-developed-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
> Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
> Signed-off-by: Ramona Gradinariu <ramona.gradinariu@analog.com>
> Signed-off-by: Robert Budai <robert.budai@analog.com>
> ---
>
> 4:
> - applied styling changes to the bindings file
> - restricted sync-mode to intervals 1-2
>
> .../bindings/iio/imu/adi,adis16550.yaml | 96 +++++++++++++++++++
> MAINTAINERS | 9 ++
> 2 files changed, 105 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/imu/adi,adis16550.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/imu/adi,adis16550.yaml b/Documentation/devicetree/bindings/iio/imu/adi,adis16550.yaml
> new file mode 100644
> index 000000000000..e7ccf3883e55
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/imu/adi,adis16550.yaml
> @@ -0,0 +1,96 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/imu/adi,adis16550.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Analog Devices ADIS16550 and similar IMUs
> +
> +maintainers:
> + - Nuno Sa <nuno.sa@analog.com>
> + - Ramona Gradinariu <ramona.gradinariu@analog.com>
> + - Antoniu Miclaus <antoniu.miclaus@analog.com>
> +
> +properties:
> + compatible:
> + enum:
> + - adi,adis16550
> + - adi,adis16550w
> +
> + reg:
> + maxItems: 1
> +
> + spi-cpha: true
> +
> + spi-cpol: true
> +
> + spi-max-frequency:
> + maximum: 15000000
> +
> + vdd-supply: true
> +
> + interrupts:
> + maxItems: 1
> +
> + reset-gpios:
> + description:
> + RESET active low pin.
> + maxItems: 1
> +
> + clocks:
> + maxItems: 1
> + description: If not provided, then the internal clock is used.
> +
> + adi,sync-mode:
> + description:
> + Configures the device SYNC pin. The following modes are supported
> + 0 - output_sync
> + 1 - direct_sync
> + 2 - scaled_sync
A little more on these would be good. They are 'weird' options
that are not commonly seen so help the reader out.
For scaled_sync don't we need information on the scale for it to be useful?
If we had that then a value of 1 would mean direct sync and wouldn't need
another control.
I'm not fully understanding the usecases for this.
If we have a say a pulse per second input, the control of the scale should
be userspace anyway. So maybe this maps to the input clock that we can elect to
use and control the effective frequency of by using scaled sync?
I'm not sure what pulse sync is. Grepping the datasheet didn't give me
anything that seemed related. The sync pin is input only so I'm also
not sure on output sync.
> + 3 - pulse_sync
> + $ref: /schemas/types.yaml#/definitions/uint32
> + minimum: 1
> + maximum: 2
You describe 0 to 3 but only allow 1 or 2?
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - spi-cpha
> + - spi-cpol
> + - spi-max-frequency
> + - vdd-supply
> +
> +allOf:
> + - if:
> + properties:
> + adi,sync-mode:
> + const: 2
> +
> + then:
> + dependencies:
> + adi,sync-mode: [ clocks ]
> +
> + - $ref: /schemas/spi/spi-peripheral-props.yaml#
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/interrupt-controller/irq.h>
> + spi {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + imu@0 {
> + compatible = "adi,adis16550";
> + reg = <0>;
> + spi-max-frequency = <15000000>;
> + spi-cpol;
> + spi-cpha;
> + vdd-supply = <&vdd>;
> + interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
> + interrupt-parent = <&gpio>;
> + };
> + };
> +...
next prev parent reply other threads:[~2025-01-12 15:48 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-10 7:42 [PATCH v4 0/6] Add support for ADIS16550 and ADIS16550W Robert Budai
2025-01-10 7:42 ` [PATCH v4 1/6] iio: imu: adis: Add custom ops struct Robert Budai
2025-01-10 7:42 ` [PATCH v4 2/6] iio: imu: adis: Add reset to custom ops Robert Budai
2025-01-12 15:35 ` Jonathan Cameron
2025-01-10 7:42 ` [PATCH v4 3/6] iio: imu: adis: Add DIAG_STAT register size Robert Budai
2025-01-12 15:39 ` Jonathan Cameron
2025-01-10 7:42 ` [PATCH v4 4/6] dt-bindings: iio: Add adis16550 bindings Robert Budai
2025-01-12 15:48 ` Jonathan Cameron [this message]
2025-01-13 9:29 ` Nuno Sá
2025-01-13 14:22 ` Budai, Robert
2025-01-14 8:19 ` Nuno Sá
2025-01-13 8:43 ` Krzysztof Kozlowski
2025-01-15 13:35 ` Budai, Robert
2025-01-10 7:42 ` [PATCH v4 5/6] iio: imu: adis16550: add adis16550 support Robert Budai
2025-01-11 12:03 ` kernel test robot
2025-01-12 15:33 ` Jonathan Cameron
2025-01-12 4:20 ` kernel test robot
2025-01-12 16:11 ` Jonathan Cameron
2025-01-13 9:36 ` Nuno Sá
2025-01-13 9:48 ` Nuno Sá
2025-01-10 7:42 ` [PATCH v4 6/6] docs: iio: add documentation for adis16550 driver Robert Budai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250112154836.47feeea8@jic23-huawei \
--to=jic23@kernel.org \
--cc=Michael.Hennerich@analog.com \
--cc=antoniu.miclaus@analog.com \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lanzano.alex@gmail.com \
--cc=lars@metafoo.de \
--cc=linux-doc@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=ramona.gradinariu@analog.com \
--cc=robert.budai@analog.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox