* [RFC PATCH 0/2] clk: qcom: Quad SPI (qspi) clock support for sdm845
@ 2018-07-18 18:04 Douglas Anderson
2018-07-18 18:04 ` [RFC PATCH 1/2] clk: qcom: Add qspi (Quad SPI) clock defines for sdm845 to header Douglas Anderson
0 siblings, 1 reply; 2+ messages in thread
From: Douglas Anderson @ 2018-07-18 18:04 UTC (permalink / raw)
To: sboyd, andy.gross
Cc: tdas, girishm, anischal, bjorn.andersson, Douglas Anderson,
devicetree, Michael Turquette, linux-arm-msm, linux-kernel,
David Brown, Rob Herring, Mark Rutland, linux-soc, linux-clk
This two-series patch adds the needed clock bits to use the Quad SPI
(qspi) part on sdm845. It's expected that the bindings part of this
patch could land in the clock tree with an immutable git hash and then
be pulled into the Qualcomm tree so it could be used by dts files.
NOTE: though I seem to have some register defines for these clocks, I
don't actually have a clock plan that includes them. I also didn't
see any use of Quad SPI in the sdm845 Android tree I looked at. Thus
the frequency table here is totally made up. Specifically:
- I know that GPLL0 is running at 600 MHz and that I can have parents
of GPLL0, GPLL0_EVEN (AKA 300 MHz), and TCXO (AKA 19.2 MHz).
- It seemed sane to add an entry in the table to come straight from
BI_TCXO.
- From probing lines, it appears that the Quad SPI block has a divide
by 4 somewhere inside it (probably so it can oversample the lines,
or possibly so it can generate phase-offset clocks). Thus we need
the core to go 4 times faster than we'd expect to run the SPI bus.
- At least one SPI flash part I looked at supported a clock frequency
of 104 MHz, so it semeed nice to add clocks up to ~400 MHz.
This is the first time I've tried to map Qualcomm register definition
into the clock driver, so it'd be nice if someone could double-check
and make sure I mapped all the numbers correctly. If nothing else it
does appear to work though.
Douglas Anderson (2):
clk: qcom: Add qspi (Quad SPI) clock defines for sdm845 to header
clk: qcom: Add qspi (Quad SPI) clocks for sdm845
drivers/clk/qcom/gcc-sdm845.c | 73 +++++++++++++++++++++
include/dt-bindings/clock/qcom,gcc-sdm845.h | 3 +
2 files changed, 76 insertions(+)
--
2.18.0.233.g985f88cf7e-goog
^ permalink raw reply [flat|nested] 2+ messages in thread
* [RFC PATCH 1/2] clk: qcom: Add qspi (Quad SPI) clock defines for sdm845 to header
2018-07-18 18:04 [RFC PATCH 0/2] clk: qcom: Quad SPI (qspi) clock support for sdm845 Douglas Anderson
@ 2018-07-18 18:04 ` Douglas Anderson
0 siblings, 0 replies; 2+ messages in thread
From: Douglas Anderson @ 2018-07-18 18:04 UTC (permalink / raw)
To: sboyd, andy.gross
Cc: tdas, girishm, anischal, bjorn.andersson, Douglas Anderson,
devicetree, linux-kernel, Rob Herring, Mark Rutland
These clocks will need to be defined in the clock driver and
referenced in device tree files.
Signed-off-by: Douglas Anderson <dianders@chromium.org>
---
include/dt-bindings/clock/qcom,gcc-sdm845.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/dt-bindings/clock/qcom,gcc-sdm845.h b/include/dt-bindings/clock/qcom,gcc-sdm845.h
index f96fc2dbf60e..b8eae5a76503 100644
--- a/include/dt-bindings/clock/qcom,gcc-sdm845.h
+++ b/include/dt-bindings/clock/qcom,gcc-sdm845.h
@@ -194,6 +194,9 @@
#define GPLL4 184
#define GCC_CPUSS_DVM_BUS_CLK 185
#define GCC_CPUSS_GNOC_CLK 186
+#define GCC_QSPI_CORE_CLK_SRC 187
+#define GCC_QSPI_CORE_CLK 188
+#define GCC_QSPI_CNOC_PERIPH_AHB_CLK 189
/* GCC Resets */
#define GCC_MMSS_BCR 0
--
2.18.0.233.g985f88cf7e-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-18 18:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-18 18:04 [RFC PATCH 0/2] clk: qcom: Quad SPI (qspi) clock support for sdm845 Douglas Anderson
2018-07-18 18:04 ` [RFC PATCH 1/2] clk: qcom: Add qspi (Quad SPI) clock defines for sdm845 to header Douglas Anderson
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).