Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1816541pxa; Sun, 16 Aug 2020 12:09:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx517WcploVgh47POR+pEtH47ZdljFPCsuz8+a5bVs1fiRdBy1i8T/dprdIL8Ri3e01YXTw X-Received: by 2002:aa7:de13:: with SMTP id h19mr11499222edv.322.1597604950031; Sun, 16 Aug 2020 12:09:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597604950; cv=none; d=google.com; s=arc-20160816; b=rLN5sOn6oRoaf2fSvwqfKgkvLxBZrmPG3/9qr4Cv8Mjz97i/Ya2VClGdsCZuIiN2vE BRFiQw+QkZt/V863dVcDhq7Wsaa68tKdP3AdEFdpeH1xOaKOgUqDjG7DI34Zu6XL019R 9i820rlK63F1gMMFpN4lMUpkv5NYDytzl4W0LsyddaOEAZfoqOujeeEucVbnd4WaFFib jVGXbBYUEboHFmxSXGcAURSzOcQlxn23DrGbY8mk2JM8/fKnzj1cBiLd0l+84HGMhoi9 MShUJSq5wW+Oy3Xm/c7EKUJqM7zJIJiYcYAA7OI+DWIL2OY0OL6vTQrR2r41B3GATbVW o2lQ== 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=iinFkeaI07MXQRMX8pvo93ueKynHznXpd8hLf5W+bkY=; b=a5/k+gcMg0QTwrSLevI+x83mMDc1lSU090H+OzBh0laebjEyC4c8VOWqB3QxC/TdzW 5yx6vTwKsQX/M2YdrPgDhjm8Dm1XwCC4Ce4BWzdlfzsl/n6asJZv8uJt7SIcuE5ECtzq 1DJq7AvaY0r7+0jKSN4wkav3BEpPEmNpOKbD5dQEHglIUHNs2PmXn8BalxYmKQrfKIoj VALg8WMpglPSpDW5aRkOWioOOl68c9ode4wxV2GZuMF9AAGgnYgb0iRa5Mja5OqnCM8x XYhQssx8qsJvPLd3JUaaHSOtnDZW1ooQpaflSlcAZkuj6idzjqDyRYKc8nrKQW8IPrcs JvWw== 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 j19si9300430eja.495.2020.08.16.12.08.47; Sun, 16 Aug 2020 12:09:10 -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 S1729675AbgHPTIH (ORCPT + 99 others); Sun, 16 Aug 2020 15:08:07 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:45739 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725873AbgHPTIB (ORCPT ); Sun, 16 Aug 2020 15:08:01 -0400 X-IronPort-AV: E=Sophos;i="5.76,321,1592838000"; d="scan'208";a="54478027" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 17 Aug 2020 04:08:00 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 30F2440062C7; Mon, 17 Aug 2020 04:07:57 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Jakub Kicinski , Rob Herring , Magnus Damm , Linus Walleij Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org, Lad Prabhakar , Prabhakar Subject: [PATCH 3/3] ARM: dts: r8a7742: Add CAN support Date: Sun, 16 Aug 2020 20:07:32 +0100 Message-Id: <20200816190732.6905-4-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200816190732.6905-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20200816190732.6905-1-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 the definitions for can0 and can1 to the r8a7742 SoC dtsi. Signed-off-by: Lad Prabhakar Reviewed-by: Chris Paterson --- arch/arm/boot/dts/r8a7742.dtsi | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/r8a7742.dtsi b/arch/arm/boot/dts/r8a7742.dtsi index 009827708bf4..0fc52b27ae64 100644 --- a/arch/arm/boot/dts/r8a7742.dtsi +++ b/arch/arm/boot/dts/r8a7742.dtsi @@ -36,6 +36,14 @@ clock-frequency = <0>; }; + /* External CAN clock */ + can_clk: can { + compatible = "fixed-clock"; + #clock-cells = <0>; + /* This value must be overridden by the board. */ + clock-frequency = <0>; + }; + cpus { #address-cells = <1>; #size-cells = <0>; @@ -951,6 +959,32 @@ status = "disabled"; }; + can0: can@e6e80000 { + compatible = "renesas,can-r8a7742", + "renesas,rcar-gen2-can"; + reg = <0 0xe6e80000 0 0x1000>; + interrupts = ; + clocks = <&cpg CPG_MOD 916>, + <&cpg CPG_CORE R8A7742_CLK_RCAN>, <&can_clk>; + clock-names = "clkp1", "clkp2", "can_clk"; + power-domains = <&sysc R8A7742_PD_ALWAYS_ON>; + resets = <&cpg 916>; + status = "disabled"; + }; + + can1: can@e6e88000 { + compatible = "renesas,can-r8a7742", + "renesas,rcar-gen2-can"; + reg = <0 0xe6e88000 0 0x1000>; + interrupts = ; + clocks = <&cpg CPG_MOD 915>, + <&cpg CPG_CORE R8A7742_CLK_RCAN>, <&can_clk>; + clock-names = "clkp1", "clkp2", "can_clk"; + power-domains = <&sysc R8A7742_PD_ALWAYS_ON>; + resets = <&cpg 915>; + status = "disabled"; + }; + pwm0: pwm@e6e30000 { compatible = "renesas,pwm-r8a7742", "renesas,pwm-rcar"; reg = <0 0xe6e30000 0 0x8>; -- 2.17.1