Skip to contentSkip to conversation

iio: proximity: Add interrupt support for RFD77402

PATCH Superseded Shrikant Raskar 3 participants 6 messages Dec 21, 2025 – Jan 1 IIO

v3 of 8 Superseded Latest is v8 →

lore
Share & tools
lore
#0 lore raw

v3 cover iio: proximity: Add interrupt support for RFD77402

This patch series adds:
- Add RF Digital vendor prefix
- YAML binding for RFD77402
- Add OF device ID for enumeration via DT
- Use kernel helper for result polling
- Interrupt handling support

These changes enable DT-based configuration and event-driven operation for the RFD77402 Time-of-Flight sensor.

Changelog:
Changes since v2:
- Add 'Reviewed-by' tag to dt-binding patch.
- Update commit message in OF device ID patch.
- Update commit message in the third patch.
- Replace rfd77402_result_polling() with read_poll_timeout().
- Add 'struct rfd77402_data' details in kernel-doc format.
- Arrange includes in order.
- Add comment for completion timeout value.
- Remove blank lines.
- Indent the comments to code.
- Convert mutex_init() to devm_mutex_init().
- Remove 'IRQF_TRIGGER_FALLING' flag from devm_request_threaded_irq().
- Drop the duplicate message.
- Replace 'dev_info' with 'dev_dbg()'.
- Update 'dev_id' to 'pdata' in rfd77402_interrupt_handler().
- Drop 'interrupt mode' comment
- Use 'if(ret)' instead of 'if(ret < 0) for consistency.
- Use 'return i2c_smbus_write_byte_data()' in 'rfd77402_config_irq'.

Shrikant Raskar (4):
dt-bindings: iio: proximity: Add RF Digital RFD77402 ToF sensor
iio: proximity: rfd77402: Add OF device ID for enumeration via DT
iio: proximity: rfd77402: Use kernel helper for result polling
iio: proximity: rfd77402: Add interrupt handling support

 .../iio/proximity/rfdigital,rfd77402.yaml     |  53 +++++++
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 drivers/iio/proximity/rfd77402.c              | 149 +++++++++++++++---
 3 files changed, 183 insertions(+), 21 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/iio/proximity/rfdigital,rfd77402.yaml

base-commit: d8ba32c5a460837a5f0b9619dac99fafb6faef07

Signature · 1 line
2.43.0
maintainer
#1 lore raw
Quoted 9 lines · On Sun, 21 Dec 2025 14:08:58 +0530 Shrikant Raskar <[email protected]>…

This patch series adds:
- Add RF Digital vendor prefix
- YAML binding for RFD77402
- Add OF device ID for enumeration via DT
- Use kernel helper for result polling
- Interrupt handling support

These changes enable DT-based configuration and event-driven operation for the RFD77402 Time-of-Flight sensor.

Hi Shrikant,

I'm only seeing this cover letter (and lore doesn't seem to have the patches either). Probably need to resend them.

Thanks,

Jonathan

Quoted 35 lines

Changelog:
Changes since v2:
- Add 'Reviewed-by' tag to dt-binding patch.
- Update commit message in OF device ID patch.
- Update commit message in the third patch.
- Replace rfd77402_result_polling() with read_poll_timeout().
- Add 'struct rfd77402_data' details in kernel-doc format.
- Arrange includes in order.
- Add comment for completion timeout value.
- Remove blank lines.
- Indent the comments to code.
- Convert mutex_init() to devm_mutex_init().
- Remove 'IRQF_TRIGGER_FALLING' flag from devm_request_threaded_irq().
- Drop the duplicate message.
- Replace 'dev_info' with 'dev_dbg()'.
- Update 'dev_id' to 'pdata' in rfd77402_interrupt_handler().
- Drop 'interrupt mode' comment
- Use 'if(ret)' instead of 'if(ret < 0) for consistency.
- Use 'return i2c_smbus_write_byte_data()' in 'rfd77402_config_irq'.

Shrikant Raskar (4):
dt-bindings: iio: proximity: Add RF Digital RFD77402 ToF sensor
iio: proximity: rfd77402: Add OF device ID for enumeration via DT
iio: proximity: rfd77402: Use kernel helper for result polling
iio: proximity: rfd77402: Add interrupt handling support

 .../iio/proximity/rfdigital,rfd77402.yaml     |  53 +++++++
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 drivers/iio/proximity/rfd77402.c              | 149 +++++++++++++++---
 3 files changed, 183 insertions(+), 21 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/iio/proximity/rfdigital,rfd77402.yaml

base-commit: d8ba32c5a460837a5f0b9619dac99fafb6faef07

#2 lore raw
Quoted 10 lines · Jonathan Cameron
Quoted 7 lines · On Sun, 21 Dec 2025 14:08:58 +0530 Shrikant Raskar <[email protected]>…

This patch series adds:
- Add RF Digital vendor prefix
- YAML binding for RFD77402
- Add OF device ID for enumeration via DT
- Use kernel helper for result polling
- Interrupt handling support

Quoted 7 lines
Quoted 2 lines

These changes enable DT-based configuration and event-driven operation for the RFD77402 Time-of-Flight sensor.

Hi Shrikant,

I'm only seeing this cover letter (and lore doesn't seem to have the patches either). Probably need to resend them.

Same to me, please, figure out what's wrong and next time sent proper v4 to avoid confusion.

Signature · 2 lines
With Best Regards,
Andy Shevchenko
author
#3 lore raw
In reply to Jonathan Cameron
Quoted 11 lines · Jonathan Cameron
Quoted 7 lines · On Sun, 21 Dec 2025 14:08:58 +0530 Shrikant Raskar <[email protected]>…

This patch series adds:
- Add RF Digital vendor prefix
- YAML binding for RFD77402
- Add OF device ID for enumeration via DT
- Use kernel helper for result polling
- Interrupt handling support

Quoted 7 lines
Quoted 2 lines

These changes enable DT-based configuration and event-driven operation for the RFD77402 Time-of-Flight sensor.

Hi Shrikant,

I'm only seeing this cover letter (and lore doesn't seem to have the patches either). Probably need to resend them.

Hello Jonathan,
Apologies for the confusion. I have tried re-sending the patch series multiple times, but each time only the cover letter is getting delivered, while the individual patches do not seem to go through due to Gmail's daily sending limit.I haven't fully resolved the issue yet, but I'm trying to figure out a solution on my end. If you have any suggestions or best practices to avoid such delivery issues, I would really appreciate your guidance.

Sorry for the inconvenience, and thank you for your patience. Regards,
Shrikant

maintainer
#4 lore raw
Quoted 28 lines · On Tue, 30 Dec 2025 00:15:43 +0530 Shrikant <[email protected]> wrote:
Quoted 11 lines · Jonathan Cameron
Quoted 7 lines · On Sun, 21 Dec 2025 14:08:58 +0530 Shrikant Raskar <[email protected]>…

This patch series adds:
- Add RF Digital vendor prefix
- YAML binding for RFD77402
- Add OF device ID for enumeration via DT
- Use kernel helper for result polling
- Interrupt handling support

Quoted 7 lines
Quoted 2 lines

These changes enable DT-based configuration and event-driven operation for the RFD77402 Time-of-Flight sensor.

Hi Shrikant,

I'm only seeing this cover letter (and lore doesn't seem to have the patches either). Probably need to resend them.

Hello Jonathan,
Apologies for the confusion. I have tried re-sending the patch series multiple times, but each time only the cover letter is getting delivered, while the individual patches do not seem to go through due to Gmail's daily sending limit.I haven't fully resolved the issue yet, but I'm trying to figure out a solution on my end. If you have any suggestions or best practices to avoid such delivery issues, I would really appreciate your guidance.

Quoted 3 lines

Sorry for the inconvenience, and thank you for your patience. Regards,
Shrikant

If you continue having problems, take a look at the b4 tool and it's options for using a web gateway.

https://b4.docs.kernel.org/en/latest/
sending your work.

Jonathan

author
#5 lore raw
Quoted 5 lines

If you continue having problems, take a look at the b4 tool and it's options for using a web gateway.

https://b4.docs.kernel.org/en/latest/
sending your work.

Hello Jonathan,
Thank you so much for sharing the b4 documentation. I have successfully submitted the v4 patch-series using the b4 tool.

Regards,
Shrikant