From patchwork Tue Sep 9 14:55:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 37125 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f70.google.com (mail-pa0-f70.google.com [209.85.220.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 90AED20566 for ; Tue, 9 Sep 2014 14:56:23 +0000 (UTC) Received: by mail-pa0-f70.google.com with SMTP id lj1sf21048548pab.9 for ; Tue, 09 Sep 2014 07:56:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=i2fsslIG0b18c/1aaM/A8kEpGQ72ueSltFcHgv5aIYw=; b=bRUO1+vw4G28pNK+6V7vZCjZyYk5wINwBigVwXCy08aVUB8Z9IchjB0LH2ZoT5VQfp Gzf9gGI340km4ICg4+uLfL7bzXkd2FDEq3nxX22pjCDDd5D3MT2jmNGjquQjnFWY51+5 /BTjCSK/7Z8LooPYkH24URw2qsKdgmieF7zmZ2TFkzl0tHx5X6asBb3rE5me/tRviT7B WDJLCVkJFhevrM01KbEz9nwq1MIpnTJ1JHkwnN3zlvKQV+bhB8cVFU3zpQve4cxkKkoh K4vEYienXpKXyDzMeqS+GLidxVbmUvOpjCEsua7C2ZRtXFfyMV/hUooj3eam162u94tE j1OQ== X-Gm-Message-State: ALoCoQl5iVy8t6ifMJHCaLVIuWebkhlv7ozk5FmUmdbvdvYgSndUhhB/DbX/vkcyghK0NAujdpDl X-Received: by 10.68.196.161 with SMTP id in1mr13120602pbc.5.1410274582883; Tue, 09 Sep 2014 07:56:22 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.30.195 with SMTP id d61ls462910qgd.68.gmail; Tue, 09 Sep 2014 07:56:22 -0700 (PDT) X-Received: by 10.52.61.136 with SMTP id p8mr25856466vdr.15.1410274582742; Tue, 09 Sep 2014 07:56:22 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id fa5si5227622vcb.80.2014.09.09.07.56.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Sep 2014 07:56:22 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 as permitted sender) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id hy10so3434306vcb.31 for ; Tue, 09 Sep 2014 07:56:22 -0700 (PDT) X-Received: by 10.220.169.72 with SMTP id x8mr6295547vcy.45.1410274582644; Tue, 09 Sep 2014 07:56:22 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp296591vcb; Tue, 9 Sep 2014 07:56:22 -0700 (PDT) X-Received: by 10.67.15.172 with SMTP id fp12mr58536068pad.4.1410274581047; Tue, 09 Sep 2014 07:56:21 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1si23685831pdi.123.2014.09.09.07.56.20 for ; Tue, 09 Sep 2014 07:56:21 -0700 (PDT) Received-SPF: none (google.com: linux-omap-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932713AbaIIO4K (ORCPT + 5 others); Tue, 9 Sep 2014 10:56:10 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:57654 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932668AbaIIO4H (ORCPT ); Tue, 9 Sep 2014 10:56:07 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s89EtnnZ009046; Tue, 9 Sep 2014 09:55:49 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s89Etneq023683; Tue, 9 Sep 2014 09:55:49 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Tue, 9 Sep 2014 09:55:49 -0500 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s89EtaMf021075; Tue, 9 Sep 2014 09:55:46 -0500 From: Roger Quadros To: CC: , , , , , , , , , , Roger Quadros Subject: [PATCH v2 03/12] ARM: dts: dra7-evm: Add CAN support Date: Tue, 9 Sep 2014 17:55:25 +0300 Message-ID: <1410274534-22826-4-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1410274534-22826-1-git-send-email-rogerq@ti.com> References: <1410274534-22826-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: rogerq@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The board has 2 CAN ports but only the first one can be used. Enable the first CAN port. The second one cannot be used without hardware modification so we don't enable the second port. Signed-off-by: Roger Quadros Reviewed-by: Felipe Balbi --- arch/arm/boot/dts/dra7-evm.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts index e03fbf3..d6b9b27 100644 --- a/arch/arm/boot/dts/dra7-evm.dts +++ b/arch/arm/boot/dts/dra7-evm.dts @@ -171,6 +171,20 @@ 0xd0 (PIN_OUTPUT | MUX_MODE0) /* gpmc_be0n_cle */ >; }; + + dcan1_pins_default: dcan1_pins_default { + pinctrl-single,pins = < + 0x3d4 (PIN_INPUT | MUX_MODE0) /* dcan1_tx */ + 0x3d8 (PIN_INPUT | MUX_MODE0) /* dcan1_rx */ + >; + }; + + dcan1_pins_sleep: dcan1_pins_sleep { + pinctrl-single,pins = < + 0x3d4 (PIN_INPUT | MUX_MODE15) /* dcan1_tx */ + 0x3d8 (PIN_INPUT | MUX_MODE15) /* dcan1_rx */ + >; + }; }; &i2c1 { @@ -529,3 +543,10 @@ ti,no-reset-on-init; ti,no-idle-on-init; }; + +&dcan1 { + status = "ok"; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&dcan1_pins_default>; + pinctrl-1 = <&dcan1_pins_sleep>; +};