Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp368035rdb; Mon, 22 Jan 2024 06:49:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IHifOk3M0XlgEoH9/64l9wgfWM3UV86pNCKMYFvLfJBqFAG/jpxHPEWrEG3EOqOKWO/G1Tt X-Received: by 2002:a17:903:1cd:b0:1d4:3d04:cdd with SMTP id e13-20020a17090301cd00b001d43d040cddmr2318989plh.32.1705934974060; Mon, 22 Jan 2024 06:49:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705934974; cv=pass; d=google.com; s=arc-20160816; b=CR8t9g4UUtyXWzpbh80sAuS/Bsu6EKyH7myT5LjBXxUXfmXvEjqb5gIuOyfPEstskQ 4Tlw8HgVtQSDLqJRchQKDaFxR2Z76sOJ044gyWDX02kUlg4akHdMIxfRIXmW2JmxmzD6 1WXwFrkIev3rYBTUGSlBO6V3Hk3a42DK67+8gXkbuSnLXkF6TELNLeuzdy+f/FMvLw+6 s1SevdBAa/q4a4ssSK+jWFzFmkoHa4+iLAkThZn7h5I2/f7ilh/r86wQYrA3QCIGW37B T+hQwY4B8MCmVSla87v9KtsVpjRAQroB9So01KuXPd835d3aEVK1it5l223abheWy8WF 4mHg== 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=b7P4O1uLEIgley44wzz9ItSM0fYjkvq0c2NtcCvWVXc=; fh=UYbxMBIZ18BDZvDYyaGxDrVPsMl04Kx8mmhudBXxwec=; b=yOun9s0fwz88R5ohREutRw8xuUmV8pQMAMCxu/UwamoxDgfVBgktbfvyohMKcKpZ1D /WyJC/pUhdg1lkm8+kIv5ypDs0UC47e9nT9FbDiFdqJDG5CPl9XbuH6FLEp+iemkMiNH rYg8bQlhBtaPQKT60S4p9/G7loZuQSvKc/E1iPwQrq5+a9+Oy40vfQATA8BX31nk36od dAFmPqYa4SksL88dZ/kSiYU8KBe9xY08EzFifLQGoECVE+jZns6C49ymT1SFMzl3tWkl cD+2FOGdwU2sOu7OADj7BKqrqE6/mpPzQ0eSJpvimB0cCXSkXOeX67HSx3nZdPrKUIve lIsw== 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-33186-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33186-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i2-20020a170902c94200b001d6f183f54csi3118508pla.68.2024.01.22.06.49.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 06:49:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33186-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-33186-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33186-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id AB9EA283563 for ; Mon, 22 Jan 2024 14:46:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0D7C3D575; Mon, 22 Jan 2024 14:46:42 +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 5E9C73D56E for ; Mon, 22 Jan 2024 14:46:39 +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=1705934802; cv=none; b=ZDz70pfY6kuBeyypxLJmpcYq0bv6F1kEQJpqWNGb9zYF3cAMzy6ccM60FK3j6aVr4+NNMYZQWbkDu0LwvPM4mtnCJrvthA66JTmBg37SgJdrr3DMjmSjbovfBgwNN6gRCXEojqak49YWz0RAIgLnVXN4BlK3uM5XVN+QGln2u1o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705934802; c=relaxed/simple; bh=n5dxUuHU7pv4+Yj+D91RpfZ47wiz3XZx89mC8ZutNhQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=clij7EAU7otm2ZvEymejUdz+HUVpAUHuIPo4Gei0wF2CGVCoJktTATcut2RyotKL++gV+Q4wZGzHWBCXqwxvzQG/KlpRLT9Q6zo+9xY8SJGZiVdl1Xu4qdhQ3trvFIhvD++GYSkklfVp0xNOIOAw6lLCSH7Qs3xLXHDZCv1bT9g= 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 1rRvYt-0003ay-HO; Mon, 22 Jan 2024 15:46:07 +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 1rRvYr-001cU3-Kp; Mon, 22 Jan 2024 15:46:05 +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 2DCE527B6A2; Mon, 22 Jan 2024 14:46:05 +0000 (UTC) Date: Mon, 22 Jan 2024 15:46:04 +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-smokeless-ion-63e4148c22e5-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> 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="zuyztwmnpelwfpxf" Content-Disposition: inline In-Reply-To: <20240122-cruelly-dainty-002081f0beb2@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 --zuyztwmnpelwfpxf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 written, > > > but is required for operation. Make up for lost time and add it. > > >=20 > > > Cautionary tale in adding bindings without having implemented a real > > > user for them perhaps. > > >=20 > > > Fixes: c878d518d7b6 ("dt-bindings: can: mpfs: document the mpfs CAN c= ontroller") > > > 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-can.ya= ml > > > index 45aa3de7cf01..01e4d4a54df6 100644 > > > --- a/Documentation/devicetree/bindings/net/can/microchip,mpfs-can.ya= ml > > > +++ b/Documentation/devicetree/bindings/net/can/microchip,mpfs-can.ya= ml > > > @@ -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 having > them, then sure. 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. With clock-names we can automatically check that the 2nd clock is always the CAN clock. 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 | --zuyztwmnpelwfpxf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEDs2BvajyNKlf9TJQvlAcSiqKBOgFAmWuf6oACgkQvlAcSiqK BOiCMwf+PILQdcoKYj1XmQD6oOg99QEnpCsTXRVcTpE6fUQPNRyfKH6+KYIhiXhn bBp6u3rBJ6pnaJfTajjpdFrgjpD7QJBD88Eg37Elv8V9211/UtPLuVLRVQpQfREt 8vmqnVihZCubToC+pC3B/RadtYJCUb6uD2A0tvdmF154H9lwvpe+ojEmLp/6j9F1 fr/p52aGJcKdO+8VUx7dXpKlaghGwJoVcPIhTBxaa60hhJsSM8mNuVHx84GtZNBL K+ELI4xCxy5U9gs3CAr9FiP2zbtetZhnj19rHAY8ndFGT6DVu9Hp/xgWGyO9pCUR rwYkqH/u8YFRS0UmZmZG5A49oESIUQ== =yo0x -----END PGP SIGNATURE----- --zuyztwmnpelwfpxf--