linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Palmer <daniel@0x0f.com>
To: linux-clk@vger.kernel.org, sboyd@kernel.org, devicetree@vger.kernel.org
Cc: Daniel Palmer <daniel@0x0f.com>,
	w@1wt.eu, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH v2 0/7] ARM: mstar: Basic MPLL support
Date: Thu, 11 Feb 2021 14:21:59 +0900	[thread overview]
Message-ID: <20210211052206.2955988-1-daniel@0x0f.com> (raw)

This series adds support for the MPLL block that is present in
MStar/SigmaStar ARMv7 SoCs.

This block is intended to be set and forgotten about before
Linux is running so all it actually does it read the registers
and calculate what the output frequencies should be.

We only care about this block because there are upstream dividers,
gates, muxes etc that need something between the input crystal
and themselves to calculate their own rates.

Changes since v1:
  - The clock output name related parts of the binding
    description are gone. Clock names are generated inside the driver.
    I dropped Rob's reviewed-by because of these changes.
  - A devm helper has been added for clk_hw_register_fixed_factor()
    to allow drivers to register multiple fixed factor clks  
    without having to handle all of the clean up.             
  - Numerous clean ups to the mpll driver itself based on Stephen's 
    feedback.

Daniel Palmer (7):
  dt-bindings: clk: mstar msc313 mpll binding header
  dt-bindings: clk: mstar msc313 mpll binding description
  clk: fixed: add devm helper for clk_hw_register_fixed_factor()
  clk: mstar: MStar/SigmaStar MPLL driver
  ARM: mstar: Select MSTAR_MSC313_MPLL
  ARM: mstar: Add the external clocks to the base dsti
  ARM: mstar: Add mpll to base dtsi

 .../bindings/clock/mstar,msc313-mpll.yaml     |  46 ++++++
 MAINTAINERS                                   |   3 +
 arch/arm/boot/dts/mstar-v7.dtsi               |  23 +++
 arch/arm/mach-mstar/Kconfig                   |   1 +
 drivers/clk/Kconfig                           |   1 +
 drivers/clk/Makefile                          |   1 +
 drivers/clk/clk-fixed-factor.c                |  39 ++++-
 drivers/clk/mstar/Kconfig                     |   5 +
 drivers/clk/mstar/Makefile                    |   6 +
 drivers/clk/mstar/clk-msc313-mpll.c           | 155 ++++++++++++++++++
 include/dt-bindings/clock/mstar-msc313-mpll.h |  19 +++
 include/linux/clk-provider.h                  |   4 +-
 12 files changed, 296 insertions(+), 7 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/clock/mstar,msc313-mpll.yaml
 create mode 100644 drivers/clk/mstar/Kconfig
 create mode 100644 drivers/clk/mstar/Makefile
 create mode 100644 drivers/clk/mstar/clk-msc313-mpll.c
 create mode 100644 include/dt-bindings/clock/mstar-msc313-mpll.h

-- 
2.30.0.rc2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

             reply	other threads:[~2021-02-11  5:23 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-11  5:21 Daniel Palmer [this message]
2021-02-11  5:22 ` [PATCH v2 1/7] dt-bindings: clk: mstar msc313 mpll binding header Daniel Palmer
2021-02-14 20:31   ` Stephen Boyd
2021-02-11  5:22 ` [PATCH v2 2/7] dt-bindings: clk: mstar msc313 mpll binding description Daniel Palmer
2021-02-14 20:31   ` Stephen Boyd
2021-02-11  5:22 ` [PATCH v2 3/7] clk: fixed: add devm helper for clk_hw_register_fixed_factor() Daniel Palmer
2021-02-14 20:32   ` Stephen Boyd
2021-02-11  5:22 ` [PATCH v2 4/7] clk: mstar: MStar/SigmaStar MPLL driver Daniel Palmer
2021-02-14 20:32   ` Stephen Boyd
2021-02-14 20:48   ` Stephen Boyd
2021-02-15 11:04     ` Daniel Palmer
2021-02-11  5:22 ` [PATCH v2 5/7] ARM: mstar: Select MSTAR_MSC313_MPLL Daniel Palmer
2021-02-11  5:22 ` [PATCH v2 6/7] ARM: mstar: Add the external clocks to the base dsti Daniel Palmer
2021-02-11  5:22 ` [PATCH v2 7/7] ARM: mstar: Add mpll to base dtsi Daniel Palmer
2021-02-23  1:44 ` [PATCH v2 0/7] ARM: mstar: Basic MPLL support Daniel Palmer
2021-02-23 19:56   ` Arnd Bergmann

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=20210211052206.2955988-1-daniel@0x0f.com \
    --to=daniel@0x0f.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sboyd@kernel.org \
    --cc=w@1wt.eu \
    /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).