From patchwork Fri Dec 26 23:20:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 5543921 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9921CBEEA8 for ; Fri, 26 Dec 2014 23:20:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B0EC2201F5 for ; Fri, 26 Dec 2014 23:20:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E1BC8201FB for ; Fri, 26 Dec 2014 23:20:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751160AbaLZXUe (ORCPT ); Fri, 26 Dec 2014 18:20:34 -0500 Received: from mail-lb0-f180.google.com ([209.85.217.180]:59178 "EHLO mail-lb0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750808AbaLZXUd (ORCPT ); Fri, 26 Dec 2014 18:20:33 -0500 Received: by mail-lb0-f180.google.com with SMTP id l4so8814828lbv.25 for ; Fri, 26 Dec 2014 15:20:32 -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=a/oTS1vVXJXJiZy7XrtPmB2F/eEexIdHBGC/oLXJb/4=; b=mwVxoBurwmkv18qaU5Cdjk2nA2O3GbDx1N07RUkFDi24uPIi6QvHmleAfTKs3yS1+v MBy30gjpQqgldYGJ13d0FXFcoRJyQqqtSyalC7OEwwCGykFNKgRZ1VmEXcqSnQCXeuj1 pga6QyI1/fhukm1fOD9FpN30O9GB2VuKoDb6oENaXmJs9cSR2ahMHSof8Du2YGYRgJ78 CwJ24jGXJH/OT13Jwa6x4F8rMZx6w19YW5OKrSUdNHU8wLX0zFddMb6Mq++k2v72CkXO HXcvsYYtNEioJFNC+JV7ZYbeWa8lbFBhFWF0Tp7+n0IZzOb+d+XH3tGh7Qe5+/25BeVD 5WNA== X-Gm-Message-State: ALoCoQlWPn0Pb0iwumxrMTIPm0sw/aY6pr00GKkWX1uylIsrWdJaN/EdbDAmFx1xYcX9mDDFAYye X-Received: by 10.112.84.225 with SMTP id c1mr24095128lbz.22.1419636032139; Fri, 26 Dec 2014 15:20:32 -0800 (PST) Received: from wasted.cogentembedded.com (ppp83-237-255-240.pppoe.mtu-net.ru. [83.237.255.240]) by mx.google.com with ESMTPSA id yf10sm6070165lbb.9.2014.12.26.15.20.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Dec 2014 15:20:31 -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 v4 2/3] ARM: shmobile: r8a7791: add CAN DT support Date: Sat, 27 Dec 2014 02:20:28 +0300 Message-ID: <2080620.GIKTJkNfbk@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: <6830301.90YaDPuTpx@wasted.cogentembedded.com> References: <6830301.90YaDPuTpx@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 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>;