From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757357Ab2CSAzs (ORCPT ); Sun, 18 Mar 2012 20:55:48 -0400 Received: from imr3.ericy.com ([198.24.6.13]:36567 "EHLO imr3.ericy.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757213Ab2CSAzr (ORCPT ); Sun, 18 Mar 2012 20:55:47 -0400 Date: Sun, 18 Mar 2012 17:54:06 -0700 From: Guenter Roeck To: Linus Walleij CC: Diego Elio =?iso-8859-1?Q?Petten=F2?= , Grant Likely , "linux-kernel@vger.kernel.org" , Linus Walleij , Denis Turischev Subject: Re: [PATCH] gpio: add support for ITE IT87xx Super I/O GPIO. Message-ID: <20120319005406.GA28497@ericsson.com> References: <1331927293-17911-1-git-send-email-flameeyes@flameeyes.eu> <20120317123151.AAF9A3E0952@localhost> <1332010422.22775.76.camel@saladin.home.flameeyes.eu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Sun, Mar 18, 2012 at 07:14:45PM -0400, Linus Walleij wrote: > On Sat, Mar 17, 2012 at 7:53 PM, Diego Elio Pettenò > wrote: > > > Another reason to have a MFD driver would be to allow tweaking the few > > more knobs that (at least IT8728F) expose, such as the ability to switch > > a few pre-defined inputs and outputs to GPIO instead, and so on... > > Hm that sounds an awful lot like pin multiplexing. Is that the case? > Depending on the chip configuration, a physical pin may be a GPIO pin, or a UART pin, or a fan control pin, or a FD pin, or something else. This does not apply to all pins, but to many of the GPIO pins. On IT8721F (which is supposedly mostly compatible to IT8728F), only four of the 87 GPIO pins are GPIO-only (unless I miscounted ;). All others have at least two different functions. Not sure if it is a good idea to re-configure any of those pins. I would assume there is a reason if a given set of pins is configured as UART, for example. Guenter