(1) are those PP.04 and PP.05 defined as reset pins correctly?
(2) please have another ways to define this pin,
yes, I checked that exporting gpio 431 and 432 respectively export PP.04 and PP.05 and I checked that they are both output, high, activate low and edge=none.
(3) please review the sensor driver side, is sensor gets initialized correctly from driver layer?
yes, both cameras are initialized properly as showing in dmesg:
nvidia@sdj-floyd-12:/sys/class/gpio$ sudo dmesg | grep imx
[ 11.163954] imx492 30-001a: probing v4l2 sensor: pleno/alain/8
[ 11.164811] imx492 30-001a: tegracam sensor driver:imx492_v2.0.6
[ 11.367111] imx492 30-001a: imx492_set_gain: val:1000000, gain:1, again:(1, 0), dgain:(1, 0)
[ 11.367891] imx492 30-001a: imx492_set_exposure: val: 0
[ 11.367897] imx492 30-001a: imx492_calculate_exposure_shr: val: 0
[ 11.367902] imx492 30-001a: imx492_calculate_exposure_shr: shr440: 0, vmax: 0, svr: 0
[ 11.367906] imx492 30-001a: imx492_calculate_exposure_shr: shr444: 12
[ 11.367910] imx492 30-001a: imx492_calculate_exposure_shr: shr453: 12
[ 11.368386] imx492 30-001a: imx492_set_frame_rate: val: 0, svr:0, vmax:0
[ 11.369282] imx492 30-001a: imx492_set_frame_rate: PCLK:576000000, LL:9622, fps:0.00, HMAX:0, VMAX:5728, SVR=0
[ 11.369359] imx492 30-001a: imx492_set_black_level: val: 0 => 0
[ 11.369364] imx492 30-001a: imx492_set_black_level: write addr 3043 with 0000
[ 11.369587] imx492 30-001a: imx492_set_black_level: write addr 3042 with 0000
[ 11.370011] imx492 30-001a: imx492_set_gain: val:1000000, gain:1, again:(1, 0), dgain:(1, 0)
[ 11.370662] imx492 30-001a: imx492_set_exposure: val: 21
[ 11.370671] imx492 30-001a: imx492_calculate_exposure_shr: val: 21
[ 11.370677] imx492 30-001a: imx492_calculate_exposure_shr: shr440: 5728, vmax: 5728, svr: 0
[ 11.370682] imx492 30-001a: imx492_calculate_exposure_shr: shr449: 5724
[ 11.370687] imx492 30-001a: imx492_calculate_exposure_shr: shr453: 5724
[ 11.371084] imx492 30-001a: imx492_set_frame_rate: val: 2000000, svr:0, vmax:5728
[ 11.371954] imx492 30-001a: imx492_set_frame_rate: PCLK:576000000, LL:9622, fps:2.00, HMAX:0, VMAX:5728, SVR=0
[ 11.371983] tegra-camrtc-capture-vi tegra-capture-vi: subdev imx492 30-001a bound
[ 11.374648] imx492 30-001a: Probed IMX492 sensor
[ 11.393522] imx492 31-001a: probing v4l2 sensor: pleno/alain/8
[ 11.394365] imx492 31-001a: tegracam sensor driver:imx492_v2.0.6
[ 11.596604] imx492 31-001a: imx492_set_gain: val:1000000, gain:1, again:(1, 0), dgain:(1, 0)
[ 11.597336] imx492 31-001a: imx492_set_exposure: val: 0
[ 11.597344] imx492 31-001a: imx492_calculate_exposure_shr: val: 0
[ 11.597350] imx492 31-001a: imx492_calculate_exposure_shr: shr440: 0, vmax: 0, svr: 0
[ 11.597356] imx492 31-001a: imx492_calculate_exposure_shr: shr444: 12
[ 11.597361] imx492 31-001a: imx492_calculate_exposure_shr: shr453: 12
[ 11.597789] imx492 31-001a: imx492_set_frame_rate: val: 0, svr:0, vmax:0
[ 11.598661] imx492 31-001a: imx492_set_frame_rate: PCLK:576000000, LL:9622, fps:0.00, HMAX:0, VMAX:5728, SVR=0
[ 11.598709] imx492 31-001a: imx492_set_black_level: val: 0 => 0
[ 11.598716] imx492 31-001a: imx492_set_black_level: write addr 3043 with 0000
[ 11.598895] imx492 31-001a: imx492_set_black_level: write addr 3042 with 0000
[ 11.599148] imx492 31-001a: imx492_set_gain: val:1000000, gain:1, again:(1, 0), dgain:(1, 0)
[ 11.599706] imx492 31-001a: imx492_set_exposure: val: 21
[ 11.599713] imx492 31-001a: imx492_calculate_exposure_shr: val: 21
[ 11.599719] imx492 31-001a: imx492_calculate_exposure_shr: shr440: 5728, vmax: 5728, svr: 0
[ 11.599724] imx492 31-001a: imx492_calculate_exposure_shr: shr449: 5724
[ 11.599729] imx492 31-001a: imx492_calculate_exposure_shr: shr453: 5724
[ 11.600939] imx492 31-001a: imx492_set_frame_rate: val: 2000000, svr:0, vmax:5728
[ 11.610091] imx492 31-001a: imx492_set_frame_rate: PCLK:576000000, LL:9622, fps:2.00, HMAX:0, VMAX:5728, SVR=0
[ 11.610120] tegra-camrtc-capture-vi tegra-capture-vi: subdev imx492 31-001a bound
[ 11.667511] imx492 31-001a: Probed IMX492 sensor
I checked rail and power status with “sudo cat /sys/kernel/debug/regulator/rail_states” and “sudo cat /sys/kernel/debug/regulator/power_tree”. I see:
...
regulator.3 (vdd-3v3-cvb): OFF(0) <== this is "ON" for jetpack4.6.1
regulator.4 (vdd-1v8-cvb): ON(1)
...
----regulator.3 (vdd-3v3-cvb)----
Consumer List:
regulator.5-SUPPLY: OFF [0:0:0]
States: OFF
Open Count: 1
Enable Count: 0 <== this is "1" on jetpack4.6.1
Machine Constraints:
Min Microvolt: 3300000
Max Microvolt: 3300000
Always ON: 0
Boot ON: 0
Enable Time: 0
Ramp Delay: 0
so I’m wondering if that “vdd-3v3-cvb” could be the issue.
I just can’t figure out how it’s being set when using jetpack4.6.1.
via DTS?
via an overlay?
or via a client kernel module which enables that rail when loaded?