Difference between revisions of "NXP MIPI-CSI Camera Set"
Jump to navigation
Jump to search
Line 54: | Line 54: | ||
[[image:CSI1-I2C2 and I2C3.png|800px]] | [[image:CSI1-I2C2 and I2C3.png|800px]] | ||
− | == | + | == Resolution setting == |
+ | === 1280x960 === | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | + | echo 0 > /sys/bus/i2c/devices/1-0036/ov5647_mode | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
− | == | + | === 1280x720 === |
− | + | <syntaxhighlight lang="bash"> | |
+ | echo 1 > /sys/bus/i2c/devices/1-0036/ov5647_mode | ||
+ | </syntaxhighlight> | ||
− | == | + | === 1920x1080 === |
− | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | + | echo 2 > /sys/bus/i2c/devices/1-0036/ov5647_mode | |
</syntaxhighlight> | </syntaxhighlight> | ||
− | === | + | === 640x480 === |
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | + | echo 3 > /sys/bus/i2c/devices/1-0036/ov5647_mode | |
</syntaxhighlight> | </syntaxhighlight> | ||
− | === | + | === 1024x768 (default) === |
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | + | echo 4 > /sys/bus/i2c/devices/1-0036/ov5647_mode | |
</syntaxhighlight> | </syntaxhighlight> | ||
− | == | + | === 960x720 === |
− | + | <syntaxhighlight lang="bash"> | |
− | + | echo 5 > /sys/bus/i2c/devices/1-0036/ov5647_mode | |
− | + | </syntaxhighlight> | |
− | + | ||
− | + | === 640x480 (narrow angle of view) === | |
− | + | <syntaxhighlight lang="bash"> | |
− | + | echo 6 > /sys/bus/i2c/devices/1-0036/ov5647_mode | |
− | + | </syntaxhighlight> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 20:41, 22 July 2022
MINISASTOCSI is a MIPI-CSI interface camera kit, based on OmniVision chipset OV5640 Detection, performance and essential commands are described here.
MINISASTOCSI is a MIPI-CSI interface camera connected to iMX8M Development Baseboard
Kernel detection
root@imx8mq-voipac:~# dmesg | grep ov56 [ 2.398433] ov5640_mipi 1-003c: No pin available [ 2.403090] ov5640_mipi 1-003c: No sensor pwdn pin available [ 2.408777] ov5640_mipi 1-003c: No sensor reset pin available [ 2.414571] ov5640_regulator_enable: cannot get io voltage error - err:-517 [ 2.539603] ov5640_mipi 2-003c: No pin available [ 2.549079] ov5640_mipi 2-003c: No sensor reset pin available [ 2.554887] ov5640_regulator_enable: cannot get io voltage error - err:-517 [ 2.999855] ov5640_mipi 1-003c: No pin available [ 3.005558] ov5640_mipi 1-003c: No sensor reset pin available [ 3.012003] ov5640_mipi 1-003c: 1-003c supply DVDD not found, using dummy regulator [ 3.019785] ov5640_mipi 1-003c: 1-003c supply AVDD not found, using dummy regulator [ 3.039290] ov5640_mipi 1-003c: Read reg error: reg=300a [ 3.044691] ov5640_mipi 1-003c: Camera is not found [ 3.051918] ov5640_mipi 2-003c: No pin available [ 3.062814] ov5640_mipi 2-003c: No sensor reset pin available [ 3.069209] ov5640_mipi 2-003c: 2-003c supply DVDD not found, using dummy regulator [ 3.076945] ov5640_mipi 2-003c: 2-003c supply AVDD not found, using dummy regulator [ 4.291092] mxc-mipi-csi2_yav 30a70000.mipi_csi: Registered sensor subdevice: ov5640_mipi 2-003c [ 4.304334] ov5640_mipi 2-003c: Camera is found
I2C detection
MINISASTOCSI camera chip is connected via I2C3. The most important address for correct detection is 0x3c.
root@imx8mq-voipac:~# i2cdetect -y 2 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: UU UU UU UU -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --
MINISASTOCSI camera can be also connected to I2C2 interface by moving 0R resistors. However second camera connected on CSI-2 interface have same address 0x3c as MINISASTOCSI camera connected on CSI-1 interface.
Resolution setting
1280x960
echo 0 > /sys/bus/i2c/devices/1-0036/ov5647_mode
1280x720
echo 1 > /sys/bus/i2c/devices/1-0036/ov5647_mode
1920x1080
echo 2 > /sys/bus/i2c/devices/1-0036/ov5647_mode
640x480
echo 3 > /sys/bus/i2c/devices/1-0036/ov5647_mode
1024x768 (default)
echo 4 > /sys/bus/i2c/devices/1-0036/ov5647_mode
960x720
echo 5 > /sys/bus/i2c/devices/1-0036/ov5647_mode
640x480 (narrow angle of view)
echo 6 > /sys/bus/i2c/devices/1-0036/ov5647_mode