Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp384541ybh; Wed, 15 Jul 2020 04:43:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGQxIHhdvDtx/2jsrr2pjnKdCI7s93BdRFR0d9DMXTsGu0CuSz5b+WB9msn4T9GDL2QbDV X-Received: by 2002:a17:906:3b01:: with SMTP id g1mr9291825ejf.353.1594813397277; Wed, 15 Jul 2020 04:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594813397; cv=none; d=google.com; s=arc-20160816; b=uSKg73tSeLS6Gp9Dv365CWrpAz1X+pHW3ZgeZM5PNn7YFga9e4HqML0dM9RFgoHwda pH8Fm9NiPjTZY2gxarb6lm4XyE2gAnA7MVJnf06Ci81r3PR5s+WfrpFzmcEy8SLBrxmD +c2apM6pn02wi26EoxPoEzx9ulu6W6jmPGCQgBto20y9Ec2ta4deE0PAowjTGNmCXAzP 0SiQONH2nh74eoQSikLGY+zDUkLRSS9LTKuJi3Y2VYSpSE0hraJIVwLKUKyZUkZe5TNF stcF+F51GNa0UhViXX9NIP+1YfJoejG+S5L3n2ZhX78XfKvrOhTgDE4yq+/hZVGZ8vjn rPbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=X1J1LsCS7C514Tikt5X6ypOXQ/sntu/KqHx7EJuBl40=; b=A7EbzySvDP9kqqXL65jnrX39AVQJa9MGW+j/fpbRdHrcQx56ljfecYwUB2t/sMEixD AWUGrJTxNlFZh9qVxHfG+1hOzPLm+YA4F4Vmfn3vCkafF9JHry/UcvwfKSu5EWlW2Lif spqBhzSPQYwDoRamKlleg30oXfrHI9RKu4Pd4gvuFRdlW6vWSUsW/cRU0CFbfxsdI2sE S8clOQcBYID5s4S3pGHNvDEkAzRDXdff2JcdTBWF9UMkaJiayD3Man98DCSwtd8JiA8T ZEXi7HC2bLOILskwD2FNm/11nmJeSTIdI9qSYFPKLfB0k+Sg/VQBaudq66WovBhqVD21 kfkg== 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 w18si1035900ejk.216.2020.07.15.04.42.53; Wed, 15 Jul 2020 04:43:17 -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 S1731809AbgGOLLQ (ORCPT + 99 others); Wed, 15 Jul 2020 07:11:16 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:3372 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731779AbgGOLLP (ORCPT ); Wed, 15 Jul 2020 07:11:15 -0400 X-IronPort-AV: E=Sophos;i="5.75,355,1589209200"; d="scan'208";a="51982045" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 15 Jul 2020 20:11:13 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 37C094006DF5; Wed, 15 Jul 2020 20:11:08 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Wolfram Sang , Rob Herring , Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Jakub Kicinski , Mark Brown , Niklas , Zhang Rui , Wim Van Sebroeck , Guenter Roeck , Magnus Damm Cc: Daniel Lezcano , Amit Kucheria , Thomas Gleixner , Laurent Pinchart , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-pm@vger.kernel.org, linux-watchdog@vger.kernel.org, Prabhakar , Lad Prabhakar Subject: [PATCH 20/20] arm64: dts: renesas: r8a774e1: Add CAN[FD] support Date: Wed, 15 Jul 2020 12:09:10 +0100 Message-Id: <1594811350-14066-21-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1594811350-14066-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <1594811350-14066-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add CAN[01] and CANFD support to RZ/G2H (R8A774E1) SoC specific dtsi. Signed-off-by: Lad Prabhakar Reviewed-by: Marian-Cristian Rotariu --- arch/arm64/boot/dts/renesas/r8a774e1.dtsi | 56 +++++++++++++++++++++-- 1 file changed, 53 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi index b2fa1a60470c..001874af8cf2 100644 --- a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi @@ -34,6 +34,13 @@ clock-frequency = <0>; }; + /* External CAN clock - to be overridden by boards that provide it */ + can_clk: can { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <0>; + }; + cluster0_opp: opp_table0 { compatible = "operating-points-v2"; opp-shared; @@ -1139,17 +1146,60 @@ }; can0: can@e6c30000 { + compatible = "renesas,can-r8a774e1", + "renesas,rcar-gen3-can"; reg = <0 0xe6c30000 0 0x1000>; + interrupts = ; + clocks = <&cpg CPG_MOD 916>, + <&cpg CPG_CORE R8A774E1_CLK_CANFD>, + <&can_clk>; + clock-names = "clkp1", "clkp2", "can_clk"; + assigned-clocks = <&cpg CPG_CORE R8A774E1_CLK_CANFD>; + assigned-clock-rates = <40000000>; + power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>; + resets = <&cpg 916>; status = "disabled"; - - /* placeholder */ }; can1: can@e6c38000 { + compatible = "renesas,can-r8a774e1", + "renesas,rcar-gen3-can"; reg = <0 0xe6c38000 0 0x1000>; + interrupts = ; + clocks = <&cpg CPG_MOD 915>, + <&cpg CPG_CORE R8A774E1_CLK_CANFD>, + <&can_clk>; + clock-names = "clkp1", "clkp2", "can_clk"; + assigned-clocks = <&cpg CPG_CORE R8A774E1_CLK_CANFD>; + assigned-clock-rates = <40000000>; + power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>; + resets = <&cpg 915>; status = "disabled"; + }; - /* placeholder */ + canfd: can@e66c0000 { + compatible = "renesas,r8a774e1-canfd", + "renesas,rcar-gen3-canfd"; + reg = <0 0xe66c0000 0 0x8000>; + interrupts = , + ; + clocks = <&cpg CPG_MOD 914>, + <&cpg CPG_CORE R8A774E1_CLK_CANFD>, + <&can_clk>; + clock-names = "fck", "canfd", "can_clk"; + assigned-clocks = <&cpg CPG_CORE R8A774E1_CLK_CANFD>; + assigned-clock-rates = <40000000>; + power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>; + resets = <&cpg 914>; + status = "disabled"; + + channel0 { + status = "disabled"; + }; + + channel1 { + status = "disabled"; + }; }; pwm0: pwm@e6e30000 { -- 2.17.1