From patchwork Mon Sep 8 14:10:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 37001 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oi0-f72.google.com (mail-oi0-f72.google.com [209.85.218.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DDE372054D for ; Mon, 8 Sep 2014 14:12:37 +0000 (UTC) Received: by mail-oi0-f72.google.com with SMTP id a3sf21443802oib.3 for ; Mon, 08 Sep 2014 07:12:37 -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=i4glbYe4xRjMyCY5KO1O7kW73mz7BAhMEnTYv3BEVUoADCNvR7zqHhNPywjkKpdtV+ WN2abJINwKBaW9ROBYZ1GP1TR1ZsoRTuCwyFrrlLv3qvY6MptevudHVBLrY8NtunIdHj 5H6F93dVR4tvC457HRQPT92KN3pkg8ngroV8tLizs1I7bMVHj4en2HcPRLa8cROYMdkX sCXgIcD2VLN7l1A7O4ol1/rviDkQ9ScFzrLZizNzdtW/QuDI63uUykvRmy4SkiOQ+g7G 5k/zl1xszaozYNaz4lbqm4LbOvsYu8luaMvuo6mkkighT8SPlQfJY68k4bT33f7CTt8P 1n0w== X-Gm-Message-State: ALoCoQmDDXamUQhXn9xUiSY0HVjc1LDcowzY4Lz/klx5q5oXOA8zEZW4Di71EfZd1bWLgWcTge5I X-Received: by 10.182.91.43 with SMTP id cb11mr18559170obb.13.1410185557517; Mon, 08 Sep 2014 07:12:37 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.50.225 with SMTP id s88ls1718944qga.59.gmail; Mon, 08 Sep 2014 07:12:37 -0700 (PDT) X-Received: by 10.52.238.227 with SMTP id vn3mr1372558vdc.47.1410185557366; Mon, 08 Sep 2014 07:12:37 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id g7si1270544vdc.7.2014.09.08.07.12.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 08 Sep 2014 07:12:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 as permitted sender) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id hq11so15357753vcb.36 for ; Mon, 08 Sep 2014 07:12:37 -0700 (PDT) X-Received: by 10.221.61.5 with SMTP id wu5mr25459426vcb.13.1410185557290; Mon, 08 Sep 2014 07:12:37 -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 uj3csp140136vcb; Mon, 8 Sep 2014 07:12:36 -0700 (PDT) X-Received: by 10.70.89.3 with SMTP id bk3mr47386268pdb.41.1410185556446; Mon, 08 Sep 2014 07:12:36 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sv2si18187249pab.79.2014.09.08.07.12.35 for ; Mon, 08 Sep 2014 07:12:36 -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 S1754301AbaIHOMb (ORCPT + 5 others); Mon, 8 Sep 2014 10:12:31 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:52481 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754009AbaIHOL3 (ORCPT ); Mon, 8 Sep 2014 10:11:29 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s88EB9Ca002544; Mon, 8 Sep 2014 09:11:09 -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 s88EB9FG000444; Mon, 8 Sep 2014 09:11:09 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Mon, 8 Sep 2014 09:11:08 -0500 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s88EAi0C014173; Mon, 8 Sep 2014 09:11:06 -0500 From: Roger Quadros To: , , CC: , , , , , , , , , Roger Quadros Subject: [PATCH 06/13] ARM: dts: dra7-evm: Add CAN support Date: Mon, 8 Sep 2014 17:10:35 +0300 Message-ID: <1410185442-907-7-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1410185442-907-1-git-send-email-rogerq@ti.com> References: <1410185442-907-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.177 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>; +};