Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1956057pxb; Mon, 12 Apr 2021 10:29:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzd3T+CJhVIcl8+cKJdgMlu1SkrXVOkH2CxpUYBeOyTj2wZVkPNrDvQ01jnskYY4FG6pzNx X-Received: by 2002:a17:906:5056:: with SMTP id e22mr27874838ejk.289.1618248540336; Mon, 12 Apr 2021 10:29:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618248540; cv=none; d=google.com; s=arc-20160816; b=d8ubN7orYqSuUeREV2Dqpf5k0dJT7UsDGK+NSWl+hbOSRL2TL/ZbXhJzTH5/1GVRpG WaQA2TJHE+6CiLd/34BMfEA3xiViZBYCmiwD2IgViTukdzhF7S3+ZPv+ZFPRX8nyTqNq 5iLRpMZ8VLqef212thJSC3OCUFAXBy8XfTr+K11ubDf7Ztf6Vj2DUemX9x/Sepza0fLy SkZeuHJw26Q2DZ1ulqS6oG+HK/6jvEt6vjFBI5dDMu06BmXv3HIubfeuTLJ4oSA3lgZz AoWDWogMJRAB9aSRcpobKeqP8sVauOUfsLD11ZT1r1qQxxXElBn3Jd5xiQrBSPB2pwBx OZMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=913w1co/+sEDAq1GJR7aDCf+xG4usbxPWzcHNXSWxKE=; b=HFNMgShnvD4JavQE3eB5Jfj7G1WYtM8fff9+G7TtvGtchupBdR8OD9fLnzIDoWvJb7 YQVuDNb7wLcsqZzV8z7fyQd4nNk2lVU6VcqnVo1SVJMIYvFCGtEWJZcNQuZz9i1byp4z 7Th4RIJ9RnLnZsDdpBsyFM8Bf4Bi1dpJMS8yrmsGNf6LION+5l1q3+rLijUjdh2i7+F3 gCttXELXA6L7DJVST9xHZeK/Qo83cVU5KJX/0Y4QaQHkm3quLYqGC5oRYoJYki265Jor /TSive1isqPRY6VAplFaFIhQ/XH8zdtDqRmAEG0qGWqwjo5DEt52/E8q2o9UQa3HlqKe 243A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hg15si4574384ejc.179.2021.04.12.10.28.13; Mon, 12 Apr 2021 10:29:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244072AbhDLRYw (ORCPT + 99 others); Mon, 12 Apr 2021 13:24:52 -0400 Received: from lizzard.sbs.de ([194.138.37.39]:41966 "EHLO lizzard.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239577AbhDLRYw (ORCPT ); Mon, 12 Apr 2021 13:24:52 -0400 Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id 13CHOElf025170 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 12 Apr 2021 19:24:14 +0200 Received: from md1za8fc.ad001.siemens.net ([139.22.41.180]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id 13CHGs9O017427; Mon, 12 Apr 2021 19:16:54 +0200 Date: Mon, 12 Apr 2021 19:16:53 +0200 From: Henning Schild To: Andy Shevchenko Cc: Wolfram Sang , Jean Delvare , Lee Jones , Tan Jui Nee , Jim Quinlan , "Jonathan Yong" , Bjorn Helgaas , , , , Jean Delvare , Peter Tyser , Subject: Re: [PATCH v1 6/7] mfd: lpc_ich: Add support for pinctrl in non-ACPI system Message-ID: <20210412191653.0a53985d@md1za8fc.ad001.siemens.net> In-Reply-To: References: <20210308122020.57071-1-andriy.shevchenko@linux.intel.com> <20210308122020.57071-7-andriy.shevchenko@linux.intel.com> <20210412180106.7dc524e8@md1za8fc.ad001.siemens.net> <20210412184001.2fc359c1@md1za8fc.ad001.siemens.net> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Mon, 12 Apr 2021 19:59:05 +0300 schrieb Andy Shevchenko : > On Mon, Apr 12, 2021 at 06:40:01PM +0200, Henning Schild wrote: > > Tan or Andy, > > > > maybe you can point me to a user of that patch. I guess there might > > be an out-of-tree driver or userland code on how to use the GPIOs > > from there. > > I'm confused. User of this patch is pinctrl-broxton driver. > It's in upstream. Should this appear in /sys/class/gpio as chip so that pins can be exported? That is what i tried and failed with. > Using GPIOs from it is something as done in a few drivers already > (Assuming we have no resources described in the ACPI). I.e. you need > to register in board file the GPIO mapping table with help of > devm_acpi_dev_add_driver_gpios() and use one of gpiod_get() family of > functions to request it. > > In case of LEDs you simple describe GPIO device name in lookup table > and that's it. The drivers/platform/x86/pcengines-apuv2.c not the > best but will give you an idea how to use "leds-gpio" driver in board > files. I am aware of that driver and had a look at it. In order to figure out the arguments for the macros/functions i was hoping for userland gpio "export", but maybe that does not work here ... For now i will assume that it does not show up in sysfs and can maybe still be used, and try to build on top. regards, Henning > > > Feel free to send directly to me in case it is not published > > anywhere and should not yet be on the list, i could just use it for > > inspiration. A driver will likely be GPL anyways. >