From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Subject: Re: [RFC v2 5/5] drm: Add NVIDIA Tegra support Date: Mon, 07 May 2012 10:27:59 -0600 Message-ID: <4FA7F80F.5090002@wwwdotorg.org> References: <1335347102-14905-1-git-send-email-thierry.reding@avionic-design.de> <1335347102-14905-6-git-send-email-thierry.reding@avionic-design.de> <4FA78CBD.5010606@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4FA78CBD.5010606-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: =?ISO-8859-1?Q?Terje_Bergstr=F6m?= Cc: Mark Brown , David Airlie , "devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org" , Thierry Reding , Wolfram Sang , "dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org" , Grant Likely , Olof Johansson , "iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org" , "linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Rob Herring , Ben Dooks , Colin Cross , "linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Jon Mayo , Liam Girdwood List-Id: devicetree@vger.kernel.org On 05/07/2012 02:50 AM, Terje Bergstr=F6m wrote: > On 25.04.2012 12:45, Thierry Reding wrote: > = >> +/ { >> + ... >> + >> + /* host1x */ >> + host1x: host1x@50000000 { >> + compatible =3D "nvidia,tegra20-host1x"; >> + reg =3D <0x50000000 0x00024000>; >> + interrupts =3D <0 64 0x04 /* cop syncpt */ >> + 0 65 0x04 /* mpcore syncpt */ >> + 0 66 0x04 /* cop general */ >> + 0 67 0x04>; /* mpcore general */ >> + }; >> + >> + /* video-encoding/decoding */ >> + mpe@54040000 { >> + reg =3D <0x54040000 0x00040000>; >> + interrupts =3D <0 68 0x04>; >> + }; >> + > = > (...) > = > Hi Thierry, > = > I have still lots of questions regarding how device trees work. I'm now > just trying to match the device tree structure with hardware - let me > know if that goes wrong. > = > There's a hierarchy in the hardware, which should be represented in the > device trees. All of the hardware are client modules for host1x - with > the exception of host1x obviously. CPU has two methods for accessing the > hardware: clients' register aperture and host1x channels. Both of these > operate via host1x hardware. > = > We should define host1x bus in the device tree, and move all nodes > except host1x under that bus. I think the host1x node /is/ that bus.