Received: by 10.223.185.116 with SMTP id b49csp7206965wrg; Thu, 1 Mar 2018 01:28:25 -0800 (PST) X-Google-Smtp-Source: AG47ELv9FfE4STG1KNdbN2bGaOIf65Wi5mOxvSybdoUALGCfPw9jecL8hArRdTDKvXwg4XZI8Rxn X-Received: by 10.101.70.10 with SMTP id v10mr1003254pgq.327.1519896505706; Thu, 01 Mar 2018 01:28:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519896505; cv=none; d=google.com; s=arc-20160816; b=pkaYLkPio3fXQImL+hoXZrqQGCJozC+e2gbVWDziXlodbvS97jV3Ul1w6eszCz0Uo1 BygNr33Qo2JWVBbNgBl6qh5TwZS5TcSmpfnN120lGG9b7zNEYnQM8hOcnb9y3AHh+yLL rnlr/zQPWZMJIco6DTIhybSSNrBPVlzL4xw1GSuFX3RtPBVrN73X4EtwHNRoHFnoCssK Uy5brGAVNAYh4VRS1EMWCwr7CDHtB5KZG/CaEf0SozBsSvLrx4TFUOQSFQxVTYZWdy5p uwBRaDl2FFNVbRsPRH3JCMluPNGZUrJHUp4KqXPrunEDqGs3vaMpaoAEaTdJDePnNdCR LNXQ== 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:arc-authentication-results; bh=pFD85Y7u6MkPujJFDrPsmubLPDgeZ11+/wdx8Y+21Bo=; b=Ii1kj472BdBDe7yU7L1iM91yT/m8TzMYlQjJ7JLUG2ITFjQgW4grHdch1NrS+SqHH6 mCnbUBpMnexFBAmJymWJq80oHnu2ZIyc2MH0ejcCEZQ623qVtZvRkOajlqCS9jHIow6E /h54GHjLPWdj/zgq/EkEIktovQ8VWCL7/pIE84vmL73a6Z6bja63PeiWKwV9ENeGrJgs 4bhT5f86xyqc+Z2jMoig8hSWXnVwfGTsIJ1zjGyLVb2qz3OWPfznZcusSofrYHsCTafy uuFyx+pNQxok+Q+xA0bQEGv8p2kLkYW+YTZYD5Bii/zDubqbI6wxPRDvPsb6dHSA4XDT 19HA== ARC-Authentication-Results: i=1; mx.google.com; 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 u17si2197257pgv.116.2018.03.01.01.28.11; Thu, 01 Mar 2018 01:28:25 -0800 (PST) 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; 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 S966912AbeCAJ1G (ORCPT + 99 others); Thu, 1 Mar 2018 04:27:06 -0500 Received: from mail.bootlin.com ([62.4.15.54]:34502 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966856AbeCAJ1A (ORCPT ); Thu, 1 Mar 2018 04:27:00 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 55FB220956; Thu, 1 Mar 2018 10:26:57 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [185.94.189.189]) by mail.bootlin.com (Postfix) with ESMTPSA id B526C20794; Thu, 1 Mar 2018 10:26:46 +0100 (CET) Date: Thu, 1 Mar 2018 10:26:46 +0100 From: Maxime Ripard To: =?utf-8?B?QW5kcsOp?= Przywara Cc: hao5781286@gmail.com, thierry.reding@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, wens@csie.org, Claudiu.Beznea@microchip.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pwm@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [linux-sunxi] [PATCH v2 1/4] dt-bindings: pwm: binding allwinner sun8i. Message-ID: <20180301092646.44rxuwui2ssiar4u@flea> References: <20180225135045.GA14508@arx-s1> <56645bca-9f4a-3191-72d8-32b60ebbc26e@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dtiwzdbgltohjq4r" Content-Disposition: inline In-Reply-To: <56645bca-9f4a-3191-72d8-32b60ebbc26e@arm.com> User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --dtiwzdbgltohjq4r Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Wed, Feb 28, 2018 at 01:51:59AM +0000, Andr=E9 Przywara wrote: > On 25/02/18 13:50, hao_zhang wrote: > > This patch adds allwinner sun8i pwm binding documents. > >=20 > > Signed-off-by: hao_zhang > > --- > > Documentation/devicetree/bindings/pwm/pwm-sun8i.txt | 18 +++++++++++++= +++++ > > 1 file changed, 18 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/pwm/pwm-sun8i.txt > >=20 > > diff --git a/Documentation/devicetree/bindings/pwm/pwm-sun8i.txt b/Docu= mentation/devicetree/bindings/pwm/pwm-sun8i.txt > > new file mode 100644 > > index 0000000..e8c48be > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/pwm/pwm-sun8i.txt > > @@ -0,0 +1,18 @@ > > +Allwinner sun8i R40/V40/T3 SoC PWM controller > > + > > +Required properties: > > + - compatible: should be one of: > > + - "allwinner,sun8i-r40-pwm" > > + - reg: physical base address and length of the controller's registers > > + - #pwm-cells: should be 3. See pwm.txt in this directory for a descr= iption of > > + the cells format. > > + - clocks: From common clock binding, handle to the parent clock. >=20 > The manual tells me that there are two possible clock sources (24 MHz > OSC and APB1), with actually two bits for encoding the mux source, > allowing for two more potential clock sources. > So can we extend this description to provide up to four clocks, with a > clock-names property telling the driver how this maps to the mux value? > Either we use clock names matching the clocks mentioned in the manual: > clocks =3D <&osc24M>, <&ccu CLK_APB1>; > clock-names =3D "osc", "apb1"; > or we encode the mux values in the clock-names: > clock-names =3D "mux-0", "mux-1"; I'd prefer the former. > Don't know what's more widely used in those cases, the latter seems to > be more future-proof. Not really, nothing prevents the next generation to have three bits, or even 32 bits to do the muxing :) Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --dtiwzdbgltohjq4r Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlqXx1UACgkQ0rTAlCFN r3SzDA/+PXFChqP0apbpYbna3qlRQMoRUMhWdpYY5FNXrE6+rp0zvrIFRaM1GkXp RVAcYhGjFJkWUPz8ydKVsWf6CFfwCP1OAEFP63LpXWDZG7CDfFxTdXwdsdEnBlL5 f9VwZnZnWU+pq8xH1GSqrz55VQJmEOUJIsrknoMb/jP7IiFwTcn1zij3pUVDgj01 mtRn/23JVxcWA1gYuT8LmmY6mftmwG+Oo0T2jQwnaasxsknNnQpbNOflj00L49RE e4tOA6pVXjYAlLCQEAVzp0uS7TTs6MJXCeuK7yzfE5yY2Pigo+1lPQIl/shGUz9r ZmhtCt6QuGnpDEg4WDBrjUL7FtPMazsxAwocoY2TCRGi1dUzwqh8KoHl3HAPIt75 LpK9Qmm2LEpFvClIRzUIeFaFSkovSIWmPBePD3mQ1vw/6Euce9/R/t4MpRQHy5VQ JVAbSPFhomjPRh8n0WQau6x/X2sOC59Ici/oehO1qxQBlHfdX2Nd1e3WnghrJzz/ wWA678qpqe5saLFrt5jS+fWJSLY9E38IVqgu3xpeFwnRGOfJMALOViCVFQUu7cjZ VbGUApsK4siERQNziR3dw8I+OOPSoe/pyw8LWu1fv6/1C7cvR7aKPvgXtbHoRN9d CvzZQ3+CqCl+bkHToTpf3L5/ZomQcChAm2w1rGtxR++dQx2wrqU= =AruB -----END PGP SIGNATURE----- --dtiwzdbgltohjq4r--