Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932093Ab3ENLwg (ORCPT ); Tue, 14 May 2013 07:52:36 -0400 Received: from mail-ie0-f169.google.com ([209.85.223.169]:51379 "EHLO mail-ie0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755500Ab3ENLwf (ORCPT ); Tue, 14 May 2013 07:52:35 -0400 MIME-Version: 1.0 In-Reply-To: <5183D262.7000107@imgtec.com> References: <1366727607-27444-1-git-send-email-james.hogan@imgtec.com> <1366727607-27444-6-git-send-email-james.hogan@imgtec.com> <517A6B01.5000708@imgtec.com> <5183AC54.30503@imgtec.com> <5183D262.7000107@imgtec.com> Date: Tue, 14 May 2013 13:52:34 +0200 Message-ID: Subject: Re: [PATCH 5/8] pinctrl-tz1090: add TZ1090 pinctrl driver From: Linus Walleij To: James Hogan Cc: "linux-kernel@vger.kernel.org" , Grant Likely , Rob Herring , "devicetree-discuss@lists.ozlabs.org" , Rob Landley , "linux-doc@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: 1403 Lines: 35 On Fri, May 3, 2013 at 5:06 PM, James Hogan wrote: > [me] >> Thus this part of the problem (poking that "select" bit) >> should be handled by the pinmux part of the driver. >> >> The pinconf part does not need to know about it. > > Okay, so how would you recommend handling the case of a pin in a muxing > pingroup that shouldn't be put into peripheral mode? > > E.g. imagine an 18bit display is wired to the (24bit) tft pins (which > are muxed as a group to "tft" function), and the least significant tft > pins are used as GPIOs to control something like board power supplies. > > Without using pinconf I think the muxing pingroups would have to overlap > like below (is that acceptable?): I don't know if I understand your example correctly but are you after this part of the documentation from Documentation/pinctrl.txt: Pinmux conventions ================== (...) It is possible to map several groups to the same combination of device, pin controller and function. This is for cases where a certain function on a certain pin controller may use different sets of pins in different configurations. 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/