Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4522818imm; Wed, 30 May 2018 07:12:28 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ1tYBSb2JWFk3+HICHMrV0/gCPQ97/5o6Zna1kuvsOlnrVK/NihVDCZoanZnZSc4zKuVDm X-Received: by 2002:a17:902:b590:: with SMTP id a16-v6mr2925923pls.225.1527689548741; Wed, 30 May 2018 07:12:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527689548; cv=none; d=google.com; s=arc-20160816; b=dHodyOAtZ/19rbJtDKwdZwUi0wF85xIhU40QW8NHfDFAu0Suu7ZrAn/jKL+ggfMKx4 J52N3pnSw/ZJMGrIMCQ0sry0PnMoSkEKpwW8dfuakygVxX4PB4cIMmCvRG4dBqIF68Tz nm66US54Sjwri3qefUlot5QeoW804QRYOh1o5sWywZJFOON1qyluFAopaXGAnNnmtUaN 0hfBCsWbsqDEcu6ubEn6Eb5OBe5hTJIPwxG87V9KXIR5z2M1qQ3wUPV0xv7KxRiXJD0C abrm/zSpZETZr6wL1ym04FRfl+wGm280jzG/xO0h+YAIg4v9WcMBIKLi6ULkTqECaDkb zuEA== 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 :arc-authentication-results; bh=uEahF8lpC7O7lZqW9T0Y0lZgIjMP11ebwrfGk4yfciI=; b=VwR2x+ExQPNUXyV/rTD4R1ng3PWnrxp0z+4Nj/elyLrReuKu6j5GfAYVxSLVIDuyKg MWn3eSndO79CJFoX7wnRK/mRfwQ4ePBotJ5+0Sy2JR+/lkiB90Qg89UGdLynk47j0NB8 VvqhaNzICsseAZiOndcMiCeZs4VsiRCfTU+1hsMA5ltjoAu0Ced4J+CYLHg4ubiGgtzY VrQeOEX9Dq0tpbTDStzDA5cZG2jo5SBOlHZaKXDKmxyLTa3g8PKCwOjamRVG7/4SDw1t 1eb58EgxWATM/n9l1BVc8q5YObczG5z2apsTmesJkuFyNEfvKrlqxNS42hxc0QI4f8Jr Zgmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=mzCI1MBR; 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 c17-v6si12772673pfk.93.2018.05.30.07.12.13; Wed, 30 May 2018 07:12:28 -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=mzCI1MBR; 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 S1753550AbeE3OK5 (ORCPT + 99 others); Wed, 30 May 2018 10:10:57 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:25625 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753483AbeE3OKu (ORCPT ); Wed, 30 May 2018 10:10:50 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w4UEANR7012496; Wed, 30 May 2018 09:10:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1527689423; bh=uEahF8lpC7O7lZqW9T0Y0lZgIjMP11ebwrfGk4yfciI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=mzCI1MBRGjJZ6mIJrb8716KBVyvSJ/tl/h5Yee5Pna9jRkOg8ew/yXvoiQR+uhNbz ayTsika2kTjAPQXCA5HvvaHgrJ2geJBUbW1Z/i2omdFmWHTG1SC5o2EDTJ06GBjO2P wePZk4vxwvjV/w6UjnDg5+Wr04PJIh19gAm5v5/Y= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4UEANgF018839; Wed, 30 May 2018 09:10:23 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 30 May 2018 09:10:22 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Wed, 30 May 2018 09:10:22 -0500 Received: from a0230074-OptiPlex-7010.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4UE9wvP001195; Wed, 30 May 2018 09:10:19 -0500 From: Faiz Abbas To: , , , , CC: , , , , , Subject: [PATCH v2 6/6] ARM: dts: dra76x: Add MCAN node Date: Wed, 30 May 2018 19:41:33 +0530 Message-ID: <20180530141133.3711-7-faiz_abbas@ti.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180530141133.3711-1-faiz_abbas@ti.com> References: <20180530141133.3711-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 From: Franklin S Cooper Jr Add support for the MCAN peripheral which supports both classic CAN messages along with the new CAN-FD message. Add MCAN node to evm and enable it with a maximum datarate of 5 mbps Signed-off-by: Faiz Abbas --- arch/arm/boot/dts/dra76-evm.dts | 7 +++++++ arch/arm/boot/dts/dra76x.dtsi | 15 +++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/dra76-evm.dts b/arch/arm/boot/dts/dra76-evm.dts index 2deb96405d06..277765257410 100644 --- a/arch/arm/boot/dts/dra76-evm.dts +++ b/arch/arm/boot/dts/dra76-evm.dts @@ -404,3 +404,10 @@ phys = <&pcie1_phy>, <&pcie2_phy>; phy-names = "pcie-phy0", "pcie-phy1"; }; + +&m_can0 { + status = "okay"; + can-transceiver { + max-bitrate = <5000000>; + }; +}; diff --git a/arch/arm/boot/dts/dra76x.dtsi b/arch/arm/boot/dts/dra76x.dtsi index 57b8dc0fe719..d7a8cc569808 100644 --- a/arch/arm/boot/dts/dra76x.dtsi +++ b/arch/arm/boot/dts/dra76x.dtsi @@ -27,6 +27,21 @@ ti,syss-mask = <1>; clocks = <&wkupaon_clkctrl DRA7_ADC_CLKCTRL 0>; clock-names = "fck"; + + m_can0: mcan@42c01a00 { + compatible = "bosch,m_can"; + reg = <0x1a00 0x4000>, <0x0 0x18FC>; + reg-names = "m_can", "message_ram"; + interrupt-parent = <&gic>; + interrupts = , + ; + interrupt-names = "int0", "int1"; + ti,hwmods = "mcan"; + clocks = <&mcan_clk>, <&l3_iclk_div>; + clock-names = "cclk", "hclk"; + bosch,mram-cfg = <0x0 0 0 32 0 0 1 1>; + status = "disabled"; + }; }; }; -- 2.17.0