Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2464436pxb; Tue, 13 Apr 2021 02:31:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWm1XiXg6F9MV+4OvpeqGQmvmvnwbyL+hOKp23QHeioLDkXRzRPjbyStl/GXljPyPEGXRS X-Received: by 2002:a62:1847:0:b029:209:7eef:b14e with SMTP id 68-20020a6218470000b02902097eefb14emr28815968pfy.3.1618306311500; Tue, 13 Apr 2021 02:31:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618306311; cv=none; d=google.com; s=arc-20160816; b=WxubNB6O6yprj+D8IyLyB4UqzfK5iy0ReAD2TBkC/iU1QOS97yPTD3s2lYXkdpsYpg ImUZ1wnPKzL/dVMF/5/iFfQqwq+crjPeX6LJpOU5WJjiCyk/sHf9BEnu8ICumsVsUaTm RaR+r3WMc013l/ANqkx7YRw6nB3WWoBI/ODAC/FV+wV7mpzqm3A6bq3SNPnbtaFWCyI3 eVZj2eCYGG9Q9peNGSCqvvVJ4p+zqEqdPt3qjLXzq+5gVUBrVaxwjlzCXPdJi/qI0zZy tF5vw5SwCWLJRQ0nRnLeiJBdDNsz9ajmcknHYRaTeIT7piqvJuj+qmezHsc/JHOPKZjm khGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=NL8Xrfg3RckQ1irQWKmdRFie5WHR3Yf5U3IOLVl5T7E=; b=xyzTvrzddAWrxH+NSjRsJcfNF7eUj93wQghEFvWWMLjy1fFLuzoknkSGKpBPflseOZ 6xb+kuhM9MdPWu+qSswm2gkb7HDfSyQDHSucXG8QWCvWCjmKs6vczymqRKuxWVXMVOEt vcrgCbC+pMp1fJtZuHVDKmKdvtjvWCSyt2uf4PD8+Gpq4EqPqenDk18CSCW+spZhKawm 4rIZJ5W/ztVPljQRnbJaiiQMuXLUBwvEFwj2bvKFg8HWt24iP7JX9ijEU0Sw/fbxxJLP qs7fBTFeCa7utWiCK2nk8xMRnJBB/o+qbu/dr2SPRU1YaTFvOffTnm0AE2OhVXwBan5v itPw== 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 w13si2750984pjg.14.2021.04.13.02.31.39; Tue, 13 Apr 2021 02:31:51 -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 S238659AbhDMHlw (ORCPT + 99 others); Tue, 13 Apr 2021 03:41:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237792AbhDMHlv (ORCPT ); Tue, 13 Apr 2021 03:41:51 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A4C9C061574 for ; Tue, 13 Apr 2021 00:41:32 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lWDfa-0002wF-17; Tue, 13 Apr 2021 09:41:10 +0200 Received: from pengutronix.de (unknown [IPv6:2a03:f580:87bc:d400:d93:7b32:b325:ef5e]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) 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 EAD7060D881; Tue, 13 Apr 2021 07:41:06 +0000 (UTC) Date: Tue, 13 Apr 2021 09:41:06 +0200 From: Marc Kleine-Budde To: Rob Herring Cc: Aswath Govindraju , Vignesh Raghavendra , Kishon Vijay Abraham I , Lokesh Vutla , Grygorii Strashko , Chandrasekar Ramakrishnan , Wolfgang Grandegger , "David S. Miller" , Jakub Kicinski , Vinod Koul , linux-can@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Subject: Re: [PATCH 1/4] dt-bindings: phy: Add binding for TI TCAN104x CAN transceivers Message-ID: <20210413074106.gvgtjkofyrdp5yxt@pengutronix.de> References: <20210409134056.18740-1-a-govindraju@ti.com> <20210409134056.18740-2-a-govindraju@ti.com> <20210412174956.GA4049952@robh.at.kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="glnpqqhpnvjspjxs" Content-Disposition: inline In-Reply-To: <20210412174956.GA4049952@robh.at.kernel.org> X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --glnpqqhpnvjspjxs Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 12.04.2021 12:49:56, Rob Herring wrote: > On Mon, Apr 12, 2021 at 12:19:30PM +0200, Marc Kleine-Budde wrote: > > On 4/9/21 3:40 PM, Aswath Govindraju wrote: > > > Add binding documentation for TI TCAN104x CAN transceivers. > > >=20 > > > Signed-off-by: Aswath Govindraju > > > --- > > > .../bindings/phy/ti,tcan104x-can.yaml | 56 +++++++++++++++++= ++ > > > 1 file changed, 56 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/phy/ti,tcan104x= -can.yaml > > >=20 > > > diff --git a/Documentation/devicetree/bindings/phy/ti,tcan104x-can.ya= ml b/Documentation/devicetree/bindings/phy/ti,tcan104x-can.yaml > > > new file mode 100644 > > > index 000000000000..4abfc30a97d0 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/phy/ti,tcan104x-can.yaml > > > @@ -0,0 +1,56 @@ > > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > > +%YAML 1.2 > > > +--- > > > +$id: "http://devicetree.org/schemas/phy/ti,tcan104x-can.yaml#" > > > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > > > + > > > +title: TCAN104x CAN TRANSCEIVER PHY > > > + > > > +maintainers: > > > + - Aswath Govindraju > > > + > > > +properties: > > > + $nodename: > > > + pattern: "^tcan104x-phy" > > > + > > > + compatible: > > > + enum: > > > + - ti,tcan1042 > > > + - ti,tcan1043 > >=20 > > Can you create a generic standby only and a generic standby and enable = transceiver? >=20 > As a fallback compatible fine, but no generic binding please. A generic= =20 > binding can't describe any timing requirements between the 2 GPIO as=20 > well as supplies when someone wants to add those (and they will). Right - that makes sense. > > > + > > > + '#phy-cells': > > > + const: 0 > > > + > > > + standby-gpios: > > > + description: > > > + gpio node to toggle standby signal on transceiver > > > + maxItems: 1 > > > + > > > + enable-gpios: > > > + description: > > > + gpio node to toggle enable signal on transceiver > > > + maxItems: 1 > > > + > > > + max-bitrate: > > > + $ref: /schemas/types.yaml#/definitions/uint32 > > > + description: > > > + max bit rate supported in bps >=20 > We already have 'max-speed' for serial devices, use that. There is already the neither Ethernet PHY (PHYLINK/PHYLIB) nor generic PHY (GENERIC_PHY) can-transceiver binding Documentation/devicetree/bindings/net/can/can-transceiver.yaml which specifies max-bitrate. I don't have strong feelings whether to use max-bitrate or max-speed. Speaking about Ethernet PHYs, what are to pros and cons to use the generic PHY compared to the Ethernet PHY infrastructure? regards, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --glnpqqhpnvjspjxs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEK3kIWJt9yTYMP3ehqclaivrt76kFAmB1Sw8ACgkQqclaivrt 76k2xAgAoYRIJ2saZpOlKBVdCP3F6bacRxhFyVXdgCtFvOEJlHrmc1ITd9wQxqlD M66lTqpLObfL6a4OBhT8IuV1vm/WrXuMmpBbeL8d48nyuzGi3HBifVoPGEDNOL+E JgGfe4HSGrr7+P/PxdfwwEkgKFPITRLJf2oM9Pp9E2VSpGS8idb5RdcC+4JwRv8E ULOFgqmu5MlXrzNPh83vCEmJ9zBLQ5YsL9LRmInBt2bnCZmz/TjcsSVa5fKAlKq+ TpC+ZNKLO2dcIu/VE51okEzHxT0QQDkdGTyy8WJZ5ThlYf9al8j8hJN2usLLLqww V5v0Gte8QuZC8ZolWxEZo5UtELUfDA== =3aAL -----END PGP SIGNATURE----- --glnpqqhpnvjspjxs--