linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: clock: sifive: add FU540-C000 PRCI clock constants
@ 2019-04-04  0:38 Paul Walmsley
  2019-04-06  6:07 ` Rob Herring
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Walmsley @ 2019-04-04  0:38 UTC (permalink / raw)
  To: mark.rutland, robh+dt
  Cc: devicetree, wesley, palmer, linux-kernel, paul.walmsley, linux-riscv

Add preprocessor macros for the important PRCI output clocks
that are needed by both the FU540 PRCI driver and DT data.
Details are available in the FU540 manual in Chapter 7 of

    https://static.dev.sifive.com/FU540-C000-v1.0.pdf

Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Wesley Terpstra <wesley@sifive.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Palmer Dabbelt <palmer@sifive.com>
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-riscv@lists.infradead.org
---
Rob, Mark: this patch is a prerequisite for both the FU540 DT data
and for the FU540 PRCI clock driver patch series.  To prevent one
of those patch series from depending on the other, I'd like to ask
Palmer to merge this patch in one of his -rc pull requests.  Could
I get an ack from one or both of you for this purpose?  Thanks.

include/dt-bindings/clock/sifive-fu540-prci.h | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 include/dt-bindings/clock/sifive-fu540-prci.h

diff --git a/include/dt-bindings/clock/sifive-fu540-prci.h b/include/dt-bindings/clock/sifive-fu540-prci.h
new file mode 100644
index 000000000000..6a0b70a37d78
--- /dev/null
+++ b/include/dt-bindings/clock/sifive-fu540-prci.h
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (C) 2018-2019 SiFive, Inc.
+ * Wesley Terpstra
+ * Paul Walmsley
+ */
+
+#ifndef __DT_BINDINGS_CLOCK_SIFIVE_FU540_PRCI_H
+#define __DT_BINDINGS_CLOCK_SIFIVE_FU540_PRCI_H
+
+/* Clock indexes for use by Device Tree data and the PRCI driver */
+
+#define PRCI_CLK_COREPLL	       0
+#define PRCI_CLK_DDRPLL		       1
+#define PRCI_CLK_GEMGXLPLL	       2
+#define PRCI_CLK_TLCLK		       3
+
+#endif
-- 
2.20.1


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] dt-bindings: clock: sifive: add FU540-C000 PRCI clock constants
  2019-04-04  0:38 [PATCH] dt-bindings: clock: sifive: add FU540-C000 PRCI clock constants Paul Walmsley
@ 2019-04-06  6:07 ` Rob Herring
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2019-04-06  6:07 UTC (permalink / raw)
  To: Paul Walmsley
  Cc: mark.rutland, devicetree, wesley, palmer, linux-kernel, robh+dt,
	paul.walmsley, linux-riscv

On Wed,  3 Apr 2019 17:38:20 -0700, Paul Walmsley wrote:
> Add preprocessor macros for the important PRCI output clocks
> that are needed by both the FU540 PRCI driver and DT data.
> Details are available in the FU540 manual in Chapter 7 of
> 
>     https://static.dev.sifive.com/FU540-C000-v1.0.pdf
> 
> Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
> Cc: Wesley Terpstra <wesley@sifive.com>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Cc: Palmer Dabbelt <palmer@sifive.com>
> Cc: devicetree@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> Cc: linux-riscv@lists.infradead.org
> ---
> Rob, Mark: this patch is a prerequisite for both the FU540 DT data
> and for the FU540 PRCI clock driver patch series.  To prevent one
> of those patch series from depending on the other, I'd like to ask
> Palmer to merge this patch in one of his -rc pull requests.  Could
> I get an ack from one or both of you for this purpose?  Thanks.
> 
> include/dt-bindings/clock/sifive-fu540-prci.h | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
>  create mode 100644 include/dt-bindings/clock/sifive-fu540-prci.h
> 

Reviewed-by: Rob Herring <robh@kernel.org>


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-06  6:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-04  0:38 [PATCH] dt-bindings: clock: sifive: add FU540-C000 PRCI clock constants Paul Walmsley
2019-04-06  6:07 ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).