Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp557692pxb; Thu, 15 Apr 2021 00:42:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYSEdORU+67Y8OmOBfjE5nZk0Zb6RVyxA931/qoA9cdvn/Km0l3+D+8yFCrDRtjOou3DNK X-Received: by 2002:aa7:d28d:: with SMTP id w13mr2454907edq.251.1618472522524; Thu, 15 Apr 2021 00:42:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618472522; cv=none; d=google.com; s=arc-20160816; b=wmwD+hXMS/xAJyPcNyOPRQcLxzxA/Ck9nEAKpVshlpKEc50eswaEGIws0ehxIrfPwW tgvKe1LJ9HBPEU1eNtWA20iPneLQIeM+WQm8sMPmpXzlDDqmWDnKJMSfyhwQ4PrzDLOU eHlzMIJbQulf2VJ7E0lhMkiVM7RPMbFi4EhsBgR7wMljw5i5pcw5OA1sal0DPxD3XYh0 1e64txYv2dK4Iun800CrWR8e1lGZ0P1MJt+xd3ftalrcmDQMwbbawhN6PazVxcP+wdMq sJ07+/126YFwQwoV5lsPfYS8UX5jePcatuNjtXvEOWTY5D7mv4jfw7WOizWvdC3XHaH9 oHag== 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=vVBJLidSJ9fwxUi/JwclGPfWp2JMS2sCIbGjDo1uO2o=; b=C6NHLmapqp4T1TuTv8X1rO+Oqf0RZi5pwkXmgeJYAt8VcLWY9YC2pMJuOdLDDHehqz Z/4Lxug4vWpsoaWSZ7Qj23vLNWc6S/G3pFN0Sb7KNpXmzeSc3XG8TryW3oVBc1qSlm8E SxCyim68yERkyt9MIoWRN49Rn843W3zD3t1GA9eoFeTcGmuZdtvg5GMI1xLnHIeGLIvx cvFUMG9rx1XYCgabFGnsGAUOFiR4XuPw9ij2AQ/FVXPVUJavqQvF5cmf+bQ4+7BT+UUQ Roc8BIKKuccTG4+aJcqSbfLjjE0eKWf413oLHayNetzS35/n0ge/f8A55qtqYUbYbbtq UnRA== 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 p25si1595248ejc.571.2021.04.15.00.41.38; Thu, 15 Apr 2021 00:42:02 -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 S231535AbhDOHjM (ORCPT + 99 others); Thu, 15 Apr 2021 03:39:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231432AbhDOHjD (ORCPT ); Thu, 15 Apr 2021 03:39:03 -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 CFA2BC061574 for ; Thu, 15 Apr 2021 00:38:40 -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 1lWwZu-0008LU-1Y; Thu, 15 Apr 2021 09:38:18 +0200 Received: from pengutronix.de (unknown [IPv6:2a03:f580:87bc:d400:983:856d:54dc:ee1c]) (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 F2D1860F1FE; Thu, 15 Apr 2021 07:38:10 +0000 (UTC) Date: Thu, 15 Apr 2021 09:38:10 +0200 From: Marc Kleine-Budde To: Aswath Govindraju Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-phy@lists.infradead.org, Chandrasekar Ramakrishnan , Wolfgang Grandegger , "David S . Miller" , Jakub Kicinski , Rob Herring , Kishon Vijay Abraham I , Vinod Koul , linux-can@vger.kernel.org, netdev@vger.kernel.org, Vignesh Raghavendra , Lokesh Vutla , Grygorii Strashko Subject: Re: [PATCH v2 3/6] dt-bindings: phy: Add binding for TI TCAN104x CAN transceivers Message-ID: <20210415073810.nwoi2hx57hdg4ima@pengutronix.de> References: <20210414140521.11463-1-a-govindraju@ti.com> <20210414140521.11463-4-a-govindraju@ti.com> <20210414153303.yig6bguue3g25yhg@pengutronix.de> <9a9a3b8b-f345-faae-b9bc-3961518e3d29@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="x47mptupwgm4a7j3" Content-Disposition: inline In-Reply-To: <9a9a3b8b-f345-faae-b9bc-3961518e3d29@ti.com> 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 --x47mptupwgm4a7j3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 15.04.2021 11:57:20, Aswath Govindraju wrote: > Hi Marc, >=20 > On 14/04/21 9:03 pm, Marc Kleine-Budde wrote: > > On 14.04.2021 19:35:18, Aswath Govindraju wrote: > >> Add binding documentation for TI TCAN104x CAN transceivers. > >> > >> Signed-off-by: Aswath Govindraju > >> --- > >> .../bindings/phy/ti,tcan104x-can.yaml | 56 +++++++++++++++++++ > >> MAINTAINERS | 1 + > >> 2 files changed, 57 insertions(+) > >> create mode 100644 Documentation/devicetree/bindings/phy/ti,tcan104x-= can.yaml > >> > >> diff --git a/Documentation/devicetree/bindings/phy/ti,tcan104x-can.yam= l 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 Can you create a maintainers entry for this file with your address? > >> + > >> +properties: > >> + $nodename: > >> + pattern: "^tcan104x-phy" > >> + > >> + compatible: > >> + enum: > >> + - ti,tcan1042 > >> + - ti,tcan1043 > >=20 > > Can you ensure that the 1042 has only the standby gpio and the 1043 has= both? > >=20 >=20 > In the driver, it is the way the flags have been set for ti,tcan1042 and > ti,tcan1043. I was wondering if we would enforce in the DT the 1042 has exactly one the standby GPIO and the 1043 has exactly the standby and the enable GPIO. On the other hand the HW might have pulled one or the other pin high or low and only one of the pins is connected to a GPIO. > >> + > >> + '#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 > >> + minimum: 1 > >> + > >> +required: > >> + - compatible > >> + - '#phy-cells' > >> + > >> +additionalProperties: false > >> + > >> +examples: > >> + - | > >> + #include > >> + > >> + transceiver1: tcan104x-phy { > >> + compatible =3D "ti,tcan1043"; > >> + #phy-cells =3D <0>; > >> + max-bitrate =3D <5000000>; > >> + standby-gpios =3D <&wakeup_gpio1 16 GPIO_ACTIVE_LOW>; > >> + enable-gpios =3D <&main_gpio1 67 GPIO_ACTIVE_LOW>; > >=20 > > AFAICS the enable gpio is active high. > >=20 >=20 > I will correct this in the respin. 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 | --x47mptupwgm4a7j3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEK3kIWJt9yTYMP3ehqclaivrt76kFAmB37V8ACgkQqclaivrt 76ng1gf/aCWi7jDI36fG5Q2jCFj5WHSssB52808LYtj6jR8zi7zjgjHCoCK7MhXW tBV3CtNonx5NvHo99xFZgdVyJGlBeairCMWf9yfxW48sJzke6S0+WZ+qhWEE7mTG ae8a5lcQ14qMT0ls/xHdBA4pQ2JGvd1s3/H3EIaMo2HPIA3rYycVaIGYd2eNlFAj EbFN6mU8xyk9mxfIVlaBsPGqAFFCy3aS1vKpT4IKmo5iUIK1qWnVigrCIPU9Zch6 CRT0l5b0o9WsmkFe+oZpxGdDh+FO/bZNI2viH9avUhmx7uqwqb2sP2sljdR2CVtz j/9UhbSLDsxIKZHyaXZnknZ+W7KBNg== =ZTv2 -----END PGP SIGNATURE----- --x47mptupwgm4a7j3--