Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1936978pxb; Mon, 12 Apr 2021 10:03:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRhVXWnKkrAOtQ+OgSVKA3/qMDMAOJng9/83+cB2ly18EKQcxxXU+B5XGy5zmAaGO2jUJE X-Received: by 2002:aa7:cc94:: with SMTP id p20mr30623949edt.353.1618247022443; Mon, 12 Apr 2021 10:03:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618247022; cv=none; d=google.com; s=arc-20160816; b=oHndWL7f8XP/A4jHcZN9nk6lXmgZ1NgCCcE4J6ErEfBBmdM1AUHKF3lYhGQARXTsCi HVZvMlnTFEjAk1/Qwq1HEKIo5/i8jDkG9JhcCx+t2/Ep9odNqRoQNG/58LlEXcyZwb65 UM3kYQ298pDcNQcqbDaat9bl5BchsD9uhtUsgupF6O6LIodarFS/e5h/pLmT+aT4NSBq CIjZVMVr/fHEyjKD0JQaLrqNVope+3da++8rkclirwUVGRIsM5HswaatB/FqTf48qmB5 pjk5OxeSIcQXAcMBEUVUtm74AixU4jSmrpvr4RUwwromXy+BrF8YIXkuw3aUGm3j5rDJ mDWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=O7AlwwM/KXMuczyZ9srJDnwA51bPQzEs0Tx9Xb98pTs=; b=MwpF1PXoVeBnidRnWCg312dzuCCSqYFp8sY/YKiVyoeYdrOiIrqgmrKO0F917h/8V4 ZQNqqYoK6OhwLJn4ITbm9ttCDjFU1uWIy0F4yvGQWpI/aTt1rOtox+JBXWTXoXpHmvMA b2/wjLRAvA7CgQ9Ni6ENemYsGTXU+MZnFComDvKfAxu/Q0b0Jln246oby4dU3R4A74HH rDkpzGDMHbNTcahfIuc+SGH+XWZmLt2AIbqy6qa+oAEGqx1ICXBaaQk3VVNjTs9DBueN Kyx/huhyfLYwj2tnWyOTekxI+mLErlzGS/MktarukFQIymT1UKgMr8AoJzPjb9tKQp00 fqWg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gn20si8635082ejc.122.2021.04.12.10.03.18; Mon, 12 Apr 2021 10:03:42 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244468AbhDLRBY (ORCPT + 99 others); Mon, 12 Apr 2021 13:01:24 -0400 Received: from mga18.intel.com ([134.134.136.126]:33850 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243585AbhDLRA2 (ORCPT ); Mon, 12 Apr 2021 13:00:28 -0400 IronPort-SDR: KLijf7P1KIbvylLEDq91OhGqUZp80T/6UQkFW9hp4UJb15LoHdQiNY18vWYeUj0tuVM3IkG+F3 gUiUnKYIQ16w== X-IronPort-AV: E=McAfee;i="6200,9189,9952"; a="181754710" X-IronPort-AV: E=Sophos;i="5.82,216,1613462400"; d="scan'208";a="181754710" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2021 09:59:12 -0700 IronPort-SDR: vksfThiOB1ACjlncEiNsVbTqUMwQvTiV9+4N802d0CeSxE/1KvVvd7sxGejzGejXmCf1oPjxdP lyfku2W0Y8BA== X-IronPort-AV: E=Sophos;i="5.82,216,1613462400"; d="scan'208";a="450053256" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2021 09:59:08 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lVztx-003W0m-HV; Mon, 12 Apr 2021 19:59:05 +0300 Date: Mon, 12 Apr 2021 19:59:05 +0300 From: Andy Shevchenko To: Henning Schild Cc: Wolfram Sang , Jean Delvare , Lee Jones , Tan Jui Nee , Jim Quinlan , Jonathan Yong , Bjorn Helgaas , linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-pci@vger.kernel.org, Jean Delvare , Peter Tyser , hdegoede@redhat.com Subject: Re: [PATCH v1 6/7] mfd: lpc_ich: Add support for pinctrl in non-ACPI system Message-ID: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210412184001.2fc359c1@md1za8fc.ad001.siemens.net> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. > 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. -- With Best Regards, Andy Shevchenko