Hi,
I am working on supporting imx586 camera on RB5 platform. Camera is connected via CSI1 and i2c0 and voltage is provideded from separate source (one thing less to configure). I am able to detect the camera on i2c bus, but still can not retreive an image.
Process of porting:
1. Added camera dtsi configuration
qcom,cam-sensor1 {
cell-index = <1>;
compatible = "qcom,cam-sensor";
csiphy-sd-index = <1>;
sensor-position-roll = <270>;
sensor-position-pitch = <0>;
sensor-position-yaw = <0>;
/* eeprom-src = <&eeprom_586dy>; */
cam_vio-supply = <&pm8009_l7>;
cam_clk-supply = <&titan_top_gdsc>;
regulator-names = "cam_vio", "cam_clk";
pwm-switch;
gpio-no-mux = <0>;
rgltr-cntrl-support;
rgltr-min-voltage = <1800000 0>;
rgltr-max-voltage = <1800000 0>;
rgltr-load-current = <120000 0>;
pinctrl-0 = <&cam_sensor_mclk1_active
&cam_sensor_active_reset_int_cam2>;
gpios = <&tlmm 95 0>,
<&tlmm 146 0>;
gpio-reset = <1>;
gpio-req-tbl-num = <0 1>;
gpio-req-tbl-flags = <1 0>;
gpio-req-tbl-label = "CAMIF_MCLK1",
"CAM_RESET1";
sensor-mode = <0>;
cci-master = <0>;
clocks = <&clock_camcc CAM_CC_MCLK1_CLK>;
clock-names = "cam_clk";
clock-cntl-level = "turbo";
clock-rates = <24000000>;
status = "ok";
};
2. Changed imx586_sensor.xml file
All parameters adjusted. Full full configuration can be posted if needed.
3. Created modulde<>.xml file
It points on id=1 and 4 lanes.
Camera is configured to work on 24MHz over 4 lanes.
Tested using camx-hal3-test
Enter Camera Testing
======================= Camera Test Version =======================
CAMTEST_SHA1 : b95bff2dc09f1549ae1971afcf0ba71c9c0206de
CAMTEST_BUILD_TS: 7/4/2021 10:57:4
CAMTESTHOSTNAME : a670b28c1692
CAMBUILD_IP :
=====================================================================
Camera: 0 face:1
CAM0>>A:id=0,psize=8000x6000,pformat=yuv420,ssize=8000x6000,sformat=jpeg,zsl=1
Test camera:A:id=0,psize=8000x6000,pformat=yuv420,ssize=8000x6000,sformat=jpeg,zsl=1
camera:0
preview size:8000x6000
preview format:yuv420
snapshot size:8000x6000
snapshot format:jpeg
in ZSL modeadd a camera :0
gbm_create_device(156): Info: backend name is: msm_drm
CameraId:0CAM0>>s
Test camera:s
snapshot request:0
CAM0>>P:1
Test camera:P:1
preview dump:1/0 for cameraid:0.
CAM0>>s:1
Test camera:s:1
snapshot request:1
CAM0>>Q
Test camera:Q
quit
Exiting application!
After execution nothing is stored under /data/misc/camera
Hello Customer,
Closing this issue, since TC sales team is discussing the support proposal with you on another thread!
Thanks,
Mita
Hi,
Were we able to interface this camera? Would you kindly be able to share the steps to follow to interface this camera sensor with RB5? Thanks.
Is update camera from IMX577 to IMX586 issue be a new release?
Or how can we adjust the kernal file to enable IMX586 or IMX686 camera?
Hi all,
I'm qualified for downloading RB5 UBUN.1.0 from QC chipcode. Now I need to add new camera sensor IMX258. The current code have its xml files but not .cpp one (imx25_sensor.cpp) in src/vendor/qcom/proprietary/chi-cdk/oem/qcom/sensor/imx258/.
How can I have/dev that cpp file? Or is it generated from somewhere?
Thanks and Regards,
Vinh.