Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752316Ab3HZRTD (ORCPT ); Mon, 26 Aug 2013 13:19:03 -0400 Received: from 19.mo3.mail-out.ovh.net ([178.32.98.231]:37393 "EHLO mo3.mail-out.ovh.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752086Ab3HZRTA (ORCPT ); Mon, 26 Aug 2013 13:19:00 -0400 Message-ID: <521B8D9B.5020809@overkiz.com> Date: Mon, 26 Aug 2013 19:17:15 +0200 From: boris brezillon User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: Stephen Warren CC: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Rob Landley , Russell King , Linus Walleij , Jean-Christophe Plagniol-Villard , Jiri Kosina , Masanari Iida , Nicolas Ferre , Richard Genoud , Heiko Stuebner , James Hogan , devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-Ovh-Mailout: 178.32.228.3 (mo3.mail-out.ovh.net) Subject: Re: [RFC PATCH 2/3] pinctrl: at91: add support for generic pinconf References: <1377379926-11163-1-git-send-email-b.brezillon@overkiz.com> <1377380259-11290-1-git-send-email-b.brezillon@overkiz.com> <521B8822.50304@wwwdotorg.org> In-Reply-To: <521B8822.50304@wwwdotorg.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Ovh-Tracer-Id: 10217541655858542669 X-Ovh-Remote: 80.245.18.66 () X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: -100 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeeikedrheefucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-Spam-Check: DONE|U 0.5/N X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeeikedrheefucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2327 Lines: 66 On 26/08/2013 18:53, Stephen Warren wrote: > On 08/24/2013 03:37 PM, Boris BREZILLON wrote: >> Add support for generic pin configuration to pinctrl-at91 driver. >> diff --git a/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt >> Required properties for iomux controller: >> -- compatible: "atmel,at91rm9200-pinctrl" >> +- compatible: "atmel,at91rm9200-pinctrl" or "atmel,at91sam9x5-pinctrl". > You seem to also be adding a second chip name to the list here, which is > more than the patch subject/description imply you're doing... This is an update of the documentation: "atmel,at91sam9x5-pinctrl" compatible is already used in the pinctrl driver but the documention was not updated. But I agree, this should not be part of this series. >> + Add "generic-pinconf" to the compatible string list to use the generic pin >> + configuration syntax. > "generic-pinconf" is too generic of a compatible value for this binding > to define. > > Instead, I think you want to either: > > a) > > Use compatible="atmel,at91rm9200-pinctrl" for the old binding, > use compatible="atmel,at91rm9200-pinctrl-generic" for the new binding > > or: > > b) > > Define Boolean property atmel,generic-pinconf (perhaps a better name > could be chosen?). If it's not present, parse the node assuming the old > binding. If it is present, parse the node assuming the new binding. > Okay. I thought this property string could be generic as it may concern other drivers too (in order to keep compatibility with old dt ABI and add support the generic pinconf binding). Anyway, I prefer the first proposition. pinctrl single driver is already using these names: |compatible = "pinctrl-single" for non generic pinconf binding ||compatible = "pinconf-single" ||for generic pinconf binding| So I think we should use something similar: |compatible = "atmel,at91xx-pinctrl" for non generic pinconf binding ||compatible = "|||atmel,at91xx-|pinconf" ||for generic pinconf binding| What do you think ? Best Regards, Boris -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/