Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1922756pxb; Mon, 12 Apr 2021 09:43:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsttPeH94EsBDc8dxbHYeqrYy1soQOL5SP4HXEctW6bXpIHD3c8Iax8Z6NROW853c5JOYB X-Received: by 2002:a65:6905:: with SMTP id s5mr9970892pgq.58.1618245788443; Mon, 12 Apr 2021 09:43:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618245788; cv=none; d=google.com; s=arc-20160816; b=MVUtSXO7q7WsnqevzDAyOSBfurwJq8fZFDEwGbLvAwsbG4lMbxqKS5mjn9/prf+qLM xvCFmaGmUpw8hLkdUAqLnLuBX/Qc5t3jSUEdDgvXXXaytnuU7cIlhVu2DaVoUbniiIS0 mH+lSzPfm9xyQrG3/46qK+7aPw4pmVWopBot+PeD+PhCAZEDUhXa9dPeBiI1a9dwZVCF 2a91ymxwlHUCcdjJfzNr7zj0vOUk6M7QhRqXB1Jt8erpmzFAE+OiidgwH81VXP8NpLYw nTiZ0xMbl72nKnh7Ka0tl7izUwCMYUE+X4wTGG7mLPihrACQyGuX81C24IoFu2f+NNFD B0cQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=fp4P7C0fiBk3lWh/rZUN/xaKZoYSsluQjJA3V8WWHHU=; b=GVC5o2qj+Xo/5eYIgiKBaDVfDfshKZLVDA6cqyrVpUmaMJx/5tfeEy0BAVUO/MgXjr ZjfEJkh5NVPQdwXHSVyqEqc0fYpGexVP/hH7uxwP7l/650n/PCScCpmCgab4v2Q4aJOD TP5/qc8b7rdMCH6Io4SPwQZWfiMjn0q/yDp+4EelLYuWIkIXory7y9LpMalZZ6SHo4u4 9LZnBJsCkZzzKpLPWcGVDLTOSpBUEbQQ80dIOCDt3Zttb+ZC0mdV7DEnZDsKDM8YUVIE Z7t27b6zBddtxDQxC39eLTzoeUlCS2Te2kw/dwj9fGnpzp3cJPtBBTb7FIscQuDRHE9G aG5A== 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 h12si16712598plr.246.2021.04.12.09.42.54; Mon, 12 Apr 2021 09:43:08 -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 S1344611AbhDLQkb (ORCPT + 99 others); Mon, 12 Apr 2021 12:40:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244177AbhDLQc7 (ORCPT ); Mon, 12 Apr 2021 12:32:59 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14F1FC06135A for ; Mon, 12 Apr 2021 09:27:31 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lVzPI-0002Jm-Hm; Mon, 12 Apr 2021 18:27:24 +0200 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lVzPH-0001ZI-Vk; Mon, 12 Apr 2021 18:27:23 +0200 Date: Mon, 12 Apr 2021 18:27:23 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Clemens Gruber 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: <20210412162723.7hlhgqp6wlfbkeky@pengutronix.de> References: <20210412132745.76609-1-clemens.gruber@pqgruber.com> <20210412132745.76609-4-clemens.gruber@pqgruber.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xlhucg6eoih6yebb" Content-Disposition: inline In-Reply-To: <20210412132745.76609-4-clemens.gruber@pqgruber.com> X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --xlhucg6eoih6yebb Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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? > 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(+) >=20 > diff --git a/Documentation/devicetree/bindings/pwm/pwm.txt b/Documentatio= n/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 =3D 25ns + =2Eperiod =3D 100ns, can the driver provide .duty_cycle =3D 25s + .period = =3D 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 --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --xlhucg6eoih6yebb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmB0dOgACgkQwfwUeK3K 7AkyoAgAj56WHSz3mbbQpQYJfzLAgaVxZH4sopRLrKgguHa/mEHhlxerTk239Pit 0ePi/frDOR6+xWdP96WxYTIdivJ3+Tddpqgt+L6d9yu8S4DSRZwtrpU+3/DGjAhm TsTjV0Sj/xMb81vBwizQjFOyopsKEXHujAE4Y2+8CwtR7ns2m0L43hifWD8eaJKB WapPTzjH0CYZHOr0t6EbX0JQVqYNObZywx/1NRyyjjy8ypJ1Vt52mpuw35tmGL8r sC5Ur2byGV7thCkewB6ufCy6Ks50AIzdktrgaLMjOE2c8SL2Gg1HjWov1heOVUWq qNrgmb3zkNOEr4spJpdNiAbbLoQsRA== =V9Pw -----END PGP SIGNATURE----- --xlhucg6eoih6yebb--