Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6719154imu; Mon, 3 Dec 2018 01:29:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/VQ1o2c4BlBko7ht5BXMkiUNyoqHnpKRT55f69bGxIm5HkeFAkt7WmeGREY00cUErGd+nKP X-Received: by 2002:a62:113:: with SMTP id 19mr14885741pfb.176.1543829352112; Mon, 03 Dec 2018 01:29:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543829352; cv=none; d=google.com; s=arc-20160816; b=WO7VYWeoKIoIiaU0DWHY9xeZCraFvSjLFBvT7x9THWvil+58HBTXkDf7rGRsN5W38G zGPMY9cQi2cVCurNfUnfBu5jpOiw0LI0ba16BOWi/yr4jICfZqfgAcZfEn4riijfO90H A3lfUeGSIKjaIeWFALWzaNu/orAuqBD74oY3gQ7YncQZSrfolOgWUcrLTEyOPlSt58UY lxTQs7a69ZHXboIG07XCitv5KsmQHcAeGxt9G4YsPmf5Mi0L3rsQVq4U/k/rua3guZsE VEXkcfrxrtPMju+C4BkbY4F0Wjfx8i8C1By1oanvzMoHQDG/ciGSuxrJCM4mkhQPMt7C jKMQ== 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; bh=/DVoR3qC9tPNqhA/o4Sk/+POrvBT3y8A52zpo/Zo79E=; b=Mb/yIvraQiNKLjSI5kZkuRM5164ypcgoteV0RIArLVbI6gFCRpSaTf2nMULkyl5plB lqZ5xDxNXkOdL/XPYc5f9TrG2vSjSa0FD1TxcRSgnCcqjnB3V3sAerW36xIosWbn3yP4 L7M02eDcq318luuov62X5jm+lIjy0cnuf0ub26Hm6RkaTSMBOnCN2et4ABf530I3T7pF 4vBfm8UqFZPcrBSnYu7Ofwgo8IIxeOfs83Ri6nTAp13ZA9HTlH2GjDKZVHxkpmNGgFng BUHLggSrILWAHN7cFoAatolsSABgD35fJCspeUxQ2KXkWrl2oJr5Ug4fMj+zOMkwzlXl iBGw== 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 j12si12168712pgq.26.2018.12.03.01.28.56; Mon, 03 Dec 2018 01:29:12 -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 S1725976AbeLCJ2f (ORCPT + 99 others); Mon, 3 Dec 2018 04:28:35 -0500 Received: from mail.bootlin.com ([62.4.15.54]:53473 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725888AbeLCJ2f (ORCPT ); Mon, 3 Dec 2018 04:28:35 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 6EA76207B0; Mon, 3 Dec 2018 10:28:19 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.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.2 Received: from localhost (aaubervilliers-681-1-63-158.w90-88.abo.wanadoo.fr [90.88.18.158]) by mail.bootlin.com (Postfix) with ESMTPSA id 37D752039F; Mon, 3 Dec 2018 10:28:09 +0100 (CET) Date: Mon, 3 Dec 2018 10:28:09 +0100 From: Maxime Ripard To: Hao Zhang Cc: Mark Rutland , Rob Herring , wens@csie.org, Mike Turquette , Stephen Boyd , thierry.reding@gmail.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH v3 1/6] Documentation: ARM: sunxi: pwm: add Allwinner sun8i. Message-ID: <20181203092809.mgeaxpwg6u4s23vq@flea> References: <20181125161859.GA5277@arx-s1> <20181127075226.qo3mv3o6etqdjaop@flea> <20181127083523.pciie2gyaplrwiey@pengutronix.de> <20181127103253.ubbjjy2ji6sxc7xs@flea> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zznxkq7h2qi3betk" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --zznxkq7h2qi3betk Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! (Please keep all the recipiens in Cc) On Sun, Dec 02, 2018 at 12:13:21AM +0800, Hao Zhang wrote: > Maxime Ripard =E4=BA=8E2018=E5=B9=B411=E6=9C= =8827=E6=97=A5=E5=91=A8=E4=BA=8C =E4=B8=8B=E5=8D=886:33=E5=86=99=E9=81=93= =EF=BC=9A > > > > On Tue, Nov 27, 2018 at 09:35:23AM +0100, Uwe Kleine-K=C3=B6nig wrote: > > > Hello, > > > > > > On Tue, Nov 27, 2018 at 08:52:26AM +0100, Maxime Ripard wrote: > > > > On Mon, Nov 26, 2018 at 12:18:59AM +0800, Hao Zhang wrote: > > > > > + - clocks: From common clock binding, handle to the parent cloc= k. > > > > > + - clock-names: Must contain the clock names described just abo= ve. > > > > > > > > [...] > > > > > > > > You seem to have used mux-0 and mux-1 for the clock names. I guess = we > > > > don't have to use a name there, we can simply use the position to f= ind > > > > out (as long as it's documented in the binding) > > > > > > I also wondered if the driver relies on the fact that the second clock > > > is the faster running one. Is this sensible? > > > > Not really, I'm not sure we can make those expectations in the DT > > binding, especially since clock rate can change at runtime. > > How about just add one clock on DT, most of the time, 24MHZ is enough > (apb1 is 100MHZ) > other one just use as a optional. > clock rate change at runtime would make the same pair pwm channel > uncontrollable, > because previous one would be change by the new one different setting. The DT is a hardware representation. If the hardware block can use both clocks, it should be described. Now, you can totally use only one clock of these 2 in your driver if that's easier / more reasonable. Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --zznxkq7h2qi3betk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXAT3KQAKCRDj7w1vZxhR xQeYAQDbnRAmYhwUqiaSbkwrmQzprsqASJeNCuc1rI/hF22HsAD6A/smAChtdem8 w8QGGZGN16H/E9vHXpmuF6xCPL7VDgw= =gmHJ -----END PGP SIGNATURE----- --zznxkq7h2qi3betk--