Other Parts Discussed in Thread: TCA6408
Tool/software:
Hi, TI expert,
I set the camera device camera@6c in main_i2c5, but the i2c always not be detected by linux tool of i2cdetect command.
Please help to check why i2c-5 not can be detected. Thanks your help.
below is debug information:
root@j721s2-evm:/proc/device-tree/bus@100000/i2c@2050000/camera@6c# i2cdetect -l
i2c-0 i2c OMAP I2C adapter I2C adapter
i2c-1 i2c OMAP I2C adapter I2C adapter
root@j721s2-evm:/proc/device-tree/bus@100000/i2c@2050000/camera@6c# dmesg | grep i2c
[ 0.802320] i2c_dev: i2c /dev entries driver
[ 0.982021] omap_i2c 42120000.i2c: bus 0 rev0.12 at 400 kHz
[ 1.046618] omap_i2c 2000000.i2c: bus 1 rev0.12 at 400 kHz
root@j721s2-evm:/proc/device-tree/bus@100000/i2c@2050000# ls
'#address-cells' '#size-cells' camera@6c clock-frequency clock-names clocks compatible gpio@20 interrupts name phandle pinctrl-0 pinctrl-names power-domains reg status
no change the definition in k3-j721s2-main.dtsi:
main_i2c5: i2c@2050000 {
compatible = "ti,j721e-i2c", "ti,omap4-i2c";
reg = <0x00 0x02050000 0x00 0x100>;
interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
clocks = <&k3_clks 219 1>;
clock-names = "fck";
power-domains = <&k3_pds 219 TI_SCI_PD_EXCLUSIVE>;
status = "disabled";
};
add caemra@6c configure in k3-j721s2-common-proc-board.dts
&{/} {
clk_ox08b10_fixed: ox08b10-inck {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <24000000>;
};
};
&main_i2c5 {
pinctrl-names = "default";
pinctrl-0 = <&main_i2c5_pins_default>;
clock-frequency = <400000>;
status = "okay";
ox08b10: camera@6c {
compatible = "ovti,ox08b";
reg = <0x6c>;
clocks = <&clk_ox08b10_fixed>;
clock-names = "inck";
port {
csi2_cam0: endpoint {
remote-endpoint = <&csi2rx0_in_sensor>;
link-frequencies = /bits/ 64 <480000000>;
clock-lanes = <0>;
data-lanes = <1 2 3 4>;
};
};
};
exp5: gpio@20 {
compatible = "ti,tca6408";
reg = <0x20>;
gpio-controller;
#gpio-cells = <2>;
gpio-line-names = "CSI2_EXP_RSTZ", "CSI2_EXP_A_GPIO0",
"CSI2_EXP_A_GPIO1", "CSI2_EXP_A_GPIO2",
"CSI2_EXP_B_GPIO1", "CSI2_EXP_B_GPIO2",
"CSI2_EXP_B_GPIO3", "CSI2_EXP_B_GPIO4";
};
};
&csi0_port0 {
status = "okay";
csi2rx0_in_sensor: endpoint {
remote-endpoint = <&csi2_cam0>;
bus-type = <4>; /* CSI2 DPHY */
clock-lanes = <0>;
data-lanes = <1 2>;
};
};