From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752895AbbC3OSY (ORCPT ); Mon, 30 Mar 2015 10:18:24 -0400 Received: from mga02.intel.com ([134.134.136.20]:14190 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751622AbbC3OSV (ORCPT ); Mon, 30 Mar 2015 10:18:21 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,494,1422950400"; d="scan'208";a="700160370" Date: Mon, 30 Mar 2015 17:18:15 +0300 From: Mika Westerberg To: Octavian Purdila Cc: Linus Walleij , Lars-Peter Clausen , Robert Dolca , Robert Dolca , "linux-iio@vger.kernel.org" , Jonathan Cameron , "linux-kernel@vger.kernel.org" , Hartmut Knaack , Peter Meerwald , Denis CIOCCA Subject: Re: [PATCH] IIO: Adds ACPI support for ST gyroscopes Message-ID: <20150330141815.GG1524@lahna.fi.intel.com> References: <20150326144753.GO1878@lahna.fi.intel.com> <20150327100627.GW1878@lahna.fi.intel.com> <20150330095254.GB1524@lahna.fi.intel.com> <20150330133307.GE1524@lahna.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 30, 2015 at 04:52:49PM +0300, Octavian Purdila wrote: > What if we can do the pin configuration in gpiolib right after the > GPIO controller is initialized. I am thinking of searching the ACPI > namespace and looking for resources that have GpioInt entries for that > particular GPIO controller and use them to set the pins to input (and > ideally also set the other properties like pullups, pulldowns, etc.) The pinctrl subsystem can do this already but currently there is no ACPI support. Using information from GpioInt to fill pinctrl pin configuration sounds good to me.