Hello @JerryChang and @EduardoSalazar96,
Below is my list of observations for where i am currently stuck
- i2c write failing for PLL configurations of camera
static const struct reg_8 imx296_init_regs[] = {
{0x3000, 0x00}, // Standby ON
{0x300A, 0x3c}, // Minimal SHS1 (Exposure)
{0x3005, 0xf0},
{0x309e, 0x04},
{0x30a0, 0x04},
{0x30a1, 0x3c},
{0x30a4, 0x5f},
{0x30a8, 0x91},
{0x30ac, 0x28},
{0x30af, 0x09},
{0x30df, 0x00},
{0x3165, 0x00},
{0x3169, 0x10},
{0x316a, 0x02},
{0x31c8, 0xf3}, /* Exposure-related */
{0x31d0, 0xf4}, /* Exposure-related */
{0x321a, 0x00},
{0x3226, 0x02},
{0x3256, 0x01},
{0x3541, 0x72}, // after this register all the commands fails. They all fail.
{0x3516, 0x77},
{0x350b, 0x7f},
{0x3758, 0xa3},
{0x3759, 0x00},
{0x375a, 0x85},
{0x375b, 0x00},
{0x3832, 0xf5},
{0x3833, 0x00},
{0x38a2, 0xf6},
{0x38a3, 0x00},
{0x3a00, 0x80}, /* Critical for CSI-2 activation */
{0x3d48, 0xa3},
{0x3d49, 0x00},
{0x3d4a, 0x85},
{0x3d4b, 0x00},
{0x400e, 0x58},
{0x4014, 0x1c},
{0x4041, 0x2a},
{0x40a2, 0x06},
{0x40c1, 0xf6},
{0x40c7, 0x0f},
{0x40c8, 0x00},
{0x4174, 0x00},
};
a. Even if delay is introduced between the commands.
b. Even if i comment the commands above this are commented
c. Same commands are success from userspace using i2cset and i2ctransfer
- While trying to stream using
v4l2-ctl --stream-mmap=3 --stream-count=10 -d /dev/video0 --stream-to=/dev/null
I get following message in dmesg
[ 143.315176] [RCE] ERROR: camera-ip/nvcsi/nvcsi.c:2015 [nvcsi_stream_set_config] "MIPI clock rate not known. Using 750000 kHz
[ 143.315188] [RCE] "
I have taken the vi/csi log trace if it helps
vi_csi-kernel_trace.txt (8.9 KB)
- Below was suggested by the Grok AI to test. And i got this. The clock rate is very low here, 214.3MHz. Is this one of the issues too?
root@ubuntu:/home/ashish# cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/refcount
0
root@ubuntu:/home/ashish# cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/max_rate
214300000
root@ubuntu:/home/ashish# cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/rate
214300000
root@ubuntu:/home/ashish# cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/min_rate
10045312
root@ubuntu:/home/ashish# cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/
dvfs hz_off mrq_rate_locked rate
dvfs_table max_rate parent refcount
flags min_rate possible_parents state
fmon/ mrqcount pto_counter vdd_core/
root@ubuntu:/home/ashish# cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/parent
pll_nvcsi
root@ubuntu:/home/ashish# cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/possible_parents
pllp_out0 pll_nvcsi clk_m