Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2494661imd; Fri, 2 Nov 2018 12:24:42 -0700 (PDT) X-Google-Smtp-Source: AJdET5cw1KK8qSPL6+LgIUezB7O4uCULXZUEeh8/Tu4xdus/p7wIe4lF63TeUKM8kZ8efMD+R+eE X-Received: by 2002:a17:902:f097:: with SMTP id go23mr12577883plb.328.1541186682313; Fri, 02 Nov 2018 12:24:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541186682; cv=none; d=google.com; s=arc-20160816; b=mRA6CTSluwQMj8Z5La9JWf5lyOesmWpsq7bEtVfYa6Wmkq6yW5k9c/8X1/wkOGl5hN 36Mxs5Ut6GDTM3U5AfqKpEq0ITZN8ucZHbSoMVKqf+FwNoEBfrTkhYnGXR0iJPTze320 xN/bVajltGD+UGoc62suTfqnSyRbq0qi6QOXdX660pZ17ynti5+yELKP0vHvzLAjpbGn RYZBuaz3JD2fUMOw5Ut7xDzGxQnHFAn4b1IkgJLR2R4tq2OtQZasv9lQCnJ52Nff+bj9 Rxput6++gT+5qbFJgXmoiW7s9J3HYrZc2WrdxnVOkukG1Mec/A3khyA1Cy9YvNTB8sYi 1QwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=7rqeRlMU/MryScBAG/F9EVyizjBgZJ6+Y03xj5k0G6g=; b=Kdla5Ulj88I42vMH8JUc8Jx/c8ZlJhMbunFDPm5YwUx3wSzHkGFKaYHKmeLy/N4k6z XuGeBxgxvP2+R2qDBIhCmg8VK27U2aSoN37uvUU5IegyFcFPZY0W2oasEHQIaxYMJNAK Vwg4MAUo3y9ARJ+T89DWQyjei5GHNPJF3WGouGb/SnsvIfXslba8wC7NIQ4cxNffGYS9 2s5g7mZbBzG/xkgvqoSqJ86s8bY49pKanxpNCGDtC5sf+028RIlWnrNTFjDxCmrYIooH wqGxV2POHCl3Xn40E99vOkwC0hvxPlIdySm1yO+/i5EM0CCiZyMrnKkK6GzEmLVy7ZlG +/NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=W3GSQCd1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l12-v6si24504561plc.54.2018.11.02.12.24.27; Fri, 02 Nov 2018 12:24:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=W3GSQCd1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728175AbeKCEca (ORCPT + 99 others); Sat, 3 Nov 2018 00:32:30 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:54064 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727952AbeKCEc3 (ORCPT ); Sat, 3 Nov 2018 00:32:29 -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 wA2JNvDx078018; Fri, 2 Nov 2018 14:23:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1541186637; bh=7rqeRlMU/MryScBAG/F9EVyizjBgZJ6+Y03xj5k0G6g=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=W3GSQCd1EaNCmslfZ9lBuDRWEiySuQz/n8XAJNKkgLPyoV2w55tW6YNcKlMv6ySIh o3L0OIj+C4SN7BOdRUtOOps0s4jWdDJj2MS2WTEwcIlR2XGvf671jnw/lYx6vxXrNZ 1YR3xKLBobbYaUJnsUMsDv9KS48taH0G6+gZ5V1I= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wA2JNvXh117580 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 2 Nov 2018 14:23:57 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 2 Nov 2018 14:23:56 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Fri, 2 Nov 2018 14:23:57 -0500 Received: from a0230074-OptiPlex-7010.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id wA2JNfvY000522; Fri, 2 Nov 2018 14:23:54 -0500 From: Faiz Abbas To: , , , CC: , , , , , Subject: [PATCH 4/6] dt-bindings: can: m_can: Document transceiver implementation as a phy Date: Sat, 3 Nov 2018 00:56:14 +0530 Message-ID: <20181102192616.28291-5-faiz_abbas@ti.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20181102192616.28291-1-faiz_abbas@ti.com> References: <20181102192616.28291-1-faiz_abbas@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some transceivers need a configuration step (for example, pulling a standby line low) for them to start sending messages. Instead of a parent child relationship, the transceiver can be implemented as a phy with the configuration done in the phy driver. The bitrate limitations can then be obtained by the driver using said phy node. Document the above implementation. Signed-off-by: Faiz Abbas --- .../devicetree/bindings/net/can/m_can.txt | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/net/can/m_can.txt b/Documentation/devicetree/bindings/net/can/m_can.txt index ed614383af9c..c11548e74278 100644 --- a/Documentation/devicetree/bindings/net/can/m_can.txt +++ b/Documentation/devicetree/bindings/net/can/m_can.txt @@ -42,12 +42,14 @@ Required properties: Please refer to 2.4.1 Message RAM Configuration in Bosch M_CAN user manual for details. +Optional properties: +- phy-names : must be "can_transceiver". The transceiver + typically limits the maximum bitrate of the + system. The phy node is used to discover this + limitation. +- phys : phandle to the transceiver implemented as a phy + node. -Optional Subnode: -- can-transceiver : Can-transceiver subnode describing maximum speed - that can be used for CAN/CAN-FD modes. See - Documentation/devicetree/bindings/net/can/can-transceiver.txt - for details. Example: SoC dtsi: m_can1: can@20e8000 { @@ -64,12 +66,18 @@ m_can1: can@20e8000 { }; Board dts: + &m_can1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_m_can1>; status = "enabled"; + phy-names = "can_transceiver"; + phys = <&transceiver1>; +}; - can-transceiver { - max-bitrate = <5000000>; - }; +transceiver1: can-transceiver { + compatible = "simple-phy"; + max-bitrate = <5000000>; + pwr-supply = <&transceiver1_fixed>; + #phy-cells = <0>; }; -- 2.18.0