From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09572C31E51 for ; Tue, 18 Jun 2019 08:41:12 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C7CD9206B7 for ; Tue, 18 Jun 2019 08:41:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C7CD9206B7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92) (envelope-from ) id 1hd9fX-0005Q4-79; Tue, 18 Jun 2019 04:40:43 -0400 Received: from mga18.intel.com ([134.134.136.126]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hd9fU-0005Px-A2 for kernelnewbies@kernelnewbies.org; Tue, 18 Jun 2019 04:40:40 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jun 2019 01:40:37 -0700 X-ExtLoop1: 1 Received: from smile.fi.intel.com (HELO smile) ([10.237.68.145]) by fmsmga005.fm.intel.com with ESMTP; 18 Jun 2019 01:40:35 -0700 Received: from andy by smile with local (Exim 4.92) (envelope-from ) id 1hd9fO-0007BL-OW; Tue, 18 Jun 2019 11:40:34 +0300 Date: Tue, 18 Jun 2019 11:40:34 +0300 From: Andy Shevchenko To: Alexander Ivanov Subject: Re: GPIO Driver for Skylake-Y PCH Message-ID: <20190618084034.GI9224@smile.fi.intel.com> References: <23630.1560537979@turing-police> <59c1b6d6-0545-4249-90cb-d1152b6ea728@www.fastmail.com> <25501.1560539366@turing-police> <15515.1560627024@turing-police> <20190617080614.GX9224@smile.fi.intel.com> <61e483bc-6bf9-4438-87de-7a01fac1ae5b@www.fastmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <61e483bc-6bf9-4438-87de-7a01fac1ae5b@www.fastmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Linus Walleij , Valdis =?utf-8?Q?Kl=C4=93tnieks?= , Jean Delvare , =?iso-8859-1?Q?Bj=F8rn?= Mork , kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Mon, Jun 17, 2019 at 05:00:54PM -0700, Alexander Ivanov wrote: > On Mon, 17 Jun 2019 09:39 -07:00, Andy Shevchenko wrote: > > > > How come that this device is GPIO? > > I mean what makes you, guys, to come to this conclusion? > > > > Intel document 332996-002EN [1] chapter 28 says GPP_* groups are accessible through the PCH Sideband Interface, while 332690-004EN [2] defines P2SB at d31.f1 > > Obviously, I am wrong here. However, the question stands, is there linux kernel support for Intel PCH GPIO? Yes. Most of the SoCs from Intel use GPIO IP based on Chassis specification, the drivers for which are available under drivers/pinctrl/intel. What you are looking for is located under PINCTRL_SUNRISEPOINT configuration option. > [1] http://www.intel.cn/content/dam/www/public/us/en/documents/datasheets/6th-gen-core-pch-u-y-io-datasheet-vol-2.pdf > [2] https://www.intel.com/content/dam/www/public/us/en/documents/datasheets/100-series-chipset-datasheet-vol-1.pdf -- With Best Regards, Andy Shevchenko _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies