Skip to content

Commit be28d4d

Browse files
bparrotTero Kristo
authored andcommitted
arm64: dts: ti: k3-am654-base-board: Add CSI2 OV5640 camera
Add support for the OV5640 CSI camera: - add the OV5640 nodes - add the CAL node linkage - enable CAL node Signed-off-by: Benoit Parrot <[email protected]> Signed-off-by: Tero Kristo <[email protected]>
1 parent e98a042 commit be28d4d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

arch/arm64/boot/dts/ti/k3-am654-base-board.dts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@
5353
gpios = <&wkup_gpio0 27 GPIO_ACTIVE_LOW>;
5454
};
5555
};
56+
57+
clk_ov5640_fixed: clock {
58+
compatible = "fixed-clock";
59+
#clock-cells = <0>;
60+
clock-frequency = <24000000>;
61+
};
5662
};
5763

5864
&wkup_pmx0 {
@@ -213,6 +219,23 @@
213219
pinctrl-names = "default";
214220
pinctrl-0 = <&main_i2c1_pins_default>;
215221
clock-frequency = <400000>;
222+
223+
ov5640@3c {
224+
compatible = "ovti,ov5640";
225+
reg = <0x3c>;
226+
227+
clocks = <&clk_ov5640_fixed>;
228+
clock-names = "xclk";
229+
230+
port {
231+
csi2_cam0: endpoint {
232+
remote-endpoint = <&csi2_phy0>;
233+
clock-lanes = <0>;
234+
data-lanes = <1 2>;
235+
};
236+
};
237+
};
238+
216239
};
217240

218241
&main_i2c2 {
@@ -388,3 +411,11 @@
388411
#size-cells = <1>;
389412
};
390413
};
414+
415+
&csi2_0 {
416+
csi2_phy0: endpoint {
417+
remote-endpoint = <&csi2_cam0>;
418+
clock-lanes = <0>;
419+
data-lanes = <1 2>;
420+
};
421+
};

0 commit comments

Comments
 (0)