From patchwork Thu Feb 25 22:51:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 387339 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31F2BC433E6 for ; Thu, 25 Feb 2021 22:54:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DE20864F28 for ; Thu, 25 Feb 2021 22:54:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229966AbhBYWxy (ORCPT ); Thu, 25 Feb 2021 17:53:54 -0500 Received: from relmlor1.renesas.com ([210.160.252.171]:45423 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229491AbhBYWxx (ORCPT ); Thu, 25 Feb 2021 17:53:53 -0500 X-IronPort-AV: E=Sophos;i="5.81,207,1610377200"; d="scan'208";a="73418583" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 26 Feb 2021 07:53:02 +0900 Received: from devel.example.org?044ree.adwin.renesas.com (unknown [10.226.36.120]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 7C235400C73A; Fri, 26 Feb 2021 07:52:58 +0900 (JST) From: Fabrizio Castro To: Rob Herring , Arnd Bergmann , Laurent Pinchart , Geert Uytterhoeven Cc: Fabrizio Castro , Greg Kroah-Hartman , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, Catalin Marinas , Will Deacon , Chris Paterson , Prabhakar Mahadev Lad , Phil Edworthy , Dirk Behme , Peter Erben Subject: [PATCH 2/7] clk: renesas: r8a77965: Add DAB clock Date: Thu, 25 Feb 2021 22:51:42 +0000 Message-Id: <20210225225147.29920-3-fabrizio.castro.jz@renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210225225147.29920-1-fabrizio.castro.jz@renesas.com> References: <20210225225147.29920-1-fabrizio.castro.jz@renesas.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch adds the DAB clock to the R8A77965 SoC. Signed-off-by: Fabrizio Castro --- drivers/clk/renesas/r8a77965-cpg-mssr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/renesas/r8a77965-cpg-mssr.c b/drivers/clk/renesas/r8a77965-cpg-mssr.c index 46a157732759..bc1be8bcbbe4 100644 --- a/drivers/clk/renesas/r8a77965-cpg-mssr.c +++ b/drivers/clk/renesas/r8a77965-cpg-mssr.c @@ -250,6 +250,7 @@ static const struct mssr_mod_clk r8a77965_mod_clks[] __initconst = { DEF_MOD("ssi2", 1013, MOD_CLK_ID(1005)), DEF_MOD("ssi1", 1014, MOD_CLK_ID(1005)), DEF_MOD("ssi0", 1015, MOD_CLK_ID(1005)), + DEF_MOD("dab", 1016, R8A77965_CLK_S0D6), DEF_MOD("scu-all", 1017, R8A77965_CLK_S3D4), DEF_MOD("scu-dvc1", 1018, MOD_CLK_ID(1017)), DEF_MOD("scu-dvc0", 1019, MOD_CLK_ID(1017)), From patchwork Thu Feb 25 22:51:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 387338 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 536D8C433E0 for ; Thu, 25 Feb 2021 22:54:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1442F64F2B for ; Thu, 25 Feb 2021 22:54:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232398AbhBYWyZ (ORCPT ); Thu, 25 Feb 2021 17:54:25 -0500 Received: from relmlor1.renesas.com ([210.160.252.171]:45423 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232446AbhBYWyO (ORCPT ); Thu, 25 Feb 2021 17:54:14 -0500 X-IronPort-AV: E=Sophos;i="5.81,207,1610377200"; d="scan'208";a="73418611" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 26 Feb 2021 07:53:19 +0900 Received: from devel.example.org?044ree.adwin.renesas.com (unknown [10.226.36.120]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 1651B40083F0; Fri, 26 Feb 2021 07:53:15 +0900 (JST) From: Fabrizio Castro To: Rob Herring , Arnd Bergmann , Laurent Pinchart , Geert Uytterhoeven Cc: Fabrizio Castro , Greg Kroah-Hartman , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, Catalin Marinas , Will Deacon , Chris Paterson , Prabhakar Mahadev Lad , Phil Edworthy , Dirk Behme , Peter Erben Subject: [PATCH 5/7] arm64: dts: renesas: r8a77990: Add DAB support Date: Thu, 25 Feb 2021 22:51:45 +0000 Message-Id: <20210225225147.29920-6-fabrizio.castro.jz@renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210225225147.29920-1-fabrizio.castro.jz@renesas.com> References: <20210225225147.29920-1-fabrizio.castro.jz@renesas.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org R-Car E3 (a.k.a. r8a77990) comes with the DAB hardware accelerator. This patch adds SoC specific support. Signed-off-by: Fabrizio Castro Reviewed-by: Laurent Pinchart --- arch/arm64/boot/dts/renesas/r8a77990.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77990.dtsi b/arch/arm64/boot/dts/renesas/r8a77990.dtsi index 5010f23fafcc..5a6b835f137a 100644 --- a/arch/arm64/boot/dts/renesas/r8a77990.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77990.dtsi @@ -963,6 +963,18 @@ ipmmu_vp0: iommu@fe990000 { #iommu-cells = <1>; }; + dab: dab@e6730000 { + compatible = "renesas,dab-r8a77990", + "renesas,rcar-gen3-dab"; + reg = <0x00 0xe6730000 0x00 0x120>; + interrupts = ; + clocks = <&cpg CPG_MOD 1016>; + clock-names = "dab"; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + resets = <&cpg 1016>; + status = "disabled"; + }; + avb: ethernet@e6800000 { compatible = "renesas,etheravb-r8a77990", "renesas,etheravb-rcar-gen3"; From patchwork Thu Feb 25 22:51:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 387337 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CE7CC433E0 for ; Thu, 25 Feb 2021 22:55:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0DD3D64F28 for ; Thu, 25 Feb 2021 22:55:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232825AbhBYWys (ORCPT ); Thu, 25 Feb 2021 17:54:48 -0500 Received: from relmlor1.renesas.com ([210.160.252.171]:45423 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232748AbhBYWyo (ORCPT ); Thu, 25 Feb 2021 17:54:44 -0500 X-IronPort-AV: E=Sophos;i="5.81,207,1610377200"; d="scan'208";a="73418621" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 26 Feb 2021 07:53:25 +0900 Received: from devel.example.org?044ree.adwin.renesas.com (unknown [10.226.36.120]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id B27D140083F0; Fri, 26 Feb 2021 07:53:21 +0900 (JST) From: Fabrizio Castro To: Rob Herring , Arnd Bergmann , Laurent Pinchart , Geert Uytterhoeven Cc: Fabrizio Castro , Greg Kroah-Hartman , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, Catalin Marinas , Will Deacon , Chris Paterson , Prabhakar Mahadev Lad , Phil Edworthy , Dirk Behme , Peter Erben Subject: [PATCH 6/7] arm64: dts: renesas: r8a77965: Add DAB support Date: Thu, 25 Feb 2021 22:51:46 +0000 Message-Id: <20210225225147.29920-7-fabrizio.castro.jz@renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210225225147.29920-1-fabrizio.castro.jz@renesas.com> References: <20210225225147.29920-1-fabrizio.castro.jz@renesas.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org R-Car M3-N (a.k.a. r8a77965) comes with the DAB hardware accelerator. This patch adds SoC specific support. Signed-off-by: Fabrizio Castro Reviewed-by: Laurent Pinchart --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77965.dtsi b/arch/arm64/boot/dts/renesas/r8a77965.dtsi index 657b20d3533b..b6176fd5b703 100644 --- a/arch/arm64/boot/dts/renesas/r8a77965.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77965.dtsi @@ -1013,6 +1013,18 @@ ipmmu_vp0: iommu@fe990000 { #iommu-cells = <1>; }; + dab: dab@e6730000 { + compatible = "renesas,dab-r8a77965", + "renesas,rcar-gen3-dab"; + reg = <0x00 0xe6730000 0x00 0x120>; + interrupts = ; + clocks = <&cpg CPG_MOD 1016>; + clock-names = "dab"; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + resets = <&cpg 1016>; + status = "disabled"; + }; + avb: ethernet@e6800000 { compatible = "renesas,etheravb-r8a77965", "renesas,etheravb-rcar-gen3";