Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp886864pxb; Thu, 15 Apr 2021 08:47:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxDtekJHqicOpSMvoO0uL5qVbPTbSSRuxCL1qKq2rAyKGyEBU1TK4QQ59WjpPIgPjgei2X X-Received: by 2002:a17:90a:ab09:: with SMTP id m9mr4857816pjq.122.1618501665598; Thu, 15 Apr 2021 08:47:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618501665; cv=none; d=google.com; s=arc-20160816; b=IS2stcAWXSj0Yjg7B1DHfR+8zhNFr4aVYRD8nE6Code/F1si1V8Nxt4R2kIwR+yJqs h/CHWpaJKfojdK1IfNoi5SELOI5xTJIOAGgEqEOJf8L5nOydk+aS1/Tg2m2QfJFIMHDv 2A03Lhev68TthCLX+BJGtGnf7of/igv3gVvGaj1jxh4UBzmuIapRCKOeEmcsILx22+ma /ZqqNtFWwquTtOwJnQnaKTMeuyq8eFaK3790IgqcVT7dQd1wfe5x+NRokGaS7hafoOI0 BBZrjLBBbLpggoQPpcBC259wmBcheOahuBtdHVd6sCDmvZZBdp3F4Zm+z96C6DhAqZd5 LUmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:mime-version:message-id:date:subject:cc:from :dkim-signature; bh=UYS0mmXwXHvdy44MSdxL2VsFFDNIsAIevhRgyfcwE28=; b=BiO8GPlrptTHNKCncA5EFFaaNKxTJQK+AJgwY7UOoHq0dEzF5280bM0iwOgJ+x73gV vk/EofF5LJsTd5u0DRlavniSrgugC7Mj/IGQrTF/otuE0g8ndtkZgoWcKs5V5jcQaokK vAM+bYT9zT+F6g4hZKOTfH/I+B3Bl4rzOdTJRnBDudGp7o5Z7pxkNXeFhAk0Pdt3GFC0 HP8/aSEBmmT9n8JFsOY6XAD2wxbtTfRy0Ql/OE3w+lsGXFbu0EgzteLkrviiHQxroq+B JbKx8THwFIqCAdPkV0mkAsmLAhqmaN10+VU6shLMdRQamMziDMtMbn3N7pwHjTKKhpW2 sBkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ti.com header.s=ti-com-17Q1 header.b=NBpPA97q; 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; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mm18si984278pjb.10.2021.04.15.08.47.28; Thu, 15 Apr 2021 08:47: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; dkim=fail header.i=@ti.com header.s=ti-com-17Q1 header.b=NBpPA97q; 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; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233762AbhDOPrQ (ORCPT + 99 others); Thu, 15 Apr 2021 11:47:16 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:34742 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233094AbhDOPrP (ORCPT ); Thu, 15 Apr 2021 11:47:15 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 13FFkf6H028131; Thu, 15 Apr 2021 10:46:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1618501601; bh=UYS0mmXwXHvdy44MSdxL2VsFFDNIsAIevhRgyfcwE28=; h=From:To:CC:Subject:Date; b=NBpPA97qt18VfRpo250ryA95pGVl3G03wxlb1a0CVu1GFZ2fkkW9XyRVuuaYNaqut YJq6nI9yH7zwr4us0+ausfz0PH49GJ9c4USl7RnsNVesq1ikLRkzv+mL+p/Zg4rLsD QbbhHu5QBlM+LqbQO0Z8mYyX70tke99id5zWIEg0= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 13FFkf75059424 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 15 Apr 2021 10:46:41 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 15 Apr 2021 10:46:40 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Thu, 15 Apr 2021 10:46:40 -0500 Received: from gsaswath-HP-ProBook-640-G5.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 13FFkZh9028376; Thu, 15 Apr 2021 10:46:36 -0500 From: Aswath Govindraju CC: , , , , Marc Kleine-Budde , Wolfgang Grandegger , Rob Herring , "David S . Miller" , Jakub Kicinski , Chandrasekar Ramakrishnan , Kishon Vijay Abraham I , Lokesh Vutla , Vignesh Raghavendra , Grygorii Strashko , Faiz Abbas , Aswath Govindraju Subject: [PATCH v2 0/2] MCAN: Add support for implementing transceiver as a phy Date: Thu, 15 Apr 2021 21:16:33 +0530 Message-ID: <20210415154635.30094-1-a-govindraju@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following series of patches add support for implementing the transceiver as a phy of m_can_platform driver. 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 gpios. These gpios are set in phy driver, and the transceiver can be put in different states using phy API. The phy driver is added in the series [3]. This patch series is dependent on [4]. Changes since v1: - Used the API devm_phy_get_optional() instead of devm_of_phy_get_optional_by_index() [1] - https://www.ti.com/lit/ds/symlink/tcan1042h.pdf [2] - https://www.ti.com/lit/ds/symlink/tcan1043-q1.pdf [3] - https://lore.kernel.org/patchwork/project/lkml/list/?series=495365 [4] - https://lore.kernel.org/patchwork/patch/1413286/ Faiz Abbas (2): dt-bindings: net: can: Document transceiver implementation as phy can: m_can: Add support for transceiver as phy .../devicetree/bindings/net/can/bosch,m_can.yaml | 3 +++ drivers/net/can/m_can/m_can.c | 10 ++++++++++ drivers/net/can/m_can/m_can.h | 2 ++ drivers/net/can/m_can/m_can_platform.c | 13 +++++++++++++ 4 files changed, 28 insertions(+) -- 2.17.1