Toybrick

标题: OV50C40开启对焦马达支持 [打印本页]

作者: troy    时间: 2025-1-21 15:17
标题: OV50C40开启对焦马达支持
OV50C40默认是支持对焦马达AW8601,在dts中已默认开启,但是defconfig中未开启AW8601的驱动编译,因此实际中未生效。

开启以后,media-ctl -p -d /dev/media0 (对于多个mipi的接口,会有多个media节点,可以都看过去)
可以看到以下的media节点信息,aiq服务会自动调用对焦功能,无需额外处理。
  1. - entity 67: m00_b_aw8601 7-000c (0 pad, 0 link)
  2.              type V4L2 subdev subtype Lens flags 0
  3.              device node name /dev/v4l-subdev3
复制代码

可以参考如下修改(选择板子对应的config文件),使能对焦马达的驱动。
  1. From 578e0bb53c1fcaaede6df9eea448a63eabab99e8 Mon Sep 17 00:00:00 2001
  2. From: Lin Jinhan <troy.lin@rock-chips.com>
  3. Date: Tue, 17 Dec 2024 16:51:25 +0800
  4. Subject: [PATCH 1/2] arm64: configs: rk3588_edge.config: enable AW8601

  5. AW8601 is the focusing motor model used in the ov50c40.

  6. Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
  7. Change-Id: I798032dfa42841f264dee1688f3c32ae7c6d3191
  8. ---
  9. arch/arm64/configs/rk3588_edge.config | 1 +
  10. 1 file changed, 1 insertion(+)

  11. diff --git a/arch/arm64/configs/rk3588_edge.config b/arch/arm64/configs/rk3588_edge.config
  12. index c8d0fc112ea9..b6a05be2bf33 100644
  13. --- a/arch/arm64/configs/rk3588_edge.config
  14. +++ b/arch/arm64/configs/rk3588_edge.config
  15. @@ -13,4 +13,5 @@ CONFIG_USB_CONFIGFS_F_UAC2=y
  16. CONFIG_USB_CONFIGFS_F_HID=y
  17. CONFIG_SENSORS_PWM_FAN=y
  18. CONFIG_VIDEO_OV50C40=y
  19. +CONFIG_VIDEO_AW8601=y
  20. CONFIG_VIDEO_ROCKCHIP_HDMIRX=y
  21. --
  22. 2.17.1
复制代码







欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3