Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp126088pxb; Fri, 16 Apr 2021 01:08:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwJojLd+y1QBVF7J05qzAJZREFra38/nWqNFqhbEuTnjn/lnUA/NKJMd0ZJ80ZP+Qk82vN X-Received: by 2002:a62:3246:0:b029:224:6c6f:b3f2 with SMTP id y67-20020a6232460000b02902246c6fb3f2mr7019465pfy.68.1618560525765; Fri, 16 Apr 2021 01:08:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618560525; cv=none; d=google.com; s=arc-20160816; b=DeZLahpJjDwCC6FALy2w/iA4E5/J3B1fW/2iKvUz3nGE85koue94mwqF20hxB5uaXZ zlO1p4vmHrjJ7tWbcnudmKLjjQ24hK4K0HQeKCh2hbbgEZGE/5azXTV22jEVcfbXamG3 yjTh34HmYJN4tUK/RWMkPiNsv29izTQMdxDmY+LBeJHrkG/vug4Gp5H+MgLNijO/sZ1K tsN+o2II9qA+fRnECJKDanXovzKc1HzSclJWA+wGMNyIBN0snG4Gpc6UXsoCYXexYrCo L8AUFZlJB+MFgJJh3SrqtDwhyFly25Pc/pwp/6Yu7mR3majnSDxqxsGQJSWj931dHqdg YpXQ== 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=b+F7TMYZkFwY8zI3k5i7iozMWA1M+IKRW33xF7mU6DU=; b=Dukm1Au1TIDmG8GZJ3BWKAId9dBs39mc9L17OzALspYV7miprzPhkopSrS8/ZUBYX+ 3mFtJj0IPpNXs6dnD8aZ0qjFDdnDddQ92aJZsPKSCYGtGlRqW8cchnWU4MYSYtvqZ3P+ H17kGBXAf7MlngOBOKGirg3GAaqj32Rn7TH1pqsZJ6gstXbiz1CcCn3wWTdBItVtImpQ BX+WfnCztmM/x+NkZ0AriO0Lu5OckMtwAAkVE6sD5R3BDSY1EkRThx9BMlDtc6Sggyxi OihU6A9MnEk0uEX2iErOtf1APkyy7ObxMMe89qxlVDWbqjb2nNDpah2qeAztgNyLtgZt WCqQ== 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 l5si6101523pjk.66.2021.04.16.01.08.33; Fri, 16 Apr 2021 01:08:45 -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 S239725AbhDPHvy (ORCPT + 99 others); Fri, 16 Apr 2021 03:51:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231898AbhDPHvu (ORCPT ); Fri, 16 Apr 2021 03:51:50 -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 DB79CC061756 for ; Fri, 16 Apr 2021 00:51:25 -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 1lXJFv-0007Vj-FL; Fri, 16 Apr 2021 09:51:11 +0200 Received: from pengutronix.de (unknown [IPv6:2a03:f580:87bc:d400:b21a:a98c:8cd:ce9c]) (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 AEC6260FFEB; Fri, 16 Apr 2021 07:51:09 +0000 (UTC) Date: Fri, 16 Apr 2021 09:51:09 +0200 From: Marc Kleine-Budde To: Aswath Govindraju Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-phy@lists.infradead.org, linux-can@vger.kernel.org, Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Wolfgang Grandegger , Lokesh Vutla , Vignesh Raghavendra , Grygorii Strashko Subject: Re: [PATCH v4 3/3] phy: phy-can-transceiver: Add support for generic CAN transceiver driver Message-ID: <20210416075109.yw3c47ii67gckeqd@pengutronix.de> References: <20210416052647.2758-1-a-govindraju@ti.com> <20210416052647.2758-4-a-govindraju@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ady7filrbecwiiya" Content-Disposition: inline In-Reply-To: <20210416052647.2758-4-a-govindraju@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 --ady7filrbecwiiya Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 16.04.2021 10:56:47, Aswath Govindraju wrote: > The driver adds support for generic CAN transceivers. Currently > the modes supported by this driver are standby and normal modes for TI > TCAN1042 and TCAN1043 CAN transceivers. >=20 > The transceiver is modelled as a phy with pins controlled by gpios, to put > the transceiver in various device functional modes. It also gets the phy > attribute max_link_rate for the usage of CAN drivers. >=20 > Signed-off-by: Aswath Govindraju > --- > MAINTAINERS | 1 + > drivers/phy/Kconfig | 9 ++ > drivers/phy/Makefile | 1 + > drivers/phy/phy-can-transceiver.c | 146 ++++++++++++++++++++++++++++++ > 4 files changed, 157 insertions(+) > create mode 100644 drivers/phy/phy-can-transceiver.c >=20 > diff --git a/MAINTAINERS b/MAINTAINERS > index e666d33af10d..4e868f2a97c7 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -4048,6 +4048,7 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/gi= t/mkl/linux-can-next.git > F: Documentation/devicetree/bindings/net/can/ > F: Documentation/devicetree/bindings/phy/ti,tcan104x-can.yaml > F: drivers/net/can/ > +F: drivers/phy/phy-can-transceiver.c > F: include/linux/can/bittiming.h > F: include/linux/can/dev.h > F: include/linux/can/led.h > diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > index 54c1f2f0985f..51902b629fc6 100644 > --- a/drivers/phy/Kconfig > +++ b/drivers/phy/Kconfig > @@ -61,6 +61,15 @@ config USB_LGM_PHY > interface to interact with USB GEN-II and USB 3.x PHY that is part > of the Intel network SOC. > =20 > +config PHY_CAN_TRANSCEIVER > + tristate "CAN transceiver PHY" > + select GENERIC_PHY > + help > + This option enables support for CAN transceivers as a PHY. This > + driver provides function for putting the transceivers in various > + functional modes using gpios and sets the attribute max link > + rate, for mcan drivers. ^^^^ CAN 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 | --ady7filrbecwiiya Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEK3kIWJt9yTYMP3ehqclaivrt76kFAmB5QeoACgkQqclaivrt 76lL2Af/UvxExvGuIijK2rChTwL3SRtvX/+pPjQvIocOQXS0k3f/Qrn4kekRnYra L5E5CKfkfDyQ8+Z1hI10WxOKP12wtekyocXH06+wPYZfnSfVXTGa0udUzQsnDbZq HWJcSdy1AIAuDuRCteWuaAKpXkvqRIKcg2i06DWKHnsM/CiHN6PHunf2pNO7vN6N m+tM2haOcNWGb0MQ9MYL3q18rN+MtO/FyKhGnQ6G0WNPGzhwPoHHuYEk/tP2mMB8 kbqRyYOOTdtmssPqLGU9/w3N2AB+av9m+JtiVO4xfk9lcREN5NdF7DFsdCg3pC2q uojUDhg536F1EyjPzsiuucbsPtSE7Q== =WkZb -----END PGP SIGNATURE----- --ady7filrbecwiiya--