From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3AF48C433E0 for ; Tue, 30 Jun 2020 21:56:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1C9912073E for ; Tue, 30 Jun 2020 21:56:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727818AbgF3V4O convert rfc822-to-8bit (ORCPT ); Tue, 30 Jun 2020 17:56:14 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:55991 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727050AbgF3V4O (ORCPT ); Tue, 30 Jun 2020 17:56:14 -0400 Received: from xps13 (unknown [91.224.148.103]) (Authenticated sender: miquel.raynal@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id D85FB240008; Tue, 30 Jun 2020 21:56:10 +0000 (UTC) Date: Tue, 30 Jun 2020 23:56:09 +0200 From: Miquel Raynal To: Andy Shevchenko Cc: Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= , Bartosz Golaszewski , Thierry Reding , Linus Walleij , linux-gpio , linux-pwm@vger.kernel.org, Thomas Petazzoni , LKML Subject: Re: [PATCH v6] gpio: pca953x: Add Maxim MAX7313 PWM support Message-ID: <20200630235609.52611e41@xps13> In-Reply-To: References: <20200503105453.23658-1-miquel.raynal@bootlin.com> <20200629160844.6ecf79c1@xps13> <20200629195044.uvgma53cajiko3gf@pengutronix.de> <20200630085828.1aebdf99@xps13> <20200630124500.m765t276atb3wqgy@pengutronix.de> Organization: Bootlin X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Hello, Andy Shevchenko wrote on Wed, 1 Jul 2020 00:27:31 +0300: > On Tue, Jun 30, 2020 at 3:45 PM Uwe Kleine-König > wrote: > > On Tue, Jun 30, 2020 at 11:13:31AM +0200, Bartosz Golaszewski wrote: > > > I can't find anything in any of the previous threads. What was the > > > reason to not go the MFD way here? > > > > MFD doesn't work because the different "modes" are not orthogonal. So > > this is not a single device that provides several functions at the same > > time that can be used in parallel. > > Did I get this correctly that it's either *all* pins are GPIO or *all* are PWM? > > Otherwise, it fits from my point of view. > Sorry for not being clear in the first place : the choice between pure GPIO and PWM is on a per output basis. As Uwe said, the two "modes" are not orthogonal hence the MFD does not fit here IMHO. Thanks, Miquèl