Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1188456pxu; Fri, 16 Oct 2020 06:12:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIm2GCAgX83wfrfLK2i4Ys1UzwEEh6nLv07ufZzc6DnvJHhmWmF+2fL+3y/pO8JOy3WH6E X-Received: by 2002:ac2:5618:: with SMTP id v24mr1300817lfd.138.1602853960193; Fri, 16 Oct 2020 06:12:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602853960; cv=none; d=google.com; s=arc-20160816; b=qQpxqTwGo6kYrKjnjEjtdWyj+UKtFubDLZr5InYCM4KuafY07zqBY3onbWmYwf1xSj 9xjEVentqk/F1msNKyUdsJFw5+dEDBdmhmE8mcd+9pr73jmlmAOP0r22EI+eGZ9cCFVB DsgiGUH0AFZWcHOtYY4+VloobdBUarpD+fBqFtg705/W0lLmHxi7A2znDPZP3XS5se2w sI6VGNO5R1CFQilv11IxhmrDB6ZMrtDA0vFlumyKIf+v6XG6OljcXQTvOVL3J0VBt9x/ cIyodAQsElNp5/1xZ+R6VWBwioDde+3xqa/0sBiKVu4Gu2RIKSlht3guRoowNBq22gHC mi0g== 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=25O4FzeqQDKnZUf4KwfScw1B4iT/pC3ncDkP/SVmBKU=; b=fp7Bzw9L/qVfTv1fOptI/JzCAPLmrl6xYK3BWw+SRGx8BR2PPYT+/el78rbBJr4Lz2 wRg1a9/CSdQFRs0uJ1NSul0Ee8rBlqAbREyiDfI08CiatdQsts083stBXgDKRQeWAMeh x4BTp0MiQSgLXanI0fnGyVQFIHmQ/MNMJ3+wqFW59YFZMzZoHDdUXlnLUf7PL3hmP6i3 P9rb9uQQDhTyZF4+moBiCxxK81Z5JquK0/3h73C9D62IMmvdw8zkeSG6apB15pQ5jiOK 0EOUV+yk32tejNpwH8c+mDMB0EchWhPta0g85TQIjl/iDtjs8BZRGXIWnUPGhMpkHcg+ 8ulg== 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 o15si1571067eds.367.2020.10.16.06.12.16; Fri, 16 Oct 2020 06:12:40 -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 S2407350AbgJPMR1 (ORCPT + 99 others); Fri, 16 Oct 2020 08:17:27 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:7874 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2407333AbgJPMRY (ORCPT ); Fri, 16 Oct 2020 08:17:24 -0400 X-IronPort-AV: E=Sophos;i="5.77,382,1596466800"; d="scan'208";a="59771535" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 16 Oct 2020 21:17:22 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id BB40F43871A2; Fri, 16 Oct 2020 21:17:20 +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 2/4] clk: renesas: r8a774a1: Add RPC clocks Date: Fri, 16 Oct 2020 13:17:07 +0100 Message-Id: <20201016121709.8447-3-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/G2M (R8A774A1) 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/r8a774a1-cpg-mssr.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/clk/renesas/r8a774a1-cpg-mssr.c b/drivers/clk/renesas/r8a774a1-cpg-mssr.c index fd54b9f625da..4a43ebec7d5e 100644 --- a/drivers/clk/renesas/r8a774a1-cpg-mssr.c +++ b/drivers/clk/renesas/r8a774a1-cpg-mssr.c @@ -41,6 +41,7 @@ enum clk_ids { CLK_S2, CLK_S3, CLK_SDSRC, + CLK_RPCSRC, CLK_RINT, /* Module Clocks */ @@ -67,6 +68,12 @@ static const struct cpg_core_clk r8a774a1_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", R8A774A1_CLK_RPC, CLK_TYPE_GEN3_RPC, + CLK_RPCSRC), + DEF_BASE("rpcd2", R8A774A1_CLK_RPCD2, CLK_TYPE_GEN3_RPCD2, + R8A774A1_CLK_RPC), DEF_GEN3_OSC(".r", CLK_RINT, CLK_EXTAL, 32), @@ -200,6 +207,7 @@ static const struct mssr_mod_clk r8a774a1_mod_clks[] __initconst = { DEF_MOD("can-fd", 914, R8A774A1_CLK_S3D2), DEF_MOD("can-if1", 915, R8A774A1_CLK_S3D4), DEF_MOD("can-if0", 916, R8A774A1_CLK_S3D4), + DEF_MOD("rpc-if", 917, R8A774A1_CLK_RPCD2), DEF_MOD("i2c6", 918, R8A774A1_CLK_S0D6), DEF_MOD("i2c5", 919, R8A774A1_CLK_S0D6), DEF_MOD("i2c-dvfs", 926, R8A774A1_CLK_CP), -- 2.17.1