From patchwork Tue Nov 20 23:32:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 10691449 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 7A9445A4 for ; Tue, 20 Nov 2018 23:33:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 624FB2A871 for ; Tue, 20 Nov 2018 23:33:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 532F62A8A3; Tue, 20 Nov 2018 23:33:14 +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 B0C402A871 for ; Tue, 20 Nov 2018 23:33:13 +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=ftkVKEnMixLWpFKCsW/UkaIGOgG/mqGMC6+PJUBOAco=; b=F0h iUsKssPVQtP1l/a6RZiNF4s6OVmssEYax1wdZw+uljamW+hdeaCEuiEQiqPck6/pEf84SihucnRFx 1GjPFiCImLLtRGkiNoHzdbeWR64Po41ze6a/BUui030NwQTzZrmSSLNVRuUDEyOgdYVZqh1XzoF2T vAgBz2OiBMNxfldn0C4kdPGm3W3Fs5SzJCnHnkIcv86UuA6ZetLe8+Uz2BFas8JOGk4TWATwdb0CG raXk7O1nDAiC/AUBpa/2codZG5jZhNDXml3ExnSDRL56O7W5eQPEMP4w23C/pRcX7SEI8TV3yzphj QMhU9h13YDuqg+JG+g/2rijgSDXifMQ==; 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 1gPFW2-0001Zs-Qu; Tue, 20 Nov 2018 23:33:10 +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 1gPFW0-0001ZR-6h for linux-arm-kernel@lists.infradead.org; Tue, 20 Nov 2018 23:33:09 +0000 Received: by mail-wr1-x444.google.com with SMTP id j17-v6so3730207wrq.11 for ; Tue, 20 Nov 2018 15:32:56 -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=LTQhrdSgxUNtPQZYMGF4pZ087QGPH68pC/9hWSUq8uA=; b=VbmBq7dlwm99oVegtoksdQ3hedPnUBT8LpUvv5TfODHHM6hsjxsoUx/xnX/rtAGSfS PmP3+KjcLIbNAhewO6MNnubsUaLLBiz0fc5LKR/ypd2l6Eb24Jt0pUmQ5qxyU3HJmQBg /QS7iexnjY+ABmLdk/QCqDDOjjfiHh0Ut2Cs599+UWyQT3saMOIvbTeckb1ZjCbkTWSu 6k4sYmbhj+zz4AqmbQIy+O9QA2PfT4Ro8qxLDRZ5qwA4TzeXQuC5vfiR3/v2n62ufRES vLifcWZd2z8wef7U/6YQSoTl20Grc/l/Y1OIor9DVShNP20YJCapNVhoTZ713BUm4Yy8 noSw== 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=LTQhrdSgxUNtPQZYMGF4pZ087QGPH68pC/9hWSUq8uA=; b=IlB/4614Ar45bO5poaiWutLxAK429NSVwetsdNCoEgZAZAsFqB3ncPlnFv4UDq31ey Hdr30CxUlab6joGmcC25r68NaYRe1F5Gs9IWLNDHISHxnz3egcMajbz2ujbFadW6aJls xyLNnREP/i9NwjAHsKjv83vdlGrpZzy7tO48XAyidajny50XMpme1TdJPNhTGJjtCo2g 3nuw+vR4Q0sG0hVtda8FdZ4ZVuAww49VNKYLfgwAxuMMv4fHZEFBsVdIZXYjDfOhsAZv jGrZASiizfLtJB3O3Z3Og2LBvinnkAfbve6mqJDoF3owsJxJ4MQzKOjD/UHmQMENaWnF GUiQ== X-Gm-Message-State: AA+aEWZYGbESbe1p4eKkgriMqMveMeGxM0qREr0NHOd+6YzysG2ug6L8 cede7oZByUyAFmbyxu8fHHN0c9xU0/0= X-Google-Smtp-Source: AFSGD/W2O1IyG0/AD+kmGwz/cqlM9R3xqXquv90B2HVM8AqNL35fFKz1jjQ3Ok8nZek42Z7arjAUUA== X-Received: by 2002:adf:cd84:: with SMTP id q4mr3603591wrj.89.1542756775407; Tue, 20 Nov 2018 15:32:55 -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 x142-v6sm85022167wmd.20.2018.11.20.15.32.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 15:32:54 -0800 (PST) From: Marek Vasut X-Google-Original-From: Marek Vasut To: devicetree@vger.kernel.org Subject: [PATCH V2] arm64: dts: renesas: r8a77965: Add CAN and CANFD controller nodes Date: Wed, 21 Nov 2018 00:32:52 +0100 Message-Id: <20181120233252.1612-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-20181120_153308_268910_F9C16168 X-CRM114-Status: GOOD ( 13.42 ) 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 , Takeshi Kihara , Geert Uytterhoeven , 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 From: Takeshi Kihara This patch adds CAN{0,1} and CANFD controller nodes for the R8A77965 SoC. Signed-off-by: Takeshi Kihara Signed-off-by: Marek Vasut Cc: Geert Uytterhoeven Cc: Marc Kleine-Budde Cc: Rob Herring Cc: Simon Horman Cc: Wolfram Sang Cc: linux-renesas-soc@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Acked-by: Wolfram Sang --- V2: Squash the CAN and CANFD addition patches together. --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 51 ++++++++++++++++++++++- 1 file changed, 49 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r8a77965.dtsi b/arch/arm64/boot/dts/renesas/r8a77965.dtsi index 3a958fb25245..1c86e6f4dc71 100644 --- a/arch/arm64/boot/dts/renesas/r8a77965.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77965.dtsi @@ -907,13 +907,60 @@ }; can0: can@e6c30000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; reg = <0 0xe6c30000 0 0x1000>; - /* placeholder */ + interrupts = ; + clocks = <&cpg CPG_MOD 916>, + <&cpg CPG_CORE R8A77965_CLK_CANFD>, + <&can_clk>; + clock-names = "clkp1", "clkp2", "can_clk"; + assigned-clocks = <&cpg CPG_CORE R8A77965_CLK_CANFD>; + assigned-clock-rates = <40000000>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + resets = <&cpg 916>; + status = "disabled"; }; can1: can@e6c38000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; reg = <0 0xe6c38000 0 0x1000>; - /* placeholder */ + interrupts = ; + clocks = <&cpg CPG_MOD 915>, + <&cpg CPG_CORE R8A77965_CLK_CANFD>, + <&can_clk>; + clock-names = "clkp1", "clkp2", "can_clk"; + assigned-clocks = <&cpg CPG_CORE R8A77965_CLK_CANFD>; + assigned-clock-rates = <40000000>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + resets = <&cpg 915>; + status = "disabled"; + }; + + canfd: can@e66c0000 { + compatible = "renesas,r8a77965-canfd", + "renesas,rcar-gen3-canfd"; + reg = <0 0xe66c0000 0 0x8000>; + interrupts = , + ; + clocks = <&cpg CPG_MOD 914>, + <&cpg CPG_CORE R8A77965_CLK_CANFD>, + <&can_clk>; + clock-names = "fck", "canfd", "can_clk"; + assigned-clocks = <&cpg CPG_CORE R8A77965_CLK_CANFD>; + assigned-clock-rates = <40000000>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + resets = <&cpg 914>; + status = "disabled"; + + channel0 { + status = "disabled"; + }; + + channel1 { + status = "disabled"; + }; }; pwm0: pwm@e6e30000 {