Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1833783imm; Thu, 23 Aug 2018 09:29:14 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda12s9iFsDZ9yPuuroXqKc9Khy4qeb45HQ+TxPQtT+RxJ12c/O8LOVxg1aSWANYLoJk6dKn X-Received: by 2002:a62:565c:: with SMTP id k89-v6mr2451618pfb.212.1535041754329; Thu, 23 Aug 2018 09:29:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535041754; cv=none; d=google.com; s=arc-20160816; b=0YS8qXN7e4h3Pp8Rfj6Y+o02Y6vVUbfElmbfKQBuul6NYSS3xTb+LeMsQ5b5lf5vDJ OtCCoXbh+RjeM5cNLgjG4gdH1X5cvaczX1k7bWO04eXJNqZDJj7+i7A3QFedlEZcd23r HgOdYKHdTkhPSYpNlQ7B7SO/Onh2srOl87/Vha9Lq0Vzg54V/XXJ0qNKkMAljWhqxHnv V++wiT/iG62vtnJqBXmXhE7f5aJtYJA/Jtrpz1DNrcgKa/q2uidLYnCabvMXEKs2PE1P tlVEG0MBu4VmVZsp0DRIkuZuGDKvbAwqwAmyU7L4OoCr1HXSkjqCRdtRpMwR9PIsF5x4 U07g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=hn1sh7ZZMJifaHa5laEuwKkR4kuFkwNedzbcEwfl6nA=; b=WTQcxsyYJybzTAZDFk+49WSwzcyU+qLZbBwwewulWKFqrYp4bDlC9eg4e3rCXgUL8b GrqAX/b0e4W86Ql8EukXOyh4Ftq46tucZfF384mTS4Va++Xw9mEXTW+JZv5NP4HFkEgz ea4XUYQ3A0gNUGs6wZSUxthVZ4ChCYw65yd8jPWBMmN+7AF5Zrshi8I5i/RMreYN1HQk I1QjXbItvUMrIP5tzBdOoOcEMDXTyeaDBH8J0zl7OwKRoNqdL4B1cPnvLT8pSKp/k1CW WASS4wESyFeJjLagGB4qXqUcJOlNCDW7RGTl2nCS1fKZsAHBahWG8l/ZEO1w8Z+G6EkZ XuzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NgrC7BWJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i14-v6si4793575pgm.245.2018.08.23.09.28.59; Thu, 23 Aug 2018 09:29:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NgrC7BWJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733042AbeHWSim (ORCPT + 99 others); Thu, 23 Aug 2018 14:38:42 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:58328 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732739AbeHWSim (ORCPT ); Thu, 23 Aug 2018 14:38:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=hn1sh7ZZMJifaHa5laEuwKkR4kuFkwNedzbcEwfl6nA=; b=NgrC7BWJ9fVZdIevhBpd/FpC4 0zqPzG11Bbc6h8f+c0LHPMvWe7DgS1C2qpzgQ5tbNRX3RvDIbc62ntxuWrKSMmyPIezvrhH0srQaM wSlA8o6RU/SnaT5A36WToDJDwlcg/0sWNl0Acc1EnqBJgD5CUD/P8aDb7tUwTauuobRntlIpre8zS KwdV1fm2jTWpP8pXoIriLcg384foUbGgytaZRygHUDV0f6KNYEIQQCzVcDmmVNaw8ib2/i2GzOYYh o5IxF9zmqhikL4FeKu0mLRgRxvzvZ23dVfRvZJvCJsKfqzKrfvHjmmEQptSgJfGh+zNDnXiK4ZipH 23IGnvMjQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fsrDw-0004wT-HB; Thu, 23 Aug 2018 15:08:36 +0000 Subject: Re: [PATCH 1/2] GPIO: add single-register gpio via creg driver To: Eugeniy Paltsev , linux-snps-arc@lists.infradead.org, linux-gpio@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Vineet Gupta , Alexey Brodkin , Linus Walleij , Rob Herring , devicetree@vger.kernel.org, Mark Rutland References: <20180823150013.21837-1-Eugeniy.Paltsev@synopsys.com> <20180823150013.21837-2-Eugeniy.Paltsev@synopsys.com> From: Randy Dunlap Message-ID: Date: Thu, 23 Aug 2018 08:08:34 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180823150013.21837-2-Eugeniy.Paltsev@synopsys.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/23/2018 08:00 AM, Eugeniy Paltsev wrote: > diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig > index 71c0ab46f216..0f9cc1582cab 100644 > --- a/drivers/gpio/Kconfig > +++ b/drivers/gpio/Kconfig > @@ -430,6 +430,15 @@ config GPIO_REG > A 32-bit single register GPIO fixed in/out implementation. This > can be used to represent any register as a set of GPIO signals. > > +config GPIO_SNPS_CREG > + bool "GPIO via CREG (Control REGisers) driver" REGisters) > + select OF_GPIO > + help > + This driver supports GPIOs via CREG on various Synopsys SoCs. > + This is is single-register MMIO gpio driver for complex cases This is a MMIO GPIO > + where only several fields in register belong to GPIO and in a register > + each GPIO owns field with different length and on/off values. maybe: fields with different lengths > + > config GPIO_SPEAR_SPICS > bool "ST SPEAr13xx SPI Chip Select as GPIO support" > depends on PLAT_SPEAR -- ~Randy