* [PATCH] media: dt-bindings: document the Dongwoon DW9763 VCM
@ 2026-11-21 16:49 Gianluca Boiano
2026-11-21 16:49 ` [PATCH] dt-bindings: media: i2c: dongwoon,dw9768: add DW9763 Gianluca Boiano
0 siblings, 1 reply; 3+ messages in thread
From: Gianluca Boiano @ 2026-11-21 16:49 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Dongchun Zhu
Cc: Sakari Ailus, David Heidelberg, linux-media, devicetree,
linux-kernel, phone-devel, Gianluca Boiano
The Xiaomi Mi A2 (jasmine, SDM660) has a DW9763 on each rear camera.
Both work with the dw9768 driver as is; the commit message has the
register comparison. The jasmine camera DT that uses this compatible
will follow in a separate series.
Discussion: https://github.com/sdm660-mainline/linux/pull/267
---
Gianluca Boiano (1):
dt-bindings: media: i2c: dongwoon,dw9768: add DW9763
.../devicetree/bindings/media/i2c/dongwoon,dw9768.yaml | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
base-commit: aa0f4c41d4870a18e65772a1817af16427200371
change-id: 20261121-dw9763-d163a5c2c323
Best regards,
--
Gianluca Boiano <morf3089@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] dt-bindings: media: i2c: dongwoon,dw9768: add DW9763
2026-11-21 16:49 [PATCH] media: dt-bindings: document the Dongwoon DW9763 VCM Gianluca Boiano
@ 2026-11-21 16:49 ` Gianluca Boiano
2026-12-01 23:30 ` Rob Herring (Arm)
0 siblings, 1 reply; 3+ messages in thread
From: Gianluca Boiano @ 2026-11-21 16:49 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Dongchun Zhu
Cc: Sakari Ailus, David Heidelberg, linux-media, devicetree,
linux-kernel, phone-devel, Gianluca Boiano
The Dongwoon DW9763 is a 10-bit VCM driver with 8 KiB of embedded
eFlash. No public register map exists, but the Rockchip and MediaTek
vendor drivers program it exactly like the DW9768: control at 0x02,
10-bit DAC at 0x03/0x04, status at 0x05, mode/prescaler at 0x06 and
resonance timing at 0x07. The chip ID reads 0xf9 and DAC writes read
back as expected.
The only register-level difference is the naming of the 0x06[7:5]
mode field: the DW9763 calls the values SAC1/2/2.5/3/4 (0/1/2/3/5),
the DW9768 AAC2/3/4/8 (1/2/3/5). The encodings match, so the existing
dongwoon,aac-mode and dongwoon,aac-timing properties apply unchanged.
The dw9768 driver's settle-delay estimate assumes the AAC4 multiplier
for mode 3, which may be slightly off for SAC3; this only affects the
wait after a move, not the lens position. The eFlash is not covered by
this binding.
Document dongwoon,dw9763 with dongwoon,dw9768 as fallback. No driver
change is needed.
Signed-off-by: Gianluca Boiano <morf3089@gmail.com>
---
.../devicetree/bindings/media/i2c/dongwoon,dw9768.yaml | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9768.yaml b/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9768.yaml
index a0855d3b7..386352f62 100644
--- a/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9768.yaml
+++ b/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9768.yaml
@@ -20,9 +20,13 @@ description: |-
properties:
compatible:
- enum:
- - dongwoon,dw9768 # for DW9768 VCM
- - giantec,gt9769 # for GT9769 VCM
+ oneOf:
+ - enum:
+ - dongwoon,dw9768 # for DW9768 VCM
+ - giantec,gt9769 # for GT9769 VCM
+ - items:
+ - const: dongwoon,dw9763
+ - const: dongwoon,dw9768
reg:
maxItems: 1
--
2.56.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: media: i2c: dongwoon,dw9768: add DW9763
2026-11-21 16:49 ` [PATCH] dt-bindings: media: i2c: dongwoon,dw9768: add DW9763 Gianluca Boiano
@ 2026-12-01 23:30 ` Rob Herring (Arm)
0 siblings, 0 replies; 3+ messages in thread
From: Rob Herring (Arm) @ 2026-12-01 23:30 UTC (permalink / raw)
To: Gianluca Boiano
Cc: Krzysztof Kozlowski, Conor Dooley, Mauro Carvalho Chehab,
linux-kernel, Sakari Ailus, Dongchun Zhu, devicetree,
phone-devel, David Heidelberg, linux-media
On Sat, 21 Nov 2026 17:49:05 +0100, Gianluca Boiano wrote:
> The Dongwoon DW9763 is a 10-bit VCM driver with 8 KiB of embedded
> eFlash. No public register map exists, but the Rockchip and MediaTek
> vendor drivers program it exactly like the DW9768: control at 0x02,
> 10-bit DAC at 0x03/0x04, status at 0x05, mode/prescaler at 0x06 and
> resonance timing at 0x07. The chip ID reads 0xf9 and DAC writes read
> back as expected.
>
> The only register-level difference is the naming of the 0x06[7:5]
> mode field: the DW9763 calls the values SAC1/2/2.5/3/4 (0/1/2/3/5),
> the DW9768 AAC2/3/4/8 (1/2/3/5). The encodings match, so the existing
> dongwoon,aac-mode and dongwoon,aac-timing properties apply unchanged.
> The dw9768 driver's settle-delay estimate assumes the AAC4 multiplier
> for mode 3, which may be slightly off for SAC3; this only affects the
> wait after a move, not the lens position. The eFlash is not covered by
> this binding.
>
> Document dongwoon,dw9763 with dongwoon,dw9768 as fallback. No driver
> change is needed.
>
> Signed-off-by: Gianluca Boiano <morf3089@gmail.com>
> ---
> .../devicetree/bindings/media/i2c/dongwoon,dw9768.yaml | 10 +++++++---
> 1 file changed, 7 insertions(+), 3 deletions(-)
>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-12-01 23:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-21 16:49 [PATCH] media: dt-bindings: document the Dongwoon DW9763 VCM Gianluca Boiano
2026-11-21 16:49 ` [PATCH] dt-bindings: media: i2c: dongwoon,dw9768: add DW9763 Gianluca Boiano
2026-12-01 23:30 ` Rob Herring (Arm)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®