Can't get the camera on my custom baseboard to work

Hello,

I’ve been trying to get my custom baseboard to work with my IMX477 camera (2-lanes setup)… But with no success.
the output of media-ctl says:
Media controller API version 0.1.0

Media device information
------------------------
driver          vi
model           NVIDIA Tegra Video Input Device
serial          
bus info        
hw revision     0x3
driver version  0.0.0

Device topology
- entity 1: nvcsi--1 (2 pads, 0 link)
            type V4L2 subdev subtype Unknown flags 0
	pad0: Sink
	pad1: Source

Which is odd… I’ve read the Sensor Software Driver Programming Guide, and setup the DTS accordingly…
What would be the problem, here ?

Edit: I’m adding the extracted dts from the system…
extracted.dts (263.2 KB)

What’s the dmesg | grep -i imx477 show?
Which version?

L4T version is 32.4.3
Camera I2C is behind a TCA9548A mux, but I’ve checked I2C reaches the camera using an oscilloscope…
dmesg | grep -i imx477
[ 5.663832] imx477 30-001a: probing v4l2 sensor at addr 0x1a
[ 5.669658] imx477 30-001a: avdd, iovdd and/or dvdd reglrs. not present, assume sensor powered independently
[ 5.679927] imx477 30-001a: tegracam sensor driver:imx477_v2.0.6
[ 5.686429] imx477 30-001a: imx477_power_on: power on
[ 5.728152] imx477 30-001a: imx477_read_reg: i2c read: 0xs0 = 0
[ 5.745482] imx477 30-001a: imx477_read_reg: i2c read: 0xs1 = 0
[ 5.767395] imx477 30-001a: imx477_read_reg: i2c read: 0xs200 = 7
[ 5.776148] imx477 30-001a: imx477_read_reg: i2c read: 0xs201 = 0
[ 5.782270] imx477 30-001a: imx477_power_off: power off
[ 5.788040] imx477 30-001a: ctrl Gain range update failed
[ 5.806633] imx477 30-001a: Error -34 updating mode specific control ranges
[ 5.813634] imx477 30-001a: Error -34 updating control ranges
[ 5.819405] imx477 30-001a: Failed to init ctrls imx477
[ 5.824688] imx477 30-001a: tegra camera subdev registration failed
[ 5.831187] imx477: probe of 30-001a failed with error -34

Maybe need to fix those error for driver probe.

Indeed.
There was additional unfixed errors in the driver.
The DTS needed some minor changes too, but I rushed it and can’t recall which ones, unfortunately.
Anyway, thanks !

The driver works, now btw…
Media controller API version 0.1.0

Media device information

driver vi
model NVIDIA Tegra Video Input Device
serial
bus info
hw revision 0x3
driver version 0.0.0

Device topology

  • entity 1: nvcsi–1 (2 pads, 2 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev0
    pad0: Sink
    ← “imx477 30-001a”:0 [ENABLED]
    pad1: Source
    → “vi-output, imx477 30-001a”:0 [ENABLED]

  • entity 4: imx477 30-001a (1 pad, 1 link)
    type V4L2 subdev subtype Sensor flags 0
    device node name /dev/v4l-subdev1
    pad0: Source
    [fmt:SRGGB10_1X10/4032x3040 field:none colorspace:srgb]
    → “nvcsi–1”:0 [ENABLED]

  • entity 6: vi-output, imx477 30-001a (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video0
    pad0: Sink
    ← “nvcsi–1”:1 [ENABLED]