From patchwork Mon Nov 17 12:09:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 40915 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CD66924035 for ; Mon, 17 Nov 2014 12:09:20 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id b6sf6102246lbj.8 for ; Mon, 17 Nov 2014 04:09:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe :content-type:content-transfer-encoding; bh=JMFvbc5F9q1KJNe5g4wZAXv5KwG7uev7Baz5KY4eymk=; b=eMCzOGo4SrJsTMjLvMv9rK3fr1Jz6RPKqyBZ/m5HNWYJF5P4tbiPKTXtAUwcyAC3Ca TVYxD4v0iZCYD8bglfgS17PKSEKPWMQXLke1JkxY5HB3YPhKwH8WmHQKwXaMwiSkn/Uk Ar859rHYuxiyYCLUPyoicSvFpTgbH7nsDKIO2KQmNmJWNDZ5RBeRLgvI/m/J5bXBXqJB 5Q1nXtMMV5x+F3gbED2jHV6OLBLnEiJp3ZbYrrFoVNVZ/pJL7ugLekcDoPxPdCQwNXrW 4n5uXkDtS1tlDPKXM5Yl1zbG99sYfjGVh6gmHuwfxTpaYIC+ckyAFozwSMK/CItW2iKq PkVA== X-Gm-Message-State: ALoCoQn/foCqcENK3UwIl1wqFZtNfQ/h7Gm9wc1vLg62uF6nsGWFq7ebLs1jLqPhWCTI+scSFYWO X-Received: by 10.194.133.39 with SMTP id oz7mr1238103wjb.3.1416226159783; Mon, 17 Nov 2014 04:09:19 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.205.38 with SMTP id ld6ls133263lac.50.gmail; Mon, 17 Nov 2014 04:09:19 -0800 (PST) X-Received: by 10.112.64.200 with SMTP id q8mr661967lbs.46.1416226159626; Mon, 17 Nov 2014 04:09:19 -0800 (PST) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id qr5si51632254lbb.54.2014.11.17.04.09.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Nov 2014 04:09:19 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by mail-lb0-f171.google.com with SMTP id b6so15857543lbj.16 for ; Mon, 17 Nov 2014 04:09:19 -0800 (PST) X-Received: by 10.112.14.69 with SMTP id n5mr26968963lbc.34.1416226159531; Mon, 17 Nov 2014 04:09:19 -0800 (PST) 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.112.184.201 with SMTP id ew9csp1142143lbc; Mon, 17 Nov 2014 04:09:18 -0800 (PST) X-Received: by 10.68.215.100 with SMTP id oh4mr29272044pbc.11.1416226157922; Mon, 17 Nov 2014 04:09:17 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h9si17565415pdn.213.2014.11.17.04.09.17 for ; Mon, 17 Nov 2014 04:09:17 -0800 (PST) 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 S1752094AbaKQMJQ (ORCPT + 5 others); Mon, 17 Nov 2014 07:09:16 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:37185 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751644AbaKQMJO (ORCPT ); Mon, 17 Nov 2014 07:09:14 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id sAHC96Cv017983; Mon, 17 Nov 2014 06:09:06 -0600 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id sAHC95ja030587; Mon, 17 Nov 2014 06:09:06 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Mon, 17 Nov 2014 06:09:06 -0600 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id sAHC93ul015522; Mon, 17 Nov 2014 06:09:04 -0600 Message-ID: <5469E55F.1050502@ti.com> Date: Mon, 17 Nov 2014 14:09:03 +0200 From: Roger Quadros User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Marc Kleine-Budde , CC: , , Subject: [PATCH v8 9/9] net: can: c_can: Add support for TI am4372 DCAN References: <1415988591-6032-1-git-send-email-mkl@pengutronix.de> In-Reply-To: <1415988591-6032-1-git-send-email-mkl@pengutronix.de> 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.217.171 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: , AM4372 SoC has 2 DCAN modules. Add compatible id and raminit driver data for it. The driver data is same as AM3352 but this gives us flexibility to add AM4372 specific quirks if required later. Signed-off-by: Roger Quadros --- Documentation/devicetree/bindings/net/can/c_can.txt | 3 ++- drivers/net/can/c_can/c_can_platform.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/can/c_can.txt b/Documentation/devicetree/bindings/net/can/c_can.txt index 6731730..5a1d8b0 100644 --- a/Documentation/devicetree/bindings/net/can/c_can.txt +++ b/Documentation/devicetree/bindings/net/can/c_can.txt @@ -4,7 +4,8 @@ Bosch C_CAN/D_CAN controller Device Tree Bindings Required properties: - compatible : Should be "bosch,c_can" for C_CAN controllers and "bosch,d_can" for D_CAN controllers. - Can be "ti,dra7-d_can" or "ti,am3352-d_can". + Can be "ti,dra7-d_can", "ti,am3352-d_can" or + "ti,am4372-d_can". - reg : physical base address and size of the C_CAN/D_CAN registers map - interrupts : property with a value describing the interrupt diff --git a/drivers/net/can/c_can/c_can_platform.c b/drivers/net/can/c_can/c_can_platform.c index f4488e5..a4535d2 100644 --- a/drivers/net/can/c_can/c_can_platform.c +++ b/drivers/net/can/c_can/c_can_platform.c @@ -235,6 +235,7 @@ static const struct of_device_id c_can_of_table[] = { { .compatible = "bosch,d_can", .data = &d_can_drvdata }, { .compatible = "ti,dra7-d_can", .data = &dra7_dcan_drvdata }, { .compatible = "ti,am3352-d_can", .data = &am3352_dcan_drvdata }, + { .compatible = "ti,am4372-d_can", .data = &am3352_dcan_drvdata }, { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, c_can_of_table);