From: Krzysztof Kozlowski <krzk@kernel.org>
To: Waqar Hameed <waqar.hameed@axis.com>,
Jonathan Cameron <jic23@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: kernel@axis.com, linux-iio@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/3] dt-bindings: iio: proximity: Add Nicera D3-323-AA PIR sensor
Date: Fri, 9 May 2025 17:06:56 +0200 [thread overview]
Message-ID: <02b0dbc2-e8fd-419a-b546-5910b3fd0e0c@kernel.org> (raw)
In-Reply-To: <c57675d505e93549bfca5f9909d67822ab304a44.1746802541.git.waqar.hameed@axis.com>
On 09/05/2025 17:03, Waqar Hameed wrote:
> Nicera D3-323-AA is a PIR sensor for human detection. It has support for
> raw data measurements and detection notification. The communication
> protocol is custom made and therefore needs to be GPIO bit banged.
>
> Add devicetree bindings requiring the compatible string and the various
> GPIOs needed for operation. Some of the GPIOs have multiple use-cases
> depending on device state. Describe these thoroughly.
Drop redundant parts of description. Describe the hardware. Entire last
paragraph is pretty pointless.
> +
> +properties:
> + compatible:
> + const: nicera,d3323aa
> +
> + vdd-gpio:
> + maxItems: 1
> + description:
> + GPIO for supply voltage (1.8 to 5.5 V).
This is not how pins are represented in the kernel. Either you have here
regulator (supply) or reset gpios. Plus 'gpio' suffix is not valid, btw.
Datasheet says this is a supply.
> + This GPIO will be driven low by the driver in order to cut the supply and
> + reset the device (driving it then back to high to power it on).
> +
> + clk-vout-gpio:
No, for the similar reasons. Which pin is this?
> + maxItems: 1
> + description:
> + GPIO for clock and detection.
> + After reset, the device signals with two falling edges on this pin that it
> + is ready for configuration (within 1.2 s), which the driver listens for as
> + interrupts.
> + During configuration, it is used as clock for data reading and writing (on
> + data-gpio). The driver drives this pin with the frequency of 1 kHz (bit
> + banging).
> + After all this, the device is now in operational mode and signals on this
> + pin for any detections. The driver listens for this as interrupts.
> +
> + data-gpio:
There is no such pin.
> + maxItems: 1
> + description:
> + GPIO for data reading and writing.
> + During configuration, configuration data will be written and read back
> + with bit banging (together with clk-vout-gpio as clock).
> + After this, during operational mode, the device will output serial data on
> + this GPIO. However, the driver currently doesn't read this.
> +
> +required:
> + - compatible
> + - vdd-gpio
> + - clk-vout-gpio
> + - data-gpio
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
So you included that header
> +
> + proximity {
> + compatible = "nicera,d3323aa";
> + vdd-gpio = <&gpio 73 0>;
> + clk-vout-gpio = <&gpio 78 0>;
> + data-gpio = <&gpio 76 0>;
But where are you using it?
> + };
> +...
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-05-09 15:07 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-09 15:03 [PATCH 0/3] Add driver for Nicera D3-323-AA PIR sensor Waqar Hameed
2025-05-09 15:03 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add Nicera Waqar Hameed
2025-05-09 15:03 ` [PATCH 2/3] dt-bindings: iio: proximity: Add Nicera D3-323-AA PIR sensor Waqar Hameed
2025-05-09 15:06 ` Krzysztof Kozlowski [this message]
2025-05-16 17:15 ` Waqar Hameed
2025-05-20 6:36 ` Krzysztof Kozlowski
2025-05-20 12:00 ` Waqar Hameed
2025-05-09 15:03 ` [PATCH 3/3] iio: Add driver for " Waqar Hameed
2025-05-11 7:57 ` Christophe JAILLET
2025-05-16 17:16 ` Waqar Hameed
2025-05-11 12:14 ` Jonathan Cameron
2025-05-16 17:16 ` Waqar Hameed
2025-05-18 17:38 ` Jonathan Cameron
2025-05-20 11:27 ` Waqar Hameed
2025-05-25 9:30 ` Jonathan Cameron
2025-05-27 14:48 ` Waqar Hameed
2025-05-31 15:10 ` Jonathan Cameron
2025-06-02 15:09 ` Waqar Hameed
2025-06-14 22:05 ` Waqar Hameed
2025-05-09 15:09 ` [PATCH 0/3] " Krzysztof Kozlowski
2025-05-16 17:14 ` Waqar Hameed
-- strict thread matches above, loose matches on Subject: below --
2025-06-14 21:56 Waqar Hameed
2025-06-14 21:56 ` [PATCH 2/3] dt-bindings: iio: proximity: Add " Waqar Hameed
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=02b0dbc2-e8fd-419a-b546-5910b3fd0e0c@kernel.org \
--to=krzk@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=kernel@axis.com \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=waqar.hameed@axis.com \
/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