Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1625112pxy; Thu, 6 May 2021 11:44:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKM7ZXbhuXUWl/9bZhFuNO/L20fCLqO2OYOivT1DaeB32vEDhydka6I9avnHR1yXrGDfN+ X-Received: by 2002:a63:6207:: with SMTP id w7mr6040170pgb.260.1620326644275; Thu, 06 May 2021 11:44:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620326644; cv=none; d=google.com; s=arc-20160816; b=aghGWnPu5zVJINuoeiZAgUUsSnTDLZr6pFG37JY+3LsKq3Q0byRuwp9KO7AI6Dr6zY SGPBW2bS0SZzP9laWpb3W/ScIhPqgTvSAJWw4xxJMNFBv6gBuC4M2Atj/V2t7cdspR4H Uuc6rQcWmPxu+TDTPIve5rWIgp9w8BX38Zf/I9s4Vph5yXf6kurycvZxdMPdpgoQEM9K WE6pYCutbAGIwL1N96E0u7A7URLE9hdj/ViChM5uG7A7YCnBj12T396Bc34fYOApDBwL SC2LcTT2pyajlixaNru/aNbWXf194LbGuhXFvI5IcIGL4AFlKMWvDsZb8Nl14ohPXzkr kthg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=hubMrxC9QQYXjgi7dy68ZaTpf75wgUYvH/C6a+Uaz+g=; b=bKxdt7bRLkc0hi3VyWVIGEBCPJ94zLNeAP0B4IjpQSZzozHYcmTmn3ci00rG2VD1Fg Ag/3wvceGj7opuMqNWOxOC7S3d852y2DFW1Bh2q1frhK8DYPWyztLFdiYBJcsI14bXqK X6Jt7/DxlwcI2rYczp8SjDUhU2FOtDSS1Hd3QjC12jGgDNa/JAP9ZDSn8MClJYj133Za p+qXVC/iWx+zVvdxrAJJ4fNts9z1xtlcku1H2gS0/zZ8AbVLewimY4+/s7hAEBRSRHGE tm3mB0zSx3BxVLz3NaW2uMN+EYnNRmcluMTbHgVo2F5uZrvk+QgeRL5SUzTsxGjuLbpc 16Ig== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c189si4445872pga.361.2021.05.06.11.43.51; Thu, 06 May 2021 11:44:04 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234529AbhEFOB1 (ORCPT + 99 others); Thu, 6 May 2021 10:01:27 -0400 Received: from mail-ot1-f46.google.com ([209.85.210.46]:41684 "EHLO mail-ot1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234002AbhEFOBZ (ORCPT ); Thu, 6 May 2021 10:01:25 -0400 Received: by mail-ot1-f46.google.com with SMTP id c36-20020a05683034a4b02902a5b84b1d12so4935556otu.8; Thu, 06 May 2021 07:00:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=hubMrxC9QQYXjgi7dy68ZaTpf75wgUYvH/C6a+Uaz+g=; b=dcYjeGL33nP3z9CO3l6kWbSDfahBS1mFeYzj3gKxL80JcSkRJX6lIsZZQpemqrmqja aDzEtLhdFWRhpVMcX5zXTZfo9XQLRqLszOa9bJfO0GAmujwzo1tuUSb4/SDb6zRGRrvc U/It5SNRth0yedLIK4Hf3oLay7KFLcztsebuNNoLvjNVHY0BzA3mZnkB0jyVOjZ6BIwr GTcgeRrb9Wyhzcbqbo8wBwomPZzWi6e7YXe2JccsP8gMOpw2W4vRmldoVw5qM7LXbS/e WvVT/qu4yOfaQ/7uI0VWW+AOMRkw1jHoXardfX4HE5uGEOssIiZPsJhzpU5qAckpD/Sg OSUw== X-Gm-Message-State: AOAM532jmjJZa7WVRai/i3Mz8JwMNTtEZJFEeCx+DI/AcjlwCrRDIpsu AdPFCdKtqn8eM7ANTTJHmQ== X-Received: by 2002:a9d:62d2:: with SMTP id z18mr3774871otk.78.1620309627083; Thu, 06 May 2021 07:00:27 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id p22sm599281otf.25.2021.05.06.07.00.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 May 2021 07:00:26 -0700 (PDT) Received: (nullmailer pid 244779 invoked by uid 1000); Thu, 06 May 2021 14:00:24 -0000 Date: Thu, 6 May 2021 09:00:24 -0500 From: Rob Herring To: Robert Marko Cc: lee.jones@linaro.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 Message-ID: <20210506140024.GB3340759@robh.at.kernel.org> References: <20210430123511.116057-1-robert.marko@sartura.hr> <20210430123511.116057-3-robert.marko@sartura.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210430123511.116057-3-robert.marko@sartura.hr> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 30, 2021 at 02:35:08PM +0200, Robert Marko wrote: > 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. > > Signed-off-by: Robert Marko > --- > drivers/gpio/Kconfig | 12 +++ > drivers/gpio/Makefile | 1 + > drivers/gpio/gpio-tn48m.c | 191 ++++++++++++++++++++++++++++++++++++++ > drivers/mfd/tn48m-cpld.c | 6 +- > include/linux/mfd/tn48m.h | 3 + > 5 files changed, 212 insertions(+), 1 deletion(-) > create mode 100644 drivers/gpio/gpio-tn48m.c > +static const struct platform_device_id tn48m_gpio_id_table[] = { > + { "delta,tn48m-gpio", }, Looks like a compatible, but is not. I think you can drop this and just use 'tm48m-gpio' (the driver name). Same for hwmon. Rob > + { } > +}; > +MODULE_DEVICE_TABLE(platform, tn48m_gpio_id_table); > + > +static struct platform_driver tn48m_gpio_driver = { > + .driver = { > + .name = "tn48m-gpio", > + }, > + .probe = tn48m_gpio_probe, > + .id_table = tn48m_gpio_id_table, > +}; > +module_platform_driver(tn48m_gpio_driver);