linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/5] clk: hisilicon: support stub clock
@ 2015-08-03  1:13 Leo Yan
  2015-08-03  1:13 ` [PATCH v3 1/5] clk: hisi: refine parameter checking for init Leo Yan
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Leo Yan @ 2015-08-03  1:13 UTC (permalink / raw)
  To: linux-arm-kernel

This series adds support for hisilicon stub clock driver. On hi6220,
the bootloader needs load the firmware image and set info for OPPs;
after run into kernel, the stub clock driver is used to communicate
w/t firmware for cpu dynamic frequency scaling.

In patch series v1/v2, the stub clock driver simply writes request in
sram and send ipc to firmware; For patch series v3, the firmware has
been upgraded to use mailbox, so stub clock driver will call standard
mailbox APIs to request mailbox channel and send message to firmware.

These patches have been tested on 96board hikey and is used by cpufreq
driver.

Changes from v2:
* Use platform_device's probe for clock's initialization
* Use mailbox channel for clock frequency change

Changes from v1:
* Refine parameter checking for init flow
* Remove unnecessary debugging info
* Modify to check spinlock pointer when register clocks


Leo Yan (5):
  clk: hisi: refine parameter checking for init
  dt-bindings: arm: Hi6220: add doc for SRAM controller
  dt-bindings: clk: Hi6220: Document stub clock driver
  clk: Hi6220: add stub clock driver
  arm64: dts: add Hi6220's stub clock node

 .../bindings/arm/hisilicon/hisilicon.txt           |  18 ++
 .../devicetree/bindings/clock/hi6220-clock.txt     |  19 +-
 arch/arm64/boot/dts/hisilicon/hi6220.dtsi          |  23 ++
 drivers/clk/hisilicon/Kconfig                      |   2 +-
 drivers/clk/hisilicon/Makefile                     |   2 +-
 drivers/clk/hisilicon/clk-hi6220-stub.c            | 279 +++++++++++++++++++++
 drivers/clk/hisilicon/clk.c                        |  11 +-
 7 files changed, 343 insertions(+), 11 deletions(-)
 create mode 100644 drivers/clk/hisilicon/clk-hi6220-stub.c

-- 
1.9.1

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

end of thread, other threads:[~2015-09-02  1:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-03  1:13 [PATCH v3 0/5] clk: hisilicon: support stub clock Leo Yan
2015-08-03  1:13 ` [PATCH v3 1/5] clk: hisi: refine parameter checking for init Leo Yan
2015-08-03 21:46   ` Stephen Boyd
2015-08-03  1:13 ` [PATCH v3 2/5] dt-bindings: arm: Hi6220: add doc for SRAM controller Leo Yan
2015-08-03  1:13 ` [PATCH v3 3/5] dt-bindings: clk: Hi6220: Document stub clock driver Leo Yan
2015-08-03  1:13 ` [PATCH v3 4/5] clk: Hi6220: add " Leo Yan
2015-08-03 21:37   ` Stephen Boyd
2015-08-04  6:27     ` Leo Yan
2015-09-02  0:28   ` Kevin Hilman
2015-09-02  1:52     ` Leo Yan
2015-08-03  1:13 ` [PATCH v3 5/5] arm64: dts: add Hi6220's stub clock node Leo Yan

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).