linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/7] clk: Add common clock support for Mediatek MT8135 and MT8173.
@ 2015-01-30  5:13 Henry Chen
  2015-01-30  5:13 ` [PATCH v4 1/7] clk: dts: mediatek: add Mediatek MT8135 clock bindings Henry Chen
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Henry Chen @ 2015-01-30  5:13 UTC (permalink / raw)
  To: linux-arm-kernel

This patchset contains the initial common clock support for Mediatek SoCs.
Mediatek SoC's clock architecture comprises of various PLLs, dividers, muxes and clock gates.

This patchset also contains a basic clock support for Mediatek MT8135 and MT8173.

This driver is based on 3.19-rc1 + MT8135 and MT8173 basic support.

Changes in v2:
- Re-ordered patchset. Fold include/dt-bindings and DT document in 1st patch.

Changes in v3:
- Rebase to 3.19-rc1.
- Refine code. Remove unneed functions, debug logs and comments, and fine tune error logs.

Changes in v4:
- Support MT8173 platform.
- Re-ordered patchset. driver/clk/Makefile in 2nd patch.
- Extract the common part definition(mtk_gate/mtk_pll/mtk_mux) from clk-mt8135.c/clk-mt8173.c to clk-mtk.c.
- Refine code. Rmove unnessacary debug information and unsed defines, add prefix "mtk_" for static functions.
- Remove flag CLK_IGNORE_UNUSED and set flag CLK_SET_RATE_PARENT on gate/mux/fixed-factor.
- Use spin_lock_irqsave(&clk_ops_lock, flags) instead of mtk_clk_lock.
- Example above include a node for the clock controller itself, followed by the i2c controller example above.

James Liao (7):
  clk: dts: mediatek: add Mediatek MT8135 clock bindings
  clk: mediatek: Add initial common clock support for Mediatek SoCs.
  clk: mediatek: Add basic clocks for Mediatek MT8135.
  dts: mediatek: Enable clock support for Mediatek MT8135.
  clk: dts: mediatek: add Mediatek MT8173 clock bindings
  clk: mediatek: Add basic clocks for Mediatek MT8173.
  dts: mediatek: Enable clock support for Mediatek MT8173.

 .../bindings/clock/mediatek,mt8135-clock.txt       |   44 +
 .../bindings/clock/mediatek,mt8173-clock.txt       |   42 +
 arch/arm/boot/dts/mt8135.dtsi                      |   47 +
 arch/arm64/boot/dts/mediatek/mt8173.dtsi           |   46 +
 drivers/clk/Makefile                               |    1 +
 drivers/clk/mediatek/Makefile                      |    3 +
 drivers/clk/mediatek/clk-gate.c                    |  140 +++
 drivers/clk/mediatek/clk-gate.h                    |   49 +
 drivers/clk/mediatek/clk-mt8135-pll.c              |  860 ++++++++++++++++
 drivers/clk/mediatek/clk-mt8135-pll.h              |   28 +
 drivers/clk/mediatek/clk-mt8135.c                  |  866 +++++++++++++++++
 drivers/clk/mediatek/clk-mt8173-pll.c              |  807 +++++++++++++++
 drivers/clk/mediatek/clk-mt8173-pll.h              |   14 +
 drivers/clk/mediatek/clk-mt8173.c                  | 1028 ++++++++++++++++++++
 drivers/clk/mediatek/clk-mtk.c                     |  154 +++
 drivers/clk/mediatek/clk-mtk.h                     |  132 +++
 drivers/clk/mediatek/clk-pll.c                     |   63 ++
 drivers/clk/mediatek/clk-pll.h                     |   52 +
 include/dt-bindings/clock/mt8135-clk.h             |  190 ++++
 include/dt-bindings/clock/mt8173-clk.h             |  214 ++++
 20 files changed, 4780 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mt8135-clock.txt
 create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mt8173-clock.txt
 create mode 100644 drivers/clk/mediatek/Makefile
 create mode 100644 drivers/clk/mediatek/clk-gate.c
 create mode 100644 drivers/clk/mediatek/clk-gate.h
 create mode 100644 drivers/clk/mediatek/clk-mt8135-pll.c
 create mode 100644 drivers/clk/mediatek/clk-mt8135-pll.h
 create mode 100644 drivers/clk/mediatek/clk-mt8135.c
 create mode 100644 drivers/clk/mediatek/clk-mt8173-pll.c
 create mode 100644 drivers/clk/mediatek/clk-mt8173-pll.h
 create mode 100644 drivers/clk/mediatek/clk-mt8173.c
 create mode 100644 drivers/clk/mediatek/clk-mtk.c
 create mode 100644 drivers/clk/mediatek/clk-mtk.h
 create mode 100644 drivers/clk/mediatek/clk-pll.c
 create mode 100644 drivers/clk/mediatek/clk-pll.h
 create mode 100644 include/dt-bindings/clock/mt8135-clk.h
 create mode 100644 include/dt-bindings/clock/mt8173-clk.h

-- 
1.8.1.1.dirty

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

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

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-30  5:13 [PATCH v4 0/7] clk: Add common clock support for Mediatek MT8135 and MT8173 Henry Chen
2015-01-30  5:13 ` [PATCH v4 1/7] clk: dts: mediatek: add Mediatek MT8135 clock bindings Henry Chen
2015-01-30  5:13 ` [PATCH v4 2/7] clk: mediatek: Add initial common clock support for Mediatek SoCs Henry Chen
2015-01-30  5:13 ` [PATCH v4 3/7] clk: mediatek: Add basic clocks for Mediatek MT8135 Henry Chen
2015-01-30  5:13 ` [PATCH v4 4/7] dts: mediatek: Enable clock support " Henry Chen
2015-01-30  5:13 ` [PATCH v4 5/7] clk: dts: mediatek: add Mediatek MT8173 clock bindings Henry Chen
2015-01-30  5:13 ` [PATCH v4 6/7] clk: mediatek: Add basic clocks for Mediatek MT8173 Henry Chen
2015-01-30  5:13 ` [PATCH v4 7/7] dts: mediatek: Enable clock support " Henry Chen
2015-02-05 17:24 ` [PATCH v4 0/7] clk: Add common clock support for Mediatek MT8135 and MT8173 Matthias Brugger
2015-02-06 10:30   ` Sascha Hauer
2015-02-06 14:20     ` Matthias Brugger
2015-02-06 15:15       ` Sascha Hauer
2015-02-09  3:05         ` HenryC Chen (陳建豪)

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