Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1188503pxu; Fri, 16 Oct 2020 06:12:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIs6JSeqFhIQio8pp61eBfW9tlKTZMKryb/iESSacomHXrHzG8p2HAbt1cJMhgjTcwCtcy X-Received: by 2002:a05:6402:6d8:: with SMTP id n24mr3864083edy.168.1602853963812; Fri, 16 Oct 2020 06:12:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602853963; cv=none; d=google.com; s=arc-20160816; b=sgTus3EQxvLRx1WYzdLZibwcgwrgoNb2adFWf8LsF9D7Y7x/OPkS2tkWsO+w/001kV JO6+pUOjOs385niw8ImogdHRUQbjxBugdyJ3nMdv8FiH0vQ43TFnYlBZlCo2RyKY1EDI nizVs9DRLt2uNErpqvmUKTHukvxHQ28isooXVTS306sgeaeW9ir8IFQ06B9ITvEmXW2U RmWiZrm938hdoN7sJtb9YdXW+Ycpuh545xVOIjqmY2Ie0OC+FbPfq7/gMXrZpO6+c04o jNEWRiql7k9Iv2UF7Vl4HBnTZs/RRPzsaha8sCei5EzAXVouldrutDJyLVmNtcZWecZH pb7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=Cm1j1Eg+pyunLA5D9eLBcpZAoeSw0bQ3nzOq6/HJUiQ=; b=LgOmcXOYFjHH8TkADDGLQGaeoe2R4mKr/c+3LDzBh/k+8tNtAGHaLezXtqfmFHIbIF AFoek4OKMcmmDvGPW7p2s1J3BXvniZn9IaGiiFWKml7aDFLcd1H60hP3MiLcA82Ur0HA hZgnO4OgDvnux5hwi+3VZ8M8yREmYruU7ecf30J62PbpiwiK46CjRgThQ/riMtFkt9cS RMfpR7Sn5zakFwzPkeISHjz2Z/2dLkiJA7HQMkF8Q6E8zRBmNYCo6smQNfL/R9e40oIn 0I/kdNVJMmPlYsL68PDqA9u9DEZL4Vn7wfLq+NzJYxTfs0RyqH+IMBurES9RiEnlGR/F Cmug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q1si1627610edc.21.2020.10.16.06.12.20; Fri, 16 Oct 2020 06:12:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407360AbgJPMRa (ORCPT + 99 others); Fri, 16 Oct 2020 08:17:30 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:52101 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2405627AbgJPMR0 (ORCPT ); Fri, 16 Oct 2020 08:17:26 -0400 X-IronPort-AV: E=Sophos;i="5.77,382,1596466800"; d="scan'208";a="59986372" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 16 Oct 2020 21:17:24 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 088B443871A2; Fri, 16 Oct 2020 21:17:22 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Michael Turquette , Stephen Boyd , linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Biju Das , Prabhakar , Lad Prabhakar Subject: [PATCH 3/4] clk: renesas: r8a774b1: Add RPC clocks Date: Fri, 16 Oct 2020 13:17:08 +0100 Message-Id: <20201016121709.8447-4-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201016121709.8447-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20201016121709.8447-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Biju Das Describe the RPCSRC internal clock and the RPC[D2] clocks derived from it, as well as the RPC-IF module clock, in the RZ/G2N (R8A774B1) CPG/MSSR driver. Inspired by commit 94e3935b5756 ("clk: renesas: r8a77980: Add RPC clocks"). Signed-off-by: Biju Das Signed-off-by: Lad Prabhakar --- drivers/clk/renesas/r8a774b1-cpg-mssr.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/clk/renesas/r8a774b1-cpg-mssr.c b/drivers/clk/renesas/r8a774b1-cpg-mssr.c index f436691271ec..6f04c40fe237 100644 --- a/drivers/clk/renesas/r8a774b1-cpg-mssr.c +++ b/drivers/clk/renesas/r8a774b1-cpg-mssr.c @@ -40,6 +40,7 @@ enum clk_ids { CLK_S2, CLK_S3, CLK_SDSRC, + CLK_RPCSRC, CLK_RINT, /* Module Clocks */ @@ -65,6 +66,12 @@ static const struct cpg_core_clk r8a774b1_core_clks[] __initconst = { DEF_FIXED(".s2", CLK_S2, CLK_PLL1_DIV2, 4, 1), DEF_FIXED(".s3", CLK_S3, CLK_PLL1_DIV2, 6, 1), DEF_FIXED(".sdsrc", CLK_SDSRC, CLK_PLL1_DIV2, 2, 1), + DEF_BASE(".rpcsrc", CLK_RPCSRC, CLK_TYPE_GEN3_RPCSRC, CLK_PLL1), + + DEF_BASE("rpc", R8A774B1_CLK_RPC, CLK_TYPE_GEN3_RPC, + CLK_RPCSRC), + DEF_BASE("rpcd2", R8A774B1_CLK_RPCD2, CLK_TYPE_GEN3_RPCD2, + R8A774B1_CLK_RPC), DEF_GEN3_OSC(".r", CLK_RINT, CLK_EXTAL, 32), @@ -196,6 +203,7 @@ static const struct mssr_mod_clk r8a774b1_mod_clks[] __initconst = { DEF_MOD("can-fd", 914, R8A774B1_CLK_S3D2), DEF_MOD("can-if1", 915, R8A774B1_CLK_S3D4), DEF_MOD("can-if0", 916, R8A774B1_CLK_S3D4), + DEF_MOD("rpc-if", 917, R8A774B1_CLK_RPCD2), DEF_MOD("i2c6", 918, R8A774B1_CLK_S0D6), DEF_MOD("i2c5", 919, R8A774B1_CLK_S0D6), DEF_MOD("i2c-dvfs", 926, R8A774B1_CLK_CP), -- 2.17.1