Skip to content

Commit 9b04fcc

Browse files
Jacopo Mondimchehab
authored andcommitted
media: v4l2-fwnode: parse 'data-enable-active' prop
Parse the newly defined 'data-enable-active' property in parallel endpoint parsing function. Signed-off-by: Jacopo Mondi <[email protected]> Reviewed-by: Niklas Söderlund <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 75571ee commit 9b04fcc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

drivers/media/v4l2-core/v4l2-fwnode.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ static void v4l2_fwnode_endpoint_parse_parallel_bus(
154154
flags |= v ? V4L2_MBUS_VIDEO_SOG_ACTIVE_HIGH :
155155
V4L2_MBUS_VIDEO_SOG_ACTIVE_LOW;
156156

157+
if (!fwnode_property_read_u32(fwnode, "data-enable-active", &v))
158+
flags |= v ? V4L2_MBUS_DATA_ENABLE_HIGH :
159+
V4L2_MBUS_DATA_ENABLE_LOW;
160+
157161
bus->flags = flags;
158162

159163
}

include/media/v4l2-mediabus.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
/* Active state of Sync-on-green (SoG) signal, 0/1 for LOW/HIGH respectively. */
4646
#define V4L2_MBUS_VIDEO_SOG_ACTIVE_HIGH BIT(12)
4747
#define V4L2_MBUS_VIDEO_SOG_ACTIVE_LOW BIT(13)
48+
#define V4L2_MBUS_DATA_ENABLE_HIGH BIT(14)
49+
#define V4L2_MBUS_DATA_ENABLE_LOW BIT(15)
4850

4951
/* Serial flags */
5052
/* How many lanes the client can use */

0 commit comments

Comments
 (0)