From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Walleij Subject: Re: [PATCH 5/8] pinctrl-tz1090: add TZ1090 pinctrl driver Date: Tue, 14 May 2013 13:52:34 +0200 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5183D262.7000107-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: James Hogan Cc: "linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Rob Herring List-Id: devicetree@vger.kernel.org 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