From patchwork Sun Nov 18 17:33:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 10688007 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 DDFE214DB for ; Sun, 18 Nov 2018 17:33:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC56C29B6D for ; Sun, 18 Nov 2018 17:33:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE8B329B72; Sun, 18 Nov 2018 17:33:54 +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 6095829B6D for ; Sun, 18 Nov 2018 17:33:54 +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=ngaSD1wCpTXCwp92CNAkp8Xww44V4NBnGnje8yz08mE=; b=eFb rRIjNkdknN3ACJa0crWWOztBd0K9uNnNxqkLP/wgKPiH4sT2CzhufqAl/L8U1iTDrchHsLIQAMnA8 2lpa/nuCx11fcywmDdetJziji3vKgY0QxTGDpffc6pHHccsx3DtH0FKLCRhIaSBnRgqZxYsHCGwpk 8iNNAoAf434Q+4C+OCe2WFxRDoNj6JZE7x92iOXq9MrGT9Vq5B6rruU2jfGpzqqUpdzRbCH1sS/FK dK1f4u2+VmOIwPT6kCpmbwcdJFhPaW7GL3+fOaj03biutBbg+e7g66dvT6C33BTAbl6LEKQdbJGJB aLfsmmkhxRvRTMJddKP4KgHtQ1BkNjg==; 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 1gOQxB-0000Ki-HD; Sun, 18 Nov 2018 17:33:49 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gOQx8-0000JW-49 for linux-arm-kernel@lists.infradead.org; Sun, 18 Nov 2018 17:33:48 +0000 Received: by mail-wm1-x344.google.com with SMTP id y139so3079891wmc.5 for ; Sun, 18 Nov 2018 09:33:35 -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=3/ARjIpBqAguRWtlfNnjwe6stMuGh889umtMjY/c698=; b=UP0JLbwCdjhNKKtN9+01q0X0BI6VeU5an6eGHI0QtDMB+CWUGR/fPneIZIYVaWDC+1 wlcivKdRMqYg3J5oSKbjbjNTP4SjVDdACGRPCNTC+Lu6/s7knpyHZPbSSc8eixG9oZYW vyYNMFw8t7qP7fZh5XJz2OBgQgMejTeAddSe2Sdbi7UuFmLYbgfhtY643V8lAGqdQMMd ILMK0GwF6FcZ5zl4VOnQmA2AmMpzmkuQqJIVv6WDnxl4E1zkvqn309a0vv1E+wbU08IH KVrnn3e7rBSY+CwUN8Gs4KG2IzilKaC/DvwhXsAp05cen4ubL4FXBqLlD4ucz9m2Tf+i zuhA== 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=3/ARjIpBqAguRWtlfNnjwe6stMuGh889umtMjY/c698=; b=CVxS+SbWNdNU2UgdAjm+clslif6+VDC6/T70Xr856ovEavPHH+B8Y20d8rkqFSsghC er6WDrwHyujP02MfkNkDq+NXFaTjxwE6Dr6U4Rvm3pVvQQR9UizgwWCDMrBJIjPZ8hFo QavS3lBjHZwZLpV4KQ6uTFVqj/K1LfBRc45RSprnZCZ19nMZBYLRH5+gPek5ISXy3T/L ChlO93GMrni/SpT4w3fZNWmhncGayQyrLFBqad7a1mGVCUtJ0zfjB5/nwas3LNk9wQiB ZQRPnZjmynq2BPXaAexloycThvS+4MtNeeYtm5bAngQAUHM8eX+EFQM53D9r0HLEpc+z AmTg== X-Gm-Message-State: AGRZ1gJadRSynlm+NxfpjQ+CHzpUc52cZ4tC/VEeZc9c3uQno3guzLdu 6fNqGL7ED2NzSecoIrRgSIg= X-Google-Smtp-Source: AJdET5fKLc8oB07J6Na7KQs9Q06WRsuNK4TCMZ77Zpx7BKcVqpZSstl5pJEuq3CueYxYv74TVl8aFQ== X-Received: by 2002:a7b:c397:: with SMTP id s23mr4471302wmj.127.1542562414015; Sun, 18 Nov 2018 09:33:34 -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 j19sm11988424wmj.44.2018.11.18.09.33.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Nov 2018 09:33:33 -0800 (PST) From: Marek Vasut X-Google-Original-From: Marek Vasut To: devicetree@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: renesas: r8a77965: Add CAN controller nodes Date: Sun, 18 Nov 2018 18:33:26 +0100 Message-Id: <20181118173327.4704-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_093346_183581_165944E1 X-CRM114-Status: GOOD ( 13.39 ) 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} controller nodes for the R8A77965 SoC. Based on several similar patches of the R8A7795 device tree by Ramesh Shanmugasundaram and Geert Uytterhoeven . 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 Tested-by: Marek Vasut --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 26 +++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r8a77965.dtsi b/arch/arm64/boot/dts/renesas/r8a77965.dtsi index 3a958fb25245..3485624921bf 100644 --- a/arch/arm64/boot/dts/renesas/r8a77965.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77965.dtsi @@ -907,13 +907,35 @@ }; 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"; }; pwm0: pwm@e6e30000 { From patchwork Sun Nov 18 17:33:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 10688009 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 AF95A14E2 for ; Sun, 18 Nov 2018 17:34:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9043929B6E for ; Sun, 18 Nov 2018 17:34:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8477329B75; Sun, 18 Nov 2018 17:34:05 +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=ham 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 0FBCB29B6E for ; Sun, 18 Nov 2018 17:34:04 +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:References: In-Reply-To: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:List-Owner; bh=eyR0xCZv5Phrwkavowc3eSDvA/GuefGsHqDLOQ4ljAU=; b=arkr/Tb2va+dhw/Rt7o2mWI9lm x5qvz5QkVVqn8lVuoin9eAMhM9gLtx57hluJj159U1gEA1t5js3Jbk9xtw9M27XExBMjoG6AaY464 xETc7hMpAtoY6PXaIj0NAlbDYbds9kyUJJ5wExs0rh3iYACgkC3CcO47jzkI7NEcfzVscryXrtoAh PS5ohPCZvMJV88vVjHSiBvU/GYFgku5Gk5tyLUO06KNc3D/tbVG0y0KkVr/Umml61yFIb5OlN7jAB J+9wlQU/JJsPyKQfDqg0hPD8qY/FfDgMrBogJEHE58oT5cXzJkWcKrH2nRGrEd1O2eFrFRRf51lo0 8Jzeq5vw==; 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 1gOQxL-0000T8-Jc; Sun, 18 Nov 2018 17:33:59 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gOQxB-0000Jg-5B for linux-arm-kernel@lists.infradead.org; Sun, 18 Nov 2018 17:33:50 +0000 Received: by mail-wm1-x341.google.com with SMTP id 79so1115511wmo.0 for ; Sun, 18 Nov 2018 09:33:38 -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:in-reply-to:references; bh=Sr3klC3TG0ItP9elgnKTsRRbzh9RlamejKDrdrD0l34=; b=jiZaxXdUxv/lw2wQVtMLyXuuem5298H/tJK9aIO51cH/FGZHTYUATNNC5E+33qwGs5 B5RKjlLjKp+c0KfXpNuKXYm27eHuZU2W6fgRhgJZST7+qdUirsS/1xYaafsy8X8rR5xV 9Tn7csTZ3YZlSwLMBZbpfg5TBipLGFp76jBr5t385LIzgB2INJcGLtuYM4/a6WnkkuuB ATt6H3yj8MnNCYrynxq2j9IgGsMdx9ovfR9qy68ckiNwen1XLuVaAFfdMPQspfNMwEvN 7CoGLH2tthI4j6nJ6Y+2nJ3qrk+81DLrayxkrgsM58hMY7qVcx4WxQEdSWLGBkTXkC+U 6H9Q== 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:in-reply-to :references; bh=Sr3klC3TG0ItP9elgnKTsRRbzh9RlamejKDrdrD0l34=; b=pVWVXxOufdRRvy0sJzqvny/47V5h8DPqUJEH4jvwkZfGGxdcmFsMUHHdMSjrVGTg6V aNKFEPJa9rpSLiozIUbvAzFblMQS4quXuQQAjb2G/cb12lqTVfK9k8zF96Lu9fXtDd8D lazBa3MkbqAqQsHWaRCYG8Cru7rT+U9Dcm46HwqWgbUlqlShteSEcDZCu2CJCmohEKII Zxvzo4JBx+hhJMmUNA20d8j/vyGA9MGfHVcoTXx0q1TJmekXAfsYPso0nmiSWRbtSEQ7 JSj5YXba3MXOOjJ5cz6zD5X45lJy5iub4N1G1bilfbCX+hqX/afM9vTrT1YPhcFivx4T +FDg== X-Gm-Message-State: AGRZ1gKUCLmgFn8aT6luWFiSF5rryf3+QR/QYWwR4GJvYO4ZPrmg5xUL t1/EnVETVjPvd1OQ1m7uw9U= X-Google-Smtp-Source: AFSGD/XL173i6U5RNYA4EyrvoJlg8jR/d9ehSUB+AMR8vFc8FLMHjRYdfa/Z1UHXbvq3W7W+PEWqiA== X-Received: by 2002:a1c:9d97:: with SMTP id g145mr4459941wme.121.1542562417558; Sun, 18 Nov 2018 09:33:37 -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 j19sm11988424wmj.44.2018.11.18.09.33.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Nov 2018 09:33:36 -0800 (PST) From: Marek Vasut X-Google-Original-From: Marek Vasut To: devicetree@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: renesas: r8a77965: Add CAN FD controller node Date: Sun, 18 Nov 2018 18:33:27 +0100 Message-Id: <20181118173327.4704-2-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20181118173327.4704-1-marek.vasut+renesas@gmail.com> References: <20181118173327.4704-1-marek.vasut+renesas@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181118_093349_190871_040B2324 X-CRM114-Status: GOOD ( 13.20 ) 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 FD 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 --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77965.dtsi b/arch/arm64/boot/dts/renesas/r8a77965.dtsi index 3485624921bf..1c86e6f4dc71 100644 --- a/arch/arm64/boot/dts/renesas/r8a77965.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77965.dtsi @@ -938,6 +938,31 @@ 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 { compatible = "renesas,pwm-r8a77965", "renesas,pwm-rcar"; reg = <0 0xe6e30000 0 8>;