Thread (53 messages) 53 messages, 5 authors, 2012-08-19

Re: [RFC/PATCH 05/13] media: s5p-fimc: Add device tree support for FIMC devices

From: Guennadi Liakhovetski <hidden>
Date: 2012-07-18 08:17:09
Also in: linux-media, linux-samsung-soc

On Tue, 17 Jul 2012, Sylwester Nawrocki wrote:
On 07/16/2012 11:13 AM, Guennadi Liakhovetski wrote:
quoted
On Fri, 25 May 2012, Sylwester Nawrocki wrote:
quoted
Signed-off-by: Sylwester Nawrocki<s.nawrocki@samsung.com>
Signed-off-by: Karol Lewandowski<redacted>
Signed-off-by: Kyungmin Park<kyungmin.park@samsung.com>
 From the documentation below I think, I understand what it does, but why
is it needed? It doesn't describe your video subsystem topology, right?
How various subdevices are connected. It just lists them all in one
node... A description for this patch would be very welcome IMHO and,
maybe, such a node can be completely avoided?
Sorry, I'll provide better description in next iteration.
It's true it doesn't describe the topology in detail, as there are
multiple one-to many possible connections between sub-devices. An exact
topology is coded in the driver and can be changed through MC API.
The "samsung,camif-mux-id" and "video-bus-type" properties at "sensor" 
nodes just specify to which physical SoC camera port an image sensor
is connected.
So, don't you think my media-link child nodes are a good solution for 
this?
Originally the all camera devices were supposed to land under common 
'camera' node. And a top level driver would be registering all platform 
devices. With this approach it would be possible to better control PM 
handling (which currently depends on an order of registering devices to 
the driver core). But then we discovered that we couldn't use OF_DEV_AUXDATA 
in such case, which was required to preserve platform device names, in order 
for the clock API to work. So I've moved some sub-devices out of 'camera' 
node and have added only a list of phandles to them in that node. This is 
rather a cheap workaround..

I think all camera sub-devices should be placed under common node, as there
are some properties that don't belong to any sub-node: GPIO config, clocks,
to name a few. Of course simpler devices might not need such a composite 
node. I think we can treat the sub-device interdependencies as an issue
separate from a need for a common node.

If some devices need to reflect the topology better, we probably could
include in some nodes (a list of) phandles to other nodes. This could ease
parsing the topology at the drivers, by using existing OF infrastructure.
Ok, I think you have some good ideas in your RFC's, an interesting 
question now is - how to proceed. Do you think we'd be able to work out a 
combined RFC? Or would you prefer to make two versions and then see what 
others think? In either case it would be nice, I think, if you could try 
to separate what you see as common V4L DT bindings, then we could discuss 
that separately. Whereas what you think is private to your hardware, we 
can also look at for common ideas, or maybe even some of those properties 
we'll wake to make common too.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help