Hi TI Team,
We are using custom board based on am625 EVM. In that We are using wkup_i2c0 for csi camera interface. Here I have also attached device tree changes to support ov5640 camera.
But with this changes, I am not getting /dev/video0 interface. Only /dev/media0 interface is created and also getting error [ 1.300458] ov5640: probe of 1-003c failed with error -22
root@xxx:~# v4l2-ctl --list-devices
TI-CSI2RX (platform:30102000.ticsi2rx):
/dev/media0
Cannot open device /dev/video0, exiting.
Please suggest if We missed anything. I am unable to find wkup_i2c0 example from linux ti academy. Is there any other procedure required to setup/enable camera interface associated with wkup_i2c0 for am625 processor.
&mcu_pmx0 { wkup_i2c0_pins_default: wkup-i2c0-pins-default { pinctrl-single,pins = < AM62X_IOPAD(0x04c, PIN_OUTPUT, 0) /* (B9) WKUP_I2C0_SCL.WKUP_I2C0_SCL */ AM62X_IOPAD(0x050, PIN_INPUT_PULLUP, 0) /* (A9) WKUP_I2C0_SDA.WKUP_I2C0_SDA */ >; }; }; &wkup_i2c0 { status = "okay"; clk_ov5640_fixed: ov5640-xclk { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <12000000>; }; ov5640: camera@3c { compatible = "ovti,ov5640"; reg = <0x3c>; clocks = <&clk_ov5640_fixed>; clock-names = "xclk"; pinctrl-names = "default"; pinctrl-0 = <&wkup_i2c0_pins_default>; DOVDD-supply = <&vcc_1v8>; /* 1.8v */ AVDD-supply = <®_3v0_audio>; /* 2.8v */ DVDD-supply = <&vcc_1v8>; /* 1.5v */ reset-gpios = <&main_gpio0_pins_default 31 GPIO_ACTIVE_LOW>, <&main_gpio0_pins_default 32 GPIO_ACTIVE_LOW>; powerdown-gpios = <&main_gpio0_pins_default 22 GPIO_ACTIVE_LOW>, <&main_gpio1_pins_default 30 GPIO_ACTIVE_LOW>; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; csi2_cam0: endpoint { remote-endpoint = <&csi2rx0_in_sensor>; bus-width = <8>; hsync-active = <0>; vsync-active = <1>; pclk-sample = <0>; data-lanes = <1 2 3 4>; }; }; }; }; }; &csi0_port0 { status = "okay"; csi2rx0_in_sensor: endpoint { remote-endpoint = <&csi2_cam0>; bus-type = <4>; /* CSI2 DPHY. */ clock-lanes = <0>; data-lanes = <1 2 3 4>; }; };
Thanks,
Maulik