Cannot generate /dev/media0 on iMX8M Nano board

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Cannot generate /dev/media0 on iMX8M Nano board

1,746件の閲覧回数
2802911181
Contributor II

Hello.  

  We 're trying to port camera Pico DCAM20 driver to BSP5.4.3 of i.MX8M Nano by referring to ov5640 driver. The /dev/video0 has been generated but no /dev/media0  and  "subdev_notifier_complete error exit" is printed as the log file attached. The driver file is attached too.

 The info about the camera in device tree as below:

------------------------------------------------------- in imx8mn-ddr4-evk.dts  ------------------------------------------------

&i2c3 {
clock-frequency = <100000>;
pinctrl-names = "default", "gpio";
pinctrl-0 = <&pinctrl_i2c3>;
pinctrl-1 = <&pinctrl_i2c3_gpio>;
scl-gpios = <&gpio5 18 GPIO_ACTIVE_HIGH>;
sda-gpios = <&gpio5 19 GPIO_ACTIVE_HIGH>;
status = "okay";

dcam20_mipi_0: dcam20_mipi@64 {
compatible = "adi,addi903x";
reg = <0x64>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_csi_pwn>, <&pinctrl_csi_rst>;
clocks = <&clk IMX8MN_CLK_CLKO1>;
clock-names = "xclk";
assigned-clocks = <&clk IMX8MN_CLK_CLKO1>;
assigned-clock-parents = <&clk IMX8MN_CLK_24M>;
assigned-clock-rates = <135000000>; 
clock-frequency = <135000000>;
csi_id = <0>;
powerdown-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
mclk = <135000000>;
mclk_source = <0>;
mipi_csi;
status = "okay";
port {
dcam20_ep: endpoint {
remote-endpoint = <&mipi1_sensor_ep>;
data-lanes = <1 2>;
clocks-lanes = <0>;
};
};
};

};

&mipi_csi_1 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
port@0 {
reg = <0>;
mipi1_sensor_ep: endpoint {
remote-endpoint = <&dcam20_ep>;
data-lanes = <2>; 
csis-hs-settle = <13>; 
csis-clk-settle = <2>; 
csis-wclk; //modified by ryl
};
};
};

--------------------------------------------------------------------------------------------------------------------------

Could someone give me some advice?

Thanks.

ラベル(2)
0 件の賞賛
返信
3 返答(返信)

1,663件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Michael

one can try unit test for debugging and testing new camera driver

mx8_v4l2_cap_drm.c\mxc_v4l2_test\test - imx-test - i.MX Driver Test Application Software 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

1,663件の閲覧回数
2802911181
Contributor II

Hi Igorpadykov

    Thanks for your advice. It's OK now as I added link operation in the probe function of the driver file.

0 件の賞賛
返信

1,463件の閲覧回数
gghy
Contributor I

Hi, what do you mean with " added link operation in the probe function of the driver file" ?
I'm having a similar error but can't find a solution

0 件の賞賛
返信