Other Parts Discussed in Thread:AM5728
我用的是最新的sdk : ti-processor-sdk-linux-am57xx-evm-06.03.00.106-Linux-x86-Install.bin
这是我添加的am57xx-beagle-x15-common.dtsi配置
……………………………………………………………………………………..
&i2c5 {
status = "okay";
clock-frequency = <400000>;
ov5640: ov5640@3c {
compatible = "ovti,ov5640";
reg = <0x3c>;
clocks = <&func_24m_clk>;
clock-names = "xclk";
DOVDD-supply = <&aic_dvdd>;
AVDD-supply = <&vdd_3v3>;
DVDD-supply = <&aic_dvdd>;
powerdown-gpios = <&gpio5 11 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio4 17 GPIO_ACTIVE_LOW>;
oscen-gpios = <&gpio5 10 GPIO_ACTIVE_HIGH>;
bufen-gpios = <&gpio5 12 GPIO_ACTIVE_LOW>;
mclk = <24000000>;
mclk_source = <0>;
csi_id = <0>;
status = "okay";
port {
ov5640_ep: endpoint {
remote-endpoint = <&vin3a>;
hsync-active = <1>;
vsync-active = <1>;
pclk-sample = <0>;
};
};
};
};
};
&vin3a {
status = "okay";
endpoint {
slave-mode;
remote-endpoint = <&ov5640_ep>;
};
};
………………………………………………………………………………………………………………….
root@am57xx-evm:/# dmesg |grep ov5640
[ 3.142750] ov5640 4-003c: GPIO lookup for consumer powerdown
[ 3.142757] ov5640 4-003c: using device tree for GPIO lookup
[ 3.142786] of_get_named_gpiod_flags: parsed 'powerdown-gpios' property of node '/ocp/i2c@4807c000/ov5640@3c[0]' – status (0)
[ 3.142831] ov5640 4-003c: GPIO lookup for consumer reset
[ 3.142837] ov5640 4-003c: using device tree for GPIO lookup
[ 3.142861] of_get_named_gpiod_flags: parsed 'reset-gpios' property of node '/ocp/i2c@4807c000/ov5640@3c[0]' – status (0)
[ 3.142980] ov5640 4-003c: Linked as a consumer to regulator.4
[ 3.148965] ov5640 4-003c: Linked as a consumer to regulator.3
[ 3.227513] ov5640 4-003c: ov5640_read_reg: error: reg=300a
[ 3.233114] ov5640 4-003c: ov5640_check_chip_id: failed to read chip identifier
[ 3.240628] ov5640 4-003c: Dropping the link to regulator.3
[ 3.246314] ov5640: probe of 4-003c failed with error -121
root@am57xx-evm:/#
我的设备数配置有问题吗?TI有没有提供am5728的ov5640设备树配置
Nancy Wang:
参考以下帖子看一下是否有帮助。
e2e.ti.com/…/3271886
,
liqf sky:
这个帖子我看过,用的是ov1063摄像头,也没说他的dts是怎么配置的