|
OV50C40默认是支持对焦马达AW8601,在dts中已默认开启,但是defconfig中未开启AW8601的驱动编译,因此实际中未生效。
开启以后,media-ctl -p -d /dev/media0 (对于多个mipi的接口,会有多个media节点,可以都看过去)
可以看到以下的media节点信息,aiq服务会自动调用对焦功能,无需额外处理。
- - entity 67: m00_b_aw8601 7-000c (0 pad, 0 link)
- type V4L2 subdev subtype Lens flags 0
- device node name /dev/v4l-subdev3
可以参考如下修改(选择板子对应的config文件),使能对焦马达的驱动。
- From 578e0bb53c1fcaaede6df9eea448a63eabab99e8 Mon Sep 17 00:00:00 2001
- From: Lin Jinhan <troy.lin@rock-chips.com>
- Date: Tue, 17 Dec 2024 16:51:25 +0800
- Subject: [PATCH 1/2] arm64: configs: rk3588_edge.config: enable AW8601
- AW8601 is the focusing motor model used in the ov50c40.
- Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
- Change-Id: I798032dfa42841f264dee1688f3c32ae7c6d3191
- ---
- arch/arm64/configs/rk3588_edge.config | 1 +
- 1 file changed, 1 insertion(+)
- diff --git a/arch/arm64/configs/rk3588_edge.config b/arch/arm64/configs/rk3588_edge.config
- index c8d0fc112ea9..b6a05be2bf33 100644
- --- a/arch/arm64/configs/rk3588_edge.config
- +++ b/arch/arm64/configs/rk3588_edge.config
- @@ -13,4 +13,5 @@ CONFIG_USB_CONFIGFS_F_UAC2=y
- CONFIG_USB_CONFIGFS_F_HID=y
- CONFIG_SENSORS_PWM_FAN=y
- CONFIG_VIDEO_OV50C40=y
- +CONFIG_VIDEO_AW8601=y
- CONFIG_VIDEO_ROCKCHIP_HDMIRX=y
- --
- 2.17.1
|
|