All of lore.kernel.org
 help / color / mirror / Atom feed
From: fabrizio.castro@bp.renesas.com (Fabrizio Castro)
To: cip-dev@lists.cip-project.org
Subject: [cip-dev] [PATCH 4.19.y 10/17] clk: renesas: r8a774c0: Add missing CANFD clock
Date: Mon,  1 Apr 2019 10:58:09 +0100	[thread overview]
Message-ID: <1554112696-20706-11-git-send-email-fabrizio.castro@bp.renesas.com> (raw)
In-Reply-To: <1554112696-20706-1-git-send-email-fabrizio.castro@bp.renesas.com>

commit 2a6efbc6da5d248c4fbe7fdb7de7f3eff1de95a4 upstream.

This patch adds the missing CANFD clock to the r8a774c0 specific
clock driver.

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Reviewed-by: Chris Paterson <Chris.Paterson2@renesas.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/clk/renesas/r8a774c0-cpg-mssr.c       | 4 ++++
 include/dt-bindings/clock/r8a774c0-cpg-mssr.h | 1 +
 2 files changed, 5 insertions(+)

diff --git a/drivers/clk/renesas/r8a774c0-cpg-mssr.c b/drivers/clk/renesas/r8a774c0-cpg-mssr.c
index 10b9689..28bcc81 100644
--- a/drivers/clk/renesas/r8a774c0-cpg-mssr.c
+++ b/drivers/clk/renesas/r8a774c0-cpg-mssr.c
@@ -33,6 +33,7 @@ enum clk_ids {
 	CLK_PLL1,
 	CLK_PLL3,
 	CLK_PLL0D4,
+	CLK_PLL0D6,
 	CLK_PLL0D8,
 	CLK_PLL0D20,
 	CLK_PLL0D24,
@@ -61,6 +62,7 @@ static const struct cpg_core_clk r8a774c0_core_clks[] __initconst = {
 
 	DEF_FIXED(".pll0",     CLK_PLL0,           CLK_MAIN,	   1, 100),
 	DEF_FIXED(".pll0d4",   CLK_PLL0D4,         CLK_PLL0,       4, 1),
+	DEF_FIXED(".pll0d6",   CLK_PLL0D6,         CLK_PLL0,       6, 1),
 	DEF_FIXED(".pll0d8",   CLK_PLL0D8,         CLK_PLL0,       8, 1),
 	DEF_FIXED(".pll0d20",  CLK_PLL0D20,        CLK_PLL0,      20, 1),
 	DEF_FIXED(".pll0d24",  CLK_PLL0D24,        CLK_PLL0,      24, 1),
@@ -112,6 +114,7 @@ static const struct cpg_core_clk r8a774c0_core_clks[] __initconst = {
 	DEF_GEN3_PE("s3d2c",   R8A774C0_CLK_S3D2C, CLK_S3, 2, CLK_PE, 2),
 	DEF_GEN3_PE("s3d4c",   R8A774C0_CLK_S3D4C, CLK_S3, 4, CLK_PE, 4),
 
+	DEF_DIV6P1("canfd",    R8A774C0_CLK_CANFD, CLK_PLL0D6, 0x244),
 	DEF_DIV6P1("csi0",     R8A774C0_CLK_CSI0,  CLK_PLL1D2, 0x00c),
 	DEF_DIV6P1("mso",      R8A774C0_CLK_MSO,   CLK_PLL1D2, 0x014),
 
@@ -187,6 +190,7 @@ static const struct mssr_mod_clk r8a774c0_mod_clks[] __initconst = {
 	DEF_MOD("gpio2",		 910,	R8A774C0_CLK_S3D4),
 	DEF_MOD("gpio1",		 911,	R8A774C0_CLK_S3D4),
 	DEF_MOD("gpio0",		 912,	R8A774C0_CLK_S3D4),
+	DEF_MOD("can-fd",		 914,	R8A774C0_CLK_S3D2),
 	DEF_MOD("can-if1",		 915,	R8A774C0_CLK_S3D4),
 	DEF_MOD("can-if0",		 916,	R8A774C0_CLK_S3D4),
 	DEF_MOD("i2c6",			 918,	R8A774C0_CLK_S3D2),
diff --git a/include/dt-bindings/clock/r8a774c0-cpg-mssr.h b/include/dt-bindings/clock/r8a774c0-cpg-mssr.h
index 8fe51b6..8ad9cd6 100644
--- a/include/dt-bindings/clock/r8a774c0-cpg-mssr.h
+++ b/include/dt-bindings/clock/r8a774c0-cpg-mssr.h
@@ -56,5 +56,6 @@
 #define R8A774C0_CLK_CSI0		45
 #define R8A774C0_CLK_CP			46
 #define R8A774C0_CLK_CPEX		47
+#define R8A774C0_CLK_CANFD		48
 
 #endif /* __DT_BINDINGS_CLOCK_R8A774C0_CPG_MSSR_H__ */
-- 
2.7.4

  parent reply	other threads:[~2019-04-01  9:58 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-01  9:57 [cip-dev] [PATCH 4.19.y 00/17] Add CMT and TMU support to RZ/G2E Fabrizio Castro
2019-04-01  9:58 ` [cip-dev] [PATCH 4.19.y 01/17] clocksource/drivers/sh_cmt: Convert to SPDX identifiers Fabrizio Castro
2019-04-12  8:11   ` Pavel Machek
2019-04-01  9:58 ` [cip-dev] [PATCH 4.19.y 02/17] clocksource/drivers/sh_cmt: Fixup for 64-bit machines Fabrizio Castro
2019-04-01  9:58 ` [cip-dev] [PATCH 4.19.y 03/17] clocksource/drivers/sh_cmt: Fix clocksource width for 32-bit machines Fabrizio Castro
2019-04-01  9:58 ` [cip-dev] [PATCH 4.19.y 04/17] clocksource/drivers/sh_cmt: Properly line-wrap sh_cmt_of_table[] initializer Fabrizio Castro
2019-04-01  9:58 ` [cip-dev] [PATCH 4.19.y 05/17] dt-bindings: timer: renesas: cmt: document R-Car gen3 support Fabrizio Castro
2019-04-01  9:58 ` [cip-dev] [PATCH 4.19.y 06/17] clocksource/drivers/sh_cmt: Add " Fabrizio Castro
2019-04-01  9:58 ` [cip-dev] [PATCH 4.19.y 07/17] dt-bindings: timer: renesas, cmt: Document r8a774a1 CMT support Fabrizio Castro
2019-04-01  9:58 ` [cip-dev] [PATCH 4.19.y 08/17] dt-bindings: timer: renesas, cmt: Document r8a774c0 " Fabrizio Castro
2019-04-01  9:58 ` [cip-dev] [PATCH 4.19.y 09/17] arm64: dts: renesas: r8a774c0: Add CMT device nodes Fabrizio Castro
2019-04-09 20:55   ` Pavel Machek
2019-04-10  0:55     ` nobuhiro1.iwamatsu at toshiba.co.jp
2019-04-01  9:58 ` Fabrizio Castro [this message]
2019-04-01  9:58 ` [cip-dev] [PATCH 4.19.y 11/17] clk: renesas: r8a774c0: Correct parent clock of DU Fabrizio Castro
2019-04-01  9:58 ` [cip-dev] [PATCH 4.19.y 12/17] clk: renesas: r8a774c0: Add TMU clock Fabrizio Castro
2019-04-01  9:58 ` [cip-dev] [PATCH 4.19.y 13/17] clk: renesas: r8a774c0: Fix LAST_DT_CORE_CLK Fabrizio Castro
2019-04-01  9:58 ` [cip-dev] [PATCH 4.19.y 14/17] dt-bindings: timer: renesas: tmu: Document r8a774c0 bindings Fabrizio Castro
2019-04-01  9:58 ` [cip-dev] [PATCH 4.19.y 15/17] arm64: dts: renesas: r8a774c0: Add TMU device nodes Fabrizio Castro
2019-04-01  9:58 ` [cip-dev] [PATCH 4.19.y 16/17] clocksource/drivers/sh_tmu: Convert to SPDX identifiers Fabrizio Castro
2019-04-01  9:58 ` [cip-dev] [PATCH 4.19.y 17/17] arm64: enable CMT/TMU support for Renesas SoC Fabrizio Castro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1554112696-20706-11-git-send-email-fabrizio.castro@bp.renesas.com \
    --to=fabrizio.castro@bp.renesas.com \
    --cc=cip-dev@lists.cip-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.