Skip to content

Commit 114e5ec

Browse files
author
Alain Volmat
committed
dts: bindings: stm32-dcmi: use endpoint based properties
Update the bindings of the stm32-dcmi driver rely on properties described within the endpoints and already detailed within the video-interfaces.yaml. With that, several properties located at the node root are now moved into the port / endpoint: sensor -> endpoint: remote-endpoint-label vsync-active -> endpoint: vsync-active hsync-active -> endpoint: hsync-active pixelclk-active -> endpoint: pclk-sample bus-width -> endpoint: bus-width Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
1 parent c674723 commit 114e5ec

File tree

1 file changed

+9
-65
lines changed

1 file changed

+9
-65
lines changed

dts/bindings/video/st,stm32-dcmi.yaml

Lines changed: 9 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,21 @@ description: |
1111
1212
&dcmi {
1313
status = "okay";
14-
sensor = <&ov2640>;
1514
pinctrl-0 = <&dcmi_hsync_pa4 &dcmi_pixclk_pa6 &dcmi_vsync_pb7
1615
&dcmi_d0_pc6 &dcmi_d1_pc7 &dcmi_d2_pe0 &dcmi_d3_pe1
1716
&dcmi_d4_pe4 &dcmi_d5_pd3 &dcmi_d6_pe5 &dcmi_d7_pe6>;
1817
pinctrl-names = "default";
19-
bus-width = <8>;
20-
hsync-active = <0>;
21-
vsync-active = <0>;
22-
pixelclk-active = <1>;
23-
capture-rate = <1>;
2418
dmas = <&dma1 0 75 (STM32_DMA_PERIPH_TO_MEMORY | STM32_DMA_PERIPH_NO_INC |
2519
STM32_DMA_MEM_INC | STM32_DMA_PERIPH_8BITS | STM32_DMA_MEM_32BITS |
2620
STM32_DMA_PRIORITY_HIGH) STM32_DMA_FIFO_1_4>;
2721
2822
port {
2923
dcmi_ep_in: endpoint {
30-
remote-endpoint = <&ov2640_ep_out>;
24+
remote-endpoint-label = "ov2640_ep_out";
25+
bus-width = <8>;
26+
hsync-active = <0>;
27+
vsync-active = <0>;
28+
pclk-sample = <1>;
3129
};
3230
};
3331
};
@@ -40,64 +38,6 @@ properties:
4038
interrupts:
4139
required: true
4240

43-
sensor:
44-
required: true
45-
type: phandle
46-
description: phandle of connected sensor device
47-
48-
bus-width:
49-
type: int
50-
required: true
51-
enum:
52-
- 8
53-
- 10
54-
- 12
55-
- 14
56-
default: 8
57-
description: |
58-
Number of data lines actively used, valid for the parallel busses.
59-
60-
hsync-active:
61-
type: int
62-
required: true
63-
enum:
64-
- 0
65-
- 1
66-
description: |
67-
Polarity of horizontal synchronization (DCMI_HSYNC_Polarity).
68-
0 Horizontal synchronization active Low.
69-
1 Horizontal synchronization active High.
70-
71-
For example, if DCMI_HSYNC_Polarity is programmed active high:
72-
When HSYNC is low, the data is valid.
73-
When HSYNC is high, the data is not valid (horizontal blanking).
74-
75-
vsync-active:
76-
type: int
77-
required: true
78-
enum:
79-
- 0
80-
- 1
81-
description: |
82-
Polarity of vertical synchronization (DCMI_VSYNC_Polarity).
83-
0 Vertical synchronization active Low.
84-
1 Vertical synchronization active High.
85-
86-
For example, if DCMI_VSYNC_Polarity is programmed active high:
87-
When VSYNC is low, the data is valid.
88-
When VSYNC is high, the data is not valid (vertical blanking).
89-
90-
pixelclk-active:
91-
type: int
92-
required: true
93-
enum:
94-
- 0
95-
- 1
96-
description: |
97-
Polarity of pixel clock (DCMI_PIXCK_Polarity).
98-
0 Pixel clock active on Falling edge.
99-
1 Pixel clock active on Rising edge.
100-
10141
capture-rate:
10242
type: int
10343
enum:
@@ -122,3 +62,7 @@ properties:
12262
dmas = <&dma1 0 75 (STM32_DMA_PERIPH_TO_MEMORY | STM32_DMA_PERIPH_NO_INC |
12363
STM32_DMA_MEM_INC | STM32_DMA_PERIPH_8BITS | STM32_DMA_MEM_32BITS |
12464
STM32_DMA_PRIORITY_HIGH) STM32_DMA_FIFO_1_4>;
65+
66+
child-binding:
67+
child-binding:
68+
include: video-interfaces.yaml

0 commit comments

Comments
 (0)