From patchwork Mon Nov 26 12:54:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 10698343 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D6D3913AD for ; Mon, 26 Nov 2018 13:16:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C40FD2977A for ; Mon, 26 Nov 2018 13:16:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B6A142983F; Mon, 26 Nov 2018 13:16:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 575CB2977A for ; Mon, 26 Nov 2018 13:16:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Bgt5uCWkabKZp8fXZ19goj3zz4jyMXEIB0hYmSWraNc=; b=EkLq5lrh1pnX9nqX5jfGbqq+oZ /wzYYcgvTDx+EIX6jIxBfDPMsldt/eKk/RQKfCexrTMnhT3QAUgq3rl97jbmREoh7Ska747aqT4Ol 6bgZ75KypckN5Q83RuIKBHDOWE2OPCA1GJmDbjFiyeAlVWl7boptjjQbN2uCYHFFt6uO+yZwo+WKi eX960hQME8qEP5s7IWmBX7C1VMc++hfOCcnvKbvHvi9TKviFCU03QziXXRo+VzWmJYjs2QCeCDAMQ EqmgUewJlYlOo6BYtxy7k8bHhcSfo4FU349BGvEd35y2ADTAUwGOgIOO+6MZOfZenVErTWkuyG3RO bhIco6kg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRGkE-0001Yq-R0; Mon, 26 Nov 2018 13:16:10 +0000 Received: from casper.infradead.org ([85.118.1.10]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRGgI-0005J5-Bv for linux-arm-kernel@bombadil.infradead.org; Mon, 26 Nov 2018 13:12:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XZ4057jjEMrr7pJYJyHCPBhkD3hu6zOQ3fl1npjy5iQ=; b=UWJumzQixMX90wt9iiSmjHGxf yifTs4ep0nc/o6IszMhNx3CgsY5xwjAoUN2uBAQcdQvtQJ0yFslmMsXMKYyFG3/mipgHNcox5J8bl r8DoFgfjVFj1bsyD2cL0QZDBECbeK668MJEs8Maf5kD/y+/h6eQDrRXL70hBAqveC7tlKGtr17tto bGw92W3mdxcsSSOeOg6k7lkJbyBrDhBg5yrZ2PD3a7s3XXWpaB//kBL9MWK0viipH4ByLPd6aZyND BVLEyqbt3ATpEZdGnPfmU7lkJQ3qh7dsBhOJgW9mpdy6whzBrjpIV+BqbPJt2Uc8Qh6qzbw7DhXFA 36OiZUKxA==; Received: from kirsty.vergenet.net ([202.4.237.240]) by casper.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRGaa-0005w7-Jt for linux-arm-kernel@lists.infradead.org; Mon, 26 Nov 2018 13:06:19 +0000 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 2388625BF42; Mon, 26 Nov 2018 23:55:12 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1543236912; bh=jL5lWg2kSJ5gmImG7G+IgbMvlyO9vsYA8VH4JffBBlk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EJaeeXtV2yFnSjN8PS9DxJ31OjkE8Cya38sS8CMmJCqR3Ydnf3qSMOZoN6f6QE8t5 ZAgCd16XC7cNvls38iRHVtSpIIla/Gwc9GNfk++2TzvvSLV2utdJVXEv4kwjub7ydH HyOW91gM6015ZReCQKOmJRTAHkE0gJuIv5AdFXXs= Received: by reginn.horms.nl (Postfix, from userid 7100) id D5F17940B0E; Mon, 26 Nov 2018 13:55:09 +0100 (CET) From: Simon Horman To: linux-renesas-soc@vger.kernel.org Subject: [PATCH 33/40] arm64: dts: renesas: r8a77965: Add CAN and CANFD controller nodes Date: Mon, 26 Nov 2018 13:54:59 +0100 Message-Id: <55db8ac68d38755d631cffdc4c6cf7d68a63decc.1543229516.git.horms+renesas@verge.net.au> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181126_130612_987510_C7CAECDA X-CRM114-Status: GOOD ( 11.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Simon Horman , Takeshi Kihara , Magnus Damm , linux-arm-kernel@lists.infradead.org, Marek Vasut MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Takeshi Kihara This patch adds CAN{0,1} and CANFD controller nodes for the R8A77965 SoC. Signed-off-by: Takeshi Kihara Signed-off-by: Marek Vasut Signed-off-by: Simon Horman --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 51 +++++++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r8a77965.dtsi b/arch/arm64/boot/dts/renesas/r8a77965.dtsi index 3a958fb25245..1c86e6f4dc71 100644 --- a/arch/arm64/boot/dts/renesas/r8a77965.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77965.dtsi @@ -907,13 +907,60 @@ }; can0: can@e6c30000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; reg = <0 0xe6c30000 0 0x1000>; - /* placeholder */ + interrupts = ; + clocks = <&cpg CPG_MOD 916>, + <&cpg CPG_CORE R8A77965_CLK_CANFD>, + <&can_clk>; + clock-names = "clkp1", "clkp2", "can_clk"; + assigned-clocks = <&cpg CPG_CORE R8A77965_CLK_CANFD>; + assigned-clock-rates = <40000000>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + resets = <&cpg 916>; + status = "disabled"; }; can1: can@e6c38000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; reg = <0 0xe6c38000 0 0x1000>; - /* placeholder */ + interrupts = ; + clocks = <&cpg CPG_MOD 915>, + <&cpg CPG_CORE R8A77965_CLK_CANFD>, + <&can_clk>; + clock-names = "clkp1", "clkp2", "can_clk"; + assigned-clocks = <&cpg CPG_CORE R8A77965_CLK_CANFD>; + assigned-clock-rates = <40000000>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + resets = <&cpg 915>; + status = "disabled"; + }; + + canfd: can@e66c0000 { + compatible = "renesas,r8a77965-canfd", + "renesas,rcar-gen3-canfd"; + reg = <0 0xe66c0000 0 0x8000>; + interrupts = , + ; + clocks = <&cpg CPG_MOD 914>, + <&cpg CPG_CORE R8A77965_CLK_CANFD>, + <&can_clk>; + clock-names = "fck", "canfd", "can_clk"; + assigned-clocks = <&cpg CPG_CORE R8A77965_CLK_CANFD>; + assigned-clock-rates = <40000000>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + resets = <&cpg 914>; + status = "disabled"; + + channel0 { + status = "disabled"; + }; + + channel1 { + status = "disabled"; + }; }; pwm0: pwm@e6e30000 {