Host Driver not registring V4L2 subdevices after bridge

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Host Driver not registring V4L2 subdevices after bridge

577 Views
Eximius
Contributor III

Hi,

We are using a Parallel to CSI-Mipi converter to attach a Parallel Sensor to the CSI-Mipi interface.

The Bridge driver probes and links successfully. The image sensor probes and makes the async registration successfully, but is not linked or registered as sub-device by the host driver (mx8-img-md).

Related dmesg printouts:

[ 3.412261] mx8-img-md: Registered sensor subdevice: tc358746 1-000e (1)
[ 3.423207] mx8-img-md: created link [mxc_isi.0] => [mxc_isi.0.capture]
[ 3.437288] mx8-img-md: created link [mxc-mipi-csi2.0] => [mxc_isi.0]
[ 3.515797] mx8-img-md: created link [tc358746 1-000e] => [mxc-mipi-csi2.0]

Converter Driver Link

From my DTS:

parallel_sensor: parallel_sensor@22 {
	compatible = "parallel_sensor_d";
	reg = <0x22>;
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_csi0_rst>;
	reset-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
	port {
		parallel_sensor_out: endpoint {
			bus-type = <5>;
			bus-width = <16>;
			remote-endpoint = <&tc358748_ep0>;
		};
	};
};

tc358748_adapter: tc358748_adapter@e {
	compatible = "toshiba,tc358746";
	reg = <0xE>;
	status = "okay";
	
	clocks = <&clk_serialize>;
	default-input = <0>;
	
	#address-cells = <1>;
	#size-cells = <0>;
	
	port@0 {
		reg = <0>;
		tc358748_ep0: endpoint {
			bus-type = <5>;
			bus-width = <16>;
			remote-endpoint = <&parallel_sensor_out>;
		};
	};
	port@1 {
		reg = <1>;
		tc358748_ep1: endpoint {
			data-lanes = <2>;
			clock-lanes = <1>;
			link-frequencies = /bits/ 64 <216000000>;
			remote-endpoint = <&mipi1_sensor_ep>;
		};
	};
};

 Platform: i.MX 8M Plus Evalboard

My first question is, how can the Parallel Sensor be registered as subdevice by the host driver, so that the link can be set up?

I appreciate any hints and answers.

Thanks in advance,

Ian

Labels (1)
0 Kudos
2 Replies

573 Views
igorpadykov
NXP Employee
NXP Employee
0 Kudos

568 Views
Eximius
Contributor III

Hi Igor,

Thank you for responding so quick.

I already looked the solutions for HDMI-CSI converters, but they don't seem to be my case. As far as I understand, they don't have to setup links with lower subdevices.

Best regards,

Ian

0 Kudos