Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions arch/arm64/boot/dts/qcom/sm7325-nothing-spacewar.dts
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,14 @@
};

&cci1_i2c0 {
/* actuator (For Rear-aux UW sensor) @ 0xc */
camu_dw9800w: actuator@c {
compatible = "dongwoon,dw9800w",
"dongwoon,dw9800";
reg = <0x0c>;

vin-supply = <&vreg_cam_vio_1p8>;
vdd-supply = <&vreg_camu_vaf_1p8>;
Copy link
Member

@z3ntu z3ntu Mar 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My DW9800K only has a VDD pin (and VSS - whatever that does - is connected to ground, edit: nvm, VSS seems to just mean ground), what is VIN for you?

Copy link
Member

@z3ntu z3ntu Mar 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Downstream driver, as well as upstream driver of similar IC has both of these regulators

Copy link
Author

@JIaxyga JIaxyga Mar 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upstream:

  • dw9714: vcc-supply
  • dw9719: vdd-supply
  • dw9768: vin-supply & vdd-supply
  • dw9807: no regulator support

But since the dw9800 in all its variants I have seen only has vdd, this should mean only vdd-supply should be added to driver/dt-bindings

};

camera@2d {
compatible = "samsung,s5kjn1";
Expand All @@ -950,6 +957,8 @@
orientation = <1>; /* Rear facing */
rotation = <90>;

lens-focus = <&camu_dw9800w>;

port {
camera_s5kjn1_ep: endpoint {
data-lanes = <1 2 3 4>;
Expand Down Expand Up @@ -1384,7 +1393,7 @@

&sound {
compatible = "qcom,sm7325-sndcard",
"qcom,qcm6490-idp-sndcard";
"qcom,sm8250-sndcard";

model = "NP1";

Expand Down
12 changes: 12 additions & 0 deletions drivers/media/i2c/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,18 @@ config VIDEO_DW9768
capability. This is designed for linear control of
voice coil motors, controlled via I2C serial interface.

config VIDEO_DW9800
tristate "DW9800 lens voice coil support"
depends on I2C && VIDEO_DEV
select MEDIA_CONTROLLER
select VIDEO_V4L2_SUBDEV_API
select V4L2_ASYNC
help
This is a driver for the DW9800 camera lens voice coil.
DW9800 is a 10 bit DAC with 100mA output current sink
capability. This is designed for linear control of
voice coil motors, controlled via I2C serial interface.

config VIDEO_DW9807_VCM
tristate "DW9807 lens voice coil support"
depends on I2C && VIDEO_DEV
Expand Down
1 change: 1 addition & 0 deletions drivers/media/i2c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ obj-$(CONFIG_VIDEO_DS90UB960) += ds90ub960.o
obj-$(CONFIG_VIDEO_DW9714) += dw9714.o
obj-$(CONFIG_VIDEO_DW9719) += dw9719.o
obj-$(CONFIG_VIDEO_DW9768) += dw9768.o
obj-$(CONFIG_VIDEO_DW9800) += dw9800.o
obj-$(CONFIG_VIDEO_DW9807_VCM) += dw9807-vcm.o
obj-$(CONFIG_VIDEO_ET8EK8) += et8ek8/
obj-$(CONFIG_VIDEO_GC0308) += gc0308.o
Expand Down
Loading