Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756155Ab3G2WfH (ORCPT ); Mon, 29 Jul 2013 18:35:07 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]:63233 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754239Ab3G2WfD (ORCPT ); Mon, 29 Jul 2013 18:35:03 -0400 MIME-Version: 1.0 In-Reply-To: <1371547751-13873-2-git-send-email-christian.ruppert@abilis.com> References: <20130618092516.GC18663@ab42.lan> <1371547751-13873-2-git-send-email-christian.ruppert@abilis.com> Date: Tue, 30 Jul 2013 00:35:03 +0200 Message-ID: Subject: Re: [PATCH 2/4] pinmux: Add TB10x pinmux driver From: Linus Walleij To: Christian Ruppert Cc: Stephen Warren , Patrice CHOTARD , "linux-kernel@vger.kernel.org" , Grant Likely , Rob Herring , Rob Landley , Sascha Leuenberger , Pierrick Hascoet , "linux-doc@vger.kernel.org" , Alexandre Courbot , "devicetree@vger.kernel.org" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1608 Lines: 43 Sorry for taking eternities to look into this. On Tue, Jun 18, 2013 at 11:29 AM, Christian Ruppert wrote: > The pinmux driver of the Abilis Systems TB10x platform based on ARC700 CPUs. > Used to control the pinmux and is a prerequisite for the GPIO driver. > > Signed-off-by: Christian Ruppert > Signed-off-by: Pierrick Hascoet (...) > +The following pin groups are available: > + - GPIO ports: gpioa_pins, gpiob_pins, gpioc_pins, gpiod_pins, gpioe_pins, > + gpiof_pins, gpiog_pins, gpioh_pins, gpioi_pins, gpioj_pins, > + gpiok_pins, gpiol_pins, gpiom_pins, gpion_pins I would not attempt to define groups for all GPIO pins. (...) > +gpioa: gpio@FF140000 { > + compatible = "abilis,tb10x-gpio"; > + reg = <0xFF140000 0x1000>; > + gpio-controller; > + #gpio-cells = <2>; > + ngpio = <3>; > + gpio-ranges = <&iomux 0 0>; > + gpio-ranges-group-names = "gpioa_pins"; This uses that feature to define GPIO ranges from a group does it not? I'm not certain about that feature. I don't see any of the port concept creeping into the device tree in this version and that is how I think it should be kept: the "port" particulars is a thing for the driver and not the device tree. Yours, Linus Walleij -- 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/