cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP135F-DK raspberry pi camera module v2.1

kagan_senkeser
Associate III

Hello,

I have STM32MP135F-DK board and raspberry pi camera module v2.1 but board does not see camera
I guess I have to modify stm32mp135f-dk.dtb file. 

But how should I write settings like OV5640 or GC2145 in dtb file
like that

 
gc2145: gc2145@3c {
compatible = "galaxycore,gc2145";
reg = <0x3c>;
clocks = <&clk_ext_camera>;
IOVDD-supply = <&scmi_v3v3_sw>;
AVDD-supply = <&scmi_v3v3_sw>;
DVDD-supply = <&scmi_v3v3_sw>;
powerdown-gpios = <&mcp23017 3 (GPIO_ACTIVE_LOW | GPIO_PUSH_PULL)>;
reset-gpios = <&mcp23017 4 (GPIO_ACTIVE_LOW | GPIO_PUSH_PULL)>;
status = "okay";
 
port {
gc2145_ep: endpoint {
remote-endpoint = <&mipid02_0>;
clock-lanes = <0>;
data-lanes = <1 2>;
};



And after chaning that file should I do anything to take photo with raspberry pi camera module v2.1

 

4 REPLIES 4
Will_Robertson
Associate III

Hi @kagan_senkeser 

It may be worth considering the STM32MP257F-EV1 or STM32MP257F-DK (due to be available in January 2025) development boards for the STM32MP257 microprocessor - the STM32MP257 has a built-in MIPI CSI-2 interface whereas connection to a MIPI CSI-2 camera from the STM32MP135 was via an external chip.

The Raspberry Pi Camera Module v3 has a significantly newer senor than v2.1 and may also be well worth trying.

Will

Hi @Will_Robertson 

 

We have the setup that you mentioned ( STM32MP257F-EV1 + raspberry camera module v2.1), and although it has the same MIPI CSI-2 interface, the camera is not recognized in the board, using the basic example. We assume that it has the same connector, but it's not a direct replacement for the "b-cams-imx".  There are some questions on the forum about the compatibility but no answers. Is it possible to use the eval board with the rasp camera ?

 

Best regards,

PatrickF
ST Employee

Hi, 

HW wise, you should have corresponding supplies and signalling, as well as I2C. I think it is matter of some simple adapter (if needed).

 

I'm not Sw expert, but I guess you should define the right sensor in the device tree in order to use the right driver.

see some example:

https://wiki.st.com/stm32mpu/wiki/Camera_sensors_hardware_components

 

Seems Rpi camera V2 is Sony IMX219  while v3 is Sony IMX708 

I have found the IMX219, so this one is maybe the easiest one.

https://github.com/STMicroelectronics/linux/blob/v6.6-stm32mp/Documentation/devicetree/bindings/media/i2c/imx219.yaml

 

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi @PatrickF , @cbcosta and @kagan_senkeser 

A quick update. Over recent months we've been evaluating the new ST VD56G3, VD66GY and VD16GZ image sensors and comparing them with the Sony IMX219 image sensor (used in the RPi V2 camera). We've been very happy with the results from the ST image sensors and their Mainline Linux drivers so I thought I'd let you know in case this is of help for your application?

Will