Dear sirs,
I want to use the gc0308 and hm5065 cameras selectively.
(It is not possible to mount 2 cameras at the same time)
How do I modify dts for this problem?
Below is the dts I'm working on and it's not working the way I want it to.
Any help would be appreciated.
&csi {
status = "okay";
port {
gc0308_csi1_ep: endpoint2 {
remote-endpoint = <&gc0308_ep>;
};
hm5065_csi1_ep: endpoint1 {
remote-endpoint = <&hm5065_ep>;
};
};
};
&i2c4 {
clock_frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c4>;
status = "okay";
hm5065: hm5065@1f {
compatible = "himax,hm5065";
reg = <0x1f>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_csi1>;
clocks = <&clks IMX6UL_CLK_CSI>;
clock-names = "csi_mclk";
pwn-gpios = <&gpio1 18 1>;
rst-gpios = <&gpio1 30 0>;
csi_id = <0>;
mclk = <24000000>;
mclk_source = <0>;
status = "okay";
port {
hm5065_ep: endpoint1 {
remote-endpoint = <&hm5065_csi1_ep>;
};
};
};
gc0308: gc0308@21 {
compatible = "galaxycore,gc0308";
reg = <0x21>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_csi1>;
clocks = <&clks IMX6UL_CLK_CSI>;
clock-names = "csi_mclk";
pwn-gpios = <&gpio1 18 1>; /* 1: standby */
rst-gpios = <&gpio1 30 0>; /* 0: chip reset */
csi_id = <0>;
mclk = <24000000>;
mclk_source = <0>;
status = "okay";
port {
gc0308_ep: endpoint2 {
remote-endpoint = <&gc0308_csi1_ep>;
};
};
};
};
Best Regards,
Sungkyun Ko
Hello,
You could not have two cameras on MX6ULL, and you need the driver for each camera to be accepted as your device tree.
Regards