MTK MAINAF-->2-000c

这篇博客深入探讨了MTK手机中2-000c设备对应的摄像头自动对焦模块。通过查看系统中i2c总线驱动的相关目录,揭示了设备与驱动的连接,以及该设备在系统中的位置。内容包括对/sys/bus/i2c路径下相关目录的遍历,以及2-000c设备的详细信息,如driver、modalias、name等,进一步确认该设备为相机主自动对焦功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

light@light-System-Product-Name:~$ adb root && adb remount && adb shell
adbd is already running as root
remount succeeded
root@GIONEE_WBL7517:/ # cd sys
root@GIONEE_WBL7517:/sys # ls -l
drwxr-xr-x root     root              2016-02-22 16:36 block
drwxr-xr-x root     root              2016-02-22 16:36 bootinfo
drwxr-xr-x root     root              2016-02-22 16:36 bus
drwxr-xr-x root     root              2016-02-22 16:36 class
drwxr-xr-x root     root              2016-02-22 16:36 dev
drwxr-xr-x root     root              2016-02-22 16:36 devices
drwxr-xr-x root     root              2016-02-22 16:36 firmware
drwxr-xr-x root     root              2016-02-22 16:36 fs
lrwxrwxrwx root     root              2016-02-22 16:36 hideep -> devices/platform/tp_wake_switch
drwxr-xr-x root     root              2016-02-22 16:36 kernel
drwxr-xr-x root     root              2016-02-22 16:36 module
drwxr-xr-x root     root              2016-02-22 16:36 mtk_rgu
drwxr-xr-x root     root              2016-02-22 16:36 mtuart
drwxr-xr-x root     root              2016-02-22 16:36 power
root@GIONEE_WBL7517:/sys # 
root@GIONEE_WBL7517:/sys # cd bus
root@GIONEE_WBL7517:/sys/bus # ls -l
drwxr-xr-x root     root              2016-02-22 16:36 amba
drwxr-xr-x root     root              2016-02-22 16:36 clockevents
drwxr-xr-x root     root              2016-02-22 16:36 clocksource
drwxr-xr-x root     root              2016-02-22 16:36 container
drwxr-xr-x root     root              2016-02-22 16:36 cpu
drwxr-xr-x root     root              2016-02-22 16:36 event_source
drwxr-xr-x root     root              2016-02-22 16:36 hid
drwxr-xr-x root     root              2016-02-22 16:36 i2c
drwxr-xr-x root     root              2016-02-22 16:36 iio
drwxr-xr-x root     root              2016-02-22 16:36 mmc
drwxr-xr-x root     root              2016-02-22 16:36 platform
drwxr-xr-x root     root              2016-02-22 16:36 scsi
drwxr-xr-x root     root              2016-02-22 16:36 sdio
drwxr-xr-x root     root              2016-02-22 16:36 spi
drwxr-xr-x root     root              2016-02-22 16:36 usb
drwxr-xr-x root     root              2016-02-22 16:36 workqueue
root@GIONEE_WBL7517:/sys/bus # 
root@GIONEE_WBL7517:/sys/bus # cd i2c
root@GIONEE_WBL7517:/sys/bus/i2c # 
root@GIONEE_WBL7517:/sys/bus/i2c # ls -l
drwxr-xr-x root     root              2016-02-22 20:04 devices
drwxr-xr-x root     root              2016-02-22 20:04 drivers
-rw-r--r-- root     root         4096 2016-02-22 20:04 drivers_autoprobe
--w------- root     root         4096 2016-02-22 20:04 drivers_probe
--w------- root     root         4096 2016-02-22 20:04 uevent
root@GIONEE_WBL7517:/sys/bus/i2c # 
root@GIONEE_WBL7517:/sys/bus/i2c # cd drive
drivers/            drivers_autoprobe   drivers_probe       
root@GIONEE_WBL7517:/sys/bus/i2c # cd drivers                                  
root@GIONEE_WBL7517:/sys/bus/i2c/drivers # 
root@GIONEE_WBL7517:/sys/bus/i2c/drivers # ls -l
drwxr-xr-x root     root              2016-02-22 20:04 AW2013
drwxr-xr-x root     root              2016-02-22 20:04 CAM_CAL_DRV
drwxr-xr-x root     root              2016-02-22 20:04 CAM_CAL_DRV1
drwxr-xr-x root     root              2016-02-22 20:04 CAM_CAL_DRV2
drwxr-xr-x root     root              2016-02-22 20:04 CwMcuSensor
drwxr-xr-x root     root              2016-02-22 20:04 DRV2604L
drwxr-xr-x root     root              2016-02-22 20:04 MAINAF
drwxr-xr-x root     root              2016-02-22 20:04 SUBAF
drwxr-xr-x root     root              2016-02-22 20:04 bq24196_sub
drwxr-xr-x root     root              2016-02-22 20:04 bq25890
drwxr-xr-x root     root              2016-02-22 20:04 dummy
drwxr-xr-x root     root              2016-02-22 20:04 hideep_ts
drwxr-xr-x root     root              2016-02-22 20:04 kd_camera_hw
drwxr-xr-x root     root              2016-02-22 20:04 kd_camera_hw_bus2
drwxr-xr-x root     root              2016-02-22 20:04 mt6311
drwxr-xr-x root     root              2016-02-22 20:04 mt6605
drwxr-xr-x root     root              2016-02-22 20:04 pi5usb
drwxr-xr-x root     root              2016-02-22 20:04 sound_NXPExtSpk
drwxr-xr-x root     root              2016-02-22 20:04 stmvl6180
root@GIONEE_WBL7517:/sys/bus/i2c/drivers # 
root@GIONEE_WBL7517:/sys/bus/i2c/drivers # 
root@GIONEE_WBL7517:/sys/bus/i2c/drivers # cd MAINAF
root@GIONEE_WBL7517:/sys/bus/i2c/drivers/MAINAF # 
root@GIONEE_WBL7517:/sys/bus/i2c/drivers/MAINAF # ls -l
lrwxrwxrwx root     root              2016-02-22 20:04 2-000c -> ../../../../devices/soc/11009000.i2c/i2c-2/2-000c
--w------- root     root         4096 2016-02-22 20:04 bind
--w------- root     root         4096 2016-02-22 20:04 uevent
--w------- root     root         4096 2016-02-22 20:04 unbind
root@GIONEE_WBL7517:/sys/bus/i2c/drivers/MAINAF # 

root@GIONEE_WBL7517:/sys/bus/i2c/drivers/MAINAF # 

root@GIONEE_WBL7517:/sys/bus/i2c/drivers/MAINAF # 
root@GIONEE_WBL7517:/sys/bus/i2c/drivers/MAINAF # cd ../..
root@GIONEE_WBL7517:/sys/bus/i2c # ls
devices
drivers
drivers_autoprobe
drivers_probe
uevent
root@GIONEE_WBL7517:/sys/bus/i2c # cd devices/                                 
root@GIONEE_WBL7517:/sys/bus/i2c/devices # ls -l
lrwxrwxrwx root     root              2016-02-22 20:07 0-003e -> ../../../devices/soc/11007000.i2c/i2c-0/0-003e
lrwxrwxrwx root     root              2016-02-22 20:07 0-006c -> ../../../devices/soc/11007000.i2c/i2c-0/0-006c
lrwxrwxrwx root     root              2016-02-22 20:07 1-000c -> ../../../devices/soc/11008000.i2c/i2c-1/1-000c
lrwxrwxrwx root     root              2016-02-22 20:07 1-002e -> ../../../devices/soc/11008000.i2c/i2c-1/1-002e
lrwxrwxrwx root     root              2016-02-22 20:07 1-003a -> ../../../devices/soc/11008000.i2c/i2c-1/1-003a
lrwxrwxrwx root     root              2016-02-22 20:07 1-0060 -> ../../../devices/soc/11008000.i2c/i2c-1/1-0060
lrwxrwxrwx root     root              2016-02-22 20:07 1-0063 -> ../../../devices/soc/11008000.i2c/i2c-1/1-0063
lrwxrwxrwx root     root              2016-02-22 20:07 1-0068 -> ../../../devices/soc/11008000.i2c/i2c-1/1-0068
lrwxrwxrwx root     root              2016-02-22 20:07 1-0069 -> ../../../devices/soc/11008000.i2c/i2c-1/1-0069
lrwxrwxrwx root     root              2016-02-22 20:07 1-006b -> ../../../devices/soc/11008000.i2c/i2c-1/1-006b
lrwxrwxrwx root     root              2016-02-22 20:07 1-0075 -> ../../../devices/soc/11008000.i2c/i2c-1/1-0075
lrwxrwxrwx root     root              2016-02-22 20:07 1-0077 -> ../../../devices/soc/11008000.i2c/i2c-1/1-0077
lrwxrwxrwx root     root              2016-02-22 20:07 2-000c -> ../../../devices/soc/11009000.i2c/i2c-2/2-000c
lrwxrwxrwx root     root              2016-02-22 20:07 2-0010 -> ../../../devices/soc/11009000.i2c/i2c-2/2-0010
lrwxrwxrwx root     root              2016-02-22 20:07 2-0029 -> ../../../devices/soc/11009000.i2c/i2c-2/2-0029
lrwxrwxrwx root     root              2016-02-22 20:07 2-0030 -> ../../../devices/soc/11009000.i2c/i2c-2/2-0030
lrwxrwxrwx root     root              2016-02-22 20:07 2-0036 -> ../../../devices/soc/11009000.i2c/i2c-2/2-0036
lrwxrwxrwx root     root              2016-02-22 20:07 2-0045 -> ../../../devices/soc/11009000.i2c/i2c-2/2-0045
lrwxrwxrwx root     root              2016-02-22 20:07 3-006b -> ../../../devices/soc/1100f000.i2c/i2c-3/3-006b
lrwxrwxrwx root     root              2016-02-22 20:07 4-001d -> ../../../devices/soc/11011000.i2c/i2c-4/4-001d
lrwxrwxrwx root     root              2016-02-22 20:07 4-0028 -> ../../../devices/soc/11011000.i2c/i2c-4/4-0028
lrwxrwxrwx root     root              2016-02-22 20:07 4-0034 -> ../../../devices/soc/11011000.i2c/i2c-4/4-0034
lrwxrwxrwx root     root              2016-02-22 20:07 4-005a -> ../../../devices/soc/11011000.i2c/i2c-4/4-005a
lrwxrwxrwx root     root              2016-02-22 20:07 4-006b -> ../../../devices/soc/11011000.i2c/i2c-4/4-006b
lrwxrwxrwx root     root              2016-02-22 20:07 i2c-0 -> ../../../devices/soc/11007000.i2c/i2c-0
lrwxrwxrwx root     root              2016-02-22 20:07 i2c-1 -> ../../../devices/soc/11008000.i2c/i2c-1
lrwxrwxrwx root     root              2016-02-22 20:07 i2c-2 -> ../../../devices/soc/11009000.i2c/i2c-2
lrwxrwxrwx root     root              2016-02-22 20:07 i2c-3 -> ../../../devices/soc/1100f000.i2c/i2c-3
lrwxrwxrwx root     root              2016-02-22 20:07 i2c-4 -> ../../../devices/soc/11011000.i2c/i2c-4
root@GIONEE_WBL7517:/sys/bus/i2c/devices # 
root@GIONEE_WBL7517:/sys/bus/i2c/devices # cd 2-000c
root@GIONEE_WBL7517:/sys/bus/i2c/devices/2-000c # 
root@GIONEE_WBL7517:/sys/bus/i2c/devices/2-000c # ls -l
lrwxrwxrwx root     root              2016-02-22 20:08 driver -> ../../../../../bus/i2c/drivers/MAINAF
-r--r--r-- root     root         4096 2016-02-22 20:08 modalias
-r--r--r-- root     root         4096 2016-02-22 20:08 name
drwxr-xr-x root     root              2016-02-22 16:36 power
lrwxrwxrwx root     root              2016-02-22 20:08 subsystem -> ../../../../../bus/i2c
-rw-r--r-- root     root         4096 2016-02-22 16:36 uevent
root@GIONEE_WBL7517:/sys/bus/i2c/devices/2-000c # 
root@GIONEE_WBL7517:/sys/bus/i2c/devices/2-000c # cat name
camera_main_af

root@GIONEE_WBL7517:/sys/bus/i2c/devices/2-000c # 
root@GIONEE_WBL7517:/sys/bus/i2c/devices/2-000c #

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值