Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1928956pxb; Mon, 12 Apr 2021 09:52:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxG172e9TGLVQTvmPc7DpabkoXZ1qnfSKnWASt9EcioHatdi+fSeQLFGRc16J2T4xzsz0UV X-Received: by 2002:a17:902:aa0c:b029:ea:d2a7:32d0 with SMTP id be12-20020a170902aa0cb02900ead2a732d0mr11323197plb.18.1618246334586; Mon, 12 Apr 2021 09:52:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618246334; cv=none; d=google.com; s=arc-20160816; b=q7TsdgtdESOdkwxK3+TQo756xTrvC2BwAXrnLn+NU+n9ols3FHQiQQ12ItPU2j9Lcs 04usJMG85UFFCV9bmiJ7NRYSoUh4DwVrpyezrWZYVJOrIETaAiLp/ld+1feQkCNGw0sf I1YXFnlzxKBLySR2J/93QhJk+Xp1cbUlK2v7rjLN2de5eQrNN9bpp0ses55FyJLVqh/M Tttg5OslkaOf9SWM3QYWpS0uZx3OW2lltb1BBTOlQUjTC+pPh3u4oRXdA731lx8F920x +KeFlllZZQuBeraMJundHZ/ekylIWzlJriDiEMS8If7DoTWnPLOw6kZ4TVparQ/yUSLu CnEg== 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=ddZOwCcmLSLlpehTOdB6y2QZnRm5env2RjYzgjkBfGs=; b=hEmTiq7NiG2PJVtnctGdJEBdcZNkmRc3ZDP6ZWR91JWCyNoBUJXCPr5xPHFJI4mB3/ nvhx3XHv+K4ez8/qJNCZOaepbzXyckjfuhhO7PRdNKoYjNjOyyUSBmgYCmpUpNNj75D+ u8u0HG/WugEjdjeA4oZii/6BAw/cunEjYaLmp6w1pNvAwlb8wP9ryoqUVrliT6OU9QJT 2XHrPxCP2iGQ9bSxOxoGvaEJAOHlg07uFp4EFDe4pSB8apvALF9GomKhkR1DkeIT3Y+M 1wqxvxU7x8OW4Nm60i0rvwl3Oms6MSF3uPGASOZ5cA145Vqi0xrdP5Bldm0U6m/LP1A0 D6ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pqgruber.com header.s=mail header.b=hCCSXkcv; 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 y16si2304571plg.0.2021.04.12.09.52.01; Mon, 12 Apr 2021 09:52:14 -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=hCCSXkcv; 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 S1343636AbhDLQt7 (ORCPT + 99 others); Mon, 12 Apr 2021 12:49:59 -0400 Received: from mail.pqgruber.com ([52.59.78.55]:33104 "EHLO mail.pqgruber.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345363AbhDLQrO (ORCPT ); Mon, 12 Apr 2021 12:47:14 -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 3A59AC725C8; Mon, 12 Apr 2021 18:46:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqgruber.com; s=mail; t=1618246013; bh=ddZOwCcmLSLlpehTOdB6y2QZnRm5env2RjYzgjkBfGs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hCCSXkcvmf3hDLc942ft97uWA4vXCnETVp35x/UuDWMbKYm1EYubMaM4ZBhheRinZ MAWgXpViB1EfLMzohLaHIwp0UB82JZaIHrmLcjWCYkjeBVgCTSB1WL+LGkYZYe0StY lQUkmivF9qcLTZEKXdDP8GzFrWPPdNaD7Thkui54= Date: Mon, 12 Apr 2021 18:46:51 +0200 From: Clemens Gruber To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: linux-pwm@vger.kernel.org, Thierry Reding , Sven Van Asbroeck , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring Subject: Re: [PATCH v8 4/8] dt-bindings: pwm: Support new PWM_USAGE_POWER flag Message-ID: References: <20210412132745.76609-1-clemens.gruber@pqgruber.com> <20210412132745.76609-4-clemens.gruber@pqgruber.com> <20210412162723.7hlhgqp6wlfbkeky@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210412162723.7hlhgqp6wlfbkeky@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 12, 2021 at 06:27:23PM +0200, Uwe Kleine-K?nig wrote: > On Mon, Apr 12, 2021 at 03:27:41PM +0200, Clemens Gruber wrote: > > Add the flag and corresponding documentation for PWM_USAGE_POWER. > > My concern here in the previous round was that PWM_USAGE_POWER isn't a > name that intuitively suggests its semantic. Do you disagree? No. It is more abstract and requires documentation. But I also didn't want to waste too much time on discussing names, so I used Thierry's suggestion. I guess we need his input on this subject. I can live both with PWM_ALLOW_PHASE_SHIFTING and PWM_USAGE_POWER, as long as it is documented well enough. > > > Cc: Rob Herring > > Signed-off-by: Clemens Gruber > > --- > > Documentation/devicetree/bindings/pwm/pwm.txt | 3 +++ > > include/dt-bindings/pwm/pwm.h | 1 + > > 2 files changed, 4 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/pwm/pwm.txt b/Documentation/devicetree/bindings/pwm/pwm.txt > > index 084886bd721e..fe3a28f887c0 100644 > > --- a/Documentation/devicetree/bindings/pwm/pwm.txt > > +++ b/Documentation/devicetree/bindings/pwm/pwm.txt > > @@ -46,6 +46,9 @@ period in nanoseconds. > > Optionally, the pwm-specifier can encode a number of flags (defined in > > ) in a third cell: > > - PWM_POLARITY_INVERTED: invert the PWM signal polarity > > +- PWM_USAGE_POWER: Only care about the power output of the signal. This > > + allows drivers (if supported) to optimize the signals, for example to > > + improve EMI and reduce current spikes. > > IMHO there are too many open questions about which freedom this gives to > the lowlevel driver. If the consumer requests .duty_cycle = 25ns + > .period = 100ns, can the driver provide .duty_cycle = 25s + .period = > 100s which nominally has the same power output? Let's not introduce more > ambiguity than there already is. > > This is a NAck. > > Best regards > Uwe > > -- > Pengutronix e.K. | Uwe Kleine-K?nig | > Industrial Linux Solutions | https://www.pengutronix.de/ |