From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Rutland Subject: Re: [PATCH v3 04/15] ACPI: Document ACPI device specific properties Date: Fri, 3 Oct 2014 14:58:26 +0100 Message-ID: <20141003135826.GN26643@leverpostej> References: <1410868367-11056-1-git-send-email-mika.westerberg@linux.intel.com> <15893883.nvuW3ndylz@wuerfel> <20141002133654.GP1786@lahna.fi.intel.com> <26673925.fa6Qhdm5sV@vostro.rjw.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <26673925.fa6Qhdm5sV@vostro.rjw.lan> Sender: linux-acpi-owner@vger.kernel.org To: "Rafael J. Wysocki" Cc: Mika Westerberg , Arnd Bergmann , "linux-kernel@vger.kernel.org" , "linux-acpi@vger.kernel.org" , "devicetree@vger.kernel.org" , Greg Kroah-Hartman , Linus Walleij , Alexandre Courbot , Dmitry Torokhov , Bryan Wu , Lee Jones , "grant.likely@linaro.org" , Aaron Lu , Darren Hart List-Id: devicetree@vger.kernel.org On Fri, Oct 03, 2014 at 03:03:51AM +0100, Rafael J. Wysocki wrote: > On Thursday, October 02, 2014 04:36:54 PM Mika Westerberg wrote: > > On Thu, Oct 02, 2014 at 02:46:30PM +0200, Arnd Bergmann wrote: > > > On Thursday 02 October 2014 15:15:08 Mika Westerberg wrote: > > [cut] > > > > > Putting everything to a single package results this: > > > > Package () { "pwms", Package () {"led-red", ^PWM0, 0, 10, "led-green", ^PWM0, 1, 10 }} > > > > But I think the below looks better: > > I agree. > > > Package () { "pwms", Package () {^PWM0, 0, 10, ^PWM0, 1, 10 }} > > Package () { "pwm-names", Package () {"led-red", "led-green"}} > > > > and it is trivial to match with the corresponding DT fragment. > > > > > } > > > > > > vs. > > > > > > pwm-slave { > > > pwms = <&pwm0 0 10>, <&pwm1 1 20>; > > > pwm-names = "led-red", "led-green"; > > > }; > > > > > > > I don't have strong feelings which way it should be. The current > > implementation limits references so that you can have only integer > > arguments, like {ref0, int, int, ref1, int} but if people think it is > > better to allow strings there as well, it can be changed. > > > > I would like to get comments from Darren and Rafael about this, though. > > In my opinion there needs to be a "canonical" representation of the > binding that people always can expect to work. It seems reasonable to > use the one exactly matching the DT representation for that. I don't follow. The two forms would share the same high-level accessors, but the binary representation is already different. Why should we choose the inferior layout given they are already different binary formats? Mark.