linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Neil Armstrong <narmstrong@baylibre.com>
To: jbrunet@baylibre.com, devicetree@vger.kernel.org
Cc: Neil Armstrong <narmstrong@baylibre.com>,
	linux-clk@vger.kernel.org, linux-amlogic@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 1/2] clk: meson-g12a: add cpu clock bindings
Date: Fri,  1 Mar 2019 11:21:39 +0100	[thread overview]
Message-ID: <20190301102140.7181-2-narmstrong@baylibre.com> (raw)
In-Reply-To: <20190301102140.7181-1-narmstrong@baylibre.com>

Add Amlogic G12A Family CPU clocks bindings, only export CPU_CLK since
it should be the only ID used.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
 drivers/clk/meson/g12a.h              | 24 +++++++++++++++++++++++-
 include/dt-bindings/clock/g12a-clkc.h |  1 +
 2 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/drivers/clk/meson/g12a.h b/drivers/clk/meson/g12a.h
index f399dfe1401c..4854750df902 100644
--- a/drivers/clk/meson/g12a.h
+++ b/drivers/clk/meson/g12a.h
@@ -166,8 +166,30 @@
 #define CLKID_MALI_0_DIV			170
 #define CLKID_MALI_1_DIV			173
 #define CLKID_MPLL_5OM_DIV			176
+#define CLKID_PCIE_PLL_DCO			178
+#define CLKID_PCIE_PLL_DCO_DIV2			179
+#define CLKID_PCIE_PLL_OD			180
+#define CLKID_SYS_PLL_DIV16_EN			181
+#define CLKID_SYS_PLL_DIV16			182
+#define CLKID_CPU_CLK_DYN0_SEL			183
+#define CLKID_CPU_CLK_DYN0_DIV			184
+#define CLKID_CPU_CLK_DYN0			185
+#define CLKID_CPU_CLK_DYN1_SEL			186
+#define CLKID_CPU_CLK_DYN1_DIV			187
+#define CLKID_CPU_CLK_DYN1			188
+#define CLKID_CPU_CLK_DYN			189
+#define CLKID_CPU_CLK_DIV16_EN			191
+#define CLKID_CPU_CLK_DIV16			192
+#define CLKID_CPU_CLK_APB_DIV			193
+#define CLKID_CPU_CLK_APB			194
+#define CLKID_CPU_CLK_ATB_DIV			195
+#define CLKID_CPU_CLK_ATB			196
+#define CLKID_CPU_CLK_AXI_DIV			197
+#define CLKID_CPU_CLK_AXI			198
+#define CLKID_CPU_CLK_TRACE_DIV			299
+#define CLKID_CPU_CLK_TRACE			200
 
-#define NR_CLKS					178
+#define NR_CLKS					201
 
 /* include the CLKIDs that have been made part of the DT binding */
 #include <dt-bindings/clock/g12a-clkc.h>
diff --git a/include/dt-bindings/clock/g12a-clkc.h b/include/dt-bindings/clock/g12a-clkc.h
index 83b657038d1e..33aba232282c 100644
--- a/include/dt-bindings/clock/g12a-clkc.h
+++ b/include/dt-bindings/clock/g12a-clkc.h
@@ -131,5 +131,6 @@
 #define CLKID_MALI_1				174
 #define CLKID_MALI				175
 #define CLKID_MPLL_5OM				177
+#define CLKID_CPU_CLK				190
 
 #endif /* __G12A_CLKC_H */
-- 
2.20.1


  reply	other threads:[~2019-03-01 10:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-01 10:21 [PATCH 0/2] clk: meson: g12a: Add CPU Clock support Neil Armstrong
2019-03-01 10:21 ` Neil Armstrong [this message]
2019-03-01 15:26   ` [PATCH 1/2] clk: meson-g12a: add cpu clock bindings Martin Blumenstingl
2019-03-01 16:43     ` Neil Armstrong
2019-03-01 17:05       ` Martin Blumenstingl
2019-03-01 10:21 ` [PATCH 2/2] clk: meson: g12a: add cpu clocks Neil Armstrong
2019-03-01 15:21   ` Martin Blumenstingl
2019-03-01 16:41     ` Neil Armstrong
2019-03-01 16:52       ` Martin Blumenstingl

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=20190301102140.7181-2-narmstrong@baylibre.com \
    --to=narmstrong@baylibre.com \
    --cc=devicetree@vger.kernel.org \
    --cc=jbrunet@baylibre.com \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.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 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).