From patchwork Mon Jan 5 22:25:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 5570621 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5AB299F444 for ; Mon, 5 Jan 2015 22:25:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 815532034A for ; Mon, 5 Jan 2015 22:25:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9FF76202EB for ; Mon, 5 Jan 2015 22:25:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754040AbbAEWZb (ORCPT ); Mon, 5 Jan 2015 17:25:31 -0500 Received: from mail-lb0-f182.google.com ([209.85.217.182]:38404 "EHLO mail-lb0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753772AbbAEWZa (ORCPT ); Mon, 5 Jan 2015 17:25:30 -0500 Received: by mail-lb0-f182.google.com with SMTP id u10so54907lbd.13 for ; Mon, 05 Jan 2015 14:25:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=hLv/A4Q5nR9EuoGLgGudRvuJ534u0ikOFWBovrOdIKQ=; b=IbFihvNmkgaql/GIVUqXrq0ECkeX4ZL2ANE4gC5oj1MQ5va8E95NBUpKrDfmIQpkHh RVcc9zXvIJeCF5jjAZNSU4cLD+pi5rBmv547JWZjJvfW693u/nBB9+jlGyr7UPDR8/+o pkgbYn3j3vVLotVzLyi1QnyPEOqDFNsOvT6RMs82YmA4QDBR+QTB0vt4IXvv2/1Z/1Dz u1Yn7/uyqdOkVE5DCJTpyU6NdB7rKO1z2K0h5WRDDJVWT2PC1Ucuhce01kBBwYWLYQTc RjKKS/BIodFN8yeSKANpAZLVqVOxbzRJoylBXeDV+ieN5G3OOEVhuPUgtBzskMVFUb7w GEuw== X-Gm-Message-State: ALoCoQmjlOTd1KYTUeDBwA6WUxgNOiwCiOCf0mVmIeMQvPrVe0Um19xiggRtGrvjv+YzpBqoTvVy X-Received: by 10.112.54.167 with SMTP id k7mr45930343lbp.72.1420496729351; Mon, 05 Jan 2015 14:25:29 -0800 (PST) Received: from wasted.cogentembedded.com (ppp19-206.pppoe.mtu-net.ru. [81.195.19.206]) by mx.google.com with ESMTPSA id p10sm14949266lap.10.2015.01.05.14.25.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Jan 2015 14:25:28 -0800 (PST) From: Sergei Shtylyov To: horms@verge.net.au, linux-sh@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, devicetree@vger.kernel.org Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 2/3] ARM: shmobile: r8a7791: add CAN DT support Date: Tue, 06 Jan 2015 01:25:25 +0300 Message-ID: <2610028.tvJWHLiVKM@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.3 (Linux/3.17.7-200.fc20.x86_64; KDE/4.14.3; x86_64; ; ) In-Reply-To: <1652479.NHBlqJ9OaR@wasted.cogentembedded.com> References: <1652479.NHBlqJ9OaR@wasted.cogentembedded.com> MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Define the generic R8A7791 parts of the CAN0/1 device nodes. Signed-off-by: Sergei Shtylyov Acked-by: Geert Uytterhoeven --- Changes in version 5: - fixed whitespace errors/warnings given by checkpatch.pl; - added Geert's ACK. Changes in version 4: - refreshed the patch. Changes in version 3: - added 2 more CAN clocks along with "clock-names" property in the CAN0/1 device nodes; - refreshed the patch. Changes in version 2: - fixed the "compatible" property in the CAN device nodes. arch/arm/boot/dts/r8a7791.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: renesas/arch/arm/boot/dts/r8a7791.dtsi =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7791.dtsi +++ renesas/arch/arm/boot/dts/r8a7791.dtsi @@ -816,6 +816,26 @@ }; }; + can0: can@e6e80000 { + compatible = "renesas,can-r8a7791"; + reg = <0 0xe6e80000 0 0x1000>; + interrupts = <0 186 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&mstp9_clks R8A7791_CLK_RCAN0>, + <&cpg_clocks R8A7791_CLK_RCAN>, <&can_clk>; + clock-names = "clkp1", "clkp2", "can_clk"; + status = "disabled"; + }; + + can1: can@e6e88000 { + compatible = "renesas,can-r8a7791"; + reg = <0 0xe6e88000 0 0x1000>; + interrupts = <0 187 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&mstp9_clks R8A7791_CLK_RCAN1>, + <&cpg_clocks R8A7791_CLK_RCAN>, <&can_clk>; + clock-names = "clkp1", "clkp2", "can_clk"; + status = "disabled"; + }; + clocks { #address-cells = <2>; #size-cells = <2>;