Received: by 10.192.165.148 with SMTP id m20csp3576998imm; Mon, 30 Apr 2018 02:42:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr5H55oIB7CjOUxn4xJP4ajQ6EuG9b9KBMtcYpQMue6irtvioJCmJzQTJ3hJY4dNGJ97Odf X-Received: by 2002:a17:902:968d:: with SMTP id n13-v6mr11426539plp.168.1525081365859; Mon, 30 Apr 2018 02:42:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525081365; cv=none; d=google.com; s=arc-20160816; b=0ISu39bb1980T9KnwWXrFNm8NwzljsHCaBU7FzpbZZUK9bDz7qzPuQuVCa+WBpUYLO slek2RzHeB43VTeAxM15sDush57vziJoOuKJhCfDWFeBZcLLT8dusIQMu7Ys2WjpvN9e sHdoh6njJDhjFtRC3hX5orCpXt4YSp9gjsSyijlPB0fpXrBlO6JHKUiDlW+folOOM71X i29irm11rGgHJv7Y1uNpHWbIQ4cUzUMGX8UH41CVzqrQq4/8oX/Hpx/tnovaRUwytCv6 ASMXEs/JThwWA3xqEHkqjccyx3EiOSa4osrs3cYD5e74R47bQ9s8zrM/BXR5A9tAePMZ zzMw== 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:arc-authentication-results; bh=OryhjDR5Y7qleEalQrhOcvGQ8rLEpOygv++tq0F6ivA=; b=AzMQDq9Ws+Kiqtl9Jm4vpoILVE7Xc18wdXVr36shxu6FvWeUgEkHDjXx9k0opxu0ZX WCnx7YUynAJrpzCnE1CP9ug54HryPaJyQQatI6d0Hq/P7ReZXwQO4gvYM5fL6LQa8kJR 3cE4ySdJS9kBl9yEeFG8S5jgt5y1MYh9vB3zHHndeYaLkc9jIxw1h6auHJ1a1oejEBYL Scvjs66Jq96HoL6zvGpCjPj5sQKdLU5WnNhuEERsUstsIlGegcQ3xUhEU56V5C/DwGUS WdBR+NhOwb0JC99TXPKRYorLhKffdwmnWAiJKjp2DP1MTDXmEvDpCkZaLUQvNJOlThq4 /jLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I6yszDJw; 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 d6-v6si5861163pgc.140.2018.04.30.02.42.31; Mon, 30 Apr 2018 02:42:45 -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=I6yszDJw; 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 S1750882AbeD3JmK (ORCPT + 99 others); Mon, 30 Apr 2018 05:42:10 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36232 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751283AbeD3JmI (ORCPT ); Mon, 30 Apr 2018 05:42:08 -0400 Received: by mail-wm0-f68.google.com with SMTP id n10so13170095wmc.1; Mon, 30 Apr 2018 02:42:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=OryhjDR5Y7qleEalQrhOcvGQ8rLEpOygv++tq0F6ivA=; b=I6yszDJwbR/qKUtXZ8xN4dk5nX7CBVN84dDcHv5zkls9uhfGPHaMkRVgfUpf6YUgc3 wWEBUKNYuOeYS8v2EmJaFyQ2m+SCXVhhM/vgvDoxaNBq1eUQkuGsEQ4dK7pIX6MjxfRy e8HMr8Q2K/rxEyRHqX+yzkekt/PcSXlP4QQlJEa9GxPz2DZRq1k6ifg+WvEn7lrWnWHz ibBmTZ6iP+Biz0jHpZyP/9YtSqwxmXWnjB2B5VgVDh1iR+C7NylmyrAqrWVdCis01drL 5qLYlqnua39ngQmqaKWxhXf1/gvcxAJMhPOT4vwLeP/S8ZAQ+b7SzE3gYwhfdspZz3tM 0KqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=OryhjDR5Y7qleEalQrhOcvGQ8rLEpOygv++tq0F6ivA=; b=UzEX15n+zKqYC92wEJmM2IJT7AA8+3R0sQCV2ercrR1KCLodzaXI4qu8kDf0CmAO91 Zsq4dFXWzXETpL0PY658B9DdqLB3D8Ls/KTfmVZ8l6ujSOcbjHMfJ8T6V7GBBUbgDFGY SM6l8w/Op+gTtfqqnH7ZiVRsWyiOzLdGe6uEqCFY/JpseS288BBek2a9+jAs8Jamk9J4 9wgielE0LFgAoDT/MZnE1RDGpjDpIQj+1fTonWY/2uHTHTxKPZr+AXsRip3GczW4iaBH sNNI7tC2yAV/oDyvaD4l8rlI13CDF+3BljhwZTSi64keNbNhprxQjNWi/neGzXCSbT4N +bWA== X-Gm-Message-State: ALQs6tCiHOKpUToYb4rGTgYngibRovsHCD5KrGXiqE7xnbxyVo3r4i+m 261U3sXf0r62BqTP7vepILM= X-Received: by 10.28.238.217 with SMTP id j86mr6580637wmi.97.1525081327282; Mon, 30 Apr 2018 02:42:07 -0700 (PDT) Received: from localhost (p200300E41F041C0032947E635CB49D15.dip0.t-ipconnect.de. [2003:e4:1f04:1c00:3294:7e63:5cb4:9d15]) by smtp.gmail.com with ESMTPSA id l53-v6sm21826006wrc.80.2018.04.30.02.42.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 02:42:06 -0700 (PDT) Date: Mon, 30 Apr 2018 11:42:05 +0200 From: Thierry Reding To: "Wesley W. Terpstra" Cc: Rob Herring , Mark Rutland , Andreas =?utf-8?Q?F=C3=A4rber?= , Noralf =?utf-8?Q?Tr=C3=B8nnes?= , David Lechner , Alexandre Belloni , SZ Lin , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] dt-bindings: added new pwm-sifive driver documentation Message-ID: <20180430094205.GB2476@ulmo> References: <1524869998-2805-1-git-send-email-wesley@sifive.com> <1524869998-2805-2-git-send-email-wesley@sifive.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="neYutvxvOLaeuPCA" Content-Disposition: inline In-Reply-To: <1524869998-2805-2-git-send-email-wesley@sifive.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --neYutvxvOLaeuPCA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 27, 2018 at 03:59:56PM -0700, Wesley W. Terpstra wrote: > Document new PWM device tree bindings for SiFive SoCs. >=20 > Signed-off-by: Wesley W. Terpstra > --- > .../devicetree/bindings/pwm/pwm-sifive.txt | 28 ++++++++++++++++= ++++++ > 1 file changed, 28 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pwm/pwm-sifive.txt >=20 > diff --git a/Documentation/devicetree/bindings/pwm/pwm-sifive.txt b/Docum= entation/devicetree/bindings/pwm/pwm-sifive.txt > new file mode 100644 > index 0000000..7cea20d > --- /dev/null > +++ b/Documentation/devicetree/bindings/pwm/pwm-sifive.txt > @@ -0,0 +1,28 @@ > +SiFive PWM controller > + > +Unlike most other PWM controllers, the SiFive PWM controller currently o= nly > +supports one period for all channels in the PWM. This is set globally in= DTS. > +The period also has significant restrictions on the values it can achiev= e, > +which the driver rounds to the nearest achievable frequency. > + > +Required properties: > +- compatible: should be "sifive,pwm0" > +- reg: physical base address and length of the controller's registers > +- clocks: The frequency the controller runs at That's not quite correct. According to the example below, this is a phandle to the clock that drives the PWM at a given frequency. > +- #pwm-cells: Should be 2. > + The first cell is the PWM channel number > + The second cell is the PWM polarity > +- sifive,approx-period: the driver will get as close to this period as i= t can > +- interrupts: one interrupt per PWM channel (currently unused in the dri= ver) Those parentheses provide information that doesn't belong in tha DT bindings. What you this binding is used in a different operating system that does use the interrupts? Thierry --neYutvxvOLaeuPCA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlrm5O0ACgkQ3SOs138+ s6FyGg//SX9MDuJif7abi9OkZBNe2kKW0wG9ntRgxAIKzfedO89Gn6gpFD1QnaA/ xaFKn0WecfU2D6xqMk4Np91woUEjgdYmlkPwE43+owy+cA6wbkhhfoWMJYKF/1/a 50j1aCgesMlCah6r44ByAee/eFW7D6oldmIgrXq3RDG76eCU4/xpaXsC3bn1aE0x cmCD20+DSAGsvAuJVTa+ZGK4kGjQdMBcuyyYjoygW3zR9s+foJmX+ppcug/AgBhz gaYRypGynVgn4kxqCZsgN+tiYSTziRAEdbxsRJgGiHpA4IoAM0VoaBRqnt7xM/Dj G7DaBi6Y19UVlorahX5rHCo4V7G1CurPATaFxybIECeiDTM1sDGCV8sc1nnvvJLS RPPzsayWHm5ldYTvk7BK7cH2jJU/T3wnmUvqXrGWfndX6RvkQ6sghcqpAc04iVYQ xTdbXbdiEfs8CIg4M+KJ2hvWQHCBGbZ8OOX+1mbynm/X+X8Y3zZeQDP9fnbjnB4Q Uw/TLXN5ifGD180UjyZZlaSfww9UQ9VbSSiRe1BlaqW2//TW2Cr/p99JerrYp3W6 DMGo9eSBQtXnZ9bWFDz8o/Pc16UjV7vUvq02y6VgNzBckeXdH+CUHMu1j4Oj83Mr yyxEQMIsoafArrlvF4ZzG5z0zj8IFGtvmYJtpoInBawzLN5lEjc= =F978 -----END PGP SIGNATURE----- --neYutvxvOLaeuPCA--