From patchwork Sun Nov 18 17:34:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 10688013 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C1B2C14E2 for ; Sun, 18 Nov 2018 17:34:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F2F92991E for ; Sun, 18 Nov 2018 17:34:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 90A0C29B72; Sun, 18 Nov 2018 17:34:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 27EA12991E for ; Sun, 18 Nov 2018 17:34:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=M4TntkxEjMeMxs/DF1BgjXY2OHj7CZPa3vlC1JTdZUQ=; b=eEx rdThHR0S4BIwQoVAQ2aINM5b/9givWt/IW8W0EcaXO3B2/epU38WPNulojxd1a8Bmd1K+GwFwnzok 67G5IGUjFYvFN4rslK4EPggT04VZcaHrsiIJmq7RFE8ijeEeBXOUh03p8HCoCrOsvKsBtx8R2GFWs ggL/wYZzdQjFUYWKp9ZLSQbKNBSj1ZZkT+/7qWvbIXRQMXV9MYJ0foeepGwpzzqu/f8wbdzpgP85j cA8dOplQqMd34UT9u8PT5AHc/BJlkeU8iirqAyIDt1ypbKP8kqRWggtsPSMF3EVwQRC/WoayPuJQ+ ttRrdQGUi3SCQjSchhN1HvXEuJZ1o6Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gOQy1-0000u0-TQ; Sun, 18 Nov 2018 17:34:41 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gOQxy-0000sA-Dv for linux-arm-kernel@lists.infradead.org; Sun, 18 Nov 2018 17:34:40 +0000 Received: by mail-wr1-x444.google.com with SMTP id z13-v6so29600340wrs.3 for ; Sun, 18 Nov 2018 09:34:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=LKOnZGrwSo/UbEr4vEaIgcgM81FhJ5Gj00qOPjZJPUw=; b=gH5XnWGoidsjhypcFZMQDO00RIrGKUMMxMqqbzy4jgI/107evVZtU5RztTXnetG0Tn 7/xFUDgnvYTMeAUFg0oKeYegUw43ktDc4IGwoOjXKlelP/fQht1gAgotb38a+wZjPJGr 0okAL0Z7TeB2RfsH1U4HkG9MPTjnj1p2nrGLFX1X0xoOwqXPVmoCtTyanFQbMQoBYACG f6ZP2b6lk2S8+Ta+uuaTuGgkfecxbxjEOfNuE0fQciX040IbUK8TyqKZYZqAXcVKf3sY uqsxGzI+1qA1yYM9UVhkvlHNMHKzwxv4cnnFSHnz8agwskH+mZlUk70W+5FY0F3pOkC+ y05w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=LKOnZGrwSo/UbEr4vEaIgcgM81FhJ5Gj00qOPjZJPUw=; b=a0IQlRv3ZBtSmKxcWoQl7Yty0qDTs68sdi+oEqSW2eMSQtCROzMQGJgrk1XVcwHov7 i9/65ZQitMX/d2vSyk+ldU4J/HkooRdbzrrfDzymbsOb5Y6QFY9Ag6GTUqqpRXOO61hK j/MYwD2H7To4j214wGziB3aPHJ/b8AS9AskkpWnwMBLKDN07IPx3KDMqD/BcFixif3C4 i1lPSb83kquwKNHbx8OvIHtxK3BmmPgh4tYYNf/2dZCKwC/mr33gryCF9aWJHW7cEygT YMUJX+YbNwyC72IB/qtJbBaWKhUq5G/C3up6ZA26XOfgDf+ZSEOTqsDScAMvq5UvtXXa F0FA== X-Gm-Message-State: AGRZ1gLrlvdN4DWKFoHojSAsc257kSonkfpeoQV8sF0i1M5CsVhfzze9 jFo8T5sL+TZq2OYLGr5awn4= X-Google-Smtp-Source: AJdET5c9xI4m9K1gP/n+hwhLJY6KMjU6OshErSHb4BIpPyifjKB3KsNhKxHzGSIAdLSXKiGqQFSItA== X-Received: by 2002:adf:9786:: with SMTP id s6mr15549662wrb.283.1542562466852; Sun, 18 Nov 2018 09:34:26 -0800 (PST) Received: from kurokawa.lan (ip-86-49-110-70.net.upcbroadband.cz. [86.49.110.70]) by smtp.gmail.com with ESMTPSA id 64-v6sm32746679wml.22.2018.11.18.09.34.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Nov 2018 09:34:26 -0800 (PST) From: Marek Vasut X-Google-Original-From: Marek Vasut To: devicetree@vger.kernel.org Subject: [PATCH] arm64: dts: renesas: r8a77990: ebisu: Add and enable CAN, FD device nodes Date: Sun, 18 Nov 2018 18:34:24 +0100 Message-Id: <20181118173424.4807-1-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.18.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181118_093438_461809_C2536CFA X-CRM114-Status: GOOD ( 14.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Geert Uytterhoeven , Yoshihiro Shimoda , linux-renesas-soc@vger.kernel.org, Wolfram Sang , Marc Kleine-Budde , Simon Horman , linux-arm-kernel@lists.infradead.org, Marek Vasut MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds CAN0,1 and CANFD device nodes for the r8a77990 SoC and enables CANFD connected to CN10 on the E3 Ebisu board using the R8A77990 SoC. Signed-off-by: Marek Vasut Cc: Geert Uytterhoeven Cc: Marc Kleine-Budde Cc: Rob Herring Cc: Simon Horman Cc: Wolfram Sang Cc: Yoshihiro Shimoda Cc: linux-arm-kernel@lists.infradead.org Cc: linux-renesas-soc@vger.kernel.org --- .../arm64/boot/dts/renesas/r8a77990-ebisu.dts | 15 +++++ arch/arm64/boot/dts/renesas/r8a77990.dtsi | 64 +++++++++++++++++++ 2 files changed, 79 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts b/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts index 2ef9067616ee..e282ef500001 100644 --- a/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts +++ b/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts @@ -260,6 +260,16 @@ }; }; +&canfd { + pinctrl-0 = <&canfd0_pins>; + pinctrl-names = "default"; + status = "okay"; + + channel0 { + status = "okay"; + }; +}; + &csi40 { status = "okay"; @@ -460,6 +470,11 @@ }; }; + canfd0_pins: canfd0 { + groups = "canfd0_data"; + function = "canfd0"; + }; + du_pins: du { groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0"; function = "du"; diff --git a/arch/arm64/boot/dts/renesas/r8a77990.dtsi b/arch/arm64/boot/dts/renesas/r8a77990.dtsi index 46868dacbeef..b0398e05e8ed 100644 --- a/arch/arm64/boot/dts/renesas/r8a77990.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77990.dtsi @@ -48,6 +48,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>; + }; + cpus { #address-cells = <1>; #size-cells = <0>; @@ -773,6 +780,63 @@ status = "disabled"; }; + can0: can@e6c30000 { + compatible = "renesas,can-r8a77990", + "renesas,rcar-gen3-can"; + reg = <0 0xe6c30000 0 0x1000>; + interrupts = ; + clocks = <&cpg CPG_MOD 916>, + <&cpg CPG_CORE R8A77990_CLK_CANFD>, + <&can_clk>; + clock-names = "clkp1", "clkp2", "can_clk"; + assigned-clocks = <&cpg CPG_CORE R8A77990_CLK_CANFD>; + assigned-clock-rates = <40000000>; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + resets = <&cpg 916>; + status = "disabled"; + }; + + can1: can@e6c38000 { + compatible = "renesas,can-r8a77990", + "renesas,rcar-gen3-can"; + reg = <0 0xe6c38000 0 0x1000>; + interrupts = ; + clocks = <&cpg CPG_MOD 915>, + <&cpg CPG_CORE R8A77990_CLK_CANFD>, + <&can_clk>; + clock-names = "clkp1", "clkp2", "can_clk"; + assigned-clocks = <&cpg CPG_CORE R8A77990_CLK_CANFD>; + assigned-clock-rates = <40000000>; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + resets = <&cpg 915>; + status = "disabled"; + }; + + canfd: can@e66c0000 { + compatible = "renesas,r8a77990-canfd", + "renesas,rcar-gen3-canfd"; + reg = <0 0xe66c0000 0 0x8000>; + interrupts = , + ; + clocks = <&cpg CPG_MOD 914>, + <&cpg CPG_CORE R8A77990_CLK_CANFD>, + <&can_clk>; + clock-names = "fck", "canfd", "can_clk"; + assigned-clocks = <&cpg CPG_CORE R8A77990_CLK_CANFD>; + assigned-clock-rates = <40000000>; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + resets = <&cpg 914>; + status = "disabled"; + + channel0 { + status = "disabled"; + }; + + channel1 { + status = "disabled"; + }; + }; + pwm0: pwm@e6e30000 { compatible = "renesas,pwm-r8a77990", "renesas,pwm-rcar"; reg = <0 0xe6e30000 0 0x8>;