Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp13594pxv; Wed, 21 Jul 2021 14:06:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzV9IwlgKuZWWGdAlsWeW7rzIC2wzJ5X/N2oUQPE6xngQklvtKPEXVvsiAWawVPsu3+e6Z X-Received: by 2002:a05:6e02:1142:: with SMTP id o2mr26227584ill.277.1626901522584; Wed, 21 Jul 2021 14:05:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626901522; cv=none; d=google.com; s=arc-20160816; b=qmRXxm0tv8OgYCUyeLv9ac6gaxwG6PFxcfIuut+G44C3M4fKleJq3I2En0NhXG5TCR B9ua6gl/Y2ThU/iViIoHOsUf/ca4SJpz+Nh9QsWahoBZUXneWljnVYxH7Yc4Q3iHwwJe gwshgsWFcG0SPsiuI1CHj0xKfYmHFaRkhlRuqUsFP8T7L+pfyGr389Ln8F8rpjbn/F0/ h4hEvw1J33k1Tu869fkyb0bzTaTLYb1UcYn4ALGzgOZiKq4w1CXbN9ts2dMVmvhJSo0/ YBh+NQNm42Ac+TlInoyCb34mgx1aJzN6ouZ7rS2HvMA9JLahQqi7Dxfci1I73mWU7rpQ ouFw== 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=mn7siwom/dHvAYwoiexF8z9ooIp4wJlpWv5LAJ+bk5/htD1Zx7/0kRbe7qO1ChgJJu eNVr9dwjDTvB8+oAVnCJ3VP7eU9EzYTtT/yGsgjni1vhIxFk7no7aTSISgbBffA9e+rO oDoiU5DRV3fC5e3hwyjZ8wNkwmdybcKPoIkQm5PLnNTZJnhSMIw0dHlvv4W/Vfvrf6dz 4dmphWCr98ZHNQPv2qAu+oE5NVhAl/XzNptASYEgMb9ZvCCw11w6ksl3JpyD9y40672w mgSKR6i2e1ueoB2BRRj4TCh7cm3zyg7pjCvfkDXXsZ0bqqUwPo/JqLiFwA1xAZMcTn/W p1jQ== 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 a21si26977683jam.67.2021.07.21.14.05.09; Wed, 21 Jul 2021 14:05:22 -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 S240356AbhGUTKL (ORCPT + 99 others); Wed, 21 Jul 2021 15:10:11 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:5615 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S239624AbhGUTKJ (ORCPT ); Wed, 21 Jul 2021 15:10:09 -0400 X-IronPort-AV: E=Sophos;i="5.84,258,1620658800"; d="scan'208";a="88350330" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 22 Jul 2021 04:50:44 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 837D8400D4D6; Thu, 22 Jul 2021 04:50:41 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Rob Herring , Fabrizio Castro , Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Jakub Kicinski , Philipp Zabel , linux-can@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Biju Das , Lad Prabhakar Subject: [PATCH v3 3/3] arm64: dts: renesas: r9a07g044: Add CANFD node Date: Wed, 21 Jul 2021 20:49:51 +0100 Message-Id: <20210721194951.30983-4-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210721194951.30983-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20210721194951.30983-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