Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3749474pxf; Mon, 29 Mar 2021 10:18:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzubIEuOeYo4XeM0DPRgDxGGDt4/NAvtQsn2kX6DzBKB37vfPLO4/oFx9+HuCd+JHUwCdTq X-Received: by 2002:aa7:d987:: with SMTP id u7mr29045687eds.326.1617038320450; Mon, 29 Mar 2021 10:18:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617038320; cv=none; d=google.com; s=arc-20160816; b=oijXRLKiSgdwbwDzUviuuQ1nMwYPpR0VAbq0yI8fiiaJwr4BB/SGjqWmaef1Qd6Zxb ZQSkFgFNCCD4+NOoiS2fOscTx80Mx3Fcx47TZbYHtZmZPt2Hr/s3vB8I/PsKJruWNagv ILLazEbMrUxmV35hfEIsveHR0teQBNcI0qkHWeuUsQQ0hXqlx89uYwU3VCzZab4+We0G dgEAGdbWUf5erxbG+AvDrATLoNdU+KyGvXv1+x2qgkgqpstlX9gehoxDrSogD6LwlGAi RB49s+Ou3rNsg+EL+y6YLKwaCTQjs1BWte77IPYDYQlzyr476Ymo+BqJF6AV6dnkROj6 oZ9Q== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mwT830ZmSukqqo+1KfIIOfyi/WJMzx76Bo76wcInTPc=; b=CY24xNhHecLABI/htuK1A0+4KReFARG0YRaIhNWw6qcnx0Yl09S33l9wN5zx/9oqWE URyV+dXdEvb+XfTodrUaporsG5GUg9GrmrtijXXRyxqg5IbF0VekzN/eJasQbZvr0p+i W9hxXeSVsNs8abul4DqQ2LlQ65ljDj5SiFcqjPwGkrtIXoy+bqDoOPnaLw7mGY9K7Zi5 ERJqnLnwjYzmmeeljAWMlOnU/KDEltkTMlgxhx+/PcUAVd9uu4bFcimeYOZc2wnmb3qz +qXStJzkIQkr6d1TOxzvQDiwLdBsdJ4LpDhXwL3ITKxDof4Jqmf2E3Ey9dBbPBLDHFJN LcBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pqgruber.com header.s=mail header.b=XxQYwlPA; 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=REJECT sp=NONE dis=NONE) header.from=pqgruber.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ky21si13178361ejc.641.2021.03.29.10.18.17; Mon, 29 Mar 2021 10:18:40 -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=@pqgruber.com header.s=mail header.b=XxQYwlPA; 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=REJECT sp=NONE dis=NONE) header.from=pqgruber.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229711AbhC2RRK (ORCPT + 99 others); Mon, 29 Mar 2021 13:17:10 -0400 Received: from mail.pqgruber.com ([52.59.78.55]:57336 "EHLO mail.pqgruber.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231295AbhC2RQl (ORCPT ); Mon, 29 Mar 2021 13:16:41 -0400 Received: from workstation.tuxnet (213-47-165-233.cable.dynamic.surfer.at [213.47.165.233]) by mail.pqgruber.com (Postfix) with ESMTPSA id E4351C729F1; Mon, 29 Mar 2021 19:16:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqgruber.com; s=mail; t=1617038200; bh=mwT830ZmSukqqo+1KfIIOfyi/WJMzx76Bo76wcInTPc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XxQYwlPA3PQdqhvLvP9MabX+IpfSQDQA4W2Ik0rmR4jgdHerxRX+sqU4l2Q9bgBLJ +N+qvkuNGy7to7v+oBsvcPTQ26TWAWI6x02G2VNY5fk/VE79mpHyqIqRX7NUI3IRpZ 9mbTOIRXo0N9fzcIaNImJnNNw0wAl3FQMJGuAu/s= Date: Mon, 29 Mar 2021 19:16:38 +0200 From: Clemens Gruber To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: linux-pwm@vger.kernel.org, Thierry Reding , Sven Van Asbroeck , linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 4/7] pwm: pca9685: Support staggered output ON times Message-ID: References: <20210329125707.182732-1-clemens.gruber@pqgruber.com> <20210329125707.182732-4-clemens.gruber@pqgruber.com> <20210329170357.par7c3izvtmtovlj@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210329170357.par7c3izvtmtovlj@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 29, 2021 at 07:03:57PM +0200, Uwe Kleine-K?nig wrote: > On Mon, Mar 29, 2021 at 02:57:04PM +0200, Clemens Gruber wrote: > > The PCA9685 supports staggered LED output ON times to minimize current > > surges and reduce EMI. > > When this new option is enabled, the ON times of each channel are > > delayed by channel number x counter range / 16, which avoids asserting > > all enabled outputs at the same counter value while still maintaining > > the configured duty cycle of each output. > > > > Signed-off-by: Clemens Gruber > > Is there a reason to not want this staggered output? If it never hurts I > suggest to always stagger and drop the dt property. There might be applications where you want multiple outputs to assert at the same time / to be synchronized. With staggered outputs mode always enabled, this would no longer be possible as they are spread out according to their channel number. Not sure how often that usecase is required, but just enforcing the staggered mode by default sounds risky to me. Thanks, Clemens