Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2296277pxj; Sun, 9 May 2021 22:30:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxH7jvr4MYmUbCNqpHXYqRLLD1IT0oZl1kPNqUsGFncX2Up4QD+Y7kLSju6t47rPCBpBf+o X-Received: by 2002:a17:906:4c8e:: with SMTP id q14mr23878581eju.281.1620624629178; Sun, 09 May 2021 22:30:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620624629; cv=none; d=google.com; s=arc-20160816; b=NdlSlAbtosZsqf+rL+ZSaQe3+Yhx3FFPO2eizl3jqqOlaI4PI9idi9SpVTNJ7J0uI+ nHpuN80c9WCBcBibkswwiKxs0VM2TAvcA++B+8vPMJtFYufqd0REfNY4xyNxCMQ+W4Qi KUG3k42ofqQBq+kBe4QDGpiFJVT9pL9gDZUx9mb8Yb75gkHiEGU8n4b/NaM7ApILyxLa 7jNrPG9d4CaUL18Z8YWAiaf2QxOqtVi2nU5PjOWsJh5cID0FJV5PNhfAotftEHyfXIcZ qNV/NBzqvSCOedolq3FNJYO+AFnmgwq7FRQuBz3uqUefJ4rkNaL0AowmEa6IxxHwKqQs kX5Q== 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=LxP269CC01J/+uDjAhE3J1hacOKs7cPiUQDYAbvIoRg=; b=QDmI4NPvM4J6+5bSr4oe46zW11+4cC8N3V9otbGKIz3aK/yHrjKRWSdoX/1nNQ9oEI AJjPBHuxh1TelBLuVVJPlkLcM4OZ1vdk7daYFUeYP4VxrlLjbteLMAg+eqBMkqqwMnfE 7XND2owXMSU8XWcrjhWauC4ezaPIVZArHROuU4DqX4CX1w/F9H8XC1WcCgShzuqGpUvc 98qNzpmIEXTTTI/qpoaQhfp304xUy2zb9aNRAmxhkDA0JDVkfQA8XsSCk5OadyV2j3SF ZHHf0YqwcCV5X+6bXm//RgqAAvFwZRtEM3UV5wEUW/dicsJxW10B1d1wFUtK764cDCIr +nCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ti.com header.s=ti-com-17Q1 header.b="R/qR7hSG"; 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 op18si12587175ejb.39.2021.05.09.22.30.05; Sun, 09 May 2021 22:30:29 -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="R/qR7hSG"; 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 S230056AbhEJF1P (ORCPT + 99 others); Mon, 10 May 2021 01:27:15 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:40818 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229608AbhEJF1M (ORCPT ); Mon, 10 May 2021 01:27:12 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 14A5Ps0B086292; Mon, 10 May 2021 00:25:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1620624354; bh=LxP269CC01J/+uDjAhE3J1hacOKs7cPiUQDYAbvIoRg=; h=From:To:CC:Subject:Date; b=R/qR7hSGRSG0c2pneg/gr+d+rvUf+8XknJGC4siHmqZoln7kvNEcPk39Mw7YN0CNZ 7WVxFZttkkamsdn8nq289yZWkEgRPWqZK4cJv+7AOkD52DhSAaGSf5ds7JMVDvfvtD OdGMul/TNnW0slYkPwurvnYZjDrIHRlfNvuYlWh0= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 14A5Pst4075800 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 May 2021 00:25:54 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Mon, 10 May 2021 00:25:53 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE107.ent.ti.com (157.170.170.37) 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; Mon, 10 May 2021 00:25:53 -0500 Received: from gsaswath-HP-ProBook-640-G5.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 14A5PfCm045426; Mon, 10 May 2021 00:25:43 -0500 From: Aswath Govindraju CC: Chandrasekar Ramakrishnan , Wolfgang Grandegger , Marc Kleine-Budde , "David S . Miller" , Jakub Kicinski , Rob Herring , , , , , Vignesh Raghavendra , Lokesh Vutla , Kishon Vijay Abraham I , Aswath Govindraju Subject: [PATCH v4 0/2] MCAN: Add support for implementing transceiver as a phy Date: Mon, 10 May 2021 10:55:39 +0530 Message-ID: <20210510052541.14168-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 v3: - Added phy_power_off() in case of an error in m_can_open(). changes since v2: - changed dev_err to dev_err_probe in patch 2 - used mcan_class instead of priv to assign max bit rate - Picked up Rob Herring's acked-by for patch 1 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=498359 [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 | 11 +++++++++++ drivers/net/can/m_can/m_can.h | 2 ++ drivers/net/can/m_can/m_can_platform.c | 13 +++++++++++++ 4 files changed, 29 insertions(+) -- 2.17.1