Skip to content

Commit 4db87dc

Browse files
shravanI35088ConchuOD
authored andcommitted
pic64gx_curiosity_kit: add new media dt-overlay file
Add support for capture pipeline with ov5647 sensor Signed-off-by: Shravan Chippa <[email protected]> Signed-off-by: Conor Dooley <[email protected]>
1 parent 6dc54b8 commit 4db87dc

File tree

2 files changed

+115
-0
lines changed

2 files changed

+115
-0
lines changed

pic64gx_curiosity_kit.its

+17
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@
4949
algo = "sha256";
5050
};
5151
};
52+
53+
fdt_ov5647 {
54+
description = "Device Tree blob for ov5647";
55+
data = /incbin/("./pic64gx_curiosity_kit/pic64gx_curiosity_kit_capture_pipeline_with_ov5647.dtbo");
56+
type = "flat_dt";
57+
arch = "riscv";
58+
compression = "none";
59+
load = <0x8a0d0000>;
60+
hash-1 {
61+
algo = "sha256";
62+
};
63+
};
5264
};
5365

5466
configurations {
@@ -68,6 +80,11 @@
6880
description = "FDT overlay blob for AMP";
6981
fdt = "fdt_amp";
7082
};
83+
84+
ov5647 {
85+
description = "FDT overlay blob for ov5647";
86+
fdt = "fdt_ov5647";
87+
};
7188
};
7289
};
7390

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* Device Tree Overlay Example for media capture pipeline
4+
*
5+
* Copyright (C) 2025 Microchip Technology Inc. and its subsidiaries.
6+
* Author: Shravan Chippa <[email protected]>
7+
*
8+
*/
9+
10+
/dts-v1/;
11+
/plugin/;
12+
13+
#include <dt-bindings/gpio/gpio.h>
14+
15+
/ {
16+
compatible = "microchip,pic64gx-curiosity-kit", "microchip,pic64gx";
17+
};
18+
19+
&{/} {
20+
ov5647_clk: ov5647-clk {
21+
compatible = "fixed-clock";
22+
#clock-cells = <0>;
23+
clock-frequency = <25000000>;
24+
};
25+
26+
ov5647_gate_clock: ov5647-gate-clock {
27+
compatible = "gpio-gate-clock";
28+
clocks = <&ov5647_clk>;
29+
#clock-cells = <0>;
30+
enable-gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
31+
status = "okay";
32+
};
33+
};
34+
35+
&mcsi2rx {
36+
37+
status = "okay";
38+
39+
40+
ports {
41+
#address-cells = <1>;
42+
#size-cells = <0>;
43+
44+
port@0 {
45+
reg = <0>;
46+
csi2_in: endpoint {
47+
data-lanes = <1 2>;
48+
remote-endpoint = <&ov5647_ep_cam>;
49+
};
50+
};
51+
};
52+
};
53+
54+
&i2c1 {
55+
#address-cells = <1>;
56+
#size-cells = <0>;
57+
58+
ov5647: sensor@36 {
59+
compatible = "ovti,ov5647";
60+
reg = <0x36>;
61+
pwdn-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
62+
clocks = <&ov5647_gate_clock>;
63+
assigned-clocks = <&ov5647_gate_clock>;
64+
status = "okay";
65+
66+
port {
67+
ov5647_ep_cam: endpoint {
68+
remote-endpoint = <&csi2_in>;
69+
data-lanes = <1 2>;
70+
link-frequencies = /bits/ 64 <450000000>;
71+
};
72+
};
73+
};
74+
};
75+
76+
&mchp_vdma_cam {
77+
status = "okay";
78+
};
79+
80+
&rgbtoyuv422 {
81+
status = "okay";
82+
};
83+
84+
&rgb_scaler {
85+
status = "okay";
86+
};
87+
88+
&image_enhancement {
89+
status = "okay";
90+
};
91+
92+
&white_balance {
93+
status = "okay";
94+
};
95+
96+
&mono_to_rgb {
97+
status = "okay";
98+
};

0 commit comments

Comments
 (0)