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: 10688003 X-Patchwork-Delegate: horms@verge.net.au 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 4CBF514E2 for ; Sun, 18 Nov 2018 17:33:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2A33129B6D for ; Sun, 18 Nov 2018 17:33:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1AB4829B72; Sun, 18 Nov 2018 17:33:37 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9FEF829B6D for ; Sun, 18 Nov 2018 17:33:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726481AbeKSDy0 (ORCPT ); Sun, 18 Nov 2018 22:54:26 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:34711 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726366AbeKSDy0 (ORCPT ); Sun, 18 Nov 2018 22:54:26 -0500 Received: by mail-wm1-f68.google.com with SMTP id f1-v6so4452806wmg.1; 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=lH5KCYdf0iw6MJHDicVIPxWsAD4+kFwinhNwpuIOAgm0GQ7feAt6EYb3SrTJLZnoKh NwM02XelGkhFjHTq2NOQ2Ld+q8gnW8sH1qre5haM00PGCmu0JVxXVBzQdcvjjhIPtIpy elFg1Vp/xx7Q1QkfV4qv/lVmQaxGDwvfnwYoFfyrdDTzh0fPNfixU/VoHs/5WeNMmUTV 5f+nPRgNpvapIUCFNfeEGfuPLnOITpS3ZR5XIT99m+CGA2PRsBGRCE7iz3BG4WBHlhKz o5QX3Vy4DWeF39QiJidlywXh1OmAR17qfTxk85B+MKTF6M+eeXieeWHB1ZfmTobSMlOP d6/g== X-Gm-Message-State: AGRZ1gKRALHnfzbZOxtr+/8XdU8MQE1AuPhR0WIjzNG+M5jdt3ZrQt3i frzD9fIHRCC4vKZbPp/Tqa+A3wzi 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 Cc: Takeshi Kihara , Marek Vasut , Geert Uytterhoeven , Marc Kleine-Budde , Rob Herring , Simon Horman , Wolfram Sang , linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.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 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.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: 10688005 X-Patchwork-Delegate: horms@verge.net.au 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 BF85814DB for ; Sun, 18 Nov 2018 17:33:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9EB5729B6D for ; Sun, 18 Nov 2018 17:33:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8FC9D29B72; Sun, 18 Nov 2018 17:33:40 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32CDD29B6D for ; Sun, 18 Nov 2018 17:33:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726822AbeKSDya (ORCPT ); Sun, 18 Nov 2018 22:54:30 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:34713 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726366AbeKSDya (ORCPT ); Sun, 18 Nov 2018 22:54:30 -0500 Received: by mail-wm1-f68.google.com with SMTP id f1-v6so4452901wmg.1; 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=lzs64OMKmPHhOfzLUt2VHTbKHvIiI84g4JiIveQZbhQVAXZz5/m60EnBmkwc3apx3f jFzmHlXEuLHtqgmKUC69PbFOe+FC8kYgHdajYGPLp1FeFnW2mW+eRaS2wDIjsbnpldnA g6BylnQLa9nF9cpE0RLm6rvq11vCQTVjwwZf/B9VQ9RCJJ5vdK9EYlomboi+y8kiF3GH 1nRzpJTsXK/OKaav7jrqtH4ssLnC7K9yeA4EgoSPBdqGCaiMqm38zhT8wW1X6cBUPCmL UadmWwhu72VwPz8IdQh4pbarcx8Nl7y6v+UrMvRRBEqlTXynhUtP5iGbHsl1xFNS1em+ Dq3Q== X-Gm-Message-State: AGRZ1gIx8hP0nvzVAMq/hS5q6suWVaTWrbRg7j2MdbHmlwEnMhBkI4N4 XtBWNyIBEwFIvaTvMEdbK0z3RiNs 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 Cc: Takeshi Kihara , Marek Vasut , Geert Uytterhoeven , Marc Kleine-Budde , Rob Herring , Simon Horman , Wolfram Sang , linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.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> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.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>;