Error: camera_common_regulator_get vif ERR: ffffffffffffffed

Hi All,

I’m doing the porting of TC358840 for Xavier NX module on our custom carrier making use the default device-tree of Xavier NX Carrier Board (hardware/nvidia/platform/t19x/jakku/kernel-dts/tegra194-p3668-all-p3509-0000.dts).

However, with the default power supply setting in the my custom dtsi (hardware/nvidia/platform/t19x/jakku/kernel-dts/common/tegra194-toto-camera.dtsi included in hardware/nvidia/platform/t19x/jakku/kernel-dts/common/tegra194-p3509-0000-a00.dtsi, which is in turn included in hardware/nvidia/platform/t19x/jakku/kernel-dts/tegra194-p3668-all-p3509-0000.dts) :

                        /* Power Supply */
                       vdig-reg = <&en_vdd_cam_1v2>;
                       vif-reg = <&en_vdd_cam>;

        ...

        fixed-regulators {
                /*** Enable power supply for HDMI extension board ***/
                /* VDD_SYS_EN */
                en_vdd_sys: regulator@118 {
                        regulator-boot-on;
                        regulator-always-on;
                };

                /* CAM_VDD_1V8_EN */
                en_vdd_cam: regulator@2 {
                        regulator-boot-on;
                        regulator-always-on;
                };

                /* CAM_VDD_1V2_EN */
                en_vdd_cam_1v2: regulator@12 {
                        regulator-boot-on;
                        regulator-always-on;
                };
        }

I got following error even-though the camera seems to be registered :

[    5.792714] tc358840 0-000f: camera_common_regulator_get vif ERR: ffffffffffffffed
[    5.793001] tc358840 0-000f: cannot get regulator vif -19
[    5.793169] tc358840 0-000f: Releasing System Reset (gpio 0x0159)
[    5.793214] tc358840 0-000f: Chip found @ 7h0F (3160000.i2c)
[    5.909087] tc358840 0-000f: tc358840 found @ 7h0F (3160000.i2c)
[    5.909099] tegra194-vi5 15c10000.vi: subdev tc358840 0-000f bound

I also have the same error by modifying the power supply setting to :

                        /* Power Supply */
                       vdig-supply = <&en_vdd_cam_1v2>;
                       vif-supply = <&en_vdd_cam>;

or

                        /* Power Supply */
                        vif-reg = <&p3509_vdd_1v8_cvb>;
                        vdig-reg = <&p3509_vdd_sys_en>;

and even

                        /* Power Supply */
                        vif-supply = <&p3509_vdd_1v8_cvb>;
                        vdig-supply = <&p3509_vdd_sys_en>;

Could someone help to correctly configure the power setting in the dtsi to avoid the mentioned error message without modifying the bridge source code at kernel/nvidia/drivers/media/i2c/tc358840.c, please ?

BSP Version : L4T-32.5.1

Thanks and best regards,
K.

hello khang.l4es,

according to Topic 191446, TC358840 should works on L4T 32.5.1 for Xavier NX.
it should be the regulator issue, please disassembler the dtb file into text file to review your device tree settings,
for example, $ dtc -I dtb -O dts -o output.txt tegra194-p3668-all-p3509-0000.dtb
thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.