2024-06-30 09:54 AM
hi,
I found stm32mp135faf7 MPU's i2c3 is not be probed
1、"ovti,ov5640" probe() function no enter
2、not found i2c3 in /sys/class/i2c-dev/
here is my dtsi:
&i2c3 {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&i2c3_pins_mx>;
pinctrl-1 = <&i2c3_sleep_pins_mx>;
status = "okay";
i2c-scl-rising-time-ns = <170>;
i2c-scl-falling-time-ns = <5>;
clock-frequency = <100000>;
/delete-property/ dmas;
/delete-property/ dma-names;
ov5640: ov5640@3c{
compatible = "ovti,ov5640";
reg = <0x3c>;
clocks = <&clk_ext_camera>;
clock-names = "xclk";
DOVDD-sup = <&vdd>;
//reset-gpios = <&gpioh 4 (GPIO_ACTIVE_LOW | GPIO_PUSH_PULL)>;
rotation = <180>;
status = "okay";
port {
ov5640_0: endpoint {
remote-endpoint = <&dcmipp_0>;
bus-width = <8>;
bus-type = <5>;
data-shift = <2>;
hsync-active = <0>;
vsync-active = <0>;
pclk-sample = <1>;
pclk-max-frequency = <77000000>;
};
}
2024-07-01 06:44 AM
maybe have a look at this page which help to debug this kind of issue (example for UART, but should be similar for I2C)
https://wiki.st.com/stm32mpu/wiki/Trace_and_debug_scenario_-_UART_issue
Regards.
2024-07-04 07:56 PM
Thank you very much.this helpful