diff --git a/Documentation/DocBook/media/v4l/vidioc-dqevent.xml b/Documentation/DocBook/media/v4l/vidioc-dqevent.xml
index 820f86e8744b..f3767fb81eef 100644
--- a/Documentation/DocBook/media/v4l/vidioc-dqevent.xml
+++ b/Documentation/DocBook/media/v4l/vidioc-dqevent.xml
@@ -92,6 +92,12 @@
frame_sync
Event data for event V4L2_EVENT_FRAME_SYNC.
+
+
+ &v4l2-event-motion-det;
+ motion_det
+ Event data for event V4L2_EVENT_MOTION_DET.
+
__u8
@@ -258,6 +264,44 @@
+
+ struct v4l2_event_motion_det
+
+ &cs-str;
+
+
+ __u32
+ flags
+
+ Currently only one flag is available: if V4L2_EVENT_MD_FL_HAVE_FRAME_SEQ
+ is set, then the frame_sequence field is valid,
+ otherwise that field should be ignored.
+
+
+
+ __u32
+ frame_sequence
+
+ The sequence number of the frame being received. Only valid if the
+ V4L2_EVENT_MD_FL_HAVE_FRAME_SEQ flag was set.
+
+
+
+ __u32
+ region_mask
+
+ The bitmask of the regions that reported motion. There is at least one
+ region. If this field is 0, then no motion was detected at all.
+ If there is no V4L2_CID_DETECT_MD_REGION_GRID control
+ (see ) to assign a different region
+ to each cell in the motion detection grid, then that all cells
+ are automatically assigned to the default region 0.
+
+
+
+
+
+
Changes
diff --git a/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml b/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml
index 17efa870d4d2..9f6095608837 100644
--- a/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml
+++ b/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml
@@ -174,6 +174,14 @@
will have the ORed value of all the events generated.
+
+ V4L2_EVENT_MOTION_DET
+ 5
+
+ Triggered whenever the motion detection state for one or more of the regions
+ changes. This event has a &v4l2-event-motion-det; associated with it.
+
+
V4L2_EVENT_PRIVATE_START
0x08000000