Re: Best practice device tree design for display subsystems/DRM

2013-07-07 Thread Sebastian Hesselbarth
On 07/05/13 11:51, Grant Likely wrote: On Fri, Jul 5, 2013 at 10:34 AM, Sebastian Hesselbarth wrote: So for the discussion, I can see that there have been some voting for super-node, some for node-to-node linking. Although I initially proposed super-nodes, I can also happily live with node-to-n

Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Sebastian Hesselbarth
On 07/05/13 11:51, Grant Likely wrote: > On Fri, Jul 5, 2013 at 10:34 AM, Sebastian Hesselbarth > wrote: >> So for the discussion, I can see that there have been some voting for >> super-node, some for node-to-node linking. Although I initially proposed >> super-nodes, I can also happily live with

Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Sascha Hauer
On Thu, Jul 04, 2013 at 12:58:29PM +0200, Sebastian Hesselbarth wrote: > On 07/04/13 12:09, Sascha Hauer wrote: > >On Thu, Jul 04, 2013 at 11:44:41AM +0200, Sebastian Hesselbarth wrote: > >>On 07/04/13 11:30, Sascha Hauer wrote: > >>>On Thu, Jul 04, 2013 at 10:11:31AM +0100, Russell King wrote: > >

Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Grant Likely
On Fri, Jul 5, 2013 at 11:07 AM, Sascha Hauer wrote: > Again the difference between supernodes and graphs is that the supernode > approach does not contain information about what components are needed > to do something useful with the device. You simply have to wait until > *all* components are pr

Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Sebastian Hesselbarth
On 07/05/13 10:43, Grant Likely wrote: > On Wed, Jul 3, 2013 at 10:02 AM, Sascha Hauer > wrote: >> On Wed, Jul 03, 2013 at 05:57:18PM +0900, Inki Dae wrote: video { /* Single video card w/ multiple lcd controllers */ card0 { compatible = "marvell,armada-

Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Grant Likely
On Fri, Jul 5, 2013 at 10:34 AM, Sebastian Hesselbarth wrote: > So for the discussion, I can see that there have been some voting for > super-node, some for node-to-node linking. Although I initially proposed > super-nodes, I can also happily live with node-to-node linking alone. > > Either someon

Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Grant Likely
On Fri, Jul 5, 2013 at 9:50 AM, Russell King wrote: > On Fri, Jul 05, 2013 at 09:37:34AM +0100, Grant Likely wrote: >> Alternatively, you can have the same effect with a property or set of >> properties in the controller node that contains phandles to the >> required devices. That would provide th

Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Russell King
On Fri, Jul 05, 2013 at 09:37:34AM +0100, Grant Likely wrote: > Alternatively, you can have the same effect with a property or set of > properties in the controller node that contains phandles to the > required devices. That would provide the driver with the same > information about which devices m

Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Grant Likely
On Wed, Jul 3, 2013 at 10:02 AM, Sascha Hauer wrote: > On Wed, Jul 03, 2013 at 05:57:18PM +0900, Inki Dae wrote: >> > video { >> > /* Single video card w/ multiple lcd controllers */ >> > card0 { >> > compatible = "marvell,armada-510-display"; >> > reg = <0 0x3f

Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Grant Likely
On Tue, Jul 2, 2013 at 9:25 PM, Russell King wrote: > On Tue, Jul 02, 2013 at 09:57:32PM +0200, Sebastian Hesselbarth wrote: >> I am against a super node which contains lcd and dcon/ire nodes. You can >> enable those devices on a per board basis. We add them to dove.dtsi but >> disable them by def

Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Dave Airlie
> ... >>> Sorry but I'd like to say that this cannot be used commonly. Shouldn't you >>> really consider Linux framebuffer or other subsystems? The above dtsi file >>> is specific to DRM subsystem. And I think the dtsi file has no any >>> dependency on certain subsystem so board dtsi f

Re: Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Grant Likely
On Fri, Jul 5, 2013 at 11:07 AM, Sascha Hauer wrote: > Again the difference between supernodes and graphs is that the supernode > approach does not contain information about what components are needed > to do something useful with the device. You simply have to wait until > *all* components are pr

Re: Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Grant Likely
On Fri, Jul 5, 2013 at 10:34 AM, Sebastian Hesselbarth wrote: > So for the discussion, I can see that there have been some voting for > super-node, some for node-to-node linking. Although I initially proposed > super-nodes, I can also happily live with node-to-node linking alone. > > Either someon

Re: Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Sebastian Hesselbarth
On 07/05/13 10:43, Grant Likely wrote: On Wed, Jul 3, 2013 at 10:02 AM, Sascha Hauer wrote: On Wed, Jul 03, 2013 at 05:57:18PM +0900, Inki Dae wrote: video { /* Single video card w/ multiple lcd controllers */ card0 { compatible = "marvell,armada-510-display";

Re: Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Grant Likely
On Fri, Jul 5, 2013 at 9:50 AM, Russell King wrote: > On Fri, Jul 05, 2013 at 09:37:34AM +0100, Grant Likely wrote: >> Alternatively, you can have the same effect with a property or set of >> properties in the controller node that contains phandles to the >> required devices. That would provide th

Re: Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Russell King
On Fri, Jul 05, 2013 at 09:37:34AM +0100, Grant Likely wrote: > Alternatively, you can have the same effect with a property or set of > properties in the controller node that contains phandles to the > required devices. That would provide the driver with the same > information about which devices m

Re: Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Grant Likely
On Wed, Jul 3, 2013 at 10:02 AM, Sascha Hauer wrote: > On Wed, Jul 03, 2013 at 05:57:18PM +0900, Inki Dae wrote: >> > video { >> > /* Single video card w/ multiple lcd controllers */ >> > card0 { >> > compatible = "marvell,armada-510-display"; >> > reg = <0 0x3f

Re: Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Grant Likely
On Tue, Jul 2, 2013 at 9:25 PM, Russell King wrote: > On Tue, Jul 02, 2013 at 09:57:32PM +0200, Sebastian Hesselbarth wrote: >> I am against a super node which contains lcd and dcon/ire nodes. You can >> enable those devices on a per board basis. We add them to dove.dtsi but >> disable them by def

Re: Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Sascha Hauer
On Thu, Jul 04, 2013 at 12:58:29PM +0200, Sebastian Hesselbarth wrote: > On 07/04/13 12:09, Sascha Hauer wrote: > >On Thu, Jul 04, 2013 at 11:44:41AM +0200, Sebastian Hesselbarth wrote: > >>On 07/04/13 11:30, Sascha Hauer wrote: > >>>On Thu, Jul 04, 2013 at 10:11:31AM +0100, Russell King wrote: > >

Re: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sebastian Hesselbarth
On 07/04/13 12:09, Sascha Hauer wrote: On Thu, Jul 04, 2013 at 11:44:41AM +0200, Sebastian Hesselbarth wrote: On 07/04/13 11:30, Sascha Hauer wrote: On Thu, Jul 04, 2013 at 10:11:31AM +0100, Russell King wrote: On Thu, Jul 04, 2013 at 10:58:17AM +0200, Sascha Hauer wrote: On Thu, Jul 04, 2013

Re: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sebastian Hesselbarth
On 07/04/13 11:30, Sascha Hauer wrote: On Thu, Jul 04, 2013 at 10:11:31AM +0100, Russell King wrote: On Thu, Jul 04, 2013 at 10:58:17AM +0200, Sascha Hauer wrote: On Thu, Jul 04, 2013 at 09:40:52AM +0100, Russell King wrote: Wrong. Please read the example with the diagrams I gave. Consider w

Re: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sebastian Hesselbarth
On 07/04/13 11:23, Sascha Hauer wrote: On Thu, Jul 04, 2013 at 11:10:35AM +0200, Sebastian Hesselbarth wrote: On 07/04/13 10:53, Sascha Hauer wrote: On Thu, Jul 04, 2013 at 10:45:40AM +0200, Sebastian Hesselbarth wrote: On 07/04/13 10:33, Sascha Hauer wrote: A componentized device never comp

Re: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Russell King
On Thu, Jul 04, 2013 at 10:58:17AM +0200, Sascha Hauer wrote: > On Thu, Jul 04, 2013 at 09:40:52AM +0100, Russell King wrote: > > Wrong. Please read the example with the diagrams I gave. Consider > > what happens if you have two display devices connected to a single > > output, one which fixes th

Re: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sebastian Hesselbarth
On 07/04/13 10:53, Sascha Hauer wrote: On Thu, Jul 04, 2013 at 10:45:40AM +0200, Sebastian Hesselbarth wrote: On 07/04/13 10:33, Sascha Hauer wrote: A componentized device never completes and it doesn't have to. A componentized device can start once there is a path from an input (crtc, i2s uni

Re: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Russell King
On Thu, Jul 04, 2013 at 10:33:07AM +0200, Sascha Hauer wrote: > A componentized device never completes and it doesn't have to. A > componentized device can start once there is a path from an input > (crtc, i2s unit) to an output (connector, speaker). Sorry for the incomplete reply. If you read al

Re: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sebastian Hesselbarth
On 07/04/13 10:33, Sascha Hauer wrote: On Wed, Jul 03, 2013 at 10:52:49AM +0100, Russell King wrote: Sorry but I'd like to say that this cannot be used commonly. Shouldn't you really consider Linux framebuffer or other subsystems? The above dtsi file is specific to DRM subsystem. And I think the

Re: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Russell King
On Thu, Jul 04, 2013 at 10:33:07AM +0200, Sascha Hauer wrote: > On Wed, Jul 03, 2013 at 10:52:49AM +0100, Russell King wrote: > > > > Sorry but I'd like to say that this cannot be used commonly. Shouldn't > > > > you > > > > really consider Linux framebuffer or other subsystems? The above dtsi >

Re: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sebastian Hesselbarth
cha Hauer'; 'Daniel Drake'; dri-devel@lists.freedesktop.org Subject: Re: Best practice device tree design for display subsystems/DRM On 07/03/13 13:43, Inki Dae wrote: I do not understand why you keep referring to the SoC dtsi. Im my example, I said that it is made up and joined f

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Alex Deucher
On Thu, Jul 4, 2013 at 5:28 PM, Dave Airlie wrote: > > ... Sorry but I'd like to say that this cannot be used commonly. Shouldn't you really consider Linux framebuffer or other subsystems? The above dtsi file is specific to DRM subsystem. And I think the dtsi file has n

Re: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Alex Deucher
On Thu, Jul 4, 2013 at 5:28 PM, Dave Airlie wrote: > > ... Sorry but I'd like to say that this cannot be used commonly. Shouldn't you really consider Linux framebuffer or other subsystems? The above dtsi file is specific to DRM subsystem. And I think the dtsi file has n

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Inki Dae
evel at lists.freedesktop.org; 'Sascha > Hauer'; > 'Russell King' > Subject: Re: Best practice device tree design for display subsystems/DRM > > On 07/04/13 09:05, Inki Dae wrote: > >> -Original Message- > >> From: Sebastian Hesselbarth [mai

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Inki Dae
Sascha Hauer'; 'Daniel Drake'; dri-devel at lists.freedesktop.org > Subject: Re: Best practice device tree design for display subsystems/DRM > > On 07/03/13 13:43, Inki Dae wrote: > >> I do not understand why you keep referring to the SoC dtsi. Im my > >>

Re: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Dave Airlie
> ... >>> Sorry but I'd like to say that this cannot be used commonly. Shouldn't you >>> really consider Linux framebuffer or other subsystems? The above dtsi file >>> is specific to DRM subsystem. And I think the dtsi file has no any >>> dependency on certain subsystem so board dtsi f

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sebastian Hesselbarth
On 07/04/13 12:09, Sascha Hauer wrote: > On Thu, Jul 04, 2013 at 11:44:41AM +0200, Sebastian Hesselbarth wrote: >> On 07/04/13 11:30, Sascha Hauer wrote: >>> On Thu, Jul 04, 2013 at 10:11:31AM +0100, Russell King wrote: On Thu, Jul 04, 2013 at 10:58:17AM +0200, Sascha Hauer wrote: > On Thu

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sascha Hauer
On Thu, Jul 04, 2013 at 11:44:41AM +0200, Sebastian Hesselbarth wrote: > On 07/04/13 11:30, Sascha Hauer wrote: > >On Thu, Jul 04, 2013 at 10:11:31AM +0100, Russell King wrote: > >>On Thu, Jul 04, 2013 at 10:58:17AM +0200, Sascha Hauer wrote: > >>>On Thu, Jul 04, 2013 at 09:40:52AM +0100, Russell K

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sascha Hauer
On Thu, Jul 04, 2013 at 11:40:17AM +0200, Sebastian Hesselbarth wrote: > On 07/04/13 11:23, Sascha Hauer wrote: > > > >With this you can describe the whole graph of devices you have in the > >devicetree. The examples in this file have a path from a camera sensor > >via a MIPI converter to a capture

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sascha Hauer
On Thu, Jul 04, 2013 at 10:08:29AM +0100, Russell King wrote: > On Thu, Jul 04, 2013 at 10:33:07AM +0200, Sascha Hauer wrote: > > A componentized device never completes and it doesn't have to. A > > componentized device can start once there is a path from an input > > (crtc, i2s unit) to an output

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sebastian Hesselbarth
On 07/04/13 11:30, Sascha Hauer wrote: > On Thu, Jul 04, 2013 at 10:11:31AM +0100, Russell King wrote: >> On Thu, Jul 04, 2013 at 10:58:17AM +0200, Sascha Hauer wrote: >>> On Thu, Jul 04, 2013 at 09:40:52AM +0100, Russell King wrote: Wrong. Please read the example with the diagrams I gave. C

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sebastian Hesselbarth
On 07/04/13 11:23, Sascha Hauer wrote: > On Thu, Jul 04, 2013 at 11:10:35AM +0200, Sebastian Hesselbarth wrote: >> On 07/04/13 10:53, Sascha Hauer wrote: >>> On Thu, Jul 04, 2013 at 10:45:40AM +0200, Sebastian Hesselbarth wrote: On 07/04/13 10:33, Sascha Hauer wrote: > > A componentize

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sascha Hauer
On Thu, Jul 04, 2013 at 10:11:31AM +0100, Russell King wrote: > On Thu, Jul 04, 2013 at 10:58:17AM +0200, Sascha Hauer wrote: > > On Thu, Jul 04, 2013 at 09:40:52AM +0100, Russell King wrote: > > > Wrong. Please read the example with the diagrams I gave. Consider > > > what happens if you have tw

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sascha Hauer
On Thu, Jul 04, 2013 at 11:10:35AM +0200, Sebastian Hesselbarth wrote: > On 07/04/13 10:53, Sascha Hauer wrote: > >On Thu, Jul 04, 2013 at 10:45:40AM +0200, Sebastian Hesselbarth wrote: > >>On 07/04/13 10:33, Sascha Hauer wrote: > >>> > >>>A componentized device never completes and it doesn't have

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Rob Clark
On Wed, Jul 3, 2013 at 5:02 AM, Sascha Hauer wrote: > On Wed, Jul 03, 2013 at 05:57:18PM +0900, Inki Dae wrote: >> > video { >> > /* Single video card w/ multiple lcd controllers */ >> > card0 { >> > compatible = "marvell,armada-510-display"; >> > reg = <0 0x3f0

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sebastian Hesselbarth
On 07/04/13 10:53, Sascha Hauer wrote: > On Thu, Jul 04, 2013 at 10:45:40AM +0200, Sebastian Hesselbarth wrote: >> On 07/04/13 10:33, Sascha Hauer wrote: >>> >>> A componentized device never completes and it doesn't have to. A >>> componentized device can start once there is a path from an input >>

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Inki Dae
;; devicetree-discuss at lists.ozlabs.org; dri- > devel at lists.freedesktop.org > Subject: Re: Best practice device tree design for display subsystems/DRM > > On Wed, Jul 03, 2013 at 08:43:20PM +0900, Inki Dae wrote: > > In case of fbdev, framebuffer driver would use lcd0 or lcd1 driver

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sascha Hauer
On Thu, Jul 04, 2013 at 09:40:52AM +0100, Russell King wrote: > On Thu, Jul 04, 2013 at 10:33:07AM +0200, Sascha Hauer wrote: > > On Wed, Jul 03, 2013 at 10:52:49AM +0100, Russell King wrote: > > > > > Sorry but I'd like to say that this cannot be used commonly. > > > > > Shouldn't you > > > > > r

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sascha Hauer
On Thu, Jul 04, 2013 at 10:45:40AM +0200, Sebastian Hesselbarth wrote: > On 07/04/13 10:33, Sascha Hauer wrote: > > > >A componentized device never completes and it doesn't have to. A > >componentized device can start once there is a path from an input > >(crtc, i2s unit) to an output (connector, s

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sebastian Hesselbarth
On 07/04/13 10:33, Sascha Hauer wrote: > On Wed, Jul 03, 2013 at 10:52:49AM +0100, Russell King wrote: Sorry but I'd like to say that this cannot be used commonly. Shouldn't you really consider Linux framebuffer or other subsystems? The above dtsi file is specific to DRM subsystem. A

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sascha Hauer
On Wed, Jul 03, 2013 at 10:52:49AM +0100, Russell King wrote: > > > Sorry but I'd like to say that this cannot be used commonly. Shouldn't you > > > really consider Linux framebuffer or other subsystems? The above dtsi file > > > is specific to DRM subsystem. And I think the dtsi file has no any >

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Russell King
On Thu, Jul 04, 2013 at 10:58:17AM +0200, Sascha Hauer wrote: > On Thu, Jul 04, 2013 at 09:40:52AM +0100, Russell King wrote: > > Wrong. Please read the example with the diagrams I gave. Consider > > what happens if you have two display devices connected to a single > > output, one which fixes th

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Russell King
On Thu, Jul 04, 2013 at 10:33:07AM +0200, Sascha Hauer wrote: > A componentized device never completes and it doesn't have to. A > componentized device can start once there is a path from an input > (crtc, i2s unit) to an output (connector, speaker). Sorry for the incomplete reply. If you read al

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Russell King
On Thu, Jul 04, 2013 at 10:33:07AM +0200, Sascha Hauer wrote: > On Wed, Jul 03, 2013 at 10:52:49AM +0100, Russell King wrote: > > > > Sorry but I'd like to say that this cannot be used commonly. Shouldn't > > > > you > > > > really consider Linux framebuffer or other subsystems? The above dtsi >

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sebastian Hesselbarth
s.org; 'Jean-Francois >> Moine'; 'Sascha Hauer'; 'Daniel Drake'; dri-devel at lists.freedesktop.org >> Subject: Re: Best practice device tree design for display subsystems/DRM >> >> On 07/03/13 13:43, Inki Dae wrote: >>>> I do not unders

Re: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Rob Clark
On Wed, Jul 3, 2013 at 5:02 AM, Sascha Hauer wrote: > On Wed, Jul 03, 2013 at 05:57:18PM +0900, Inki Dae wrote: >> > video { >> > /* Single video card w/ multiple lcd controllers */ >> > card0 { >> > compatible = "marvell,armada-510-display"; >> > reg = <0 0x3f0

Re: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sascha Hauer
On Thu, Jul 04, 2013 at 11:44:41AM +0200, Sebastian Hesselbarth wrote: > On 07/04/13 11:30, Sascha Hauer wrote: > >On Thu, Jul 04, 2013 at 10:11:31AM +0100, Russell King wrote: > >>On Thu, Jul 04, 2013 at 10:58:17AM +0200, Sascha Hauer wrote: > >>>On Thu, Jul 04, 2013 at 09:40:52AM +0100, Russell K

Re: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sascha Hauer
On Thu, Jul 04, 2013 at 11:40:17AM +0200, Sebastian Hesselbarth wrote: > On 07/04/13 11:23, Sascha Hauer wrote: > > > >With this you can describe the whole graph of devices you have in the > >devicetree. The examples in this file have a path from a camera sensor > >via a MIPI converter to a capture

Re: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sascha Hauer
On Thu, Jul 04, 2013 at 10:08:29AM +0100, Russell King wrote: > On Thu, Jul 04, 2013 at 10:33:07AM +0200, Sascha Hauer wrote: > > A componentized device never completes and it doesn't have to. A > > componentized device can start once there is a path from an input > > (crtc, i2s unit) to an output

Re: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sascha Hauer
On Thu, Jul 04, 2013 at 10:11:31AM +0100, Russell King wrote: > On Thu, Jul 04, 2013 at 10:58:17AM +0200, Sascha Hauer wrote: > > On Thu, Jul 04, 2013 at 09:40:52AM +0100, Russell King wrote: > > > Wrong. Please read the example with the diagrams I gave. Consider > > > what happens if you have tw

Re: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sascha Hauer
On Thu, Jul 04, 2013 at 11:10:35AM +0200, Sebastian Hesselbarth wrote: > On 07/04/13 10:53, Sascha Hauer wrote: > >On Thu, Jul 04, 2013 at 10:45:40AM +0200, Sebastian Hesselbarth wrote: > >>On 07/04/13 10:33, Sascha Hauer wrote: > >>> > >>>A componentized device never completes and it doesn't have

Re: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sascha Hauer
On Thu, Jul 04, 2013 at 09:40:52AM +0100, Russell King wrote: > On Thu, Jul 04, 2013 at 10:33:07AM +0200, Sascha Hauer wrote: > > On Wed, Jul 03, 2013 at 10:52:49AM +0100, Russell King wrote: > > > > > Sorry but I'd like to say that this cannot be used commonly. > > > > > Shouldn't you > > > > > r

Re: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sascha Hauer
On Thu, Jul 04, 2013 at 10:45:40AM +0200, Sebastian Hesselbarth wrote: > On 07/04/13 10:33, Sascha Hauer wrote: > > > >A componentized device never completes and it doesn't have to. A > >componentized device can start once there is a path from an input > >(crtc, i2s unit) to an output (connector, s

Re: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Sascha Hauer
On Wed, Jul 03, 2013 at 10:52:49AM +0100, Russell King wrote: > > > Sorry but I'd like to say that this cannot be used commonly. Shouldn't you > > > really consider Linux framebuffer or other subsystems? The above dtsi file > > > is specific to DRM subsystem. And I think the dtsi file has no any >

RE: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Inki Dae
l@lists.freedesktop.org; 'Sascha Hauer'; > 'Russell King' > Subject: Re: Best practice device tree design for display subsystems/DRM > > On 07/04/13 09:05, Inki Dae wrote: > >> -Original Message- > >> From: Sebastian Hesselbarth [mailto:sebastian.hess

RE: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Inki Dae
27;Sascha Hauer'; 'Daniel Drake'; dri-devel@lists.freedesktop.org > Subject: Re: Best practice device tree design for display subsystems/DRM > > On 07/03/13 13:43, Inki Dae wrote: > >> I do not understand why you keep referring to the SoC dtsi. Im my > >> example, I said

Re: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Russell King
On Wed, Jul 03, 2013 at 08:43:20PM +0900, Inki Dae wrote: > In case of fbdev, framebuffer driver would use lcd0 or lcd1 driver, or lcd0 > and lcd1 drivers which are placed in drivers/video/backlight/. No, that's totally wrong. Framebuffer drivers are not backlights. Framebuffer drivers go in driv

Re: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Sebastian Hesselbarth
On 07/03/13 13:32, Russell King wrote: On Wed, Jul 03, 2013 at 12:52:37PM +0200, Sebastian Hesselbarth wrote: But honestly, I see no way around it and it is the only way to allow to even have the decision for one or two cards at all. There is no way for auto-probing the users intention... Russ

Re: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Russell King
On Wed, Jul 03, 2013 at 12:52:37PM +0200, Sebastian Hesselbarth wrote: > But honestly, I see no way around it and it is the only way > to allow to even have the decision for one or two cards at all. > There is no way for auto-probing the users intention... It's not _just_ about the users intention

Re: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Sebastian Hesselbarth
On 07/03/13 13:43, Inki Dae wrote: I do not understand why you keep referring to the SoC dtsi. Im my example, I said that it is made up and joined from both SoC dtsi and board dts. So, of course, lcd controller nodes and dcon are part of dove.dtsi because they are physically available on every D

Re: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Sebastian Hesselbarth
On 07/03/13 11:52, Russell King wrote: On Wed, Jul 03, 2013 at 11:02:42AM +0200, Sascha Hauer wrote: On Wed, Jul 03, 2013 at 05:57:18PM +0900, Inki Dae wrote: video { /* Single video card w/ multiple lcd controllers */ card0 { compatible = "marvell,armada-510-dis

Re: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Sebastian Hesselbarth
On 07/03/13 11:53, Russell King wrote: On Wed, Jul 03, 2013 at 06:48:41PM +0900, Inki Dae wrote: That's not whether we can write device driver or not. dtsi is common spot in other subsystems. Do you think the cardX node is meaningful to other subsystems? Yes, because fbdev could also use it to

Re: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Russell King
On Wed, Jul 03, 2013 at 06:48:41PM +0900, Inki Dae wrote: > That's not whether we can write device driver or not. dtsi is common spot in > other subsystems. Do you think the cardX node is meaningful to other > subsystems? Yes, because fbdev could also use it to solve the same problem which we're h

Re: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Russell King
On Wed, Jul 03, 2013 at 11:02:42AM +0200, Sascha Hauer wrote: > On Wed, Jul 03, 2013 at 05:57:18PM +0900, Inki Dae wrote: > > > video { > > > /* Single video card w/ multiple lcd controllers */ > > > card0 { > > > compatible = "marvell,armada-510-display"; > > > reg = <0 0x3

Re: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Sebastian Hesselbarth
On 07/03/13 11:02, Sascha Hauer wrote: On Wed, Jul 03, 2013 at 05:57:18PM +0900, Inki Dae wrote: video { /* Single video card w/ multiple lcd controllers */ card0 { compatible = "marvell,armada-510-display"; reg = <0 0x3f00 0x100>; /* video

Re: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Sebastian Hesselbarth
On 07/03/13 08:55, Sascha Hauer wrote: On Wed, Jul 03, 2013 at 08:02:05AM +1000, Dave Airlie wrote: Have you also considered how suspend/resume works in such a place, where every driver is independent? The ChromeOS guys have bitched before about the exynos driver which is has lots of sub-drivers

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Inki Dae
cetree-discuss at lists.ozlabs.org; dri-devel at lists.freedesktop.org > Subject: Re: Best practice device tree design for display subsystems/DRM > > On 07/03/13 11:53, Russell King wrote: > > On Wed, Jul 03, 2013 at 06:48:41PM +0900, Inki Dae wrote: > >> That's not w

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Sebastian Hesselbarth
On 07/03/13 13:32, Russell King wrote: > On Wed, Jul 03, 2013 at 12:52:37PM +0200, Sebastian Hesselbarth wrote: >> But honestly, I see no way around it and it is the only way >> to allow to even have the decision for one or two cards at all. >> There is no way for auto-probing the users intention..

RE: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Inki Dae
oine'; devicetree-disc...@lists.ozlabs.org; dri- > de...@lists.freedesktop.org > Subject: Re: Best practice device tree design for display subsystems/DRM > > On Wed, Jul 03, 2013 at 08:43:20PM +0900, Inki Dae wrote: > > In case of fbdev, framebuffer driver would use lcd0 or lcd1 driver, or >

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Inki Dae
labs.org; 'Russell King'; dri-devel at > lists.freedesktop.org > Subject: Re: Best practice device tree design for display subsystems/DRM > > On 07/03/13 11:02, Sascha Hauer wrote: > > On Wed, Jul 03, 2013 at 05:57:18PM +0900, Inki Dae wrote: > >>> vid

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Inki Dae
gt; Cc: Jean-Francois Moine; devicetree-discuss at lists.ozlabs.org; dri- > devel at lists.freedesktop.org; Russell King > Subject: Re: Best practice device tree design for display subsystems/DRM > > On 07/02/2013 11:04 PM, Daniel Drake wrote: > > On Tue, Jul 2, 2013 at 1:57 PM, Sebas

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Inki Dae
: Jean-Fran?ois Moine; devicetree-discuss at lists.ozlabs.org; dri- > devel at lists.freedesktop.org; Sebastian Hesselbarth > Subject: Re: Best practice device tree design for display subsystems/DRM > > On Tue, Jul 02, 2013 at 12:54:41PM -0600, Daniel Drake wrote: > > On Tue, Jul 2,

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Inki Dae
: Jean-Francois Moine; Daniel Drake; devicetree-discuss at lists.ozlabs.org; > dri-devel at lists.freedesktop.org; Russell King; Sebastian Hesselbarth > Subject: Re: Best practice device tree design for display subsystems/DRM > > On Tue, Jul 2, 2013 at 3:02 PM, Dave Airlie wrote: &

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Lucas Stach
Am Dienstag, den 02.07.2013, 18:46 -0700 schrieb St?phane Marchesin: > On Tue, Jul 2, 2013 at 3:02 PM, Dave Airlie wrote: > > On Wed, Jul 3, 2013 at 7:50 AM, Sascha Hauer > > wrote: > >> On Tue, Jul 02, 2013 at 09:25:48PM +0100, Russell King wrote: > >>> On Tue, Jul 02, 2013 at 09:57:32PM +0200,

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Sebastian Hesselbarth
On 07/03/13 13:43, Inki Dae wrote: >> I do not understand why you keep referring to the SoC dtsi. Im my >> example, I said that it is made up and joined from both SoC dtsi and >> board dts. >> >> So, of course, lcd controller nodes and dcon are part of dove.dtsi >> because they are physically avail

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Sascha Hauer
On Wed, Jul 03, 2013 at 10:52:49AM +0100, Russell King wrote: > On Wed, Jul 03, 2013 at 11:02:42AM +0200, Sascha Hauer wrote: > > > > +1 for not encoding the projected usecase of the graphics subsystem into > > the devicetree. Whether the two LCD controllers shall be used together > > or separatel

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Sebastian Hesselbarth
On 07/03/13 11:52, Russell King wrote: > On Wed, Jul 03, 2013 at 11:02:42AM +0200, Sascha Hauer wrote: >> On Wed, Jul 03, 2013 at 05:57:18PM +0900, Inki Dae wrote: video { /* Single video card w/ multiple lcd controllers */ card0 { compatible = "marvell,armada-5

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Russell King
On Wed, Jul 03, 2013 at 08:43:20PM +0900, Inki Dae wrote: > In case of fbdev, framebuffer driver would use lcd0 or lcd1 driver, or lcd0 > and lcd1 drivers which are placed in drivers/video/backlight/. No, that's totally wrong. Framebuffer drivers are not backlights. Framebuffer drivers go in driv

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Sebastian Hesselbarth
On 07/03/13 11:53, Russell King wrote: > On Wed, Jul 03, 2013 at 06:48:41PM +0900, Inki Dae wrote: >> That's not whether we can write device driver or not. dtsi is common spot in >> other subsystems. Do you think the cardX node is meaningful to other >> subsystems? > > Yes, because fbdev could also

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Russell King
On Wed, Jul 03, 2013 at 12:52:37PM +0200, Sebastian Hesselbarth wrote: > But honestly, I see no way around it and it is the only way > to allow to even have the decision for one or two cards at all. > There is no way for auto-probing the users intention... It's not _just_ about the users intention

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Sebastian Hesselbarth
On 07/03/13 11:02, Sascha Hauer wrote: > On Wed, Jul 03, 2013 at 05:57:18PM +0900, Inki Dae wrote: >>> video { >>> /* Single video card w/ multiple lcd controllers */ >>> card0 { >>> compatible = "marvell,armada-510-display"; >>> reg = <0 0x3f00 0x100>; /* vi

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Sascha Hauer
On Wed, Jul 03, 2013 at 05:57:18PM +0900, Inki Dae wrote: > > video { > > /* Single video card w/ multiple lcd controllers */ > > card0 { > > compatible = "marvell,armada-510-display"; > > reg = <0 0x3f00 0x100>; /* video-mem hole */ > > /* later:

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Russell King
On Wed, Jul 03, 2013 at 06:48:41PM +0900, Inki Dae wrote: > That's not whether we can write device driver or not. dtsi is common spot in > other subsystems. Do you think the cardX node is meaningful to other > subsystems? Yes, because fbdev could also use it to solve the same problem which we're h

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Russell King
On Wed, Jul 03, 2013 at 11:02:42AM +0200, Sascha Hauer wrote: > On Wed, Jul 03, 2013 at 05:57:18PM +0900, Inki Dae wrote: > > > video { > > > /* Single video card w/ multiple lcd controllers */ > > > card0 { > > > compatible = "marvell,armada-510-display"; > > > reg = <0 0x3

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Sebastian Hesselbarth
On 07/03/13 08:55, Sascha Hauer wrote: > On Wed, Jul 03, 2013 at 08:02:05AM +1000, Dave Airlie wrote: >> Have you also considered how suspend/resume works in such a place, >> where every driver is independent? The ChromeOS guys have bitched >> before about the exynos driver which is has lots of sub

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Sascha Hauer
On Tue, Jul 02, 2013 at 11:14:45PM +0100, Russell King wrote: > On Wed, Jul 03, 2013 at 08:02:05AM +1000, Dave Airlie wrote: > > Have you also considered how suspend/resume works in such a place, > > where every driver is independent? The ChromeOS guys have bitched > > before about the exynos drive

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Sascha Hauer
On Wed, Jul 03, 2013 at 08:02:05AM +1000, Dave Airlie wrote: > On Wed, Jul 3, 2013 at 7:50 AM, Sascha Hauer > wrote: > > On Tue, Jul 02, 2013 at 09:25:48PM +0100, Russell King wrote: > >> On Tue, Jul 02, 2013 at 09:57:32PM +0200, Sebastian Hesselbarth wrote: > >> > I am against a super node which

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Dave Airlie
On Wed, Jul 3, 2013 at 7:50 AM, Sascha Hauer wrote: > On Tue, Jul 02, 2013 at 09:25:48PM +0100, Russell King wrote: >> On Tue, Jul 02, 2013 at 09:57:32PM +0200, Sebastian Hesselbarth wrote: >> > I am against a super node which contains lcd and dcon/ire nodes. You can >> > enable those devices on a

Re: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Lucas Stach
Am Dienstag, den 02.07.2013, 18:46 -0700 schrieb Stéphane Marchesin: > On Tue, Jul 2, 2013 at 3:02 PM, Dave Airlie wrote: > > On Wed, Jul 3, 2013 at 7:50 AM, Sascha Hauer wrote: > >> On Tue, Jul 02, 2013 at 09:25:48PM +0100, Russell King wrote: > >>> On Tue, Jul 02, 2013 at 09:57:32PM +0200, Seba

RE: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Inki Dae
; devicetree-disc...@lists.ozlabs.org; dri-devel@lists.freedesktop.org > Subject: Re: Best practice device tree design for display subsystems/DRM > > On 07/03/13 11:53, Russell King wrote: > > On Wed, Jul 03, 2013 at 06:48:41PM +0900, Inki Dae wrote: > >> That's not whether we can write

Re: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Sascha Hauer
On Wed, Jul 03, 2013 at 10:52:49AM +0100, Russell King wrote: > On Wed, Jul 03, 2013 at 11:02:42AM +0200, Sascha Hauer wrote: > > > > +1 for not encoding the projected usecase of the graphics subsystem into > > the devicetree. Whether the two LCD controllers shall be used together > > or separatel

RE: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Inki Dae
.ozlabs.org; 'Russell King'; dri-devel@lists.freedesktop.org > Subject: Re: Best practice device tree design for display subsystems/DRM > > On 07/03/13 11:02, Sascha Hauer wrote: > > On Wed, Jul 03, 2013 at 05:57:18PM +0900, Inki Dae wrote: > >>> video

Re: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Sascha Hauer
On Wed, Jul 03, 2013 at 05:57:18PM +0900, Inki Dae wrote: > > video { > > /* Single video card w/ multiple lcd controllers */ > > card0 { > > compatible = "marvell,armada-510-display"; > > reg = <0 0x3f00 0x100>; /* video-mem hole */ > > /* later:

  1   2   >