From: Stephen Boyd <sboyd@codeaurora.org>
To: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
Mike Turquette <mturquette@linaro.org>,
Saravana Kannan <skannan@codeaurora.org>,
James Hogan <james.hogan@imgtec.com>,
Grant Likely <grant.likely@linaro.org>,
Rob Herring <rob.herring@calxeda.com>,
devicetree-discuss@lists.ozlabs.org
Subject: [RFC/PATCH 00/13] Add support for MSM's mmio clocks
Date: Wed, 12 Jun 2013 18:48:56 -0700 [thread overview]
Message-ID: <1371088149-22562-1-git-send-email-sboyd@codeaurora.org> (raw)
Posting as an RFC because I haven't gone through and generated all
the data needed yet. This is just a few clocks for now to give a general
idea of where things are headed.
The first 4 patches are generic clock framework patches. They add support
for finding clocks in DT and parsing them generically. They also add support
for setting the rate and the parent at the same time based on patches from
James Hogan's remuxing set_rate series [1].
After that we add MSM clock hardware support and then fill in the DT and
data to actually register clocks. This is sufficient enough to get the UART
going on my msm8960 device.
I'm currently waffling between the DT bindings being more descriptive
versus just using the clocks as numbers method. From what I can tell
nobody is complaining either way so it seems I could put all of
the information I encode in C structs into DT. It would be great
if more experienced DT persons could weigh in here.
Please note this patchset relies on my previous patch series that moves
existing MSM clock code to the common clock framework [2].
Stephen Boyd (13):
clk: fixed-rate: Export clk_fixed_rate_register()
clk: Add of_init_clk_data() to parse common clock bindings
clk: Add of_clk_match() for device drivers
clk: Add set_rate_and_parent() op
clk: msm: Add support for phase locked loops (PLLs)
clk: msm: Add support for root clock generators (RCGs)
clk: msm: Add support for branches/gate clocks
clk: msm: Add MSM clock driver
clk: msm: Add support for MSM8960's global clock controller (GCC)
clk: msm: Add support for MSM8960's multimedia clock controller (MMCC)
ARM: dts: msm: Add MSM8960 GCC DT nodes
ARM: dts: msm: Add MSM8960 MMCC DT nodes
ARM: dts: msm: Add clock entries for MSM8960 uart device
Documentation/clk.txt | 3 +
Documentation/devicetree/bindings/clock/msm.txt | 99 +++
.../devicetree/bindings/clock/qcom,gcc.txt | 55 ++
.../devicetree/bindings/clock/qcom,mmcc.txt | 38 ++
arch/arm/boot/dts/msm8960-cdp.dts | 111 +++
drivers/clk/Kconfig | 2 +
drivers/clk/Makefile | 1 +
drivers/clk/clk-fixed-rate.c | 1 +
drivers/clk/clk.c | 201 +++++-
drivers/clk/msm/Kconfig | 22 +
drivers/clk/msm/Makefile | 11 +
drivers/clk/msm/clk-branch.c | 190 ++++++
drivers/clk/msm/clk-branch.h | 48 ++
drivers/clk/msm/clk-pll.c | 233 +++++++
drivers/clk/msm/clk-pll.h | 43 ++
drivers/clk/msm/clk-rcg.c | 754 +++++++++++++++++++++
drivers/clk/msm/clk-rcg.h | 114 ++++
drivers/clk/msm/clk-rcg2.c | 320 +++++++++
drivers/clk/msm/core.c | 271 ++++++++
drivers/clk/msm/gcc-8960.c | 174 +++++
drivers/clk/msm/internal.h | 27 +
drivers/clk/msm/mmcc-8960.c | 142 ++++
include/linux/clk-provider.h | 28 +
23 files changed, 2868 insertions(+), 20 deletions(-)
create mode 100644 Documentation/devicetree/bindings/clock/msm.txt
create mode 100644 Documentation/devicetree/bindings/clock/qcom,gcc.txt
create mode 100644 Documentation/devicetree/bindings/clock/qcom,mmcc.txt
create mode 100644 drivers/clk/msm/Kconfig
create mode 100644 drivers/clk/msm/Makefile
create mode 100644 drivers/clk/msm/clk-branch.c
create mode 100644 drivers/clk/msm/clk-branch.h
create mode 100644 drivers/clk/msm/clk-pll.c
create mode 100644 drivers/clk/msm/clk-pll.h
create mode 100644 drivers/clk/msm/clk-rcg.c
create mode 100644 drivers/clk/msm/clk-rcg.h
create mode 100644 drivers/clk/msm/clk-rcg2.c
create mode 100644 drivers/clk/msm/core.c
create mode 100644 drivers/clk/msm/gcc-8960.c
create mode 100644 drivers/clk/msm/internal.h
create mode 100644 drivers/clk/msm/mmcc-8960.c
[1] <1369056507-32521-1-git-send-email-james.hogan@imgtec.com>
[2]
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation
next reply other threads:[~2013-06-13 1:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-13 1:48 Stephen Boyd [this message]
[not found] ` <1371088149-22562-1-git-send-email-sboyd-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2013-06-13 1:49 ` [RFC/PATCH 05/13] clk: msm: Add support for phase locked loops (PLLs) Stephen Boyd
2013-06-13 1:49 ` [RFC/PATCH 06/13] clk: msm: Add support for root clock generators (RCGs) Stephen Boyd
2013-06-13 1:49 ` [RFC/PATCH 07/13] clk: msm: Add support for branches/gate clocks Stephen Boyd
2013-06-13 1:49 ` [RFC/PATCH 09/13] clk: msm: Add support for MSM8960's global clock controller (GCC) Stephen Boyd
2013-06-13 1:49 ` [RFC/PATCH 10/13] clk: msm: Add support for MSM8960's multimedia clock controller (MMCC) Stephen Boyd
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=1371088149-22562-1-git-send-email-sboyd@codeaurora.org \
--to=sboyd@codeaurora.org \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=grant.likely@linaro.org \
--cc=james.hogan@imgtec.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@linaro.org \
--cc=rob.herring@calxeda.com \
--cc=skannan@codeaurora.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).