Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4692491pxu; Tue, 13 Oct 2020 05:05:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaihJD9Ui3ZFE5IY2sPGmMs1XooxE7OX4gnwY4zTFlkg73p8s3kZJbHPgXZegFxgBJPThl X-Received: by 2002:a17:906:9702:: with SMTP id k2mr10312942ejx.494.1602590737744; Tue, 13 Oct 2020 05:05:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602590737; cv=none; d=google.com; s=arc-20160816; b=Vy5HVQBDGQD17cwlQVm5d8kzDryYMN15Sjv6u+5iW7w1hPxsBRUuR0Cp5TQ0dsgENJ wRTIibDYWtDMP642stnWisgWmYg32Kly/EKIv9Sx06h0d81t/3kc2d22nt94NgvesdCc YwIiQVa4ebGagDPyZkBv9sVPILvhEqEv7n5waO3mUyqyjoI698+UAmm6vIITuELWIANV sYQfjJpE8YEXN9HfnKWwl0TStN0Sl4pIbbFsHeqSn8H6owRUzfQ0DnHqOR1Iuhiu4I5U k6EI4eR6Kz0jpBmcpEMmRh9xewa2tNCU4sS9YTxew6ebCiTvvQTBxWnVScUQsfNUaoJJ 4XVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :date:cc:to:from:subject:message-id; bh=uqs3mcwprUoD56BQPmWke7+4ZfVvid5wnuv9qbnwsGo=; b=oxfp7CM69XaYSrmqaQsRkJVLHOrPzSrT3TjXvkFKD0npEYSFWCbfUvITOk+PQpduJh 9CZgsX2nhjwwLIyWH9Pak09gcHx9GnPO2IlKwTqH3FIq5JUxMX22T18PF5twTMOiOd9A md0TcKHXfhaqCnG01khFhSnyBRQ+u+R/QuqE3+F+LLrpzJS+8mpuyk4Ar0IsDkj+h/LW COC47oTJCyGnaRf8NjIHfbYe2lNrO8QzIHhDoSCINSyzO4o7Vb5/+o4UHK2Yz+oJgfv1 7TopDmsY1B/RHQXnVWBhK/J1PfHHkEdrjYf9FH1OPnaDE3okgy2OXrSDsgjlVOvgQNLL O+7Q== 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 os25si14568908ejb.454.2020.10.13.05.05.15; Tue, 13 Oct 2020 05:05:37 -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 S2391483AbgJMKfm (ORCPT + 99 others); Tue, 13 Oct 2020 06:35:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:55358 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388136AbgJMKfm (ORCPT ); Tue, 13 Oct 2020 06:35:42 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 61A3BADA8; Tue, 13 Oct 2020 10:35:40 +0000 (UTC) Message-ID: Subject: Re: [PATCH 1/3] dt-bindings: pwm: Add binding for RPi firmware PWM bus From: Nicolas Saenz Julienne To: Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= Cc: f.fainelli@gmail.com, linux@roeck-us.net, jdelvare@suse.com, wahrenst@gmx.net, Eric Anholt , bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, Ray Jui , Scott Branden , linux-hwmon@vger.kernel.org, robh+dt@kernel.org, linux-kernel@vger.kernel.org Date: Tue, 13 Oct 2020 12:35:38 +0200 In-Reply-To: <20201012070132.it23vl6f3ytavqgj@pengutronix.de> References: <20201009153031.986-1-nsaenzjulienne@suse.de> <20201009153031.986-2-nsaenzjulienne@suse.de> <20201012070132.it23vl6f3ytavqgj@pengutronix.de> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-2iVS7ULrnuve/eAfppuC" User-Agent: Evolution 3.36.5 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-2iVS7ULrnuve/eAfppuC Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Uwe, thanks for having a look at this. On Mon, 2020-10-12 at 09:01 +0200, Uwe Kleine-K=C3=B6nig wrote: > On Fri, Oct 09, 2020 at 05:30:28PM +0200, Nicolas Saenz Julienne wrote: > > The PWM bus controlling the fan in RPi's official PoE hat can only be > > controlled by the board's co-processor. > >=20 > > Signed-off-by: Nicolas Saenz Julienne > > --- > > .../arm/bcm/raspberrypi,bcm2835-firmware.yaml | 21 +++++++++++++++++++ > > .../pwm/raspberrypi,firmware-pwm.h | 13 ++++++++++++ > > 2 files changed, 34 insertions(+) > > create mode 100644 include/dt-bindings/pwm/raspberrypi,firmware-pwm.h > >=20 > > diff --git a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2= 835-firmware.yaml b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,b= cm2835-firmware.yaml > > index a2c63c8b1d10..dcaf00e8602e 100644 > > --- a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-fir= mware.yaml > > +++ b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-fir= mware.yaml > > @@ -64,6 +64,22 @@ properties: > > - compatible > > - "#reset-cells" > > =20 > > + pwm: > > + type: object > > + > > + properties: > > + compatible: > > + const: raspberrypi,firmware-pwm > > + > > + "#pwm-cells": > > + const: 1 > > + description: > > > + The argument is the PWM bus number. >=20 > This is wrong. #pwm-cells specifies the number of "arguments" for > phandles pointing to this node. And I would prefer this being 2 to match > the stuff described in the generic pwm binding. I saw buses out there with the same limitation as this one (unable to chang= e frequency) that used a single cell, so I whent with it. That said I'll be h= appy to change it and drop the custom *_xlate() function in benefit of the defau= lt one. Regards, Nicolas --=-2iVS7ULrnuve/eAfppuC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAl+FgvoACgkQlfZmHno8 x/5AQAf/UTRVT1pCa5o4xp+ayZmAGGxRlvfxIEn3jBacnTzBtJvYUu4Fp7kxeJ0K vmfLrRwzZmNWOGzw8NzlUTS48qVPIxkQTDueEEbJP6p4kRqMNx80RB7p+cuJYI1S NyIZQowKwW7j5Nqzoi2bZ5xICNksvOArBzz06Kw5N4JDExGQHK+XHa/GJS7Oku/B OAhKs9ZxnN6L6PqhPibL6ZQtbRW4wCGMJQS1ZUZ670UnGbs7jd7P9biUCekeaBXI yyQaIXZ0J1npanQUgq/XWY2y2Yvj2vW6S0oeRIDuvu5ivBEv91Fl3huViq5orSuL Qf+7NmmTSx1Is6EbimO01zm2cKf1Rw== =ek+T -----END PGP SIGNATURE----- --=-2iVS7ULrnuve/eAfppuC--