Skip to content

Commit 23bb046

Browse files
Alain Volmatkartben
authored andcommitted
shields: st_stm32f4dis_cam: add stm32l4r9i_disco specific overlay
Move the selection of the dma channel and the sensor input clock into a board specific overlay since this differ from a board to another. Signed-off-by: Alain Volmat <[email protected]>
1 parent c4285ef commit 23bb046

File tree

2 files changed

+21
-23
lines changed

2 files changed

+21
-23
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright (c) 2025 STMicroelectronics
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&dma1 {
8+
status = "okay";
9+
};
10+
11+
&dmamux1 {
12+
status = "okay";
13+
};
14+
15+
&mco1 {
16+
clocks = <&rcc STM32_SRC_SYSCLK MCO1_SEL(MCO_SEL_SYSCLK)>;
17+
prescaler = <MCO1_PRE(MCO_PRE_DIV_4)>;
18+
pinctrl-0 = <&rcc_mco_pa8>;
19+
pinctrl-names = "default";
20+
status = "okay";
21+
};

boards/shields/st_stm32f4dis_cam/st_stm32f4dis_cam.overlay

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@
1010
};
1111
};
1212

13-
&dma2 {
14-
status = "okay";
15-
};
16-
17-
&dmamux1 {
18-
status = "okay";
19-
};
20-
2113
&st_cam_i2c {
2214
ov9655: camera@30 {
2315
compatible = "ovti,ov9655";
@@ -32,24 +24,9 @@
3224
};
3325
};
3426

35-
#define MCO1_SEL_SYSCLK 1
36-
37-
#define MCO1_PRE_DIV_4 2
38-
39-
&mco1 {
40-
status = "okay";
41-
clocks = <&rcc STM32_SRC_SYSCLK MCO1_SEL(MCO1_SEL_SYSCLK)>;
42-
prescaler = <MCO1_PRE(MCO1_PRE_DIV_4)>;
43-
pinctrl-0 = <&rcc_mco_pa8>;
44-
pinctrl-names = "default";
45-
};
46-
4727
&st_cam_dvp {
4828
status = "okay";
4929

50-
/* DMA config is already hardcoded within the DCMI driver */
51-
dmas = <&dma2 5 0 0>;
52-
5330
port {
5431
dcmi_ep_in: endpoint {
5532
remote-endpoint-label = "ov9655_ep_out";

0 commit comments

Comments
 (0)