DT bindings for subdevices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

This is my first step towards DT support for media, Question might be
bit amateur :)

In the video pipeline there will be external devices (decoders/camera)
connected via
i2c, spi, csi. This sub-devices take platform data. So question is
moving ahead and
adding DT support for this subdevices how should this platform data be
passed through.
Should it be different properties for different devices.

For example the mt9t001 sensor takes following platform data:
struct mt9t001_platform_data {
	unsigned int clk_pol:1;
	unsigned int ext_clk;
};
similarly mt9p031 takes following platform data:

struct mt9p031_platform_data {
	int (*set_xclk)(struct v4l2_subdev *subdev, int hz);
	int reset;
	int ext_freq;
	int target_freq;
};

should this all be individual properties ?

Regards,
--Prabhakar
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux