Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5128367ybp; Mon, 14 Oct 2019 16:03:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwt5M/q1MPjPG8ZzTnvYs5VKyOFr2QbopdFSOTv1Prek8AwY0BOTIpP9Gc0F+m+7GmFZzvm X-Received: by 2002:a17:906:5051:: with SMTP id e17mr30614653ejk.139.1571094188282; Mon, 14 Oct 2019 16:03:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571094188; cv=none; d=google.com; s=arc-20160816; b=ZhLVH6X9fXpCft3sRt5JIaarlSNngDmCisSyzuGQSlrA7r3D4B+CJtUrmq6AwwuHTZ ys/qncCAZY8Z6wLiQrFOcEpQTo3Q4I/4FsiFXKDcwAk3r/xpZxlF27XM+4/6WyJU+gBU RyAXyxlDq09navRVxL2m98al9Phax4JFGtCGh327WdPBzTPDnxEmPXpVqAfzS95Ujwye KpD/Cy+4nycomle8B5Prq3eDeRLPD0x1p+hlf6cHZLQk0h6L9Ty3e4s7UaEpzPtYsULO eZTQtTgo7crSq2AWmrzru+hCYwXvtzlrb5f8vvfEgmDVq7gOOQVCcTBOQ0qC13xtw+Dh SjCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XN1W11UdnVSpmM8IBnNjLEn4Slzsx790GpHtKtPVAlo=; b=fHc1x+kb91ILh+uGhmmh/v86v8CP8i60iNTtaNIMr0WX/QMxJi03aa0zzv9g8R4q0K w9Y5RUxWUfCs5uPAdUdEivArvvKXJgFrwNa6QYEBw47L+GTdbcAPKafNqvcqZ9C7C99e HzSAgMmZ8rXF5zfIczWC87B6/X15JI5rP0F9ceYO8RWe2c0eFDELgywAgtfb863XOmwo BYrj9A2BMyCkLdsiu4IXGSAhSAUPcvC0cxacE4/TlYj7Zi1ybd/3DNueYmDLaDWFH1/E ytB+bKOPFSHWg1cPfdeL9MudeQA/NmQMCM4ozBOUOiFV5vKTwjd8sdXNOZXWZV9VcHma IHgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V60ItJYN; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l21si13810184edc.112.2019.10.14.16.02.04; Mon, 14 Oct 2019 16:03:08 -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=pass header.i=@gmail.com header.s=20161025 header.b=V60ItJYN; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730934AbfJNR7N (ORCPT + 99 others); Mon, 14 Oct 2019 13:59:13 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:40707 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726589AbfJNR7N (ORCPT ); Mon, 14 Oct 2019 13:59:13 -0400 Received: by mail-pg1-f196.google.com with SMTP id e13so2320033pga.7; Mon, 14 Oct 2019 10:59:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XN1W11UdnVSpmM8IBnNjLEn4Slzsx790GpHtKtPVAlo=; b=V60ItJYNKZfadf+Ceewo994i+FEZYS4kU89CY6CLJ2GaPSAo8Py82mDvlMV6izozS3 un9AB+fn72Z0RtEFjVwlQeYqgz0hNpvr9qTvV5YETqUQx1b/lzASdk9NSC+Ocvv3BRqA myuHSRQQ6K5IDKPWh7IAJBuP/0tu9m3H5NXCitwRUrQZXuedisaxE69bftubVJNMPp5G nR2txXx17bX0tg1CdPc7yfZXiKNGq7S/HKjC7WEJ9Cof1qgkgy6QdDHYMq9BDRILp/ub sS3fDU1OMOf+gOTopKogew7GgH3K1s/5R9g6Ucy83+ki9uwE2IajqqdJvRH++pznvUf+ Otaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XN1W11UdnVSpmM8IBnNjLEn4Slzsx790GpHtKtPVAlo=; b=oWWKR3OjaKgB7NC5iYI5QNZIVbxrP5kFpIZy0mY38cK0NwJ/KELwh+lm4BQyMpNvkT j0/l5eNAw30GLr3NHxH0TvxP1sTyE+FkGe8iff0qhnebFOKBm16L9WHdGzWs3M4jUvv9 HP3mO5dLcuPnnbfZzcJktNx+j7i/1VXYtL/56xeMBkZZitJRyn7X88Cgg1ZqJ1vApypx uC/hHlAt8qunfGAy4MFN4JO9URx6iPnHuP+mwGQayr+HCh1bitnw09VyZYFSRl8Co3fD S3ew/4GLvVANX7Gaw6mdf6BMDiJCDAcwVsznKMya3O7sXF0FZSqq+ISSVNEARwMa3qlU YTeg== X-Gm-Message-State: APjAAAVkrYem8Mt3/bsLXNgJBIqSWJ+PxMkvz/k8gv5yRlJdM0QeK0eF cZR3EBgUDzi4C7QaBwz2L/G5+582K2dGDHDM1JA= X-Received: by 2002:a17:90a:b391:: with SMTP id e17mr38652318pjr.132.1571075952238; Mon, 14 Oct 2019 10:59:12 -0700 (PDT) MIME-Version: 1.0 References: <20191014124803.13661-1-miquel.raynal@bootlin.com> In-Reply-To: <20191014124803.13661-1-miquel.raynal@bootlin.com> From: Andy Shevchenko Date: Mon, 14 Oct 2019 20:59:01 +0300 Message-ID: Subject: Re: [PATCH] gpio: pca953x: Add Maxim MAX7313 PWM support To: Miquel Raynal Cc: Linus Walleij , Bartosz Golaszewski , Thierry Reding , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , "open list:GPIO SUBSYSTEM" , linux-pwm@vger.kernel.org, Linux Kernel Mailing List , Thomas Petazzoni Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 14, 2019 at 4:09 PM Miquel Raynal wrote: > > The MAX7313 chip is fully compatible with the PCA9535 on its basic > functions but can also manage the intensity on each of its ports with > PWM. Each output is independent and may be tuned with 16 values (4 > bits per output). The period is always 32kHz, only the duty-cycle may > be changed. One can use any output as GPIO or PWM. Can we rather not contaminate driver with this? Just register a separate PWM driver and export its functionality to GPIO, or other way around (in the latter case we actually have PCA8685 which provides a GPIO fgunctionality). -- With Best Regards, Andy Shevchenko