Skip to content

Commit d37590f

Browse files
KhanhNguyen-RVChenrikbrixandersen
authored andcommitted
boards: shields: Support OV7670 DVP 20-pin shield on EK-RA8D1 board
Support OV7670 DVP 20-pin shield on the EK-RA8D1 board Signed-off-by: Khanh Nguyen <[email protected]>
1 parent 9d83089 commit d37590f

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&pwm3 {
8+
status = "okay";
9+
};
10+
11+
&cam_clock {
12+
status = "okay";
13+
};
14+
15+
&dvp_20pin_i2c {
16+
clock-frequency = <DT_FREQ_K(400)>;
17+
};
18+
19+
&dvp_20pin_interface {
20+
swap-8bits;
21+
swap-16bits;
22+
swap-32bits;
23+
24+
port {
25+
dvp_20pin_ep_in: endpoint {
26+
hsync-sample = <1>;
27+
vsync-sample = <1>;
28+
};
29+
};
30+
};

boards/shields/dvp_20pin_ov7670/dvp_20pin_ov7670.overlay

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@
1212
};
1313

1414
&dvp_20pin_i2c {
15+
status = "okay";
16+
1517
ov7670: ov7670@21 {
1618
compatible = "ovti,ov7670";
1719
reg = <0x21>;
1820
reset-gpios = <&dvp_20pin_connector DVP_20PIN_PEN GPIO_ACTIVE_HIGH>;
1921
pwdn-gpios = <&dvp_20pin_connector DVP_20PIN_PDN GPIO_ACTIVE_HIGH>;
22+
status = "okay";
2023

2124
port {
2225
ov7670_ep_out: endpoint {
@@ -32,6 +35,10 @@
3235
port {
3336
dvp_20pin_ep_in: endpoint {
3437
remote-endpoint-label = "ov7670_ep_out";
38+
bus-width = <8>;
39+
hsync-active = <1>;
40+
vsync-active = <1>;
41+
pclk-sample = <1>;
3542
};
3643
};
3744
};

0 commit comments

Comments
 (0)