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=-0.3 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 02714C43613 for ; Thu, 20 Jun 2019 21:01:50 +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 A58F7206BA for ; Thu, 20 Jun 2019 21:01:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=fastmail.com header.i=@fastmail.com header.b="O7uK1dML"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="W9RmOFcH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A58F7206BA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=fastmail.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 1he4BT-000641-CK; Thu, 20 Jun 2019 17:01:27 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1he4BQ-00063u-Ge for kernelnewbies@kernelnewbies.org; Thu, 20 Jun 2019 17:01:24 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 5F440347; Thu, 20 Jun 2019 17:01:21 -0400 (EDT) Received: from imap4 ([10.202.2.54]) by compute3.internal (MEProxy); Thu, 20 Jun 2019 17:01:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm3; bh=IvN8V2ZmCs5+QcD/2Oxi8LGjED44+w/ PkqeELTIekJg=; b=O7uK1dMLRX6RENykDtAU41Gmx+5EGkJrWzRmzOiuSUls/Rx 8vL1a9HRIyXaQLoriPqn+tUNjGJmzaXEwyR8bBP/8oFmFbEQKPGB9SNciDRrsR7U QUmYXvcMGCGyN0g2LVvss7Rpjy2pzUdoxYvs7vtv97zxZ7blIdd/V39zXuw4asx0 t/NWtelF0Ymcwx+iuMTwmkaDqI8ZJtPh2IEm+fP0U8RcsnCib36aD0sBpOOF0vea Rv8DjpY1QZQ+EKMsCUtaV7CpN5vc4EJ0GKtXHTLrxp8vJfzPQwKUtJRj/7+MDTvz +9vtEMxOv1yjuPnlesDvIozevRvlbK59FeWFKFA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=IvN8V2 ZmCs5+QcD/2Oxi8LGjED44+w/PkqeELTIekJg=; b=W9RmOFcHDUMwTVcO1b+ubU jl1YIY6UkSStFIhyfH/4ZXWw1A4hgzMuqwRompIbLssb71Flf4xhKsdMZpfPH6V5 JNckoAyfNzLqCtDoasY2hi4nne8MxzQaao3NXCgWFVFSXJvoxZ2XmLRkPobdWYfO dRz0v18XShZftJo2jX5QSN3SULl+5+bDklDO1sX7MFiK4KUGqhoMluI3s98iML6f J2SzGwa3+e1e0K4m3ogRQrdJOBKMVkP1IxFt9CUchnKRycwRRHfAMp/SXqnBEvn2 BWV3WOJT6JPhgeJcdBWpG5dkysYiB3B1tskOlM/B7zTj23JGE1Hr9N9hyDg1BUsw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrtdeggdduiedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdetlhgv gigrnhguvghrucfkvhgrnhhovhdfuceorghmihhvrghnohhvsehfrghsthhmrghilhdrtg homheqnecuffhomhgrihhnpegsohhothhlihhnrdgtohhmpdguvghvihgtvghsrdhlshen ucfrrghrrghmpehmrghilhhfrhhomheprghmihhvrghnohhvsehfrghsthhmrghilhdrtg homhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 6FFC43C00A0; Thu, 20 Jun 2019 17:01:19 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.6-728-g133121a-fmstable-20190620v1 Mime-Version: 1.0 Message-Id: In-Reply-To: <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> <20190618084034.GI9224@smile.fi.intel.com> Date: Thu, 20 Jun 2019 14:02:11 -0700 From: "Alexander Ivanov" To: "Andy Shevchenko" Subject: Re: GPIO Driver for Skylake-Y PCH Cc: Linus Walleij , =?UTF-8?Q?Valdis_Kl=C4=93tnieks?= , =?UTF-8?Q?Bj=C3=B8rn_Mork?= , Jean Delvare , 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 Tue, 18 Jun 2019 01:41 -07:00, Andy Shevchenko wrote: > > > > 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. > My box is updated with current Fedora distro and now running 5.0.9-301.fc30.x86_64. It's also said that the box has Sunrisepoint chipset. For this chipset, 5.0.9 kernel support following devices: static const struct acpi_device_id spt_pinctrl_acpi_match[] = { { "INT344B", (kernel_ulong_t)&sptlp_soc_data }, { "INT345D", (kernel_ulong_t)&spth_soc_data }, { } }; [ https://elixir.bootlin.com/linux/v5.0.9/source/drivers/pinctrl/intel/pinctrl-sunrisepoint.c#L587 ] I believe the box has INT344B device attached to acpi bus proper: $ sudo ls -la /sys/bus/acpi/devices/INT344* ... lrwxrwxrwx. 1 root root 0 Jun 20 11:47 /sys/bus/acpi/devices/INT344B:00 -> ../../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/INT344B:00 Drivers seem loaded: $ lsmod | grep pin pinctrl_sunrisepoint 28672 0 pinctrl_intel 28672 1 pinctrl_sunrisepoint However, I don't see any gpio devices. $ ls /dev/gpio* ls: cannot access '/dev/gpio*': No such file or directory $ ls /sys/bus/gpio/devices/ $ What am I still missing? _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies