From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933921AbbHKJar (ORCPT ); Tue, 11 Aug 2015 05:30:47 -0400 Received: from mail-wi0-f173.google.com ([209.85.212.173]:36739 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933704AbbHKJao (ORCPT ); Tue, 11 Aug 2015 05:30:44 -0400 Date: Tue, 11 Aug 2015 10:30:39 +0100 From: Lee Jones To: Viresh Kumar Cc: Stephen Boyd , Rob Herring , Nishanth Menon , kernel@stlinux.com, "linux-pm@vger.kernel.org" , Dmitry Eremin-Solenikov , Rafael Wysocki , "linux-kernel@vger.kernel.org" , Sebastian Reichel , "devicetree@vger.kernel.org" , Arnd Bergmann , Ajit Pal Singh , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH v4 2/2] dt: power: st: Provide bindings for ST's OPPs Message-ID: <20150811093039.GA18282@x1> References: <20150728022936.GB1229@linux> <20150728225510.GB3159@codeaurora.org> <20150729081403.GH2284@x1> <20150729221526.GE3159@codeaurora.org> <20150730084634.GD9319@x1> <20150731163715.GV3159@codeaurora.org> <20150803034642.GV899@linux> <20150810132247.GH3249@x1> <20150811080023.GB5509@linux> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150811080023.GB5509@linux> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 11 Aug 2015, Viresh Kumar wrote: > On 10-08-15, 14:22, Lee Jones wrote: > > > Optional properties: > > > +- opp-cuts: One or more strings, describing the versions of hardware the OPPs > > > + can support. > > > > This isn't very generic. > > > > I'm guessing some vendors my have quite a few ways to differentiate > > between board versions/revisions/cuts etc. > > > > How about another array where a vendor can choose to identify a piece > > of hardware however they see fit. > > > > Example 1 (simple version): > > > > /* Version 1 */ > > opp-version = <1>; > > > > Example 2 (using the kernel's versioning): > > > > /* 2.6.32-rc1 */ > > opp-version = <2 6 32 1>; > > > > Example 3 (using ST's versioning): > > > > /* Major 2, Minor 0, Cut 2, All substrates */ > > opp-version = <2 0 2 0xff>; > > But how will we parse this with generic code ? Why would you want to? -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog