Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4402476pxv; Tue, 27 Jul 2021 06:36:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhbRWM/Cd1iPrtJAlApB8dsBWuXcOSPUy7wycVjS4v1jxU32wPrarZ/xquhL4ybetoFMuf X-Received: by 2002:a92:260f:: with SMTP id n15mr16707111ile.143.1627392981852; Tue, 27 Jul 2021 06:36:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627392981; cv=none; d=google.com; s=arc-20160816; b=Kgqs8QoohE0Aqtm/febIm+iN/uYZ9zuO1hyVCbNBCwedR7NBdFf5qvn9gnEtmcv+yp mIuZVDOCIjRIk9q2rief2qPGsVZH+C9p/Q4jDVoS9eqFDrfBFdUQCJQP6sPFBcTE5VM5 o2IHErfqYe/6jr59c45GZm7gD7CYOKygVT7DorfXsaMr9fVojuxPkFuukVwOFXX9iLdW uHJ3SD0ulTUoRuQtJR7u6ZD4nJpp2Wn+V43kHRy6s9tuRaAwqPsg4SJvZZGpJogPRThs QjpqxLMiEd1tDLnEanBSyinuJ/wow0xsa2PV417x7WemU8Zh+/orvxjZHTcklY1B+kuz LXzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=dlEpMVWCtLitTkAjTMXGf5I9RLFKfMtLmVLkxlz/+z4=; b=cObYj3h+DfUTkO30G7nwg/ptnbcnjC2UvPUna7hZVNonLhYC+Cb6RZeIO64HhKrL7+ JNZZL3yDnHQe/rk3AB4biXw4sjKSZScc/bvNfGxy1+/dbR9SWM4vzfl7zn3X0f4LpIoa cKLrz2qAGbNiUOQMn4Z9w2t4gS8ZkWbUERgEq4hQYGSh2FvNmUzU5aPjXLmXhyach3Oh xUhLBvJldB6qdu9HwKroj5z9hseFzkSy2KQPOdTs3X3ic8KlBehcVw8urrf5R4eLz+01 b9BUxcB+iG/etUABkAfDlJuocve/02g0PYZkWFO7f5GGKt9XOF7OH0I9AgFZ9gNg5CIH WIfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c10si3569693jae.85.2021.07.27.06.36.10; Tue, 27 Jul 2021 06:36:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236892AbhG0NcK (ORCPT + 99 others); Tue, 27 Jul 2021 09:32:10 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:10217 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S236960AbhG0Nap (ORCPT ); Tue, 27 Jul 2021 09:30:45 -0400 X-IronPort-AV: E=Sophos;i="5.84,273,1620658800"; d="scan'208";a="88920787" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 27 Jul 2021 22:30:44 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 48C5A4270492; Tue, 27 Jul 2021 22:30:41 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Rob Herring , Fabrizio Castro , Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Jakub Kicinski , Magnus Damm , Philipp Zabel , linux-can@vger.kernel.org Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Biju Das , Lad Prabhakar Subject: [PATCH v4 3/3] arm64: dts: renesas: r9a07g044: Add CANFD node Date: Tue, 27 Jul 2021 14:30:22 +0100 Message-Id: <20210727133022.634-4-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210727133022.634-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20210727133022.634-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add CANFD node to R9A07G044 (RZ/G2L) SoC DTSI. Signed-off-by: Lad Prabhakar Reviewed-by: Biju Das --- arch/arm64/boot/dts/renesas/r9a07g044.dtsi | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a07g044.dtsi b/arch/arm64/boot/dts/renesas/r9a07g044.dtsi index 9a7489dc70d1..51655c09f1f8 100644 --- a/arch/arm64/boot/dts/renesas/r9a07g044.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a07g044.dtsi @@ -13,6 +13,13 @@ #address-cells = <2>; #size-cells = <2>; + /* External CAN clock - to be overridden by boards that provide it */ + can_clk: can { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <0>; + }; + /* clock can be either from exclk or crystal oscillator (XIN/XOUT) */ extal_clk: extal { compatible = "fixed-clock"; @@ -89,6 +96,40 @@ status = "disabled"; }; + canfd: can@10050000 { + compatible = "renesas,r9a07g044-canfd", "renesas,rzg2l-canfd"; + reg = <0 0x10050000 0 0x8000>; + interrupts = , + , + , + , + , + , + , + ; + interrupt-names = "g_err", "g_recc", + "ch0_err", "ch0_rec", "ch0_trx", + "ch1_err", "ch1_rec", "ch1_trx"; + clocks = <&cpg CPG_MOD R9A07G044_CANFD_PCLK>, + <&cpg CPG_CORE R9A07G044_CLK_P0_DIV2>, + <&can_clk>; + clock-names = "fck", "canfd", "can_clk"; + assigned-clocks = <&cpg CPG_CORE R9A07G044_CLK_P0_DIV2>; + assigned-clock-rates = <50000000>; + resets = <&cpg R9A07G044_CANFD_RSTP_N>, + <&cpg R9A07G044_CANFD_RSTC_N>; + reset-names = "rstp_n", "rstc_n"; + power-domains = <&cpg>; + status = "disabled"; + + channel0 { + status = "disabled"; + }; + channel1 { + status = "disabled"; + }; + }; + i2c0: i2c@10058000 { #address-cells = <1>; #size-cells = <0>; -- 2.17.1