linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* soc_camera and device-tree
@ 2014-06-14 20:30 Robert Jarzmik
  2014-06-14 20:58 ` Guennadi Liakhovetski
  2014-06-15 19:19 ` Ben Dooks
  0 siblings, 2 replies; 6+ messages in thread
From: Robert Jarzmik @ 2014-06-14 20:30 UTC (permalink / raw)
  To: Guennadi Liakhovetski; +Cc: linux-media

Hi Guennadi,

I'm slowly converting all of my drivers to device-tree.
In the process, I met ... soc_camera.

I converted mt9m111.c and pxa_camera.c, but now I need the linking
soc_camera. And I don't have a clear idea on how it should be done.

I was thinking of having soc_camera_pdrv_probe() changed, to handle
device-tree. What bothers me a bit is that amongst the needed data for me are
the bus_id and a soc_camera_subdev_desc. I was thinking that this could be
expressed in device-tree like :
	soc_camera {
		icd = <&mt9m111>;
        	ici = <&pxa_camera>;
        }
...
	pxai2c1: i2c@40301680 {
		status = "okay";

		mt9m111@5d {
			compatible = "micron,mt9m111";
			reg = <0x5d>;
		};
	};

	pxa_camera {
		compatible = "mrvl,pxa_camera";
		mclk_10khz = <5000>;
		flags = <0xc9>;
	};

Do you have any hints and advices to help me ?

Cheers.

-- 
Robert

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

end of thread, other threads:[~2014-06-15 19:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-14 20:30 soc_camera and device-tree Robert Jarzmik
2014-06-14 20:58 ` Guennadi Liakhovetski
2014-06-15 14:02   ` Robert Jarzmik
2014-06-15 19:20     ` Guennadi Liakhovetski
2014-06-15 19:59   ` Ben Dooks
2014-06-15 19:19 ` Ben Dooks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).