From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Rutland Subject: Re: [PATCH v2 10/13] mailbox: create dbx500 mailbox driver Date: Wed, 13 Feb 2013 09:08:09 +0000 Message-ID: <20130213090809.GD13775@e106331-lin.cambridge.arm.com> References: <1360645032-9668-1-git-send-email-s-anna@ti.com> <1360645032-9668-11-git-send-email-s-anna@ti.com> <20130212103949.GA826@e106331-lin.cambridge.arm.com> <511A9F81.1040608@st.com> Mime-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: 8BIT Return-path: Received: from service87.mimecast.com ([91.220.42.44]:39843 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753201Ab3BMJIR convert rfc822-to-8bit (ORCPT ); Wed, 13 Feb 2013 04:08:17 -0500 In-Reply-To: <511A9F81.1040608@st.com> Content-Disposition: inline Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Loic PALLARDY Cc: Ohad Ben-Cohen , Paul Walmsley , "linux-omap@vger.kernel.org" , Russell King , Benoit Cousson , Arnd Bergmann , Janusz Krzysztofik , Tony Lindgren , Linus Walleij , Mark Brown , "linux-kernel@vger.kernel.org" , Greg Kroah-Hartman , Felipe Contreras , Omar Ramirez Luna , Wim Van Sebroeck , Dom Cobley , Tejun Heo , Omar Ramirez Luna , Suman Anna , "linux-arm-kernel@lists.infradead.org" On Tue, Feb 12, 2013 at 08:01:05PM +0000, Loic PALLARDY wrote: > Hi Mark, > > Thanks for your comments. > > On 02/12/2013 11:39 AM, Mark Rutland wrote: > > Hello, > > > > I have a few comments on the devicetree binding and the way it's parsed. > > > >> +static const struct of_device_id dbx500_mailbox_match[] = { > >> + { .compatible = "stericsson,db8500-mailbox", > >> + .data = (void *)db8500_mboxes, > >> + }, > >> + { .compatible = "stericsson,db9540-mailbox", > >> + .data = (void *)dbx540_mboxes, > >> + }, > >> + { /* sentinel */} > >> +}; > >> + > > > > The binding for the compatible strings above and property parsing below should > > be documented. > > > Yes you're right. I will add a description in > Documentation/devicetree/bindings/mailbox/... Great! [...] > >> + mem = platform_get_resource_byname(pdev, IORESOURCE_MEM, "prcm_reg"); > > > > Does this work for dt? I wasn't aware we got anything more than anonymous > > memory and interrupts. > > > Yes this is working with and without dt. > dt declaration will be the following > mailbox { > compatible = "stericsson,db8500-mailbox"; > reg = <0x80157000 0x1000>, <0x801B8000 0x2000>; > reg-names = "prcm-reg", "prcmu-tcdm"; > interrupts = <0 47 0x4>; > interrupt-names = "irq"; > legacy-offset = <0xdd4>; > }; Ah, I wasn't aware of reg-names. Thanks for the example. Thanks, Mark.