Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp286759pxb; Fri, 16 Apr 2021 05:49:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTux1ZCf4PAzYWCieQAEXlfVRcxC6hfaGiiMJmhLEAMt2p6wsXrFkC2vXaSxeNUA25Pt+b X-Received: by 2002:a17:90a:9312:: with SMTP id p18mr9415451pjo.171.1618577340242; Fri, 16 Apr 2021 05:49:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618577340; cv=none; d=google.com; s=arc-20160816; b=bnNxWAWfmb578p1yg5QF1eekRB0nsxHX6zxaObY1pSRX+WWnuKygG/4bJcPn0WzLkV bkhz7q7PvhrzpWnTh6opg9M9FPmOz3XIiwmpZftPhq6VhhXyqnEOoNfOqS5DBBg7poVd ygMO/vjF94Jz842M57egOZljMQwvUp37yNAnH7T/wN2VOApm5jizuZDcBGEzlcq0Cm0p t7wn/TgS3Xk/tPwkNcC5kaj5i32rjo3Z6ZotiSIYd3We0qwRtxPGSI+nZuLfYzK30J+E +J0tKSuQ4hJUNm4Met+ROThz6Gt9Gt8yS+LcAgXR5GzkoAFsV1od3xwA4QPeLlEPPrbQ d+Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=PUV6AwwaztHqsx25qobpgoCZp2N2b9pNDsdbNFio734=; b=x1OFO46W8nTCUdk5LLObAqckbm3kkfVDOmIYL/vqGh83Vzl7+EWT4biLrb/gGu7mzd //TvGpE+MOi/iBf0sMQCO4crns/77HeBYIs/M6WO/E5xmiMucoNme5jxYgtbaCwkomOS flFcZxJedx0GTnORNfBejnvbyPNnUoXnbyM0DBSFmTV0TGWmZ6ktXyDwX1G2/ZkSrjTV keUwuubDTGCORRHgVXUhDf327NYGGH00+Xm0Qun/WWMlpZ/LUqItUxdMJPlmhHc0mIOl eZDA7CV95W3TDSYq1MaZyYMa7RLzhTpP3AASXP/FjIDuHIEjysr7FSsIlMTBRMqmt6rY c8rg== 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 w13si7065889pjg.144.2021.04.16.05.48.47; Fri, 16 Apr 2021 05:49:00 -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 S234312AbhDPMIn (ORCPT + 99 others); Fri, 16 Apr 2021 08:08:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232130AbhDPMIm (ORCPT ); Fri, 16 Apr 2021 08:08:42 -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 369ECC061574 for ; Fri, 16 Apr 2021 05:08:18 -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 1lXNGU-0004Zs-9v; Fri, 16 Apr 2021 14:08:02 +0200 Received: from [IPv6:2a03:f580:87bc:d400:b21a:a98c:8cd:ce9c] (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mkl@blackshift.org", Issuer "StartCom Class 1 Client CA" (not verified)) (Authenticated sender: mkl@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 587A66102FF; Fri, 16 Apr 2021 12:08:00 +0000 (UTC) Subject: Re: [PATCH v5 0/3] CAN TRANSCEIVER: Add support for CAN transceivers 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 References: <20210416113058.23815-1-a-govindraju@ti.com> From: Marc Kleine-Budde Autocrypt: addr=mkl@pengutronix.de; prefer-encrypt=mutual; keydata= mQINBFFVq30BEACtnSvtXHoeHJxG6nRULcvlkW6RuNwHKmrqoksispp43X8+nwqIFYgb8UaX zu8T6kZP2wEIpM9RjEL3jdBjZNCsjSS6x1qzpc2+2ivjdiJsqeaagIgvy2JWy7vUa4/PyGfx QyUeXOxdj59DvLwAx8I6hOgeHx2X/ntKAMUxwawYfPZpP3gwTNKc27dJWSomOLgp+gbmOmgc 6U5KwhAxPTEb3CsT5RicsC+uQQFumdl5I6XS+pbeXZndXwnj5t84M+HEj7RN6bUfV2WZO/AB Xt5+qFkC/AVUcj/dcHvZwQJlGeZxoi4veCoOT2MYqfR0ax1MmN+LVRvKm29oSyD4Ts/97cbs XsZDRxnEG3z/7Winiv0ZanclA7v7CQwrzsbpCv+oj+zokGuKasofzKdpywkjAfSE1zTyF+8K nxBAmzwEqeQ3iKqBc3AcCseqSPX53mPqmwvNVS2GqBpnOfY7Mxr1AEmxdEcRYbhG6Xdn+ACq Dq0Db3A++3PhMSaOu125uIAIwMXRJIzCXYSqXo8NIeo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HLgIsDvWUG0g3sACfqF6gtMHY2lhQ0RxgxAEx+ULrk/svF6XGDe6iveyc z5Mg5SUggw3rMotqgjMHHRtB3nct6XqgPXVDGYR7nAkXitG+nyG5zWhbhRDglVZ0mLlW9hij z3Emwa94FaDhN2+1VqLFNZXhLwrNC5mlA6LUjCwOL+zb9a07HyjekLyVAdA6bZJ5BkSXJ1CO 5YeYolFjr4YU7GXcSVfUR6fpxrb8N+yH+kJhY3LmS9vb2IXxneE/ESkXM6a2YAZWfW8sgwTm 0yCEJ41rW/p3UpTV9wwE2VbGD1XjzVKl8SuAUfjjcGGys3yk5XQ5cccWTCwsVdo2uAcY1MVM HhN6YJjnMqbFoHQq0H+2YenTlTBn2Wsp8TIytE1GL6EbaPWbMh3VLRcihlMj28OUWGSERxat xlygDG5cBiY3snN3xJyBroh5xk/sHRgOdHpmujnFyu77y4RTZ2W8 Message-ID: <8dcf42c8-6b72-144f-b186-d6bb28cb5677@pengutronix.de> Date: Fri, 16 Apr 2021 14:07:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20210416113058.23815-1-a-govindraju@ti.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ZYCDodkx5pxRulXFKAdXo4rocwmHbXO3k" 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 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ZYCDodkx5pxRulXFKAdXo4rocwmHbXO3k Content-Type: multipart/mixed; boundary="36PK3UsOtLF8VF4ZoWATJG2EymWUksaQd"; protected-headers="v1" 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 Message-ID: <8dcf42c8-6b72-144f-b186-d6bb28cb5677@pengutronix.de> Subject: Re: [PATCH v5 0/3] CAN TRANSCEIVER: Add support for CAN transceivers References: <20210416113058.23815-1-a-govindraju@ti.com> In-Reply-To: <20210416113058.23815-1-a-govindraju@ti.com> --36PK3UsOtLF8VF4ZoWATJG2EymWUksaQd Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 4/16/21 1:30 PM, Aswath Govindraju wrote: > The following series of patches add support for CAN transceivers. >=20 > TCAN1042 has a standby signal that needs to be pulled high for > sending/receiving messages[1]. TCAN1043 has a enable signal along with > standby signal that needs to be pulled up for sending/receiving > messages[2], and other combinations of the two lines can be used to put= the > transceiver in different states to reduce power consumption. On boards > like the AM654-idk and J721e-evm these signals are controlled using gpi= os. >=20 > Patch 1 rewords the comment that restricts max_link_rate attribute to h= ave > units of Mbps. >=20 > Patch 2 models the transceiver as a phy device tree node with propertie= s > for max bit rate supported, gpio properties for indicating gpio pin num= bers > to which standby and enable signals are connected. >=20 > Patch 2 adds a generic driver to support CAN transceivers. >=20 > changes since v4: > - In patch 3 made the correction from mcan to CAN, in Kconfig help >=20 > changes since v3: > - dropped patch 2(in v3) > - changed the node name property in patch 3(in v3) > - picked up Rob Herring's reviewed-by for patch 3(in v3) >=20 > changes since v2: > - dropped 5 and 6 patches and to be sent via linux-can-next > - added static keyword for can_transceiver_phy_probe() > - changed enable gpio example to active high in patch 3 > - Rearranged the file names in alphabetical order in Makefile > and MAINTAINERS file >=20 > changes since v1: > - Added patch 1 (in v2) that rewords the comment that restrict > max_link_rate attribute to have units of Mbps. > - Added patch 2 (in v2) that adds an API for > devm_of_phy_optional_get_by_index > - Patch 1 (in v1) > - updated MAINTAINERS file > - Patch 2 (in v1) > - replaced m_can with CAN to make the driver independent of CAN drive= r > - Added prefix CAN_TRANSCEIVER for EN_PRESENT and STB_PRESENT > - Added new line before return statements in power_on() and power_off= > - Added error handling patch for devm_kzalloc() > - used the max_link_rate attribute directly instead of dividing it by= > 1000000 > - removed the spaces before GPIOD_OUT_LOW in devm_gpiod_get() > - Corrected requested value for standby-gpios to GPIOD_OUT_HIGH > - Updated MAINTAINERS file > - Patch 3 (in v1) > - replaced minItems with maxItems > - Removed phy-names property as there is only one phy > - Patch 4 (in v1) > - replaced dev_warn with dev_info when no transceiver is found > - Added struct phy * field in m_can_classdev struct > - moved phy_power_on and phy_power_off to m_can_open and m_can_close > respectively > - Moved the check for max_bit_rate to generice transceiver driver >=20 > [1] - https://www.ti.com/lit/ds/symlink/tcan1042h.pdf > [2] - https://www.ti.com/lit/ds/symlink/tcan1043-q1.pdf >=20 > Aswath Govindraju (3): > phy: core: Reword the comment specifying the units of max_link_rate t= o > be Mbps > dt-bindings: phy: Add binding for TI TCAN104x CAN transceivers > phy: phy-can-transceiver: Add support for generic CAN transceiver > driver >=20 Acked-by: Marc Kleine-Budde Please upstream this via the phy-tree, I'll take the mcan changes via linux-can-next. 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 | --36PK3UsOtLF8VF4ZoWATJG2EymWUksaQd-- --ZYCDodkx5pxRulXFKAdXo4rocwmHbXO3k Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEK3kIWJt9yTYMP3ehqclaivrt76kFAmB5fh0ACgkQqclaivrt 76lvogf/SmPjJuTm0CTqZ8BTKEfDLE/ZyLzxIYwinxzbCDWDnUReMHKNT6grQ1oK g0UMfp3Skx1hqM/jANtBCYxSZMc/dmRR3SMLUv9aQqrwWZ0HObLfarcTx4fzjLnE 3/erFd3qsBPTScyCLtEvCMfQNf1sZLJ625JRHQRdgtauPYwLjYeFQsKsLLEz6DR+ kluGCSk8SL9N/OQEGjnJ0t6tnyHKWyQTQcu8kzpBPFPGAUdDOeYHVWC90b0BBAch i0YMikygvvhO65dpRen6q5USY6PmPlx2jvZovdMa67YBpwXbV6PGAmD0cTVSXd1N rbSehIP89i6wq+nfaAo36/DnqjstwQ== =yw96 -----END PGP SIGNATURE----- --ZYCDodkx5pxRulXFKAdXo4rocwmHbXO3k--