Skip to content

Commit e5beedb

Browse files
kartbenfabiobaltieri
authored andcommitted
dts: bindings: video: move DTS examples to examples: section
Use the new `examples` property to provide example usage in a more structured way. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent 57170f2 commit e5beedb

File tree

4 files changed

+75
-75
lines changed

4 files changed

+75
-75
lines changed

‎dts/bindings/video/himax,hm01b0.yaml‎

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,6 @@
77
description: |
88
Himax HM01B0 video sensor.
99
10-
Example of node configuration:
11-
12-
&i2c0 {
13-
status = "okay";
14-
hm01b0: hm01b0@24 {
15-
compatible = "himax,hm01b0";
16-
reg = <0x24>;
17-
status = "okay";
18-
data-bits = <0x4>;
19-
port {
20-
hm01b0_ep_out: endpoint {
21-
remote-endpoint-label = "video_pio_dma_ep_in";
22-
};
23-
};
24-
};
25-
};
26-
2710
compatible: "himax,hm01b0"
2811
properties:
2912
data-bits:
@@ -39,3 +22,20 @@ include: i2c-device.yaml
3922
child-binding:
4023
child-binding:
4124
include: video-interfaces.yaml
25+
26+
examples:
27+
- |
28+
&i2c0 {
29+
status = "okay";
30+
hm01b0: hm01b0@24 {
31+
compatible = "himax,hm01b0";
32+
reg = <0x24>;
33+
status = "okay";
34+
data-bits = <0x4>;
35+
port {
36+
hm01b0_ep_out: endpoint {
37+
remote-endpoint-label = "video_pio_dma_ep_in";
38+
};
39+
};
40+
};
41+
};

‎dts/bindings/video/himax,hm0360.yaml‎

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,6 @@
77
description: |
88
HM0360 CMOS video sensor.
99
10-
Example of node configuration:
11-
12-
&i2c4
13-
{
14-
status = "okay";
15-
hm0360: hm0360@24{
16-
compatible = "himax,hm0360";
17-
reg = <0x24>;
18-
status = "okay";
19-
reset-gpios = <&gpiod 4 GPIO_ACTIVE_LOW>;
20-
pwdn-gpios = <&gpioa 1 GPIO_ACTIVE_LOW>;
21-
port {
22-
hm0360_ep_out: endpoint {
23-
remote-endpoint-label = "video_pio_dma_ep_in";
24-
};
25-
};
26-
};
27-
};
28-
2910
compatible: "himax,hm0360"
3011

3112
include: i2c-device.yaml
@@ -45,3 +26,22 @@ properties:
4526
child-binding:
4627
child-binding:
4728
include: video-interfaces.yaml
29+
30+
examples:
31+
- |
32+
&i2c4
33+
{
34+
status = "okay";
35+
hm0360: hm0360@24{
36+
compatible = "himax,hm0360";
37+
reg = <0x24>;
38+
status = "okay";
39+
reset-gpios = <&gpiod 4 GPIO_ACTIVE_LOW>;
40+
pwdn-gpios = <&gpioa 1 GPIO_ACTIVE_LOW>;
41+
port {
42+
hm0360_ep_out: endpoint {
43+
remote-endpoint-label = "video_pio_dma_ep_in";
44+
};
45+
};
46+
};
47+
};

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,6 @@ description: |
1010
The STM32 DCMI (Digital Camera Memory Interface) allows
1111
capturing data via a parallel interface (DVP).
1212
13-
Example of node configuration at board level:
14-
15-
&dcmi {
16-
status = "okay";
17-
pinctrl-0 = <&dcmi_hsync_pa4 &dcmi_pixclk_pa6 &dcmi_vsync_pb7
18-
&dcmi_d0_pc6 &dcmi_d1_pc7 &dcmi_d2_pe0 &dcmi_d3_pe1
19-
&dcmi_d4_pe4 &dcmi_d5_pd3 &dcmi_d6_pe5 &dcmi_d7_pe6>;
20-
pinctrl-names = "default";
21-
22-
port {
23-
dcmi_ep_in: endpoint {
24-
remote-endpoint-label = "ov2640_ep_out";
25-
bus-width = <8>;
26-
hsync-active = <0>;
27-
vsync-active = <0>;
28-
pclk-sample = <1>;
29-
};
30-
};
31-
};
32-
3313
compatible: "st,stm32-dcmi"
3414

3515
include: [base.yaml, pinctrl-device.yaml]
@@ -52,3 +32,23 @@ properties:
5232
child-binding:
5333
child-binding:
5434
include: video-interfaces.yaml
35+
36+
examples:
37+
- |
38+
&dcmi {
39+
status = "okay";
40+
pinctrl-0 = <&dcmi_hsync_pa4 &dcmi_pixclk_pa6 &dcmi_vsync_pb7
41+
&dcmi_d0_pc6 &dcmi_d1_pc7 &dcmi_d2_pe0 &dcmi_d3_pe1
42+
&dcmi_d4_pe4 &dcmi_d5_pd3 &dcmi_d6_pe5 &dcmi_d7_pe6>;
43+
pinctrl-names = "default";
44+
45+
port {
46+
dcmi_ep_in: endpoint {
47+
remote-endpoint-label = "ov2640_ep_out";
48+
bus-width = <8>;
49+
hsync-active = <0>;
50+
vsync-active = <0>;
51+
pclk-sample = <1>;
52+
};
53+
};
54+
};

‎dts/bindings/video/st,stm32-dcmipp.yaml‎

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,6 @@ description: |
1313
performing frame operations, including one pipeline with ISP functionality
1414
enabled.
1515
16-
Example of node configuration at board level:
17-
18-
&dcmipp {
19-
status = "okay";
20-
21-
ports {
22-
#address-cells = <1>;
23-
#size-cells = <0>;
24-
25-
port@0 {
26-
reg = <0>;
27-
dcmipp_ep_in: endpoint {
28-
remote-endpoint-label = "imx335_ep_out";
29-
data-lanes = <1 2>;
30-
};
31-
};
32-
};
33-
};
34-
3516
compatible: "st,stm32-dcmipp"
3617

3718
include: [base.yaml, pinctrl-device.yaml, reset-device.yaml]
@@ -63,3 +44,22 @@ child-binding:
6344
properties:
6445
bus-type:
6546
required: true
47+
48+
examples:
49+
- |
50+
&dcmipp {
51+
status = "okay";
52+
53+
ports {
54+
#address-cells = <1>;
55+
#size-cells = <0>;
56+
57+
port@0 {
58+
reg = <0>;
59+
dcmipp_ep_in: endpoint {
60+
remote-endpoint-label = "imx335_ep_out";
61+
data-lanes = <1 2>;
62+
};
63+
};
64+
};
65+
};

0 commit comments

Comments
 (0)