Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp75522ybt; Tue, 30 Jun 2020 15:09:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLhQ/DHLl+oP+OWyJq0xFD2dEwvf74ZvKgyvn515fdnFgk61huPs8lE/hQN4Yfag5ZiFT8 X-Received: by 2002:a50:f187:: with SMTP id x7mr24322771edl.59.1593554643166; Tue, 30 Jun 2020 15:04:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593554643; cv=none; d=google.com; s=arc-20160816; b=qH1aTya6WUNRRRWnUgUxUHPGh80JvG5kEOo5HjeFX/NAjJP4z0WtiECMXzJ568gSzx SERLk+tRqYU8xZC1gOCxNweJVSuAfenq+QtMLKMGb+YtNMIWcWnQJV4Vh6PU6c6+d5tA hBaZQSC5nlwx5rjSt8PoEgE+P9W/PGJ/F3wRADvpXNrQ2mSPwgYKCr54QYYWOzuHZpn7 aJ85er/mScarrsbQtTHHddjqGvHhxRasAe0mgXtDjYP6d/9zUVnCqRh62iiG1cd1T5Tw t2fVYZtN17vJqRRHFeIi1C/h0YM2Z13Xic0wLsI9Tsvy28xmTqzxaFhFzlcNSv4HQGhL zCCA== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=nJ5uBxtBdL/DgwS1XtA84SK+xxXQeJ9FLKdDFzSDh/Q=; b=dvFdFhhEw6I1KJzNkk3nImeGK5EOpOjQph9EeTYLrvuw0OtplFSl4TBQdF0X5gv3pa dxzmUJyqnOsg4QGA3HEmnRbgI0zei181n8rTXEhdcYEZjBIj7qeC1V6THtLRKBz5tkCR 9hpEzmLPKzl91uF3807ZhsCJ+UZX/ZzM8owj6LWI8EvoLQLONsS5kmYvaYiKhyhtMlTv B4Ws8gdECmcpsQwj48FJxJ6DtATDuTSNgjEAeG0AdY7flj/8ogfA7Z6plAKhhLgffiuE wDiilykeYe+Gnc0O7k63Mz2A1dAwP7br7UMJ3aksTxp9kZLlZduuTD2SKjdf1nw7YHCY us9A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l22si2398844edw.118.2020.06.30.15.03.40; Tue, 30 Jun 2020 15:04:03 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727849AbgF3V4O convert rfc822-to-8bit (ORCPT + 99 others); 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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