devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/8] media: i2c: dw9719: add DT compatible and DW9718S support
@ 2025-09-20 12:03 André Apitzsch via B4 Relay
  2025-09-20 12:03 ` [PATCH v2 1/8] dt-bindings: media: i2c: Add DW9718S, DW9719 and DW9761 VCM André Apitzsch via B4 Relay
                   ` (8 more replies)
  0 siblings, 9 replies; 18+ messages in thread
From: André Apitzsch via B4 Relay @ 2025-09-20 12:03 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, devicetree, Sakari Ailus, Daniel Scally
  Cc: ~postmarketos/upstreaming, phone-devel, linux-media, linux-kernel,
	Val Packett, André Apitzsch

The DW9718S voice coil motor is found on various smartphones like
motorola-nora that are currently being worked on in the postmarketOS
community. Since the way it operates is very similar to DW9719, this
patch series adds support for it to the existing dw9719 driver. Because
that driver did not yet support DT, we also add DT bindings and the
dongwoon,dw9719 ofw compatible. With DW9718S, the driver was
tested fully, including runtime PM.

This is a follow-up of [1] and [2].

Changes compared to previous submission:
* Deprecate dongwoon,vcm-freq in favor of dongwoon,vcm-prescale
* Instead of per-device config struct use model ID to handle cases

[1] https://lore.kernel.org/linux-media/20250210082035.8670-1-val@packett.cool/
[2] https://lore.kernel.org/linux-media/20250209-dw9761dts-v3-0-14d3f00f0585@apitzsch.eu/

Signed-off-by: André Apitzsch <git@apitzsch.eu>
---
Changes in v2:
- Add patch (3) which removes i2c device table
- Restructure patches because of that
  - keep patches 1 and 2
  - add patch 3
  - patch 6 becomes patch 4
  - patch 3 becomes patch 5
  - patch 4 becomes patch 6
  - patch 5 becomes patch 7
  - patch 7 becomes patch 8
- Patch 1 (bindings)
  - Remove unneeded 'minimum: 0'
  - Remove if/then that handles 'default' to reduce complexity
  - Add myself as maintainer
- Patch 5
  - Fix void-pointer-to-enum-cast warning
- Patch 7
  - Drop pm_runtime_mark_last_busy(); it is already called by
    pm_runtime_put_autosuspend()
- Patch 8
  - Remove extra parentheses
  - Print error if writing to power register fails
  - Add reason for doubled waiting time during power up to comment
  - Pass NULL instead of unused 'ret' to cci_write()
- Link to v1: https://lore.kernel.org/r/20250817-dw9719-v1-0-426f46c69a5a@apitzsch.eu

---
André Apitzsch (3):
      dt-bindings: media: i2c: Add DW9718S, DW9719 and DW9761 VCM
      media: i2c: dw9719: Deprecate dongwoon,vcm-freq
      media: i2c: dw9719: Remove unused i2c device id table

Val Packett (5):
      media: i2c: dw9719: Add an of_match_table
      media: i2c: dw9719: Add driver_data matching
      media: i2c: dw9719: Add DW9718S support
      media: i2c: dw9719: Update PM last busy time upon close
      media: i2c: dw9719: Fix power on/off sequence

 .../bindings/media/i2c/dongwoon,dw9719.yaml        |  88 +++++++++++++++++
 drivers/media/i2c/dw9719.c                         | 110 +++++++++++++++++----
 2 files changed, 178 insertions(+), 20 deletions(-)
---
base-commit: 846bd2225ec3cfa8be046655e02b9457ed41973e
change-id: 20250709-dw9719-8a8822efc1b1

Best regards,
-- 
André Apitzsch <git@apitzsch.eu>



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2025-10-22  6:43 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-20 12:03 [PATCH v2 0/8] media: i2c: dw9719: add DT compatible and DW9718S support André Apitzsch via B4 Relay
2025-09-20 12:03 ` [PATCH v2 1/8] dt-bindings: media: i2c: Add DW9718S, DW9719 and DW9761 VCM André Apitzsch via B4 Relay
2025-09-22 20:25   ` Rob Herring (Arm)
2025-10-20 20:44   ` Krzysztof Kozlowski
2025-09-20 12:03 ` [PATCH v2 2/8] media: i2c: dw9719: Deprecate dongwoon,vcm-freq André Apitzsch via B4 Relay
2025-09-20 12:03 ` [PATCH v2 3/8] media: i2c: dw9719: Remove unused i2c device id table André Apitzsch via B4 Relay
2025-09-20 12:03 ` [PATCH v2 4/8] media: i2c: dw9719: Add an of_match_table André Apitzsch via B4 Relay
2025-09-20 12:03 ` [PATCH v2 5/8] media: i2c: dw9719: Add driver_data matching André Apitzsch via B4 Relay
2025-09-20 12:03 ` [PATCH v2 6/8] media: i2c: dw9719: Add DW9718S support André Apitzsch via B4 Relay
2025-09-20 12:03 ` [PATCH v2 7/8] media: i2c: dw9719: Update PM last busy time upon close André Apitzsch via B4 Relay
2025-09-20 12:03 ` [PATCH v2 8/8] media: i2c: dw9719: Fix power on/off sequence André Apitzsch via B4 Relay
2025-10-20 20:40 ` [PATCH v2 0/8] media: i2c: dw9719: add DT compatible and DW9718S support André Apitzsch
2025-10-20 20:45   ` Krzysztof Kozlowski
2025-10-21  7:29     ` Sakari Ailus
2025-10-21 20:08       ` André Apitzsch
2025-10-22  6:43         ` Sakari Ailus
2025-10-21 19:56     ` André Apitzsch
2025-10-21 20:06       ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).