[RFC v2 PATCH] mipi-dsi-bus: add MIPI DSI bus support

2013-12-13 Thread Tomi Valkeinen
On 2013-12-13 14:06, Thierry Reding wrote: > On Fri, Dec 13, 2013 at 01:29:17PM +0200, Tomi Valkeinen wrote: >> On 2013-12-13 13:22, Andrzej Hajda wrote: >>> On 12/12/2013 01:19 PM, Thierry Reding wrote: On Tue, Dec 10, 2013 at 11:19:54AM +0200, Tomi Valkeinen wrote: > On 2013-12-09

[RFC v2 PATCH] mipi-dsi-bus: add MIPI DSI bus support

2013-12-13 Thread Tomi Valkeinen
On 2013-12-13 13:22, Andrzej Hajda wrote: > On 12/12/2013 01:19 PM, Thierry Reding wrote: >> On Tue, Dec 10, 2013 at 11:19:54AM +0200, Tomi Valkeinen wrote: >>> On 2013-12-09 18:10, Thierry Reding wrote: >>> >>> Btw, about single linux device handling multiple VC IDs: I noticed that >>> the DSI

[RFC v2 PATCH] mipi-dsi-bus: add MIPI DSI bus support

2013-12-13 Thread Tomi Valkeinen
Hi, On 2013-12-12 14:19, Thierry Reding wrote: > In that case I think maybe a better thing to do would be to dynamically > assign the VC ID's perhaps using some enumeration algorithm. Whether or not we can configure the VC IDs depends on the HW in question. Some allow setting VC ID, or the

[RFC v2 PATCH] mipi-dsi-bus: add MIPI DSI bus support

2013-12-13 Thread Thierry Reding
On Fri, Dec 13, 2013 at 01:29:17PM +0200, Tomi Valkeinen wrote: > On 2013-12-13 13:22, Andrzej Hajda wrote: > > On 12/12/2013 01:19 PM, Thierry Reding wrote: > >> On Tue, Dec 10, 2013 at 11:19:54AM +0200, Tomi Valkeinen wrote: > >>> On 2013-12-09 18:10, Thierry Reding wrote: > >>> > >>> Btw, about

[RFC v2 PATCH] mipi-dsi-bus: add MIPI DSI bus support

2013-12-13 Thread Andrzej Hajda
On 12/12/2013 01:19 PM, Thierry Reding wrote: > On Tue, Dec 10, 2013 at 11:19:54AM +0200, Tomi Valkeinen wrote: >> On 2013-12-09 18:10, Thierry Reding wrote: >> >> Btw, about single linux device handling multiple VC IDs: I noticed that >> the DSI spec has an example, in which a DSI peripheral

[RFC v2 PATCH] mipi-dsi-bus: add MIPI DSI bus support

2013-12-12 Thread Thierry Reding
On Tue, Dec 10, 2013 at 11:19:54AM +0200, Tomi Valkeinen wrote: > On 2013-12-09 18:10, Thierry Reding wrote: > > Btw, about single linux device handling multiple VC IDs: I noticed that > the DSI spec has an example, in which a DSI peripheral receives > interlaced video, and the video packets

[RFC v2 PATCH] mipi-dsi-bus: add MIPI DSI bus support

2013-12-10 Thread Tomi Valkeinen
On 2013-12-09 18:10, Thierry Reding wrote: Btw, about single linux device handling multiple VC IDs: I noticed that the DSI spec has an example, in which a DSI peripheral receives interlaced video, and the video packets containing even field have VC ID 0 and packets for odd field have VC ID 1. I'm

[RFC v2 PATCH] mipi-dsi-bus: add MIPI DSI bus support

2013-12-09 Thread Thierry Reding
On Mon, Dec 09, 2013 at 05:05:20PM +0200, Tomi Valkeinen wrote: > On 2013-12-09 15:10, Thierry Reding wrote: [...] > > But even if you have a tree of one-to-one links, you still need some way > > to address the individual nodes in the tree. The VC ID is the only way > > by which you can address a

[RFC v2 PATCH] mipi-dsi-bus: add MIPI DSI bus support

2013-12-09 Thread Tomi Valkeinen
On 2013-12-09 15:10, Thierry Reding wrote: >> No idea. But I have worked with a device, that used VC0 for the device's >> configuration registers, VC1 for buffer commands (the device had a >> framebuffer), VC2 and VC3 for panels connected to that device. > > Well, VC2 and VC3 certainly sound

[RFC v2 PATCH] mipi-dsi-bus: add MIPI DSI bus support

2013-12-09 Thread Thierry Reding
On Mon, Dec 09, 2013 at 01:34:06PM +0200, Tomi Valkeinen wrote: > On 2013-12-06 14:54, Thierry Reding wrote: > > On Thu, Dec 05, 2013 at 04:37:39PM +0200, Tomi Valkeinen wrote: > >> On 2013-11-27 12:54, Thierry Reding wrote: > >> > I am not sure about hardwiring devices to virtual channels. >

[RFC v2 PATCH] mipi-dsi-bus: add MIPI DSI bus support

2013-12-09 Thread Tomi Valkeinen
On 2013-12-06 14:54, Thierry Reding wrote: > On Thu, Dec 05, 2013 at 04:37:39PM +0200, Tomi Valkeinen wrote: >> On 2013-11-27 12:54, Thierry Reding wrote: >> I am not sure about hardwiring devices to virtual channels. There could be devices which uses more than one virtual channel,

[RFC v2 PATCH] mipi-dsi-bus: add MIPI DSI bus support

2013-12-06 Thread Thierry Reding
On Thu, Dec 05, 2013 at 04:37:39PM +0200, Tomi Valkeinen wrote: > On 2013-11-27 12:54, Thierry Reding wrote: > > >> I am not sure about hardwiring devices to virtual channels. > >> There could be devices which uses more than one virtual channel, > >> in fact exynos-drm docs suggests that such

[RFC v2 PATCH] mipi-dsi-bus: add MIPI DSI bus support

2013-12-05 Thread Tomi Valkeinen
On 2013-11-27 12:54, Thierry Reding wrote: >> I am not sure about hardwiring devices to virtual channels. >> There could be devices which uses more than one virtual channel, >> in fact exynos-drm docs suggests that such hardware exists. > > In that case, why not make them two logically separate

[RFC v2 PATCH] mipi-dsi-bus: add MIPI DSI bus support

2013-12-02 Thread Thierry Reding
On Fri, Nov 29, 2013 at 04:28:45PM +0100, Andrzej Hajda wrote: > On 11/27/2013 11:54 AM, Thierry Reding wrote: > > On Mon, Nov 25, 2013 at 04:05:41PM +0100, Andrzej Hajda wrote: > > [...] > +/** > + * mipi_dsi_device_register - register a DSI device > + * @dev: DSI device we're

[RFC v2 PATCH] mipi-dsi-bus: add MIPI DSI bus support

2013-11-29 Thread Andrzej Hajda
On 11/27/2013 11:54 AM, Thierry Reding wrote: > On Mon, Nov 25, 2013 at 04:05:41PM +0100, Andrzej Hajda wrote: > [...] +/** + * mipi_dsi_device_register - register a DSI device + * @dev: DSI device we're registering + */ +int mipi_dsi_device_register(struct mipi_dsi_device

[RFC v2 PATCH] mipi-dsi-bus: add MIPI DSI bus support

2013-11-27 Thread Thierry Reding
On Mon, Nov 25, 2013 at 04:05:41PM +0100, Andrzej Hajda wrote: [...] > >> +/** > >> + * mipi_dsi_device_register - register a DSI device > >> + * @dev: DSI device we're registering > >> + */ > >> +int mipi_dsi_device_register(struct mipi_dsi_device *dev, > >> +struct

[RFC v2 PATCH] mipi-dsi-bus: add MIPI DSI bus support

2013-11-25 Thread Andrzej Hajda
Hi Thierry, Thanks for the review. On 11/22/2013 06:41 PM, Thierry Reding wrote: > On Mon, Nov 18, 2013 at 05:25:23PM +0100, Andrzej Hajda wrote: >> MIPI DSI bus allows to model DSI hosts >> and DSI devices using Linux bus. > This looks somewhat terse. Any chance you could be more verbose about

[RFC v2 PATCH] mipi-dsi-bus: add MIPI DSI bus support

2013-11-22 Thread Thierry Reding
On Mon, Nov 18, 2013 at 05:25:23PM +0100, Andrzej Hajda wrote: > MIPI DSI bus allows to model DSI hosts > and DSI devices using Linux bus. This looks somewhat terse. Any chance you could be more verbose about what exactly this does? You could mention for instance that it allows DSI devices to be

[RFC v2 PATCH] mipi-dsi-bus: add MIPI DSI bus support

2013-11-18 Thread Andrzej Hajda
MIPI DSI bus allows to model DSI hosts and DSI devices using Linux bus. Signed-off-by: Andrzej Hajda Signed-off-by: Kyungmin Park --- Hi, This is my implementation of mipi dsi bus. The first time it was posted as a part of CDF infrastructure [1], but if it can be merged independently I will be