Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1529889pxy; Thu, 6 May 2021 09:40:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxxHVQAfwalMIuMkidc6x1O1scftej4nw8uttEjY49fXOrrh7Y/NlmytCGmwG0tHvm6h1M X-Received: by 2002:a17:90a:fd88:: with SMTP id cx8mr5633047pjb.190.1620319245678; Thu, 06 May 2021 09:40:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620319245; cv=none; d=google.com; s=arc-20160816; b=IHNr0VR50TYJNc2QwJ5+WUo/Ay60Q+edjpb/KOiTuYpj2IPJOvzS+cGRpGiKZJMcKX gkO+JYNA6TK8E9Yp6xWDUi8sPF40UmFOv9MY1qB20Pe1ZV7uemRZNI+8KZO4+44hbT6M w64HNQNPVG0XJ5d5en1DnobVvLABkMeTNgNGX5jziw79+NU9xtNqCYAibHjPZ0scGHbf s/xN2jk/Mb6S1g4++kHQ6nDTMIGbgJRNVxNE/btCm2FJK0fk0AwmhHdQVwVLUmhXymUZ sghLOglGlmObD87HNo2wu7Rx2X5DmPj/qeJDeYnyeNl0BGG5OUl5+pgQsOqOWEv0HUkG IExg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=gVkMrQ/iSFng03q+vYord5gGnO9YCbe1HWJWRJRnKCw=; b=fjlo8LryhPra8rHTJMwMpL/cSbC9uTrAhWTKvtpLYN9/TLVO9HZ6XOY1Wgq/g0uHvW unu3QMvRcxuyIoxU6U450/xDIjrdctVIIx/CrkhVuKrXP1iajEnRYHCZCrOb9YbsTzL8 LOttN3bNeIjzohxiXQVVjPbictXBLUf2zGMyhuqVoJq/cj1zRx9K4b0g3l3/ienLteVl 060qVUzo0UElbnrEA+byoxMqYvQl74YKmDB/g97KmBdh7lPW72PKgG+F/7fl07Z13PyH zxT/Yy0OPwfqihK5jrqSINBRyMda0TFr/7I34ujAANhGC2ocjpXVRLJtqUqz3b2olL3X s2Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=tZRv7ehG; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z12si3909503pfa.306.2021.05.06.09.40.32; Thu, 06 May 2021 09:40:45 -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; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=tZRv7ehG; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235896AbhEFQjn (ORCPT + 99 others); Thu, 6 May 2021 12:39:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235617AbhEFQjn (ORCPT ); Thu, 6 May 2021 12:39:43 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFCDFC061574; Thu, 6 May 2021 09:38:44 -0700 (PDT) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 22A5A22264; Thu, 6 May 2021 18:38:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1620319121; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gVkMrQ/iSFng03q+vYord5gGnO9YCbe1HWJWRJRnKCw=; b=tZRv7ehGNivRylG+i8rjxXn6P3Oet0VvP3pgg0iiMgBi01bNy8aVimYNhElPhS5tNj6RHC xLY3+Pam7GGhH/1/XVL1qkYSCuAry3mi/ax18dB4tAqCHi7N8jfmGbtY/KuGGJalr8UubP Fn+UTsg3La1ERywSoB/SQpBaBRcu6Lg= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 06 May 2021 18:38:41 +0200 From: Michael Walle To: Robert Marko Cc: lee.jones@linaro.org, robh+dt@kernel.org, linus.walleij@linaro.org, bgolaszewski@baylibre.com, jdelvare@suse.com, linux@roeck-us.net, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-hwmon@vger.kernel.org, luka.perkov@sartura.hr, jmp@epiphyte.org, pmenzel@molgen.mpg.de, buczek@molgen.mpg.de Subject: Re: [PATCH 3/6] gpio: Add Delta TN48M CPLD GPIO driver In-Reply-To: <20210430123511.116057-3-robert.marko@sartura.hr> References: <20210430123511.116057-1-robert.marko@sartura.hr> <20210430123511.116057-3-robert.marko@sartura.hr> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <10b67a4dce693f013eccfd6f46ecb4c4@walle.cc> X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2021-04-30 14:35, schrieb Robert Marko: > Delta TN48M CPLD is used as a GPIO expander for the SFP GPIOs. > > It is a mix of input only and output only pins. > > Since there is no logical GPIO numbering arbitrary one is used > along dt-bindings to make it humanly readable. Can gpio/gpio-regmap.c be used here? See gpio/gpio-sl28cpld.c for an example. -michael