Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp445615rdb; Mon, 22 Jan 2024 08:58:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IE6J9KtiwNBiTiVMBeisljXzFVV8rX1Gv6dYGsw1l/rBxBfPo4OIrfW/ApqpXMErETa69cz X-Received: by 2002:a17:906:5d2:b0:a2e:6f8f:7146 with SMTP id t18-20020a17090605d200b00a2e6f8f7146mr2462296ejt.35.1705942701133; Mon, 22 Jan 2024 08:58:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705942701; cv=pass; d=google.com; s=arc-20160816; b=TVOKEsVd2SSU7+mIFtWuLJklSQ0buh5rtTWrT0veaNJQYGtbeufQ5bVuUdgnCF3/7/ BRvUyD55FbLueALXqYYXjocs6V903zFhZ6fd7R06uaPqRFnApALrTnXoi9CfqPW3OgPh jBWm9EXAm1AkeIY4jB0iMch+1CxP0mHevYBNekCSzV4H5E1eqma2ZMsjaAtM6ar2yXJq WJb/TqorYzqq0YqX7ObC5XR2kkgeXMCZaviUui43YniF5FHuKKhg/Kpz0D/eLVpNcvZS 4IJPaePEGiwsFzNqI46gBHx/e+GRg/SzBI6rvb4+tS3x+KKFuqHHtFtRIGkvPovs369O UAKQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=1pXALhzTlUAl1IYY/8vHfSWSMQz9WWTLdmB0d0UXw9c=; fh=UYbxMBIZ18BDZvDYyaGxDrVPsMl04Kx8mmhudBXxwec=; b=ONFbJNdjwQ4gDS/+5TXITWpjh3qHdPhBdzQiDurh0cdoTeidGpo1JocUwF6rN27FtC OfaxzX2EgS8Mun9W7ISMMmyEWZI0uqclqQ3d7iPJ6OaK/NNYi1ruShmPTgHjiZLqiBI8 muKf1swHV8h3EYoYPa78UceIP3Lu6J3di2vYYUIuA4FipbIvQIdS/yV7RONuekYEfOtm QsTo1VKzHYLkbXF1rl8b3kesaXdJGswtXJkZMDOeCAJ+aU1OJoVxDuE82mibmVLRINMA KEhqBgVQ0kIvnoxgMv1G2wL49POAABgdQm7tzqdBNV2GhBZjzx1yqMKfbMOvok5fA3+l 602Q== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-33605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33605-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k19-20020a1709067ad300b00a2d920284absi7914672ejo.1024.2024.01.22.08.58.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 08:58:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-33605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33605-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A51831F26243 for ; Mon, 22 Jan 2024 16:58:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 92FCF5FB96; Mon, 22 Jan 2024 15:32:05 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DC865FB90 for ; Mon, 22 Jan 2024 15:32:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705937525; cv=none; b=SaBOugVf4WIhBTLCFqcw0FbV3y9wm953/qBWQdsU6ppJsW6mPPk/Jrw+y2f2daGrB9rpw989bUQu/w8iJh0LyGUuCxyOIihLd3T9VLC5UlM/B4OPyKRKcvpfjYd3gSlHng5OsbN37PzYKxDo18smqLRLzSBFxh887rD4qAAa3pE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705937525; c=relaxed/simple; bh=xsriZU0yMbSL2wG0OpL2voDoCjBcXV3m+2jsk8TrIEA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bWnT6SyyeV2EQTAcCrwgp/5X7K7IIgdp9s/kQ+ktkw7VQW+fWqdm3EfVpIccl0SFAWAXVb2w2A/OL7lPVKphffs4MPBpIvPpodu/xmz/ymskrrezqKQHfxZ3OffH/2KNXTRG74INfVEtlBEcBJ2XC8wb9Wo4FjTNEu38z6H8qIc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rRwGs-0001yO-Ae; Mon, 22 Jan 2024 16:31:34 +0100 Received: from [2a0a:edc0:0:b01:1d::7b] (helo=bjornoya.blackshift.org) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rRwGr-001d3P-D0; Mon, 22 Jan 2024 16:31:33 +0100 Received: from pengutronix.de (unknown [172.20.34.65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id E63BB27B74D; Mon, 22 Jan 2024 15:31:32 +0000 (UTC) Date: Mon, 22 Jan 2024 16:31:32 +0100 From: Marc Kleine-Budde To: Conor Dooley Cc: linux-riscv@lists.infradead.org, Conor Dooley , Daire McNamara , Wolfgang Grandegger , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Michael Turquette , Stephen Boyd , linux-can@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: Re: [PATCH v2 2/7] dt-bindings: can: mpfs: add missing required clock Message-ID: <20240122-pogo-reputable-b1d06ae1f1f1-mkl@pengutronix.de> References: <20240122-catty-roast-d3625dbb02fe@spud> <20240122-breeder-lying-0d3668d98886@spud> <20240122-surely-crimp-ba4a8c55106d-mkl@pengutronix.de> <20240122-cruelly-dainty-002081f0beb2@spud> <20240122-smokeless-ion-63e4148c22e5-mkl@pengutronix.de> <20240122-uncoated-cherub-a29cba1c0035@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fzilfxiuysgrcoiy" Content-Disposition: inline In-Reply-To: <20240122-uncoated-cherub-a29cba1c0035@spud> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org --fzilfxiuysgrcoiy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 22.01.2024 14:56:09, Conor Dooley wrote: > On Mon, Jan 22, 2024 at 03:46:04PM +0100, Marc Kleine-Budde wrote: > > On 22.01.2024 14:21:04, Conor Dooley wrote: > > > On Mon, Jan 22, 2024 at 02:13:16PM +0100, Marc Kleine-Budde wrote: > > > > On 22.01.2024 12:19:50, Conor Dooley wrote: > > > > > From: Conor Dooley > > > > >=20 > > > > > The CAN controller on PolarFire SoC has an AHB peripheral clock _= and_ a > > > > > CAN bus clock. The bus clock was omitted when the binding was wri= tten, > > > > > but is required for operation. Make up for lost time and add it. > > > > >=20 > > > > > Cautionary tale in adding bindings without having implemented a r= eal > > > > > user for them perhaps. > > > > >=20 > > > > > Fixes: c878d518d7b6 ("dt-bindings: can: mpfs: document the mpfs C= AN controller") > > > > > Signed-off-by: Conor Dooley > > > > > --- > > > > > .../devicetree/bindings/net/can/microchip,mpfs-can.yaml | 6 = ++++-- > > > > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > >=20 > > > > > diff --git a/Documentation/devicetree/bindings/net/can/microchip,= mpfs-can.yaml b/Documentation/devicetree/bindings/net/can/microchip,mpfs-ca= n.yaml > > > > > index 45aa3de7cf01..01e4d4a54df6 100644 > > > > > --- a/Documentation/devicetree/bindings/net/can/microchip,mpfs-ca= n.yaml > > > > > +++ b/Documentation/devicetree/bindings/net/can/microchip,mpfs-ca= n.yaml > > > > > @@ -24,7 +24,9 @@ properties: > > > > > maxItems: 1 > > > > > =20 > > > > > clocks: > > > > > - maxItems: 1 > > > > > + items: > > > > > + - description: AHB peripheral clock > > > > > + - description: CAN bus clock > > > >=20 > > > > What about adding clock-names, so that the order can be checked > > > > automatically? > > >=20 > > > I don't personally care for doing so, but if your heart is set on hav= ing > > > them, then sure. > >=20 > > Usually the CAN driver needs to have the clock rate of the clocks that > > the basis for the CAN bus clock. Looking at the clocks description it's > > probably the 2nd one. > >=20 > > With clock-names we can automatically check that the 2nd clock is always > > the CAN clock. >=20 > I think we already had this discussion on v1, where I said that the > binding requires the clocks to be in that order, regardless of whether > or not clock-names is provided. You feel more strongly about it than I > do, so I will add them when I get around to sending a v3. Yes, this discussion sounded very familiar to me, never mind. Keep it as is, and let's get this binding and the CAN driver upstream! regards, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung N=C3=BCrnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 | --fzilfxiuysgrcoiy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEDs2BvajyNKlf9TJQvlAcSiqKBOgFAmWuilEACgkQvlAcSiqK BOhCkggAgyHW5AL32kouESoPfzIRkhef/gYpfWj8j5zEKyJ0Honmyt+im5UgOIjS etZAqb+sORwDFrLXzPb+BIS4GXyCldkukOcvfgFxvfGAkaxf6ci+keV4UgyMpsgG 3/yXN/x2it5yA1idu/i8QdLjElTeq7Yoj18nfGbbSE7VzNK3Vh9PD/fR+Eq07wNE x3bFsh1YaBU2PeiGYYK08pR6PkPcmQHYRQFOhMxgpWJ72NnPinG8MuQuNtHwlcLh YnhmjeBgjEOUF35I+WSZ0056QeeAF7vbmrdAtWIUN2yygsVTbrvDGnZL45ynfFUC Xlu+5O2ZopqsqunltpKOZTLJ6Prdbw== =vqnx -----END PGP SIGNATURE----- --fzilfxiuysgrcoiy--