From: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
To: "Ondřej Jirman" <megi@xff.cz>
Cc: Jonathan Cameron <jic23@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Andrey Skvortsov <andrej.skvortzov@gmail.com>,
Icenowy Zheng <icenowy@aosc.io>, <linux-iio@vger.kernel.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/4] dt-bindings: iio: magnetometer: Add DT binding for Voltafield AF8133J
Date: Mon, 12 Feb 2024 11:47:38 +0000 [thread overview]
Message-ID: <20240212114738.0000535b@Huawei.com> (raw)
In-Reply-To: <20240211205211.2890931-3-megi@xff.cz>
On Sun, 11 Feb 2024 21:51:58 +0100
Ondřej Jirman <megi@xff.cz> wrote:
> From: Icenowy Zheng <icenowy@aosc.io>
Title doesn't need to mention binding (it's implicit from the dt-bindings bit
dt-bindings: iio: magnetometer: Add Voltafield AF8133J
>
> Voltafield AF8133J is a simple magnetometer sensor produced by Voltafield
> Technology Corp, with dual power supplies (one for core and one for I/O)
> and active-low reset pin.
>
> The sensor has configurable range 1.2 - 2.2 mT and a software controlled
> standby mode.
>
> Add a device tree binding for it.
>
> Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
> Signed-off-by: Ondřej Jirman <megi@xff.cz>
Hi Ondřej
A few quick comments.
> ---
> .../iio/magnetometer/voltafield,af8133j.yaml | 58 +++++++++++++++++++
> 1 file changed, 58 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/voltafield,af8133j.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/magnetometer/voltafield,af8133j.yaml b/Documentation/devicetree/bindings/iio/magnetometer/voltafield,af8133j.yaml
> new file mode 100644
> index 000000000000..ab56c0f798ad
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/magnetometer/voltafield,af8133j.yaml
> @@ -0,0 +1,58 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/magnetometer/voltafield,af8133j.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Voltafield AF8133J magnetometer sensor
> +
> +maintainers:
> + - Ondřej Jirman <megi@xff.cz>
> +
> +properties:
> + compatible:
> + - voltafield,af8133j
Test your bindings (as described in the bot message).
const: voltafield,af8133j
> +
> + reg:
> + maxItems: 1
> +
> + reset-gpios:
> + description: |
No need for the | as the formatting doesn't need to be preserved.
> + an pin needed for AF8133J to set the reset state. This should be usually
A pin
> + active low.
> +
> + avdd-supply:
> + description: |
> + an optional regulator that needs to be on to provide AVDD power (Working
An optional (if it were optional, A regulator if not)
> + power, usually 3.3V) to the sensor.
Seems unlikely the power supply is optional (though specifying it in DT might be -
however see below).
> +
> + dvdd-supply:
> + description: |
> + an optional regulator that needs to be on to provide DVDD power (Digital
> + IO power, 1.8V~AVDD) to the sensor.
> +
> + mount-matrix:
> + description: an optional 3x3 mounting rotation matrix.
> +
> +required:
> + - compatible
> + - reg
Any power supply that is required for operation should be listed here (even though
we can rely on the stub supplies if it isn't in the DT).
I used to think this wasn't necessary, so lots of bindings upstream don't yet
have it.
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/interrupt-controller/irq.h>
> + #include <dt-bindings/gpio/gpio.h>
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + magnetometer@1c {
> + compatible = "voltafield,af8133j";
> + reg = <0x1c>;
> + avdd-supply = <®_dldo1>;
> + dvdd-supply = <®_dldo1>;
> + reset-gpios = <&pio 1 1 GPIO_ACTIVE_LOW>;
> + };
> + };
next prev parent reply other threads:[~2024-02-12 11:47 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-11 20:51 [PATCH 0/4] Add support for AF8133J magnetometer Ondřej Jirman
2024-02-11 20:51 ` [PATCH 1/4] dt-bindings: vendor-prefix: Add prefix for Voltafield Ondřej Jirman
2024-02-12 7:58 ` Krzysztof Kozlowski
2024-02-11 20:51 ` [PATCH 2/4] dt-bindings: iio: magnetometer: Add DT binding for Voltafield AF8133J Ondřej Jirman
2024-02-11 22:32 ` Rob Herring
2024-02-12 11:47 ` Jonathan Cameron [this message]
2024-02-12 13:38 ` Ondřej Jirman
2024-02-14 16:31 ` Jonathan Cameron
2024-02-14 17:29 ` Conor Dooley
2024-02-14 17:44 ` Ondřej Jirman
2024-02-12 12:05 ` kernel test robot
2024-02-11 20:51 ` [PATCH 3/4] MAINTAINERS: Add an entry for AF8133J driver Ondřej Jirman
2024-02-12 7:59 ` Krzysztof Kozlowski
2024-02-11 20:52 ` [PATCH 4/4] iio: magnetometer: add a driver for Voltafield AF8133J magnetometer Ondřej Jirman
2024-02-12 12:04 ` kernel test robot
2024-02-12 13:02 ` Jonathan Cameron
2024-02-12 15:04 ` Ondřej Jirman
2024-02-14 16:28 ` Jonathan Cameron
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=20240212114738.0000535b@Huawei.com \
--to=jonathan.cameron@huawei.com \
--cc=andrej.skvortzov@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=icenowy@aosc.io \
--cc=jic23@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=megi@xff.cz \
--cc=robh+dt@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