From patchwork Fri May 17 14:57:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13667131 X-Patchwork-Delegate: geert@linux-m68k.org Received: from riemann.telenet-ops.be (riemann.telenet-ops.be [195.130.137.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F398D6A34C for ; Fri, 17 May 2024 14:57:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.137.80 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715957857; cv=none; b=YmJEjVqXv4WvYpB4EvIJtlbB/Fg0JDzo8vSy3eHaXj/9tkaNObZuLf9YGe1rynd6O9EVo6AO/hgHlsK49a12y2C027kIQ4gn82pbjqJsObcsnYzsFQ/WSgIsX2CqYX/MUxwvALc754TfR0iV+wezcTD/A5kZVEv730eY3U8H4L4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715957857; c=relaxed/simple; bh=X0IARB3nV+qWnJWaO8TngW3v1MzkcdjwmzY7ZjJ6EpE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=X9HksRl7Ca+gFc5mPWgIvfdyiq2LocClU6Bs+A8WnV4589Z/MNvkZT8BV2a1ScQpJ32pbgEi79NSb56wjiITrRcP5txGKrSeEsWtTjKMvEqaGlNm6+SFS48Uy7QOthj98GHOsxiuGiZM+Wq/xwq093thBKIBF0xQhtyshZGgEIE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.137.80 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by riemann.telenet-ops.be (Postfix) with ESMTPS id 4VgqnM3ygkz4x1PZ for ; Fri, 17 May 2024 16:57:27 +0200 (CEST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:9706:8977:9494:a7c7]) by xavier.telenet-ops.be with bizsmtp id QExK2C00C0bc1Xv01ExKtZ; Fri, 17 May 2024 16:57:20 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1s7z0U-00BDnF-EJ; Fri, 17 May 2024 16:57:19 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1s7z1L-00C63P-GO; Fri, 17 May 2024 16:57:19 +0200 From: Geert Uytterhoeven To: linux-renesas-soc@vger.kernel.org Cc: Duy Nguyen , Geert Uytterhoeven Subject: [PATCH/RFC 3/4] arm64: dts: renesas: r8a779h0: Add CAN-FD node Date: Fri, 17 May 2024 16:57:15 +0200 Message-Id: <9412c1496037417c0f34c8aed10692f17c359677.1715956819.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Duy Nguyen Add device nodes for the CAN-FD interface and the related external CAN clock on the Renesas R-Car V4M (R8A779H0) SoC. Signed-off-by: Duy Nguyen Signed-off-by: Geert Uytterhoeven --- Changes compared to the BSP: - Add can_clk comment, - Add "-clk" suffix to clock node name. --- arch/arm64/boot/dts/renesas/r8a779h0.dtsi | 41 +++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a779h0.dtsi b/arch/arm64/boot/dts/renesas/r8a779h0.dtsi index ea3d2b2de10b2999..3766652623fd8e5e 100644 --- a/arch/arm64/boot/dts/renesas/r8a779h0.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a779h0.dtsi @@ -14,6 +14,13 @@ / { #address-cells = <2>; #size-cells = <2>; + /* External CAN clock - to be overridden by boards that provide it */ + can_clk: can-clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <0>; + }; + cluster0_opp: opp-table-0 { compatible = "operating-points-v2"; opp-shared; @@ -635,6 +642,40 @@ hscif3: serial@e66a0000 { status = "disabled"; }; + canfd: can@e6660000 { + compatible = "renesas,r8a779h0-canfd", + "renesas,rcar-gen4-canfd"; + reg = <0 0xe6660000 0 0x8500>; + interrupts = , + ; + interrupt-names = "ch_int", "g_int"; + clocks = <&cpg CPG_MOD 328>, + <&cpg CPG_CORE R8A779H0_CLK_CANFD>, + <&can_clk>; + clock-names = "fck", "canfd", "can_clk"; + assigned-clocks = <&cpg CPG_CORE R8A779H0_CLK_CANFD>; + assigned-clock-rates = <80000000>; + power-domains = <&sysc R8A779H0_PD_ALWAYS_ON>; + resets = <&cpg 328>; + status = "disabled"; + + channel0 { + status = "disabled"; + }; + + channel1 { + status = "disabled"; + }; + + channel2 { + status = "disabled"; + }; + + channel3 { + status = "disabled"; + }; + }; + avb0: ethernet@e6800000 { compatible = "renesas,etheravb-r8a779h0", "renesas,etheravb-rcar-gen4";