Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp4280061ybh; Tue, 17 Mar 2020 16:01:03 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtnqjRhsFnIk0h0McrHCsQHj2t+tcpUgqo+NyIiRfM4UFubvdDcK6ZhXHxMV0dlCpMFOpIz X-Received: by 2002:a54:478c:: with SMTP id o12mr971807oic.106.1584486063807; Tue, 17 Mar 2020 16:01:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584486063; cv=none; d=google.com; s=arc-20160816; b=topN11zNiqaiKJcREe4syAbmCYIsOsyUVeUqaymoPDhdq91rcecsdmDQqsJyDPjtia mEUUuxOXPzJJI2AkAV63kM9AbWdhDlj9zn5xYYGDvRn26eNiT1grZwTfvseut2DbS3LS aR1dIUtfJWffbOTFVZM8XJYSMTh6h6nyCD7fh/zopM/95uWn7Z6P8egeq90d40xmkZs2 t7h4PlpwGOjjHS8YvF3/Va8ONenURfaaAYGJ8oMMqijCAzTraJVuSJb8eYzwhdhvVDRM aF8fHb6QRkDrmxD/v0ODE2Z5W+E98ku4vj6znJR3oncqdOs3V3TJz0ZbVkl0cnS7XltK 1qRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NOgJuuaGFrqmtXOUTONA0lmGcyY7p0OCs6zsd8ctybo=; b=CwL63FNt6gfIuCqWB7OjNMLHxyJMwQtj99eTUHI9Ihtwvaq5Xv5SybS5QLCYKcmr50 UUnVrCYtgEDPDiGEhtCnfsT98pcEMt0UYQ0a52zCMso6Gr68prTE/XvCtQNk5EaVgsDU pcw7SBj5x9BvUHvtCs8uqetZP9Q5cpSLRUfZ/21OVnVTJFyvPq4ETYERXvy8/VpiNn/K DgTX0wJJRCyPGIfojX5xSkObRovDDt3h1h3Wb6PSSr+bGIkS8kPDPkdjecn6N7om5yfI Pc0eQf2upz7hMpNggXVCzgEyj0Wi2qHzoo5PYt6SVKw7h9hiKxm/PvrKsfIli6G1HV3m PoRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Txlkrdy9; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a66si2349510otb.65.2020.03.17.16.00.49; Tue, 17 Mar 2020 16:01:03 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=Txlkrdy9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726765AbgCQW7E (ORCPT + 99 others); Tue, 17 Mar 2020 18:59:04 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:59460 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726476AbgCQW7D (ORCPT ); Tue, 17 Mar 2020 18:59:03 -0400 Received: from pendragon.ideasonboard.com (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8A811F9; Tue, 17 Mar 2020 23:59:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1584485941; bh=aEEqAUWAnsfPAycSCi+/qR+dKHnW9AR75G0CU/nwNm8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Txlkrdy9KZngVUCDAsBDGq39lpJ4CZj2kMoeLA5bL0I3Zwdjj/MMndCoAHEUBFKwm oxRvwU2zuhp9a3OXxYFjtEakLYsoDwyUVuLO+k77zwiiVY6Lbvsu1a6XQdvoosIN8f erfMvF0r0+yUZYDMT/8BdD341DLS0jyYaknH8upE= Date: Wed, 18 Mar 2020 00:58:56 +0200 From: Laurent Pinchart To: Oleksandr Suvorov Cc: devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, Paul Barker , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Marcel Ziswiler , Igor Opaniuk , Philippe Schenker , Rob Herring , Thierry Reding , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 2/7] dt-bindings: pwm: document the PWM polarity flag Message-ID: <20200317225856.GL2527@pendragon.ideasonboard.com> References: <20200317123231.2843297-1-oleksandr.suvorov@toradex.com> <20200317123231.2843297-3-oleksandr.suvorov@toradex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200317123231.2843297-3-oleksandr.suvorov@toradex.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Oleksandr, Thank you for the patch. On Tue, Mar 17, 2020 at 02:32:26PM +0200, Oleksandr Suvorov wrote: > Add the description of PWM_POLARITY_NORMAL flag. > > Signed-off-by: Oleksandr Suvorov > --- > > Documentation/devicetree/bindings/pwm/pwm.txt | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/pwm/pwm.txt b/Documentation/devicetree/bindings/pwm/pwm.txt > index 084886bd721e..440c6b9a6a4e 100644 > --- a/Documentation/devicetree/bindings/pwm/pwm.txt > +++ b/Documentation/devicetree/bindings/pwm/pwm.txt > @@ -46,6 +46,7 @@ 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_POLARITY_NORMAL: don't invert the PWM signal polarity With the previous line mentioning that the pwm-specifier can encode a number of *flags*, this becomes confusing: reading the documentation only and not pwm.h, one could wonder what happens if none or both of PWM_POLARITY_INVERTED and PWM_POLARITY_NORMAL are specified :-( > > Example with optional PWM specifier for inverse polarity > -- Regards, Laurent Pinchart