public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* DT bindings for subdevices
@ 2013-01-02  9:17 Prabhakar Lad
  2013-01-02 10:19 ` Guennadi Liakhovetski
  0 siblings, 1 reply; 6+ messages in thread
From: Prabhakar Lad @ 2013-01-02  9:17 UTC (permalink / raw)
  To: linux-media
  Cc: Guennadi Liakhovetski, Sylwester Nawrocki, Laurent Pinchart,
	Hans Verkuil, Sakari Ailus

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-01-04 13:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-02  9:17 DT bindings for subdevices Prabhakar Lad
2013-01-02 10:19 ` Guennadi Liakhovetski
2013-01-03  5:00   ` Prabhakar Lad
2013-01-03 10:46   ` Laurent Pinchart
2013-01-04 13:04   ` Prabhakar Lad
2013-01-04 13:21     ` Guennadi Liakhovetski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox