From: narmstrong@baylibre.com (Neil Armstrong)
To: linus-amlogic@lists.infradead.org
Subject: [PATCH v2 0/4] clk: meson: gxbb-aoclk: Add CEC 32k clock
Date: Fri, 28 Jul 2017 11:53:05 +0200 [thread overview]
Message-ID: <1501235589-318-1-git-send-email-narmstrong@baylibre.com> (raw)
In order to support the standalone CEC Controller on the Amlogic SoCs,
a specific CEC 32K clock must be handled in the AO domain.
The CEC 32K AO Clock is a dual divider with dual counter to provide a more
precise 32768Hz clock for the CEC subsystem from the external xtal.
The AO clocks management registers are spread among the AO register space,
so this patch also adds management of these registers mappings then uses them
for the CEC 32K AO clock management.
This patchset :
- updates the bindings accordingly
- switch driver to new bindings
- adds the CEC 32k clock
- adds the clock binding entry
The DT Update will be sent in another patchset.
Changes since v1 at [1] :
- move bindings to parent syscon node and move clkc to subnode
- switch aoclkc to use regmap only register access
- introduce aoclk-regmap-gate for this purpose until regmap clocks are generic
[1] https://lkml.kernel.org/r/1499336663-23875-1-git-send-email-narmstrong at baylibre.com
Neil Armstrong (4):
dt-bindings: clock: amlogic,gxbb-aoclkc: Update bindings
clk: meson: gxbb-aoclk: Switch to regmap for register access
dt-bindings: clock: gxbb-aoclk: Add CEC 32k clock
clk: meson: gxbb-aoclk: Add CEC 32k clock
.../bindings/clock/amlogic,gxbb-aoclkc.txt | 22 ++-
drivers/clk/meson/Makefile | 2 +-
drivers/clk/meson/gxbb-aoclk-32k.c | 180 +++++++++++++++++++++
drivers/clk/meson/gxbb-aoclk-regmap.c | 46 ++++++
drivers/clk/meson/gxbb-aoclk.c | 65 +++++---
drivers/clk/meson/gxbb-aoclk.h | 42 +++++
include/dt-bindings/clock/gxbb-aoclkc.h | 1 +
7 files changed, 328 insertions(+), 30 deletions(-)
create mode 100644 drivers/clk/meson/gxbb-aoclk-32k.c
create mode 100644 drivers/clk/meson/gxbb-aoclk-regmap.c
create mode 100644 drivers/clk/meson/gxbb-aoclk.h
--
1.9.1
next reply other threads:[~2017-07-28 9:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-28 9:53 Neil Armstrong [this message]
2017-07-28 9:53 ` [PATCH v2 1/4] dt-bindings: clock: amlogic, gxbb-aoclkc: Update bindings Neil Armstrong
2017-07-28 9:53 ` [PATCH v2 2/4] clk: meson: gxbb-aoclk: Switch to regmap for register access Neil Armstrong
2017-07-28 9:53 ` [PATCH v2 3/4] dt-bindings: clock: gxbb-aoclk: Add CEC 32k clock Neil Armstrong
2017-07-28 9:53 ` [PATCH v2 4/4] clk: meson: " Neil Armstrong
2017-07-28 10:29 ` Martin Blumenstingl
2017-07-28 14:09 ` Neil Armstrong
2017-07-28 20:47 ` Martin Blumenstingl
2017-07-29 8:04 ` Chris Moore
2017-07-31 8:10 ` Neil Armstrong
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=1501235589-318-1-git-send-email-narmstrong@baylibre.com \
--to=narmstrong@baylibre.com \
--cc=linus-amlogic@lists.infradead.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
all inboxes | Powered by JetHome®