From patchwork Wed Apr 3 10:54:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 10883473 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 2A00917E0 for ; Wed, 3 Apr 2019 11:01:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0DF02287BD for ; Wed, 3 Apr 2019 11:01:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 01CCF28965; Wed, 3 Apr 2019 11:01:26 +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=ham 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 30BF5287BD for ; Wed, 3 Apr 2019 11:01:25 +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=R1IfVttTw+eZf5mt1N21kKoWq/ISExj8rviHit1ENcg=; b=MEpjQnQuTo8gf36JgB1TxZ3mob 4FWKcI1bfwSrjwj5ncS8ws37C09CH+8PM+cd7t0lTzrpwh81uhR14vJvyQO4wJ2OyfSnVMCECmYNc givuM/XHBet1gKxR/QO2gY6HI3gw3Ho79X/dfFUwnAOUuQVVtC6cOwpqEqoR3mm6EVjZa112gFX3g dtq5Hag+F/+AgcaqMrrtniPrrmyDr/eiwllmWljMcoSz8hXqUtyalYZ/dnr6uwRf3L1bpKEaGBq4R DPcTXZ+IaO/kCLa++zWWWnJuhbTr5uhZf/1W9xCJ0aZDzYORp2x3pnFV2Cl+OsVzQnlp6+OeNfqHd f46X8SeQ==; 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 1hBddy-0004GV-2D; Wed, 03 Apr 2019 11:01:22 +0000 Received: from kirsty.vergenet.net ([202.4.237.240]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBddg-0000my-4Z for linux-arm-kernel@lists.infradead.org; Wed, 03 Apr 2019 11:01:17 +0000 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id B0F4C25BEEC; Wed, 3 Apr 2019 21:54:16 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1554288857; bh=gukztgwTR/ZXYmWVWpls0+16vnHSYHXvKt8+7cr6deQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A1fzHGBi6RXCeZSYGWzyvkCZKbOcQuGuA/tAR0Z7HnK6pWF8/kvJ/PnD+fyjFkx66 YoehfhHH9tNYTvNSzWoeKHzntwIhEXGwHoo7acsMGjcYDJuEzBaFDgTEJIuH/tHWGV hKxTqg0znKzq8wZbqL+i0Tl1T7CQSxQNjAKnTIlA= Received: by reginn.horms.nl (Postfix, from userid 7100) id B59C99407BB; Wed, 3 Apr 2019 12:54:11 +0200 (CEST) From: Simon Horman To: linux-renesas-soc@vger.kernel.org Subject: [PATCH 20/26] arm64: dts: renesas: r8a774c0: Add CANFD support Date: Wed, 3 Apr 2019 12:54:03 +0200 Message-Id: <80bc6dbb8fdb6c6dc650756470fb3457c575ac51.1554281697.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-20190403_040104_327274_1AF012E6 X-CRM114-Status: GOOD ( 11.15 ) 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: Fabrizio Castro , Simon Horman , Magnus Damm , linux-arm-kernel@lists.infradead.org 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: Fabrizio Castro The CANFD implementation on the RZ/G2E (a.k.a. r8a774c0) is identical to the one found on the r8a77990. Signed-off-by: Fabrizio Castro Reviewed-by: Geert Uytterhoeven Signed-off-by: Simon Horman --- arch/arm64/boot/dts/renesas/r8a774c0.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a774c0.dtsi b/arch/arm64/boot/dts/renesas/r8a774c0.dtsi index ebe69dcfa3ca..5b7fca953964 100644 --- a/arch/arm64/boot/dts/renesas/r8a774c0.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a774c0.dtsi @@ -988,6 +988,31 @@ status = "disabled"; }; + canfd: can@e66c0000 { + compatible = "renesas,r8a774c0-canfd", + "renesas,rcar-gen3-canfd"; + reg = <0 0xe66c0000 0 0x8000>; + interrupts = , + ; + clocks = <&cpg CPG_MOD 914>, + <&cpg CPG_CORE R8A774C0_CLK_CANFD>, + <&can_clk>; + clock-names = "fck", "canfd", "can_clk"; + assigned-clocks = <&cpg CPG_CORE R8A774C0_CLK_CANFD>; + assigned-clock-rates = <40000000>; + power-domains = <&sysc R8A774C0_PD_ALWAYS_ON>; + resets = <&cpg 914>; + status = "disabled"; + + channel0 { + status = "disabled"; + }; + + channel1 { + status = "disabled"; + }; + }; + pwm0: pwm@e6e30000 { compatible = "renesas,pwm-r8a774c0", "renesas,pwm-rcar"; reg = <0 0xe6e30000 0 0x8>;