devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Henry Chen <henryc.chen@mediatek.com>
To: Rob Herring <robh+dt@kernel.org>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	Mike Turquette <mturquette@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>,
	jamesjj.liao@mediatek.com,
	Vladimir Murzin <vladimir.murzin@arm.com>,
	Russell King <linux@arm.linux.org.uk>,
	srv_heupstream@mediatek.com, Pawel Moll <pawel.moll@arm.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Catalin Marinas <catalin.marinas@arm.com>,
	linux-kernel@vger.kernel.org, henryc.chen@mediatek.com,
	devicetree@vger.kernel.org,
	Ashwin Chaugule <ashwin.chaugule@linaro.org>,
	Sascha Hauer <kernel@pengutronix.de>,
	Kumar Gala <galak@codeaurora.org>,
	"Joe.C" <yingjoe.chen@mediatek.com>,
	eddie.huang@mediatek.com, linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 0/7] clk: Add common clock support for Mediatek MT8135 and MT8173.
Date: Fri, 30 Jan 2015 13:13:11 +0800	[thread overview]
Message-ID: <1422594798-13375-1-git-send-email-henryc.chen@mediatek.com> (raw)

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

             reply	other threads:[~2015-01-30  5:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-30  5:13 Henry Chen [this message]
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
     [not found] ` <1422594798-13375-1-git-send-email-henryc.chen-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2015-02-05 17:24   ` [PATCH v4 0/7] clk: Add common clock support for Mediatek MT8135 and MT8173 Matthias Brugger
     [not found]     ` <CABuKBeJSH3WzG3QC=9OoPzXE6fd9W2U67V4c19NzWcPxWR7VDg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-02-06 10:30       ` Sascha Hauer
2015-02-06 14:20         ` Matthias Brugger
     [not found]           ` <CABuKBeJBp115aD_xb7_2471h=iyr5Wc33m2EX715MxNc=_1p2A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-02-06 15:15             ` Sascha Hauer
2015-02-09  3:05               ` HenryC Chen (陳建豪)

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=1422594798-13375-1-git-send-email-henryc.chen@mediatek.com \
    --to=henryc.chen@mediatek.com \
    --cc=ashwin.chaugule@linaro.org \
    --cc=catalin.marinas@arm.com \
    --cc=devicetree@vger.kernel.org \
    --cc=eddie.huang@mediatek.com \
    --cc=galak@codeaurora.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=jamesjj.liao@mediatek.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=mark.rutland@arm.com \
    --cc=matthias.bgg@gmail.com \
    --cc=mturquette@linaro.org \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=srv_heupstream@mediatek.com \
    --cc=vladimir.murzin@arm.com \
    --cc=yingjoe.chen@mediatek.com \
    /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).