Re: [RFC PATCH] [media]: of: move graph helpers from drivers/media/v4l2-core to drivers/of
From: Grant Likely <hidden>
Date: 2014-03-10 14:41:09
Also in:
linux-media, lkml
From: Grant Likely <hidden>
Date: 2014-03-10 14:41:09
Also in:
linux-media, lkml
On Mon, 10 Mar 2014 12:18:20 +0200, Tomi Valkeinen [off-list ref] wrote:
On 08/03/14 13:41, Grant Likely wrote:quoted
quoted
Ok. If we go for single directional link, the question is then: which way? And is the direction different for display and camera, which are kind of reflections of each other?In general I would recommend choosing whichever device you would sensibly think of as a master. In the camera case I would choose the camera controller node instead of the camera itself, and in the display case I would choose the display controller instead of the panel. The binding author needs to choose what she things makes the most sense, but drivers can still use if it it turns out to be 'backwards'I would perhaps choose the same approach, but at the same time I think it's all but clear. The display controller doesn't control the panel any more than a DMA controller controls, say, the display controller.
In a sense it doesn't actually matter. You sensibly want to choose the most likely direction that drivers would go looking for a device it depends on, but it can be matched up at runtime regardless of the direction chosen by the binding. g. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html